:root {
  --bg:            #FAF6EF;
  --bg-soft:       #F2EBDD;
  --ink:           #1F2A1E;
  --ink-soft:      #4A554A;
  --muted:         #7A8278;
  --olive:         #5C6E47;
  --olive-deep:    #3E4D2F;
  --olive-soft:    #DDE3CE;
  --cream:         #ECE4D0;
  --rose:          #C68B6B;
  --rose-deep:     #A86A4D;
  --line:          #E2DACB;
  --card:          #FFFFFF;
  --shadow:        0 8px 28px -16px rgba(40,50,30,.18), 0 2px 6px -2px rgba(40,50,30,.06);
  --shadow-lift:   0 24px 60px -24px rgba(40,50,30,.25), 0 6px 16px -8px rgba(40,50,30,.08);
  --radius:        18px;
  --radius-sm:     12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.05; margin: 0 0 1rem; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.15; margin: 0 0 1rem; }
h3 { font-size: 1.3rem; line-height: 1.25; margin: 0 0 .6rem; font-weight: 600; }
h4 { font-size: 1.05rem; margin: 0 0 .35rem; font-weight: 600; font-family: 'Inter', sans-serif; letter-spacing: 0; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }
a  { color: var(--olive-deep); }

/* ───── Top Navigation ───── */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,239,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: 1180px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff, var(--cream) 60%, var(--olive) 100%);
  border: 2px solid var(--rose);
  box-shadow: inset -2px -3px 8px rgba(0,0,0,.08);
}
.nav-tabs { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nav-tabs a.nav-link {
  display: inline-block;
  background: transparent; padding: 10px 16px;
  font-family: 'Inter', sans-serif; font-size: .95rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none; border-radius: 999px;
  transition: all .2s ease;
}
.nav-tabs a.nav-link:hover { background: var(--bg-soft); color: var(--ink); }
.nav-tabs a.nav-link.active { background: var(--olive-deep); color: var(--bg); }

/* ───── Layout ───── */
main { max-width: 1180px; margin: 0 auto; padding: 0 28px 80px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-enter { animation: fadeUp .35s ease; }

/* ───── Hero (About) ───── */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
  padding: 70px 0 60px;
}
.hero-eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--olive-soft); color: var(--olive-deep);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: italic; color: var(--olive-deep);
  background: linear-gradient(180deg, transparent 70%, rgba(198,139,107,.25) 70%);
  padding: 0 4px;
}
.hero-lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 540px; }
.hero-bullets { list-style: none; padding: 0; margin: 16px 0 0; max-width: 540px; display: flex; flex-direction: column; gap: 10px; }
.hero-bullets li { font-size: 1rem; color: var(--ink-soft); padding-left: 20px; position: relative; }
.hero-bullets li::before { content: '—'; position: absolute; left: 0; color: var(--rose); font-weight: 600; }
.hero-ctas { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 500; font-size: .95rem;
  cursor: pointer; text-decoration: none; border: 1px solid transparent;
  transition: all .2s ease;
}
.btn-primary { background: var(--olive-deep); color: var(--bg); }
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }

/* ───── Hero Carousel ───── */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  border-radius: 24px;
  overflow: hidden;
  background: #0d0d0d;
  box-shadow: 0 32px 80px -24px rgba(0,0,0,.45), 0 8px 24px -8px rgba(0,0,0,.25);
}
/* padding-bottom trick: forces square aspect ratio regardless of content */
.carousel-track {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  height: 0;
}
.carousel-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .55s ease;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  display: block;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  color: #fff; width: 38px; height: 38px; border-radius: 50%;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.carousel-btn:hover { background: rgba(255,255,255,.28); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 2;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.35); border: none; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  padding: 0;
}
.carousel-dot.active { background: #fff; transform: scale(1.25); }

/* ───── Generic sections ───── */
section.block { padding: 56px 0; border-top: 1px solid var(--line); }
section.block:first-of-type { border-top: none; }
.section-eyebrow {
  color: var(--rose-deep); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px;
}
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 760px; }

/* ───── Card grids ───── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 36px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--olive-soft); color: var(--olive-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.4rem;
}
.card-rose .icon { background: #F4E2D7; color: var(--rose-deep); }
.card-cream .icon { background: var(--cream); color: var(--ink); }

/* ───── Day with CC timeline ───── */
.day-tabs {
  display: flex; gap: 8px; margin-top: 30px; flex-wrap: wrap;
}
.day-tab {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; font-size: .9rem; font-weight: 500;
  color: var(--ink-soft); transition: all .2s ease;
}
.day-tab.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.day-tab:hover:not(.active) { border-color: var(--olive); color: var(--olive-deep); }

.timeline {
  margin-top: 28px; position: relative;
  border-left: 2px dashed var(--olive-soft);
  padding-left: 28px;
}
.timeline-item { margin-bottom: 26px; position: relative; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -36px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--rose); border: 3px solid var(--bg);
  box-shadow: 0 0 0 1.5px var(--rose-deep);
}
.timeline-time {
  font-size: .8rem; font-weight: 700; color: var(--olive-deep);
  letter-spacing: .04em; text-transform: uppercase;
}
.timeline-event {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 20px; margin-top: 6px;
}
.timeline-event p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.timeline-event strong { color: var(--ink); }
.day-content { display: none; }
.day-content.active { display: block; }

/* ───── Stakeholder bar ───── */
.stakeholders {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px;
}
.stake {
  text-align: center; padding: 28px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.stake .emoji { font-size: 2.2rem; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; }
.stake h4 { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 500; }
.stake p { font-size: .9rem; margin: 0; }

/* ───── Feature highlight rows ───── */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; padding: 50px 0; border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse > div:first-child { order: 2; }
.feature-art {
  background: linear-gradient(135deg, var(--olive-soft), var(--cream));
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}

/* ───── Dashboard placeholders ───── */
.dashboards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 30px; }
.dashboard-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.dashboard-thumb {
  aspect-ratio: 16/9;
  background:
    linear-gradient(135deg, rgba(92,110,71,.12), rgba(198,139,107,.10)),
    repeating-linear-gradient(45deg, var(--bg-soft) 0 12px, var(--cream) 12px 24px);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.dashboard-thumb::before {
  content: 'Dashboard preview · placeholder';
  color: var(--muted); font-size: .85rem; letter-spacing: .04em; font-weight: 500;
  background: rgba(255,255,255,.85); padding: 6px 14px; border-radius: 999px;
}
.dashboard-thumb--image {
  background: #f0f2f5;
  padding: 0;
}
.dashboard-thumb--image::before { display: none; }
.dashboard-thumb--image img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: top center;
  display: block;
}
.dashboard-body { padding: 22px 24px; }
.dashboard-body h4 { margin-bottom: 6px; }
.dashboard-body p { font-size: .9rem; margin: 0; }

/* ───── Metrics grid (Health Optimization) ───── */
.metric {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.metric-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--rose-deep); margin-bottom: 10px;
}
.metric h4 { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 500; }
.metric ul { padding-left: 18px; margin: 8px 0 0; color: var(--ink-soft); font-size: .9rem; }
.metric ul li { margin-bottom: 4px; }

/* ───── Phase deployment ───── */
.phase-track {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 36px; position: relative;
}
.phase {
  padding: 28px 24px; background: var(--card);
  border: 1px solid var(--line); border-right: none;
  position: relative;
}
.phase:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.phase:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-right: 1px solid var(--line); }
.phase-num {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--olive-deep); color: var(--bg);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  margin-bottom: 12px;
}
.phase-pilot { background: linear-gradient(180deg, #fff, var(--cream) 110%); }
.phase-pilot .phase-num { background: var(--rose-deep); }
.phase ul { padding-left: 18px; color: var(--ink-soft); font-size: .9rem; margin: 10px 0 0; }
.phase ul li { margin-bottom: 4px; }

/* ───── Form ───── */
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; margin-top: 30px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 6px;
}
.form-field input, .form-field select, .form-field textarea {
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); font-family: inherit; font-size: .95rem; color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--olive); background: #fff;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.form-note { font-size: .85rem; color: var(--muted); }

.toast {
  margin-top: 18px; padding: 14px 18px;
  background: var(--olive-soft); color: var(--olive-deep);
  border-radius: 10px; font-size: .9rem; font-weight: 500;
  display: none;
}
.toast.show { display: block; animation: fadeUp .35s ease; }

/* ───── Footer ───── */
footer.site {
  border-top: 1px solid var(--line);
  padding: 30px 28px; text-align: center;
  color: var(--muted); font-size: .85rem;
}

/* ───── Responsive ───── */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0; }
  .hero-carousel { margin: 0 auto; max-width: 100%; }
  .grid-3, .grid-2, .grid-4, .stakeholders, .dashboards, .phase-track { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
  .feature-row.reverse > div:first-child { order: 0; }
  .form-row { grid-template-columns: 1fr; }
  .phase { border-right: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
  .phase:first-child, .phase:last-child { border-radius: var(--radius); }
  .nav-wrap { flex-wrap: wrap; }
  .nav-tabs { width: 100%; margin-left: 0; }
}
