/* ============ tokens ============ */
:root {
  --pine: #0c2a20;
  --forest: #1f4d35;
  --evergreen: #2d653d;
  --living: #3a7d44;
  --sage: #6b8f57;
  --signal: #74d99f;
  --amber: #e6a23c;
  --paper: #faf7f0;
  --bone: #f2ece0;
  --sand: #e3d6c0;
  --ink: #1c1813;
  --muted: #7c7363;
  --display: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--display);
  background: var(--pine);
  color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; }
em { font-style: italic; }

/* ============ reveal animation ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none !important; }
}

/* ============ intro (three variants, all under 1s, none a dark takeover; pick via ?intro=1|2|3) ============ */
#intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center;
  pointer-events: none;
  overflow: hidden;
}

@keyframes introWordUp { to { transform: translateY(0); } }
@keyframes introStrike { to { transform: rotate(-5deg) scaleX(1); } }
@keyframes introClipUp { to { visibility: hidden; clip-path: inset(0 0 100%); } }
@keyframes introDiag { 0% { transform: rotate(-16deg) translateX(-120%); opacity: 1; } 80% { opacity: 1; } 100% { transform: rotate(-16deg) translateX(120%); opacity: 0; } }
@keyframes topbarDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes photoBloom { from { opacity: 0; transform: scale(0.94) translateY(10px); } to { opacity: 1; transform: none; } }

/* V1 "Strike": paper screen, giant ink EMMANUEL rises, green line strikes through
   diagonally, whole thing wipes away upward. Sister-site DNA in this palette. ~1s */
html[data-intro="1"] #intro {
  background: var(--paper);
  animation: introClipUp 0.4s cubic-bezier(0.76, 0, 0.24, 1) 0.6s forwards;
}
html[data-intro="1"] .intro-mark {
  font-weight: 900; font-size: clamp(3rem, 12vw, 9rem); line-height: 0.9;
  color: var(--ink); letter-spacing: -0.02em;
  transform: translateY(110%);
  animation: introWordUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}
html[data-intro="1"] .intro-line {
  position: absolute; left: 6%; right: 6%; top: 50%; height: clamp(4px, 0.8vw, 8px);
  background: var(--living); border-radius: 999px;
  transform: rotate(-5deg) scaleX(0); transform-origin: left center;
  animation: introStrike 0.35s cubic-bezier(0.6, 0, 0.2, 1) 0.32s forwards;
}
html[data-intro="1"] .hero-title .line { animation-delay: 0.95s; }
html[data-intro="1"] .hero-title .line:nth-child(2) { animation-delay: 1.05s; }
html[data-intro="1"] .hero-title .line:nth-child(3) { animation-delay: 1.15s; }

/* V2 "Diagonal sweep": no overlay at all, page visible immediately; a thin green line
   sweeps diagonally across the screen and dissolves. ~0.8s */
html[data-intro="2"] #intro { background: none; }
html[data-intro="2"] .intro-mark { display: none; }
html[data-intro="2"] .intro-line {
  position: absolute; top: 50%; left: -20%; width: 140vw; height: 2px;
  background: linear-gradient(90deg, transparent, var(--living) 30%, var(--signal) 50%, var(--living) 70%, transparent);
  box-shadow: 0 0 18px rgba(116, 217, 159, 0.5);
  transform: rotate(-16deg) translateX(-120%);
  animation: introDiag 0.65s cubic-bezier(0.6, 0, 0.3, 1) forwards;
}
html[data-intro="2"] .hero-title .line { animation-delay: 0.12s; }
html[data-intro="2"] .hero-title .line:nth-child(2) { animation-delay: 0.22s; }
html[data-intro="2"] .hero-title .line:nth-child(3) { animation-delay: 0.32s; }

/* V3 "Cascade": nothing covers the page; it builds itself - topbar drops in,
   headline rises, photo blooms with its glow. ~0.9s of choreography */
html[data-intro="3"] #intro { display: none; }
html[data-intro="3"] .topbar { animation: topbarDown 0.5s ease both; }
html[data-intro="3"] .hero-photo { animation: photoBloom 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }
html[data-intro="3"] .hero-title .line { animation-delay: 0.15s; }
html[data-intro="3"] .hero-title .line:nth-child(2) { animation-delay: 0.28s; }
html[data-intro="3"] .hero-title .line:nth-child(3) { animation-delay: 0.41s; }

@media (prefers-reduced-motion: reduce) {
  #intro { display: none !important; }
  html[data-intro="3"] .topbar, html[data-intro="3"] .hero-photo { animation: none; }
}

/* ============ topbar ============ */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px;
  background: var(--pine);
  border-bottom: 1px solid rgba(116, 217, 159, 0.15);
  position: sticky; top: 0; z-index: 50;
}
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.topbar-avatar {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--signal);
}
.logo { font-weight: 900; font-size: 1.15rem; letter-spacing: 0.02em; }
.logo em { font-weight: 500; color: var(--signal); margin-right: 2px; }
.logo.sm { font-size: 0.95rem; }
.topbar-cta {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em;
  color: var(--pine); background: var(--signal);
  padding: 8px 18px; border-radius: 999px; text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.topbar-cta:hover { transform: translateY(-2px); background: var(--amber); }

/* ============ hero ============ */
.hero { position: relative; background: var(--paper); color: var(--ink); overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(58, 125, 68, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 125, 68, 0.09) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1120px; margin: 0 auto;
  padding: 72px 24px 88px;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center;
}
.eyebrow { color: inherit; opacity: 0.85; margin-bottom: 18px; font-weight: 700; }
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.95; font-weight: 900; letter-spacing: -0.02em;
  text-transform: uppercase; margin-bottom: 24px;
}
.hero-title .line { display: block; opacity: 0; transform: translateY(30px); animation: riseIn 0.7s ease 0.3s forwards; }
.hero-title .line:nth-child(2) { animation-delay: 0.42s; }
.hero-title .line:nth-child(3) { animation-delay: 0.54s; }
@media (prefers-reduced-motion: reduce) { .hero-title .line { animation-delay: 0s; } }
@keyframes riseIn { to { opacity: 1; transform: none; } }
.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--living);
}
.hero-title .accent { color: var(--living); text-shadow: 4px 4px 0 rgba(12, 42, 32, 0.18); }
.hero-sub { font-size: 1.15rem; max-width: 32rem; margin-bottom: 30px; font-weight: 600; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero-note { opacity: 0.8; }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  padding: 16px 30px; border-radius: 12px; border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--pine); color: var(--signal); box-shadow: 6px 6px 0 rgba(12, 42, 32, 0.35); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 rgba(12, 42, 32, 0.35); }
.btn-block { width: 100%; }

/* photo cards */
.hero-photo { display: flex; justify-content: center; }
.photo-card {
  position: relative;
  width: min(320px, 80vw); aspect-ratio: 4 / 5;
  background: var(--paper); border-radius: 6px;
  padding: 12px 12px 44px;
  box-shadow: 10px 14px 0 rgba(12, 42, 32, 0.4);
}
.tilt-r { transform: rotate(3deg); }
.tilt-l { transform: rotate(-3deg); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.photo-fallback {
  display: none; position: absolute; inset: 12px 12px 44px;
  background: var(--forest); border-radius: 3px;
  align-items: center; justify-content: center;
}
.photo-fallback span { font-weight: 900; font-size: 4rem; color: var(--signal); }
.photo-card.no-photo img { display: none; }
.photo-card.no-photo .photo-fallback { display: flex; }
.photo-tag {
  position: absolute; bottom: -14px; right: -18px;
  background: var(--ink); color: var(--amber);
  padding: 8px 14px; transform: rotate(-4deg);
}

/* ============ marquee ============ */
.marquee { background: var(--pine); overflow: hidden; padding: 10px 0; }
.marquee-track { display: flex; white-space: nowrap; animation: scroll 60s linear infinite; }
.marquee-track span {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--signal); opacity: 0.45; padding-right: 12px;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ shift ============ */
.shift { background: var(--paper); color: var(--ink); padding: 96px 0; }
.section-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 900; line-height: 1.05; letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.section-lead { max-width: 40rem; font-size: 1.1rem; margin-bottom: 48px; }
.shift .eyebrow { color: var(--living); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--bone); border: 2px solid var(--ink);
  border-radius: 10px; padding: 28px 22px;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.2s ease;
}
.step:hover { transform: translateY(-4px); }
.step-num { color: var(--living); font-weight: 700; margin-bottom: 12px; font-size: 0.8rem; }
.step h3 { font-weight: 800; font-size: 1.2rem; margin-bottom: 8px; }
.step p { font-size: 0.95rem; }

/* ============ proof ============ */
.proof { background: var(--forest); padding: 64px 0; }
.proof-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.proof-big {
  font-weight: 900; font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--signal); letter-spacing: -0.02em; margin-bottom: 8px;
}
.proof-item .mono { opacity: 0.75; }

/* ============ about ============ */
.about { background: var(--pine); padding: 96px 0; }
.about-inner { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 48px; align-items: center; }
.about .eyebrow { color: var(--signal); }
.about-copy p { margin-bottom: 16px; max-width: 34rem; }
.about-copy em { color: var(--signal); }
.about-proof { font-size: 0.9rem; color: var(--muted); }
.about .about-proof { color: rgba(250, 247, 240, 0.6); }
html[data-theme="b"] .about .about-proof { color: var(--muted); }
.ig-link { color: var(--amber); text-decoration: none; display: inline-block; margin-top: 8px; }
.ig-link:hover { text-decoration: underline; }

/* ============ quiz ============ */
.quiz-section { background: var(--bone); color: var(--ink); padding: 96px 0 110px; }
.quiz-section .eyebrow { color: var(--evergreen); }
.quiz-card {
  position: relative;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 14px;
  box-shadow: 10px 10px 0 var(--ink);
  max-width: 620px; padding: 36px 32px 56px;
}
.quiz-progress { height: 6px; background: var(--sand); border-radius: 999px; margin-bottom: 28px; overflow: hidden; }
.quiz-progress-bar { height: 100%; width: 20%; background: var(--living); border-radius: 999px; transition: width 0.4s ease; }
.q-step { display: none; }
.q-step.active { display: block; animation: stepIn 0.35s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.q-label { color: var(--muted); margin-bottom: 10px; }
.q-title { font-weight: 900; font-size: 1.5rem; margin-bottom: 20px; }
.q-options { display: grid; gap: 10px; }
.q-opt {
  text-align: left; font-family: var(--display); font-weight: 600; font-size: 1rem;
  background: var(--bone); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 10px;
  padding: 15px 18px; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.q-opt:hover { background: var(--signal); transform: translateX(4px); }
.q-back {
  position: absolute; bottom: 18px; left: 32px;
  background: none; border: none; cursor: pointer; color: var(--muted);
}
.q-back:hover { color: var(--ink); }

/* contact form */
#contactForm { display: grid; gap: 14px; }
#contactForm label { font-weight: 700; font-size: 0.85rem; display: grid; gap: 6px; }
#contactForm .opt { color: var(--muted); font-weight: 400; }
#contactForm input {
  font-family: var(--display); font-size: 1rem;
  padding: 13px 14px; border: 2px solid var(--ink); border-radius: 8px;
  background: var(--paper); color: var(--ink); width: 100%;
}
#contactForm input:focus { outline: 3px solid var(--signal); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-error { color: #b3402a; min-height: 1em; }
.form-note { color: var(--muted); text-align: center; }

/* done */
.done-mark {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--living); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 900; margin-bottom: 20px;
}
.done-copy { font-size: 1.1rem; max-width: 26rem; }
.done-sig { margin-top: 18px; color: var(--living); font-weight: 700; }

/* ============ footer ============ */
.footer { background: var(--ink); padding: 32px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--signal); text-decoration: none; }
.footer-fine { opacity: 0.5; color: var(--paper); }

/* ============ responsive ============ */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding: 40px 24px 64px; }
  .hero-photo { justify-content: center; margin-top: 28px; }
  .photo-card { width: min(220px, 60vw); }
  .photo-card .photo-tag { right: auto; left: -12px; font-size: 0.6rem; }
  .steps, .proof-row { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { display: flex; justify-content: center; }
  .quiz-card { padding: 28px 20px 56px; }
  .q-back { left: 20px; }
}
