/* ============================================================
   NIPURE — cinematic "3D scroll" experience
   Off-black void · leaf-green accent · serif display + minimal sans
   Copy tone: quiet, expensive, very few words.
   ============================================================ */
:root {
  --void: #070908;
  --void-2: #0c0f0d;
  --ink: #f2f3ee;
  --ink-dim: #b9c0b7;
  --muted: #7f877e;
  --accent: #7ac043;
  --accent-2: #a7d96a;
  --accent-deep: #4a8c2a;
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body.cin {
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--accent-2); }

/* ---------- BRAND WORDMARK: bold "Ni" + italic serif "Pure" (echoes the tree-i logo) ---------- */
.brand-ni {
  font-family: "Montserrat", var(--sans);
  font-weight: 700; font-style: normal; letter-spacing: .01em;
}
.brand-pure {
  font-family: var(--serif);
  font-style: italic; font-weight: 600; letter-spacing: 0;
  color: var(--accent-2);
  padding-right: .08em; /* italic overhang */
}

.cin-eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; color: var(--accent);
}
.cin-eyebrow--center { text-align: center; }

/* ---------- LOADER ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--void);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity .8s ease, visibility .8s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__brand { font-size: 26px; color: var(--ink); }
.loader__bar { width: 190px; height: 2px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); transition: width .25s ease; }
.loader__note { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* ---------- NAV ---------- */
.cin-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 34px; mix-blend-mode: difference;
}
.cin-nav__brand { font-size: 19px; color: #fff; }
.cin-nav__skip { font-size: 12px; letter-spacing: .12em; color: #fff; opacity: .8; }
.cin-nav__skip:hover { opacity: 1; }

/* ---------- HERO 3D ---------- */
.hero3d__track { height: 420vh; position: relative; }
.hero3d__stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--void);
}
.hero3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; will-change: contents; }
#orbit-video { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; left: -9999px; }
.hero3d__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 46%, transparent 40%, rgba(7,9,8,.55) 78%, rgba(7,9,8,.95) 100%);
}
/* title sits right under the top eyebrow, in the dark sky band */
.hero3d__copy {
  position: absolute; top: 122px; left: 0; right: 0; z-index: 3;
  text-align: center; pointer-events: none;
  will-change: transform, opacity;
}
/* pinned in the dark sky band at the top of the frame, under the nav */
.hero3d__eyebrow {
  position: absolute; top: 84px; left: 0; right: 0; z-index: 4;
  text-align: center;
  font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--accent);
  text-shadow: 0 1px 10px rgba(0,0,0,.7);
  opacity: 0; pointer-events: none;
}
.hero3d__title {
  color: #fff;
  font-size: clamp(48px, 11vw, 160px); line-height: .9;
  display: flex; justify-content: center; align-items: baseline;
}
.hero3d__title span { display: inline-block; opacity: 0; transform: translateY(10px); }
.hero3d__title .brand-pure { font-size: 1.04em; text-shadow: 0 3px 24px rgba(0,0,0,.5); }
.hero3d__title .brand-ni { text-shadow: 0 3px 24px rgba(0,0,0,.5); }
.hero3d__tag {
  font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.4vw, 30px);
  color: var(--ink); margin-top: 18px; opacity: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,.75), 0 1px 4px rgba(0,0,0,.6);
}
/* cenosphere callout — pinned to the bottom band, below the floating sphere; scrub-driven */
.hero3d__ceno {
  position: absolute; z-index: 4; left: 5vw; right: 5vw; bottom: 6vh; top: auto;
  max-width: 640px; pointer-events: none;
  opacity: 0; will-change: transform, opacity;
}
.hero3d__ceno .cin-eyebrow { font-weight: 700; }
.hero3d__ceno h3 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.2vw, 44px);
  color: #fff; margin: 12px 0 10px; line-height: 1.05;
  text-shadow: 0 2px 14px rgba(0,0,0,.75);
}
.hero3d__ceno p {
  font-size: 15px; font-weight: 600; line-height: 1.65; color: var(--ink);
  text-shadow: 0 1px 10px rgba(0,0,0,.8);
  max-width: 520px;
}
.hero3d__ceno-line {
  display: block; height: 1px; width: 74px; margin-top: 18px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.hero3d__scrollhint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 4;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.hero3d__scrollhint-line { width: 1px; height: 42px; background: linear-gradient(var(--accent), transparent); animation: drop 2s ease-in-out infinite; transform-origin: top; }
@keyframes drop { 0%,100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- STORY ---------- */
.story { background: var(--void); padding: 32vh 8vw; }
.story__inner { max-width: 1000px; margin: 0 auto; }
.story__line {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.01em;
  font-size: clamp(30px, 5.2vw, 74px); line-height: 1.12; color: var(--ink);
  margin: 0 0 .35em;
  opacity: 0; transform: translateY(30px);
}
.story__line--dim { color: var(--muted); }
.story__line--accent { color: var(--accent-2); font-style: italic; }

/* ---------- MACRO ---------- */
.macro { position: relative; min-height: 118vh; display: flex; align-items: center; overflow: hidden; }
.macro__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.macro__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,9,8,.92) 0%, rgba(7,9,8,.62) 46%, rgba(7,9,8,.2) 80%, rgba(7,9,8,.55) 100%);
}
.macro__copy { position: relative; z-index: 3; max-width: 620px; padding: 0 8vw; }
.macro__h {
  font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 6vw, 82px); line-height: 1.04;
  color: #fff; margin: 20px 0 24px;
}
.macro__p { font-size: 16px; line-height: 1.7; color: var(--ink-dim); max-width: 460px; }
.macro__h, .macro__p, .macro__copy .cin-eyebrow { opacity: 0; transform: translateY(26px); }

/* ---------- ENGINEERING ---------- */
.engine { position: relative; min-height: 130vh; display: flex; align-items: center; overflow: hidden; }
.engine__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.engine__scrim { position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 50%, rgba(7,9,8,.55), rgba(7,9,8,.92)); }
.engine__inner { position: relative; z-index: 3; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 6vw; text-align: center; }
.engine__h {
  font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 5vw, 66px); line-height: 1.08;
  color: #fff; margin: 18px auto 54px; max-width: 780px;
}
.engine__h, .engine__inner .cin-eyebrow, .engine__foot { opacity: 0; transform: translateY(24px); }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.spec { opacity: 0; transform: translateY(24px); padding: 26px 14px; border-top: 1px solid rgba(122,192,67,.28); }
.spec__n { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 66px); color: var(--accent-2); line-height: 1; letter-spacing: -.02em; }
.spec__n span { color: var(--muted); margin: 0 .12em; font-size: .7em; }
.spec__l { font-size: 12.5px; letter-spacing: .06em; color: var(--ink-dim); margin-top: 14px; text-transform: uppercase; }
.engine__foot { font-family: var(--serif); font-style: italic; font-size: clamp(18px,2.4vw,26px); color: var(--muted); margin-top: 54px; }

/* ---------- PRESTIGE ---------- */
.prestige { background: linear-gradient(180deg, var(--void), var(--void-2)); padding: 34vh 8vw; text-align: center; }
.prestige__inner { max-width: 900px; margin: 0 auto; }
.prestige__big { font-family: var(--serif); font-weight: 500; font-size: clamp(70px, 15vw, 220px); line-height: .92; color: #fff; letter-spacing: -.03em; opacity: 0; transform: translateY(30px); }
.prestige__big i { font-style: italic; color: var(--accent); font-size: .5em; }
.prestige__sub { font-family: var(--serif); font-size: clamp(20px, 3vw, 34px); color: var(--ink-dim); margin-top: 22px; opacity: 0; transform: translateY(24px); }
.prestige__meta { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 26px; opacity: 0; transform: translateY(24px); }

/* ---------- CTA ---------- */
.cta { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 20vh 8vw 0; text-align: center; }
.cta__inner { max-width: 820px; margin: 0 auto; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.cta__h { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 6vw, 78px); line-height: 1.05; color: #fff; opacity: 0; transform: translateY(26px); }
.cta__p { font-size: 16px; color: var(--ink-dim); margin-top: 22px; opacity: 0; transform: translateY(22px); }
.cta__row { display: flex; gap: 16px; justify-content: center; margin-top: 40px; flex-wrap: wrap; opacity: 0; transform: translateY(22px); }
.cta__btn { font-size: 14px; letter-spacing: .04em; padding: 15px 28px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: var(--ink); transition: border-color .2s, background .2s, color .2s; }
.cta__btn:hover { border-color: var(--accent); color: #fff; }
.cta__btn--solid { background: var(--accent); color: #08120a; border-color: var(--accent); font-weight: 500; }
.cta__btn--solid:hover { background: var(--accent-2); color: #08120a; }
.cin-foot { display: flex; justify-content: space-between; padding: 40px 0; margin-top: 12vh; font-size: 12px; letter-spacing: .06em; color: var(--muted); border-top: 1px solid rgba(255,255,255,.07); }

/* ---------- REVEAL ---------- */
[data-reveal].is-in, .is-in [data-reveal] { opacity: 1 !important; transform: none !important; }
[data-reveal] { transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  .specs { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .hero3d__eyebrow { top: 72px; font-size: 10.5px; letter-spacing: .26em; padding: 0 20px; }
  .hero3d__copy { top: 104px; }
  .hero3d__ceno { bottom: 8vh; }
  .macro__scrim { background: linear-gradient(180deg, rgba(7,9,8,.5), rgba(7,9,8,.9)); }
  .hero3d__track { height: 320vh; }
  .cin-foot { flex-direction: column; gap: 8px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero3d__scrollhint-line, .loader__bar span { animation: none; }
}
