:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-soft: #f3efe8;
  --text: #1d1e20;
  --muted: #6a6d72;
  --line: #ddd5c7;
  --accent: #b28a4a;
  --accent-deep: #8f6b36;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 12px 36px rgba(31, 29, 24, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 500px at 85% -120px, #ece5d6 0%, transparent 60%),
    radial-gradient(700px 400px at 8% 20%, #f7efe0 0%, transparent 65%),
    var(--bg);
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(247, 245, 241, 0.85);
  border-bottom: 1px solid rgba(173, 158, 128, 0.24);
}

.nav-shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  text-decoration: none;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

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

.drawer-brand {
  display: none;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4f5358;
}

.site-nav a:hover {
  color: #1d1e20;
}

.site-nav a.active-nav {
  color: #1d1e20;
  position: relative;
}

.site-nav a.active-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 999px;
  background: #a38148;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #d5cab8;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #2f3237;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-backdrop {
  display: none;
}

.hero {
  padding: 72px 0 36px;
}

.hero-full {
  width: 100%;
  padding: 0;
}

.hero-video-panel {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  height: 100dvh;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background:
    radial-gradient(900px 380px at 20% 10%, #fbf4e6 0%, transparent 65%),
    linear-gradient(180deg, #f9f5ed 0%, #f2ecdf 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 3vw, 42px);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 243, 234, 0.32) 0%, rgba(240, 235, 224, 0.58) 100%);
}

.hero-video-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-kicker {
  color: #6b5a3b;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-rotating {
  margin-top: 10px;
  margin-bottom: 0;
  max-width: 24ch;
  color: #151617;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  min-height: 1.2em;
}

.hero-rotating::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 7px;
  background: rgba(21, 22, 23, 0.8);
  animation: blink-caret 0.8s steps(1) infinite;
  vertical-align: baseline;
}

.hero-lead {
  margin-top: 14px;
  margin-left: auto;
  margin-right: auto;
  color: #3c4046;
  max-width: 64ch;
}

.hero-stats-on-video {
  margin-top: 20px;
}

.hero-stats {
  margin-top: 26px;
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hero-metric {
  padding: 8px 4px;
  text-align: center;
}

.hero-metric h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  color: #17181a;
}

.hero-metric p {
  margin-top: 4px;
  color: #464b51;
  font-size: 0.93rem;
}

.hero-video-panel .hero-actions {
  margin-top: 20px;
  justify-content: center;
}

.hero-video-panel .btn-secondary {
  border-color: #bca57f;
  color: #2e3136;
  background: rgba(255, 255, 255, 0.8);
}

.hero-video-panel.hero-has-video .btn-secondary {
  border-color: rgba(255, 255, 255, 0.62);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-video-panel.hero-has-video .btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.92);
  color: #ffffff;
}

.page-head {
  padding: 64px 0 20px;
}

.page-head h1 {
  max-width: 20ch;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #151617;
}

.page-head p {
  max-width: 78ch;
}

.hero-panel {
  padding: clamp(30px, 4vw, 56px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #ffffff, #fbf7ee);
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  margin-bottom: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 700;
}

.hero-panel h1 {
  max-width: 16ch;
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: #151617;
}

.lead {
  margin-top: 16px;
  max-width: 72ch;
  color: #4e5156;
  font-size: 1.03rem;
}

.hero-video-content .lead {
  color: #3c4046;
}

.hero-video-panel.hero-has-video .hero-video {
  opacity: 1;
}

.hero-video-panel.hero-has-video .hero-video-overlay {
  background:
    linear-gradient(180deg, rgba(20, 21, 24, 0.28) 0%, rgba(20, 21, 24, 0.58) 70%, rgba(20, 21, 24, 0.74) 100%);
}

.hero-video-panel.hero-has-video .hero-kicker {
  color: rgba(255, 255, 255, 0.88);
}

.hero-video-panel.hero-has-video .hero-rotating {
  color: #ffffff;
}

.hero-video-panel.hero-has-video .hero-rotating::after {
  background: rgba(255, 255, 255, 0.9);
}

.hero-video-panel.hero-has-video .hero-lead,
.hero-video-panel.hero-has-video .hero-video-content .lead {
  color: rgba(255, 255, 255, 0.9);
}

.hero-video-panel.hero-has-video .hero-metric h3 {
  color: #ffffff;
}

.hero-video-panel.hero-has-video .hero-metric p {
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  margin-top: 0;
}

.stat-value {
  color: #1d1e20;
  font-weight: 700;
  font-size: 1.2rem;
}

.stat-label {
  margin-top: 4px;
  font-size: 0.9rem;
}

.section {
  padding: 40px 0;
}

.section-head {
  max-width: 78ch;
}

.vision-figure {
  margin: 0 0 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #dfd5c3;
  box-shadow: var(--shadow-soft);
}

.vision-figure img {
  width: 100%;
  display: block;
}

.vision-grid {
  margin-top: 18px;
}

.red-funds-band {
  position: relative;
  padding: 0;
  margin-top: 8px;
  min-height: 520px;
  overflow: hidden;
}

.red-funds-band img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.red-funds-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 20, 14, 0.2) 0%, rgba(24, 20, 14, 0.48) 100%);
}

.red-funds-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.red-funds-content .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.red-funds-content h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  max-width: 20ch;
}

.red-funds-content p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 64ch;
  margin-top: 10px;
}

.red-funds-content .btn-primary {
  margin-top: 20px;
}

.section-head h2 {
  font-size: clamp(1.45rem, 2.7vw, 2.3rem);
}

.section-head p {
  margin-top: 10px;
}

.narrow {
  max-width: 66ch;
}

.card-grid {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

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

.info-card {
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius-md);
  border: 0;
  background: #f8f4eb;
  box-shadow: var(--shadow-soft);
}

.info-card h3 {
  font-size: 1.34rem;
}

.vision-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #efe3ce;
  color: #5f4822;
  font-size: 1rem;
  font-weight: 700;
}

.phase-band {
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(178, 138, 74, 0.34);
  background: linear-gradient(135deg, #fff9eb, #f8f0e0);
}

.phase-band h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

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

.portal-section p {
  margin-bottom: 10px;
}

.portal-list {
  margin: 0 0 16px;
  padding-left: 18px;
  color: #4a5057;
}

.portal-list li {
  margin-bottom: 6px;
}

.portal-form {
  margin-top: 8px;
}

.contact-form {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4b5055;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d4c9b5;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  background: var(--surface-soft);
  color: #1f2125;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(178, 138, 74, 0.3);
  border-color: var(--accent);
}

.field-full {
  grid-column: 1 / -1;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: linear-gradient(140deg, var(--accent), #ceb37f);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(140deg, var(--accent-deep), #b99657);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  border-radius: 999px;
  border: 1px solid #c9baa0;
  padding: 12px 22px;
  color: #2e3136;
  background: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: #af9568;
  color: #1f2125;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: #805f2f;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: #66481f;
}

.alert-success {
  margin-top: 14px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #c3e1c4;
  background: #edf9ed;
  border-radius: 12px;
  color: #275a29;
}

.field-validation-error {
  color: #a8232c;
  font-size: 0.86rem;
}

.site-footer {
  margin-top: 36px;
  border-top: 1px solid rgba(173, 158, 128, 0.24);
  background: rgba(255, 255, 255, 0.72);
}

.footer-shell {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #5d6167;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.2fr;
  gap: 24px;
  align-items: start;
  padding: 36px 0 20px;
}

.footer-title {
  margin-bottom: 10px;
  color: #212329;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
}

.footer-brand p {
  max-width: 36ch;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-shell a {
  color: #3f454d;
  text-decoration: none;
}

.footer-message-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-message-form input {
  width: 100%;
  border: 1px solid #d4c9b5;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  background: var(--surface-soft);
  color: #1f2125;
}

.footer-message-form .btn-primary {
  margin-top: 0;
  white-space: nowrap;
}

.footer-bottom {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-top: 1px solid rgba(173, 158, 128, 0.22);
  color: #666b72;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .card-grid.two,
  .portal-sections,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 34px;
    row-gap: 22px;
  }

  .hero-stats .hero-metric:last-child {
    grid-column: 1 / -1;
  }

  .hero-metric p {
    margin-top: 8px;
  }

  .hero-video-panel .hero-actions {
    margin-top: 30px;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(84vw, 320px);
    background: #fdfbf6;
    border-left: 1px solid #e1d8c9;
    box-shadow: -10px 0 30px rgba(20, 20, 20, 0.16);
    z-index: 50;
    padding: 86px 22px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    transform: translateX(104%);
    transition: transform 0.3s ease;
  }

  .site-nav a {
    font-size: 0.9rem;
    width: 100%;
    padding: 10px 8px;
    border-bottom: 1px solid #ece3d4;
  }

  .site-nav a.active-nav::after {
    display: none;
  }

  .site-nav a.active-nav {
    background: #f4ecdd;
    border-radius: 8px;
    border-bottom-color: transparent;
  }

  .drawer-brand {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 0 4px 10px;
    border-bottom: 1px solid #dccfb8;
    text-decoration: none;
  }

  .drawer-mark {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    background: #ead9ba;
    color: #3b301e;
  }

  .drawer-name {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.02rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #292d31;
  }

  .site-header.nav-open .site-nav {
    transform: translateX(0);
  }

  .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(11, 12, 14, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 40;
  }

  .site-header.nav-open .nav-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-lock {
    overflow: hidden;
  }

  .hero-video-panel {
    min-height: 100dvh;
    height: 100dvh;
    padding-top: 90px;
  }

  .red-funds-band,
  .red-funds-band img {
    min-height: 420px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding-top: 26px;
  }

  .footer-message-form {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-message-form .btn-primary {
    width: 100%;
  }
}

@keyframes blink-caret {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}
