:root {
  --c-cream:    #f2ede8;
  --c-sand:     #e0d5c8;
  --c-warm:     #c9a882;
  --c-rust:     #b8432f;
  --c-ink:      #141211;
  --c-ink-soft: #2a2725;
  --c-slate:    #6b6360;
  --c-fog:      #9a938c;
  --f-serif:    'Instrument Serif', Georgia, 'Times New Roman', serif;
  --f-sans:     'Libre Franklin', system-ui, -apple-system, sans-serif;
  --max-w:      1120px;
  --content-w:  720px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  font-family: var(--f-sans);
  background: var(--c-cream);
  color: var(--c-ink);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--c-rust); color: white; }

/* grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(242,237,232,.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: background .3s;
}
nav.scrolled { background: rgba(242,237,232,.95); box-shadow: 0 1px 20px rgba(0,0,0,.06); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--f-serif);
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--c-ink);
}
.nav-quick {
  display: flex;
  gap: .15rem;
  align-items: center;
}
.nav-quick a {
  text-decoration: none;
  color: var(--c-slate);
  font-size: .82rem;
  font-weight: 500;
  padding: .4rem .7rem;
  border-radius: 6px;
  transition: all .25s;
  white-space: nowrap;
  letter-spacing: .02em;
}
.nav-quick a:hover { color: var(--c-ink); background: rgba(0,0,0,.04); }
.nav-quick a.active { color: var(--c-rust); background: rgba(184,67,47,.06); }

.nav-menu { position: relative; }
.nav-menu summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  transition: background .2s;
}
.nav-menu summary:hover { background: rgba(0,0,0,.05); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::marker { display: none; content: ''; }
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
  pointer-events: none;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .2s;
  transform-origin: center;
}
.nav-menu[open] .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu[open] .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-menu[open] .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + .6rem);
  right: 0;
  min-width: 260px;
  background: var(--c-cream);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: .5rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.04);
  animation: dropIn .25s cubic-bezier(.22,1,.36,1);
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.nav-dropdown-label {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--c-fog);
  padding: .8rem .9rem .4rem;
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--c-ink-soft);
  font-size: .88rem;
  font-weight: 400;
  padding: .6rem .9rem;
  border-radius: 10px;
  transition: all .2s;
}
.nav-dropdown a:hover { background: var(--c-sand); color: var(--c-ink); }
.nav-dropdown a.active { background: rgba(184,67,47,.06); color: var(--c-rust); }
.nav-dropdown .nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--c-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
  color: var(--c-slate);
  font-weight: 600;
}
.nav-dropdown a:hover .nav-icon { background: var(--c-warm); color: white; }
.nav-dropdown a.active .nav-icon { background: rgba(184,67,47,.12); color: var(--c-rust); }
.nav-dropdown-divider {
  height: 1px;
  background: rgba(0,0,0,.06);
  margin: .3rem .5rem;
}

/* ===== HERO ===== */
#hero {
  background: var(--c-sand);
  color: var(--c-ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(184,67,47,.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(201,168,130,.4) 0%, transparent 60%);
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  animation: gridShift 20s linear infinite;
}
@keyframes gridShift { 0% { transform: translate(0,0); } 100% { transform: translate(60px,60px); } }
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-eyebrow {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--c-rust);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp .8s .3s ease forwards;
}
.hero-title {
  font-family: var(--f-serif);
  font-size: clamp(3.2rem, 8.5vw, 7.5rem);
  line-height: .92;
  letter-spacing: -.04em;
  margin-bottom: 1.5rem;
  max-width: 10em;
  opacity: 0;
  animation: fadeUp .8s .5s ease forwards;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 300;
  color: var(--c-slate);
  max-width: 520px;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp .8s .7s ease forwards;
}
.hero-cta {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s .9s ease forwards;
}
.hero-cta a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.8rem;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: 50px;
  transition: all .3s;
}
.btn-primary { background: var(--c-rust); color: white; }
.btn-primary:hover { background: #9a3625; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(184,67,47,.3); }
.btn-ghost { border: 1px solid rgba(0,0,0,.2); color: var(--c-ink); }
.btn-ghost:hover { border-color: var(--c-rust); color: var(--c-rust); background: rgba(184,67,47,.04); }
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  color: var(--c-slate);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s 1.5s ease forwards;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--c-slate), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity:.3; transform:scaleY(1); } 50% { opacity:1; transform:scaleY(1.3); transform-origin:top; } }

/* ===== STATS BAR ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3.5rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.stat-num {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--c-rust);
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-label {
  font-size: .75rem;
  color: var(--c-fog);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 500;
}

/* ===== SECTIONS ===== */
.section { padding: clamp(4rem, 10vw, 8rem) 2rem; position: relative; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3rem;
}
.section-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--c-rust);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--c-slate);
  line-height: 1.7;
  padding-top: .5rem;
}

.section-content { max-width: var(--content-w); }
.section-content h1, .section-content h2 {
  font-family: var(--f-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: .6em;
  letter-spacing: -.02em;
}
.section-content h3 {
  font-family: var(--f-serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.25;
  margin-bottom: .5em;
  margin-top: 2.5em;
  color: var(--c-rust);
}
.section-content h3:first-child { margin-top: 0; }
.section-content p { margin-bottom: 1.1em; color: var(--c-ink-soft); }
.section-content p:last-child { margin-bottom: 0; }
.section-content strong { color: var(--c-ink); font-weight: 600; }
.section-content ul { padding-left: 0; list-style: none; margin-bottom: 1.2em; }
.section-content li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: .7em;
  color: var(--c-ink-soft);
}
.section-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-rust);
}
.section-content li strong { color: var(--c-ink); }

/* split layout */
.layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.pull-quote {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.3;
  color: var(--c-ink);
  border-left: 3px solid var(--c-rust);
  padding-left: 1.5rem;
  margin-top: 1rem;
}

/* bio layout */
.layout-bio {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.bio-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
}

/* phase cards */
.phases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.phase-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: transform .3s, box-shadow .3s;
}
.phase-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.phase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c-rust);
}
.phase-num {
  font-family: var(--f-serif);
  font-size: 3rem;
  color: var(--c-sand);
  line-height: 1;
  margin-bottom: .5rem;
}
.phase-card h3 { font-family: var(--f-serif); font-size: 1.2rem; margin-bottom: .8rem; color: var(--c-ink) !important; margin-top: 0 !important; }
.phase-card p, .phase-card li { font-size: .92rem; }

/* partner cards */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.partner-card {
  background: white;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all .3s;
}
.partner-card:hover { background: var(--c-cream); box-shadow: 0 4px 20px rgba(0,0,0,.06); border-color: rgba(0,0,0,.1); }
.partner-card strong { display: block; margin-bottom: .3rem; color: var(--c-ink); }

/* ===== THEMES ===== */
.clay { background: #c4a68a; }
.clay .section-label { color: var(--c-rust); }
.clay .section-content p { color: var(--c-ink-soft); }
.clay .pull-quote { color: var(--c-ink); border-left-color: var(--c-rust); }
.clay .partner-card { background: rgba(255,255,255,.45); border-color: rgba(255,255,255,.3); }
.clay .partner-card:hover { background: rgba(255,255,255,.65); }
.clay .partner-card strong { color: var(--c-ink); }
.warm { background: var(--c-sand); }
.warm .phase-card { background: var(--c-cream); }

/* ===== FOOTER ===== */
footer { background: var(--c-sand); color: var(--c-slate); padding: 4rem 2rem; }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand { font-family: var(--f-serif); font-size: 1.3rem; color: var(--c-ink); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--c-slate); text-decoration: none; font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: var(--c-rust); }
.footer-copy {
  font-size: .78rem;
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,.08);
}

/* ===== KEYFRAMES ===== */
@keyframes fadeUp { from { opacity:0; transform:translateY(25px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .section-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .layout-split { grid-template-columns: 1fr; gap: 2rem; }
  .layout-bio { grid-template-columns: 1fr; gap: 2rem; }
  .bio-photo { max-width: 260px; }
  .phases-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-quick > a { display: none; }
  .hero-inner { padding: 6rem 1.5rem 4rem; }
  .section { padding: clamp(3rem, 8vw, 5rem) 1.5rem; }
  .partner-grid { grid-template-columns: 1fr; }
  .bio-photo { max-width: 200px; }
}