/* ============================================================
   GreenRock Capital & Investments — Landing Page
   v2: light theme, sans typography, green as accent
   ============================================================ */

:root {
  /* Light surfaces */
  --mist: #eef0ef;        /* banner / cool pale */
  --paper: #f7f6f2;       /* main background */
  --paper-dark: #edeae2;  /* quote band */
  --band-grey: #e9ece9;   /* stats band */
  --card: #ffffff;

  /* Ink */
  --ink: #1b2420;
  --ink-soft: #5a675f;

  /* Brand green — accent, not dominance */
  --green-deep: #123c2b;
  --green-950: #081f16;
  --sage: #6f9080;
  --sage-soft: #dde6df;
  --mint: #a9cfb8;

  --cream: #f5f2eb;
  --line: rgba(27, 36, 32, 0.12);
  --line-light: rgba(245, 242, 235, 0.18);

  --font-display: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.44, 1);

  --pad: clamp(1.25rem, 4vw, 4rem);
  --max: 76rem;
}

/* Wordmark — the serif "GreenRock" acts as a pseudo-logo */
:root { --font-brand: "Fraunces", Georgia, serif; }
em { font-style: normal; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

::selection { background: var(--mint); color: var(--green-950); }

/* ---------- Reveal system ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }

.reveal-card {
  opacity: 0;
  transform: translateY(56px) scale(0.96);
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-spring);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal-card.in-view { opacity: 1; transform: none; }

.word-mask { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word-mask > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: transform;
}
.in-view .word-mask > span { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-card { opacity: 1; transform: none; transition: none; }
  .word-mask > span { transform: none; transition: none; }
  [data-parallax] { transform: none !important; }
  [data-scrub] .scrub-word { opacity: 1 !important; }
}

/* ---------- Shared ---------- */

.label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.label--light { color: var(--green-deep); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-title em { color: var(--green-deep); }
.section-title--light { color: var(--ink); }
.section-title--light em { color: var(--green-deep); }

.section-sub {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--ink-soft);
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.btn--primary { background: var(--green-deep); color: var(--cream); }
.btn--primary:hover { background: var(--green-950); }
.btn--ghost { background: var(--green-deep); color: var(--cream); }
.btn--ghost:hover { background: var(--green-950); }

/* ---------- Placeholders (image slots) ---------- */

.ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 1px dashed rgba(27, 36, 32, 0.3);
  background:
    repeating-linear-gradient(45deg,
      rgba(27, 36, 32, 0.035) 0 12px, transparent 12px 24px),
    var(--paper-dark);
}
.ph span {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.5rem 1rem;
  text-align: center;
}
.ph--band { border-left: 0; border-right: 0; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: transform 0.45s var(--ease-out), background 0.4s, backdrop-filter 0.4s;
}
.nav--hidden { transform: translateY(-100%); }
.nav--solid {
  background: rgba(247, 246, 242, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; }
.nav__brand-name {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.nav__links { display: flex; align-items: center; gap: 1.6rem; font-size: 0.85rem; }
.nav__links > a { color: var(--ink); opacity: 0.8; transition: opacity 0.25s; }
.nav__links > a:hover { opacity: 1; }
.nav__cta {
  padding: 0.55rem 1.2rem;
  border-radius: 100px;
  background: var(--green-deep);
  color: var(--cream) !important;
  opacity: 1 !important;
  font-weight: 500;
  transition: background 0.25s;
  will-change: transform;
}
.nav__cta:hover { background: var(--green-950); }

@media (max-width: 900px) {
  .nav__links > a:not(.nav__cta) { display: none; }
}
@media (max-width: 480px) {
  .nav__cta { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: var(--ink);
  overflow: hidden;
  background: var(--mist);
}
.hero__bg {
  position: absolute;
  inset: -4% 0;
  z-index: 0;
  will-change: transform;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
/* soften the banner behind the copy so text stays readable */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(238, 240, 239, 0.88) 0%,
    rgba(238, 240, 239, 0.42) 36%,
    rgba(238, 240, 239, 0) 56%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(7rem, 15vh, 10rem) var(--pad) clamp(3rem, 7vh, 5rem);
  display: flex;
  align-items: center;
  min-height: 92vh;
  min-height: 92svh;
}
.hero__copy { max-width: 36rem; }
.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 1.75rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 6.6vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero__title-sub {
  display: block;
  font-size: 0.36em;
  font-weight: 400;
  color: #404d46;
  letter-spacing: -0.01em;
  margin-top: 0.4em;
}
.hero__lede {
  max-width: 30rem;
  margin-top: 1.75rem;
  color: var(--ink);
  font-size: 1.02rem;
}
.hero__actions { display: flex; gap: 0.9rem; margin-top: 2.4rem; flex-wrap: wrap; }

/* 3-layer 2.5D stage: frame + rock float over the banner */
.hero__figure { position: relative; }
.hero__scene {
  position: relative;
  aspect-ratio: 1;
  width: min(116%, 80vh);
  margin-inline-start: -8%;
  perspective: 1000px;
  transform-style: preserve-3d;
}
.hero__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: transform;
}
.hero__layer--frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(27, 36, 32, 0.18));
}
/* Frosted pane in the frame opening — softens the skyline behind the rock */
.hero__glass {
  position: absolute;
  left: 23.6%;
  top: 24.2%;
  width: 51.5%;
  height: 56%;
  background: rgba(238, 240, 239, 0.42);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.hero__layer--rock {
  filter: drop-shadow(0 30px 44px rgba(27, 36, 32, 0.28));
  animation: heroFgIn 1.6s var(--ease-out) 0.5s both;
}
@keyframes heroFgIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Stats band */
.hero__stats {
  position: relative;
  z-index: 1;
  background: var(--band-grey);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.6rem var(--pad);
}
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--sage);
  border-radius: 50%;
  color: var(--green-deep);
  flex: none;
  background: var(--sage-soft);
}
.stat__icon svg { width: 1.15rem; height: 1.15rem; }
.stat__body { display: flex; flex-direction: column; gap: 0.15rem; }
.stat__label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.stat__value { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }

@media (max-width: 900px) {
  .hero__inner { min-height: 74vh; }
  /* Keep the monument visible on the right; shield only behind the copy */
  .hero__bg img { object-position: 66% center; }
  .hero__bg::after {
    background: linear-gradient(180deg,
      rgba(238, 240, 239, 0.15) 0%,
      rgba(238, 240, 239, 0.5) 55%,
      rgba(238, 240, 239, 0.85) 100%);
  }
}
@media (max-width: 620px) {
  .hero__stats { grid-template-columns: 1fr; }
  .stat { justify-content: flex-start; padding: 1.1rem var(--pad); }
  .stat + .stat { border-inline-start: 0; border-top: 1px solid var(--line); }
}

/* ---------- Firm ---------- */

.firm { background: var(--paper); padding: clamp(5rem, 12vh, 9rem) 0; }
.firm__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.firm__statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
/* "The Firm" — a bit bigger than a standard label */
.firm__detail .label {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.firm__detail p:not(.label) { color: var(--ink-soft); margin-bottom: 1.1rem; font-size: 0.98rem; }

@media (max-width: 820px) {
  .firm__inner { grid-template-columns: 1fr; }
}

/* ---------- Pinned narrative (film + words) ---------- */

.narrative {
  position: relative;
  height: 380vh;
  background: var(--mist);
  color: var(--ink);
}
.narrative__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0 var(--pad);
}
.narrative__media {
  position: absolute;
  inset: 0;
  will-change: opacity;
}
.narrative__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.narrative__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(238, 240, 239, 0.5) 0%, transparent 25%, transparent 70%, rgba(238, 240, 239, 0.55) 100%);
}
.narrative__line {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  max-width: 60rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(238, 240, 239, 0.8);
  opacity: 0;
  will-change: opacity, transform, filter;
}
/* No-GSAP fallback: video plays as ambient loop, lines stack statically */
.no-gsap .narrative { height: auto; padding: 0 0 clamp(4rem, 10vh, 7rem); }
.no-gsap .narrative__pin { position: static; height: auto; display: block; padding: 0; }
.no-gsap .narrative__media { position: relative; inset: auto; height: 60vh; }
.no-gsap .narrative__line { opacity: 1; margin: 2.2rem auto; padding: 0 var(--pad); }
@media (prefers-reduced-motion: reduce) {
  .narrative { height: auto !important; padding-bottom: clamp(4rem, 10vh, 7rem); }
  .narrative__pin { position: static; height: auto; display: block; padding: 0; }
  .narrative__media { position: relative; inset: auto; height: 60vh; }
  .narrative__line { position: static !important; opacity: 1 !important; transform: none !important; filter: none !important; margin: 1rem 0; }
}

/* ---------- Image band ---------- */

.band { height: clamp(18rem, 62vh, 36rem); overflow: hidden; position: relative; }
.band__media {
  position: absolute;
  inset: -12% 0;
  will-change: transform;
}
.band__media img, .band__media .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* ---------- Divisions ---------- */

.divisions { background: var(--paper); padding: clamp(5rem, 12vh, 9rem) 0; }
.divisions__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0 0 2.2rem;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -24px rgba(27, 36, 32, 0.22);
}
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.04); }
.card__tab {
  background: var(--sage-soft);
  color: var(--green-deep);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.7rem 1.8rem;
  margin-bottom: 1.8rem;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  padding: 0 1.8rem;
  margin-bottom: 0.9rem;
}
.card p { padding: 0 1.8rem; color: var(--ink-soft); font-size: 0.95rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 1.4rem 1.8rem 0; }
.card__tags li {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Execution ---------- */

.execution {
  background: var(--sage-soft);
  color: var(--ink);
  padding: clamp(5rem, 12vh, 9rem) 0;
}
.execution__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.execution__head { max-width: 40rem; }

.execution__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
}
.pillar { border-top: 1px solid rgba(18, 60, 43, 0.25); padding-top: 1.6rem; }
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--green-deep);
  margin-bottom: 0.8rem;
}
.pillar p { color: var(--ink-soft); font-size: 0.93rem; }

.execution__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: clamp(3rem, 7vh, 5rem);
  padding-top: 2.2rem;
  border-top: 1px solid rgba(18, 60, 43, 0.25);
}
.execution__meta .stat { justify-content: flex-start; padding: 0; }
.execution__meta .stat + .stat { border: 0; }
.execution__meta .stat__value { font-size: 1.05rem; }

@media (max-width: 760px) {
  .execution__grid, .execution__meta { grid-template-columns: 1fr; }
  .execution__meta { gap: 1.4rem; }
}

/* ---------- Insights ---------- */

.insights { background: var(--paper); padding: clamp(5rem, 12vh, 9rem) 0 clamp(3rem, 8vh, 6rem); }
.insights__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.insights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}
/* Contained statements — deliberately non-interactive */
.insight {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  padding-bottom: 1.8rem;
  overflow: hidden;
}
.insight__media { aspect-ratio: 16 / 10; overflow: hidden; }
.insight__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.insight__meta {
  display: block;
  background: var(--sage-soft);
  color: var(--green-deep);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.65rem 1.6rem;
  margin-bottom: 1.4rem;
}
.insight h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
  padding: 0 1.6rem;
  margin-bottom: 0.6rem;
}
.insight p { padding: 0 1.6rem; color: var(--ink-soft); font-size: 0.88rem; }

@media (max-width: 820px) {
  .insights__grid { grid-template-columns: 1fr; }
}

/* ---------- Quote ---------- */

.quote {
  background: var(--paper-dark);
  padding: clamp(6rem, 16vh, 11rem) var(--pad);
  text-align: center;
}
.quote__text {
  max-width: 52rem;
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.quote__text .scrub-word { opacity: 0.14; transition: opacity 0.35s linear; }
.quote__text .scrub-word.lit { opacity: 1; }
.quote__cite {
  display: block;
  margin-top: 2rem;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */

.contact { background: var(--paper); padding: clamp(5rem, 12vh, 9rem) 0; }
.contact__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact__row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.contact__row:first-child { padding-top: 0.4rem; }
.contact__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact__row a, .contact__row span:not(.contact__label) {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.contact__row a { transition: color 0.25s; }
.contact__row a:hover { color: var(--green-deep); }

@media (max-width: 820px) {
  .contact__inner { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--green-950);
  color: rgba(245, 242, 235, 0.6);
  font-size: 0.8rem;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.6rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__brand { font-family: var(--font-brand); font-weight: 500; font-size: 1.05rem; color: var(--cream); }
