/* ============================================
   MOUNTFOUNDER.AI — style.css
   Sections: 1 Tokens · 2 Base · 3 Type & buttons · 4 Header
   5 Hero · 6 Footer · 7 Keyframes · 8 Reduced motion · 9 Responsive
   ============================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --green: #2E6F40;          /* brand */
  --green-deep: #1E4E2D;
  --forest: #0B1A11;         /* near-black green */
  --cream: #F5F2EB;
  --ink: #15211A;
  --white: #FFFFFF;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--forest);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, p { margin: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  padding: .5rem .9rem; border-radius: 999px;
  background: var(--white); color: var(--ink); font-size: .85rem;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; outline: 2px solid var(--green); }

/* ---------- 3. Type & buttons ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}
.eyebrow::before {
  content: ''; width: 2.25rem; height: 1px; background: currentColor; opacity: .7;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(2.75rem, 7.4vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--white);
  text-wrap: balance;
}
.display em { font-style: italic; font-weight: 400; }

.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.28rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, .86);
  max-width: 38rem;
  text-wrap: pretty;
}
.micro { font-size: .8rem; letter-spacing: .04em; color: rgba(255, 255, 255, .6); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-size: .95rem; font-weight: 500; letter-spacing: .01em; line-height: 1;
  color: var(--forest); background: var(--cream);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45);
}

/* Staggered entrance */
.rise {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 1.1s var(--ease-out) forwards;
  animation-delay: calc(.35s + var(--i, 0) * .13s);
}

/* ---------- 4. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center;
  padding: clamp(1.1rem, 2.6vw, 1.9rem) var(--gutter);
  opacity: 0;
  animation: fade 1.2s .2s var(--ease-out) forwards;
}
.logo { display: inline-block; line-height: 0; }
.logo img { height: clamp(24px, 2.6vw, 32px); width: auto; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: var(--forest);
}
.hero__media {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  transform: translate(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -8px)) scale(1.02);
  transition: transform .9s var(--ease-out);
  will-change: transform;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 42%;
  transform-origin: 52% 38%;
  animation: kenburns 38s var(--ease-in-out) infinite alternate;
}
.hero__light {
  position: absolute; inset: -20%;
  background:
    radial-gradient(38% 30% at 68% 22%, rgba(255, 236, 190, .55), transparent 70%),
    radial-gradient(28% 22% at 30% 70%, rgba(190, 230, 255, .25), transparent 70%);
  mix-blend-mode: soft-light;
  animation: lightdrift 22s var(--ease-in-out) infinite alternate;
  pointer-events: none;
}
.hero__motes { position: absolute; inset: 0; pointer-events: none; }
.hero__motes i {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s); border-radius: 50%;
  background: rgba(255, 250, 230, .9);
  box-shadow: 0 0 10px 2px rgba(255, 250, 230, .35);
  opacity: 0;
  animation: mote var(--d) linear infinite;
  animation-delay: var(--delay);
}
.hero__shade { position: absolute; inset: 0; pointer-events: none; }
.hero__shade--bottom {
  background: linear-gradient(to top, rgba(6, 16, 10, .88) 0%, rgba(6, 16, 10, .55) 26%, rgba(6, 16, 10, .18) 52%, transparent 74%);
}
.hero__shade--top {
  background: linear-gradient(to bottom, rgba(6, 16, 10, .45) 0%, rgba(6, 16, 10, .12) 18%, transparent 34%);
}

.hero__content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
  text-align: center;
  width: 100%; max-width: 62rem;
  margin: auto auto 0;
  padding: 7rem var(--gutter) clamp(4rem, 10vh, 7rem);
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.6rem; z-index: 1;
  width: 1px; height: 3rem; margin-left: -.5px;
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
  opacity: 0;
  animation: fade 1s 1.6s forwards;
}
.hero__scroll span {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent, var(--white));
  animation: scrollhint 2.4s var(--ease-in-out) infinite;
}

/* ---------- 6. Footer ---------- */
.site-footer {
  position: relative; z-index: 1;
  background: var(--forest); color: rgba(255, 255, 255, .72);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem;
  font-size: .9rem;
}
.site-footer__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-footer__brand img { height: 30px; width: auto; }
.site-footer__date {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--white);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: #7ED09A;
  animation: pulse 2.4s ease-out infinite;
}
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
  padding-top: 1.5rem; font-size: .8rem; color: rgba(255, 255, 255, .5);
}

/* ---------- 7. Keyframes ---------- */
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.1) translate(-1%, 1%); }
}
@keyframes lightdrift {
  from { transform: translate(0, 0) rotate(0deg); }
  to   { transform: translate(-4%, 3%) rotate(3deg); }
}
@keyframes mote {
  0%   { opacity: 0; transform: translate(0, 0); }
  15%  { opacity: .9; }
  85%  { opacity: .5; }
  100% { opacity: 0; transform: translate(var(--dx), -90px); }
}
@keyframes scrollhint {
  from { transform: translateY(-100%); }
  to   { transform: translateY(100%); }
}
@keyframes pulse {
  from { box-shadow: 0 0 0 0 rgba(126, 208, 154, .5); }
  to   { box-shadow: 0 0 0 10px rgba(126, 208, 154, 0); }
}

/* ---------- 8. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .site-header, .hero__scroll { animation: none; opacity: 1; transform: none; }
  .hero__img, .hero__light, .dot, .hero__scroll span { animation: none; }
  .hero__media { transition: none; transform: none; }
  .hero__motes { display: none; }
}

/* ---------- 9. Responsive ---------- */
@media (max-width: 860px) {
  .hero__img { object-position: 50% 45%; }
  .hero__content { padding-top: 6rem; gap: 1.15rem; text-align: left; align-items: flex-start; }
  .site-footer__top { align-items: flex-start; }
}
