/* ── TOKENS ─────────────────────────────────────────────────────────────────── */
:root {
  --forest:   #1a3a2a;
  --forest-lt:#234d38;
  --sage:     #4a7c59;
  --teal:     #1f6e77;
  --terra:    #b5643a;
  --cream:    #f5f1ea;
  --cream-dk: #e8e2d8;
  --black:    #0d1117;
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h:    90px;
}

/* ── RESET ───────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--black); overflow-x: hidden; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
img { display: block; max-width: 100%; }

/* ── GRAIN ───────────────────────────────────────────────────────────────────── */
body::after {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.5;
}

/* ── NAV ─────────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h); display: flex; align-items: center; padding: 0 56px;
  transition: background 0.4s var(--ease);
}
.nav.scrolled { background: var(--forest); box-shadow: 0 1px 0 rgba(255,255,255,0.07); }
.nav.solid     { background: var(--forest); }

.nav__logo-link { display: flex; align-items: center; flex-shrink: 0; transition: opacity 0.2s; }
.nav__logo-link:hover { opacity: 0.85; }
.nav__logo-img  { height: 70px; width: auto; filter: brightness(0) invert(1); }

.nav__links { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.nav__links a {
  font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em; transition: color 0.2s; position: relative;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--terra);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: #fff; }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }

.nav__cta {
  margin-left: 1.5rem; padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.28); border-radius: 100px;
  color: #fff !important; font-size: 0.85rem; font-weight: 500;
  transition: background 0.2s, border-color 0.2s !important;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover  { background: var(--terra) !important; border-color: var(--terra) !important; }

.nav__burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; margin-left: auto; background: none; border: none; padding: 4px; }
.nav__burger span { display: block; width: 22px; height: 1.5px; background: #fff; border-radius: 2px; transition: all 0.3s var(--ease); }
.nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px,4.5px); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px,-4.5px); }

/* ── MOBILE MENU ─────────────────────────────────────────────────────────────── */
.mobile-menu {
  position: fixed; inset: 0; background: var(--forest); z-index: 190;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
  transform: translateX(100%); transition: transform 0.4s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: 'DM Serif Display', serif; font-size: 2rem;
  color: rgba(255,255,255,0.75); padding: 0.5rem 1rem;
  transition: color 0.2s; display: block; text-align: center;
}
.mobile-menu a:hover { color: var(--terra); }
.mobile-menu__cta {
  margin-top: 1.5rem; font-family: 'DM Sans', sans-serif !important;
  font-size: 1rem !important; color: #fff !important;
  background: var(--terra); padding: 0.75rem 2rem;
  border-radius: 100px; font-weight: 500 !important;
}
.mobile-menu__cta:hover { background: #c8703f !important; color: #fff !important; }

/* ── BUTTONS ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; border-radius: 100px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: all 0.25s var(--ease); border: none;
}
.btn--primary { background: var(--terra); color: #fff; }
.btn--primary:hover { background: #c8703f; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(181,100,58,0.4); }
.btn--ghost   { background: transparent; color: var(--forest); border: 1.5px solid var(--cream-dk); }
.btn--ghost:hover   { border-color: var(--forest); }
.btn--ghost-w { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn--ghost-w:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.55); }
.btn svg { width: 15px; height: 15px; }

/* ── PAGE HERO ───────────────────────────────────────────────────────────────── */
.page-hero {
  background: var(--forest); padding: calc(var(--nav-h) + 5rem) 56px 5rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -80px; right: -60px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(74,124,89,0.2) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none;
}
.page-hero__inner { max-width: 1160px; margin: 0 auto; }
.page-hero__tag   { font-family: 'Space Mono', monospace; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terra); margin-bottom: 1.1rem; }
.page-hero__title { font-family: 'DM Serif Display', serif; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.05; letter-spacing: -0.02em; color: #fff; margin-bottom: 1.25rem; }
.page-hero__title em { font-style: italic; color: var(--terra); }
.page-hero__sub   { font-size: 1.05rem; line-height: 1.72; color: rgba(255,255,255,0.55); max-width: 580px; margin-bottom: 2.25rem; }
.page-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── SECTION SHARED ──────────────────────────────────────────────────────────── */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 56px; }
.pad  { padding: 7rem 56px; }
.pad-sm { padding: 5rem 56px; }
.section-tag { font-family: 'Space Mono', monospace; font-size: 0.67rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.9rem; }
.section-h   { font-family: 'DM Serif Display', serif; font-size: clamp(1.9rem, 3vw, 2.9rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--forest); margin-bottom: 2.5rem; }
.section-h--w { color: #fff; }

/* ── CTA BAND ────────────────────────────────────────────────────────────────── */
.cta-band { background: var(--terra); padding: 6rem 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.07) 0%, transparent 50%), radial-gradient(circle at 80% 50%, rgba(0,0,0,0.1) 0%, transparent 50%); }
.cta-band__inner { position: relative; max-width: 640px; margin: 0 auto; }
.cta-band__eye  { font-family: 'Space Mono', monospace; font-size: 0.67rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 1.1rem; }
.cta-band__h    { font-family: 'DM Serif Display', serif; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; color: #fff; margin-bottom: 1rem; }
.cta-band__sub  { font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,0.72); margin-bottom: 2.5rem; }
.cta-band .btn--primary { background: #fff; color: var(--terra); }
.cta-band .btn--primary:hover { background: var(--cream); }

/* ── FOOTER ──────────────────────────────────────────────────────────────────── */
.footer { background: var(--black); padding: 5rem 56px 2.75rem; }
.footer__inner { max-width: 1160px; margin: 0 auto; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 2rem; }
.footer__logo-link { display: inline-flex; align-items: center; margin-bottom: 1rem; transition: opacity 0.2s; }
.footer__logo-link:hover { opacity: 0.8; }
.footer__logo-img  { height: 80px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.footer__tagline   { font-size: 0.845rem; line-height: 1.65; color: rgba(255,255,255,0.3); margin-bottom: 1.5rem; }
.footer__contact   { font-family: 'Space Mono', monospace; font-size: 0.67rem; color: rgba(255,255,255,0.25); line-height: 2.1; }
.footer__col-h     { font-family: 'Space Mono', monospace; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.22); margin-bottom: 1.1rem; }
.footer__col ul    { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__col a     { font-size: 0.845rem; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer__col a:hover { color: #fff; }
.footer__btm { display: flex; justify-content: space-between; align-items: center; }
.footer__copy { font-family: 'Space Mono', monospace; font-size: 0.62rem; color: rgba(255,255,255,0.18); letter-spacing: 0.04em; }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { font-size: 0.75rem; color: rgba(255,255,255,0.18); transition: color 0.2s; }
.footer__legal a:hover { color: rgba(255,255,255,0.5); }

/* ── ANIMATIONS ──────────────────────────────────────────────────────────────── */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; } .d4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1/-1; }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav { padding: 0 24px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .page-hero { padding: calc(var(--nav-h) + 3rem) 24px 3rem; }
  .wrap, .pad, .pad-sm { padding-left: 24px; padding-right: 24px; }
  .pad    { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .pad-sm { padding-top: 3rem;   padding-bottom: 3rem; }
  .footer { padding: 3.5rem 24px 2rem; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__btm { flex-direction: column; gap: 1rem; text-align: center; }
  .cta-band { padding: 4rem 24px; }
}
