/* ============================================================
   REVERDIA — premium nature-restoration landing
   Palette derived from the sky in the branch photo:
   deep blue (top) -> clean sky blue (mid) -> pale white (bottom)
   ============================================================ */

:root {
  /* cinematic dark base */
  --bg:        #04070c;
  --bg-2:      #060b14;
  --bg-3:      #0a1220;

  /* sky-derived blues */
  --sky-deep:  #0c2a5e;
  --sky-mid:   #2f6bb0;
  --sky-soft:  #7db0e0;
  --sky-pale:  #dcecf7;

  /* fresh green accent (from the returning vegetation) */
  --green:      #a6e86a;
  --green-2:    #c8f29a;
  --green-deep: #5f9e3d;

  /* text */
  --ink:       #eef4fa;
  --ink-soft:  #b7c6d6;
  --ink-mute:  #7d8ea1;

  /* glass */
  --glass-bg:     rgba(255,255,255,0.055);
  --glass-bg-2:   rgba(255,255,255,0.09);
  --glass-line:   rgba(255,255,255,0.14);
  --glass-line-2: rgba(255,255,255,0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
.svg-defs { position: absolute; }

::selection { background: rgba(166,232,106,0.28); color: #fff; }

/* ---------- fixed cinematic backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; background: var(--bg); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.orb--1 { width: 60vw; height: 60vw; left: -18vw; top: -10vw;
  background: radial-gradient(circle, rgba(47,107,176,0.55), transparent 62%); }
.orb--2 { width: 46vw; height: 46vw; right: -12vw; top: 34vh;
  background: radial-gradient(circle, rgba(12,42,94,0.7), transparent 60%); opacity: 0.7; }
.orb--3 { width: 42vw; height: 42vw; left: 30vw; bottom: -14vw;
  background: radial-gradient(circle, rgba(95,158,61,0.20), transparent 64%); }
.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.035; mix-blend-mode: overlay;
}

/* ============================================================
   LIQUID GLASS
   ============================================================ */
.glass {
  position: relative;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.11), rgba(255,255,255,0.02) 46%, rgba(255,255,255,0.05));
  backdrop-filter: blur(18px) saturate(1.7);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  border: 1px solid var(--glass-line);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -1px 1px rgba(0,0,0,0.35),
    inset 0 0 0 0.5px rgba(255,255,255,0.04),
    0 18px 50px -20px rgba(0,0,0,0.75);
}
/* specular shine sweeping the top edge */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.16) 47%, rgba(255,255,255,0.02) 55%, transparent 70%);
  opacity: 0.7; mix-blend-mode: screen;
}
/* refraction glimmer on the lower-right */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 85% 110%, rgba(125,176,224,0.22), transparent 55%);
  opacity: 0.9;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --h: 46px;
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  height: var(--h); padding: 0 8px 0 22px;
  border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer; border: none; white-space: nowrap;
  transition: transform 0.5s var(--ease-soft), box-shadow 0.5s var(--ease), background 0.4s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn--lg { --h: 56px; font-size: 15px; padding-left: 26px; }

.btn--primary {
  color: #06130a; padding-right: 8px;
  background: linear-gradient(180deg, var(--green-2), var(--green));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -8px 18px rgba(95,158,61,0.35),
    0 12px 30px -10px rgba(166,232,106,0.55);
}
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -8px 18px rgba(95,158,61,0.45), 0 18px 44px -10px rgba(166,232,106,0.7); }

.btn--ghost { color: var(--ink); padding: 0 22px; }
.btn--ghost:hover { background: var(--glass-bg-2); }

/* SPARKLE CTA — calm in rest (no glow); on hover it grows, glows around,
   the surface lights up, a shimmer sweeps the rim and sparks float out */
.btn--sparkle {
  --active: 0;
  color: #06130a; padding-right: 8px; overflow: visible; isolation: isolate;
  background: linear-gradient(180deg, var(--green-2), var(--green));
  transition: transform 0.35s var(--ease-soft), box-shadow 0.45s var(--ease), filter 0.4s var(--ease);
  box-shadow:
    0 0 calc(var(--active) * 50px) calc(var(--active) * 15px) rgba(166,232,106,0.6),
    0 0 calc(var(--active) * 16px) calc(var(--active) * 2px) rgba(206,247,160,0.7),
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -8px 18px rgba(95,158,61,0.35);
}
.btn--sparkle:hover, .btn--sparkle:focus-visible { --active: 1; transform: scale(1.07); filter: brightness(1.05) saturate(1.05); }
.btn--sparkle:active { transform: scale(1.0); }
.btn--sparkle > span { position: relative; z-index: 2; }
/* rotating shimmer along the top rim */
.btn__spark {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 1;
  opacity: var(--active); transition: opacity 0.4s var(--ease);
  -webkit-mask: linear-gradient(#fff, transparent 58%); mask: linear-gradient(#fff, transparent 58%);
}
.btn__spark::before {
  content: ""; position: absolute; width: 220%; aspect-ratio: 1; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent 0 300deg, rgba(255,255,255,0.95) 360deg);
  animation: btnSpin 3.4s linear infinite;
}
@keyframes btnSpin { to { transform: translate(-50%, -50%) rotate(1turn); } }
/* floating sparkle particles */
.btn__pen {
  position: absolute; inset: -60%; pointer-events: none; z-index: 0;
  opacity: var(--active); transition: opacity 0.4s var(--ease);
  -webkit-mask: radial-gradient(#fff, transparent 66%); mask: radial-gradient(#fff, transparent 66%);
}
.btn__pen i {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #eaffce; box-shadow: 0 0 6px 1px rgba(206,247,160,0.9);
  animation: btnFloat calc(var(--d) * 1s) linear infinite; opacity: 0;
}
.btn--sparkle:not(:hover):not(:focus-visible) .btn__pen i { animation-play-state: paused; }
@keyframes btnFloat {
  0% { transform: translateY(6px) scale(0); opacity: 0; }
  25% { opacity: 1; }
  80% { opacity: 0.85; }
  100% { transform: translateY(-58px) scale(1); opacity: 0; }
}

.btn__icon {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 999px;
  background: rgba(6,19,10,0.14);
  transition: transform 0.5s var(--ease-soft), background 0.4s var(--ease);
}
.btn--lg .btn__icon { width: 40px; height: 40px; }
.btn__icon svg { width: 17px; height: 17px; }
.btn:hover .btn__icon { transform: translate(3px, -3px); background: rgba(6,19,10,0.22); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 18px var(--pad);
  transition: padding 0.5s var(--ease), background 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}
.nav__brand { justify-self: start; }
.nav__links { justify-self: center; }
.nav__right { justify-self: end; }
.nav.is-scrolled {
  padding-top: 12px; padding-bottom: 12px;
  background: linear-gradient(180deg, rgba(4,7,12,0.72), rgba(4,7,12,0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav__brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.nav__mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--green); }
.nav__mark svg { width: 24px; height: 24px; }
.nav__word { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 25px; letter-spacing: 0; }

.nav__links {
  position: relative;
  display: flex; gap: 2px; padding: 6px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
}
.nav__link { padding: 9px 17px; border-radius: 999px; color: var(--ink-soft); position: relative; z-index: 1;
  transition: color 0.4s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--ink); }

/* liquid-glass sliding indicator that follows the active / hovered tab */
.nav__pill {
  position: absolute; top: 6px; left: 0; height: calc(100% - 12px); width: 0;
  z-index: 0; border-radius: 999px; opacity: 0; pointer-events: none;
  transform-origin: center;
  background: linear-gradient(160deg, rgba(255,255,255,0.26), rgba(255,255,255,0.05) 55%, rgba(255,255,255,0.12));
  backdrop-filter: blur(8px) saturate(1.6); -webkit-backdrop-filter: blur(8px) saturate(1.6);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -3px 8px rgba(0,0,0,0.35),
    0 8px 20px -8px rgba(0,0,0,0.6),
    0 0 22px -6px rgba(166,232,106,0.25);
  transition: left 0.55s var(--ease-soft), width 0.55s var(--ease-soft), transform 0.45s var(--ease-soft), opacity 0.3s var(--ease);
}
.nav__pill::before { /* refraction shine */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent 32%, rgba(255,255,255,0.35) 48%, transparent 62%);
  opacity: 0.7; mix-blend-mode: screen;
}
.nav__pill.is-stretch { transform: scaleX(1.14); }

.nav__right { display: flex; align-items: center; gap: 10px; }
.nav__right .btn--ghost { height: 44px; }

.nav__burger {
  display: none; width: 46px; height: 46px; border-radius: 14px;
  place-items: center; cursor: pointer;
}
.nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform 0.4s var(--ease-soft), opacity 0.3s var(--ease); }
.nav__burger span + span { margin-top: 5px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* fullscreen menu */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(4,7,12,0.86);
  backdrop-filter: blur(26px) saturate(1.4);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.menu__inner a {
  font-family: "Cormorant Garamond", serif; font-size: clamp(38px, 12vw, 68px); font-weight: 400; line-height: 1.1;
  color: var(--ink); opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s var(--ease) calc(var(--i) * 0.06s + 0.1s), transform 0.7s var(--ease-soft) calc(var(--i) * 0.06s + 0.1s), color 0.3s;
}
.menu__inner a:last-child { color: var(--green); font-style: italic; }
.menu.is-open .menu__inner a { opacity: 1; transform: translateY(0); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100dvh;
  min-height: 640px;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__dry, .hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero__src {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; pointer-events: none; /* used only as a paint source */
}
.hero__canvas { z-index: 2; }
.hero__dry { z-index: 1; }

/* cinematic grade + sky-to-dark blend so text is legible and the scene reads premium */
.hero__vignette {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4,7,12,0.34) 0%, rgba(4,7,12,0) 22%, rgba(4,7,12,0) 44%, rgba(4,7,12,0.55) 78%, rgba(4,7,12,0.96) 100%),
    radial-gradient(120% 90% at 20% 92%, rgba(4,7,12,0.6), transparent 55%);
}

.hero__content {
  position: relative; z-index: 4;
  width: 100%; max-width: none; margin: 0;
  padding: 0 var(--pad) clamp(64px, 12vh, 130px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--glass-bg); border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.24em;
  color: var(--ink-soft);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }

.hero__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300; letter-spacing: -0.015em; line-height: 0.98;
  font-size: clamp(46px, 8.2vw, 118px);
  margin: 22px 0 0; max-width: 15ch;
  text-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.hero__title em { font-style: italic; color: var(--green); font-weight: 400; }
.hero__sub {
  margin-top: 24px; max-width: 46ch;
  font-size: clamp(15px, 1.5vw, 19px); color: var(--ink-soft); font-weight: 300;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero__hint {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 34px; font-size: 12.5px; color: var(--ink-mute); letter-spacing: 0.02em;
  transition: opacity 0.6s var(--ease);
}
.hero__hint.is-hidden { opacity: 0; }
.hero__hint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(166,232,106,0.6); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(166,232,106,0.5); }
  70% { box-shadow: 0 0 0 12px rgba(166,232,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(166,232,106,0); }
}

.hero__scroll {
  position: absolute; z-index: 4; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--glass-line-2); border-radius: 999px;
  display: grid; place-items: start center; padding-top: 8px;
}
.hero__scroll span { width: 3px; height: 8px; border-radius: 2px; background: var(--ink-soft);
  animation: scrolldot 1.9s var(--ease) infinite; }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ============================================================
   CONTENT — rises from underneath the hero
   ============================================================ */
.content {
  position: relative; z-index: 5;
  margin-top: 0;
  border-radius: 46px 46px 0 0;
  background:
    linear-gradient(180deg, var(--bg-2), var(--bg) 30%, var(--bg));
  box-shadow: 0 -50px 90px -30px rgba(0,0,0,0.85), 0 -1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
}
.content::before { /* soft top hairline sheen */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}

/* ============================================================
   SIDE SLIDE-IN REVEALS — work emerges from the left, impact from the right
   ============================================================ */
/* Blurring an entire section (many cards/numbers/text at once) forces the
   browser to rasterize that blur every frame for the whole transition —
   that was the actual spike behind the impact-block stutter. Kept the bold
   translateX + scale motion (opacity + transform are compositor-only, i.e.
   effectively free) and dropped the filter. */
[data-slide] {
  opacity: 0;
  transition: opacity 1.15s var(--ease), transform 1.25s var(--ease-soft);
  will-change: transform, opacity;
}
[data-slide="left"]  { transform: translateX(-28%) scale(0.92); }
[data-slide="right"] { transform: translateX(28%)  scale(0.92); }
[data-slide].is-in   { opacity: 1; transform: none; }

.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(84px, 13vh, 150px) var(--pad); }

.section__head { max-width: 40ch; margin-bottom: clamp(40px, 6vh, 68px); }
.section__head--center { max-width: none; text-align: center; margin-inline: auto; }
.section__head--center .eyebrow { margin-inline: auto; }
.section__title {
  font-family: "Cormorant Garamond", serif; font-weight: 300; line-height: 1.02;
  font-size: clamp(34px, 5.4vw, 68px); letter-spacing: -0.015em; margin-top: 18px;
}
.tx-muted { color: var(--ink-mute); }
.tx-green { color: var(--green); font-style: italic; }

/* ---------- MISSION ---------- */
.mission__grid { display: grid; gap: 26px; }
.mission__title {
  font-family: "Cormorant Garamond", serif; font-weight: 300; line-height: 1.06;
  font-size: clamp(30px, 4.6vw, 60px); letter-spacing: -0.015em; max-width: 20ch;
}
.mission__title .tx-muted { display: block; }
.mission__lead { max-width: 58ch; font-size: clamp(16px, 1.7vw, 21px); color: var(--ink-soft); font-weight: 300; }

/* ---------- APPROACH ---------- */
.approach__grid { display: grid; gap: clamp(30px, 4.5vw, 58px); }
.approach__lead { max-width: 64ch; font-size: clamp(16px, 1.65vw, 21px); color: var(--ink-soft); font-weight: 300; }
.approach__lead .tx-green { font-style: italic; }
.approach__points { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.point { border-radius: 24px; padding: 6px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.point .shell__core { border-radius: 19px; min-height: 210px; justify-content: flex-end; padding: clamp(22px, 2.6vw, 32px); }
.point__k { font-family: "Cormorant Garamond", serif; color: var(--green); letter-spacing: 0.2em; font-size: 15px; margin-bottom: auto; opacity: 0.9; }
.point__t { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: clamp(22px, 2.4vw, 29px); margin-bottom: 9px; }
.point__x { color: var(--ink-soft); font-size: 14.5px; font-weight: 300; }

/* ---------- WORK ---------- */
.work__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card { grid-column: span 2; }
.card--wide { grid-column: span 4; }

/* Double-bezel shell */
.shell {
  border-radius: 30px; padding: 7px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.shell__core {
  height: 100%; border-radius: 24px; padding: clamp(24px, 3vw, 38px);
  background: linear-gradient(165deg, rgba(18,28,44,0.9), rgba(8,13,22,0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 0 60px rgba(47,107,176,0.05);
  display: flex; flex-direction: column;
  transition: transform 0.6s var(--ease-soft), box-shadow 0.6s var(--ease);
}
.shell:hover .shell__core {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), inset 0 0 80px rgba(47,107,176,0.12), 0 30px 60px -30px rgba(0,0,0,0.7);
}
.card__icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: var(--green);
  margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.01em; }
.card__text { margin-top: 12px; color: var(--ink-soft); font-size: 15px; font-weight: 300; max-width: 46ch; }
.card__meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 22px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); }
.card__meta span:first-child { font-family: "Cormorant Garamond", serif; font-size: 15px; letter-spacing: 0; color: var(--green); }
/* photo inside the card */
.card__imgwrap {
  margin-top: 22px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px -22px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.06);
}
.card__img {
  width: 100%; height: clamp(150px, 19vw, 230px); object-fit: cover; display: block;
  transition: transform 0.7s var(--ease-soft), filter 0.5s var(--ease);
  filter: saturate(1.02) brightness(0.94);
}
.card:hover .card__img { transform: scale(1.05); filter: saturate(1.12) brightness(1); }

/* ---------- 3D tilt (Aceternity-style float) ---------- */
.card3d { perspective: 1300px; }
.card3d__body { transform-style: preserve-3d; transition: transform 0.4s var(--ease); }
.card3d__item { transition: transform 0.4s var(--ease); }
.card3d:hover .card3d__body { transition-duration: 0.12s; }
.card__meta span:first-child { font-family: "Cormorant Garamond", serif; font-size: 15px; letter-spacing: 0; color: var(--green); }

/* ---------- IMPACT ---------- */
.impact__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stat { padding: 40px 8px 8px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -9px; top: 40px; bottom: 8px; width: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent); }
.stat__num {
  font-family: "Cormorant Garamond", serif; font-weight: 300; line-height: 1;
  font-size: clamp(44px, 6vw, 80px); letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--ink), var(--sky-soft));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* elegant rise-and-settle reveal: no digit ticking, no blur filter —
   opacity + transform only, so it's pure GPU compositing (no repaint cost) */
.stat__num--pop {
  display: inline-block; opacity: 0;
  transform: translateY(20px) scale(0.92);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease-soft);
}
.stat__num--pop.is-in { opacity: 1; transform: none; }
.stat__label { margin-top: 12px; color: var(--ink-mute); font-size: 13.5px; font-weight: 400; max-width: 18ch; }
.impact__note { margin-top: 56px; text-align: center; max-width: 44ch; margin-inline: auto;
  font-family: "Cormorant Garamond", serif; font-size: clamp(20px, 2.6vw, 30px); font-weight: 300; color: var(--ink-soft); }

/* ---------- PROCESS ---------- */
.process__list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { border-radius: 26px; padding: 6px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.step .shell__core { border-radius: 21px; min-height: 260px; justify-content: flex-end; }
.step__idx { font-family: "Cormorant Garamond", serif; font-size: 15px; color: var(--green); letter-spacing: 0.2em;
  align-self: flex-start; margin-bottom: auto; opacity: 0.9; }
.step__title { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.step__text { color: var(--ink-soft); font-size: 14.5px; font-weight: 300; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; overflow: hidden; background: #030507; padding-top: clamp(60px, 8vh, 90px); }
.footer__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 32%;
  opacity: 0.16; filter: saturate(1.05) brightness(0.6); }
.footer__veil { position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(3,5,7,0.72) 24%, rgba(3,7,5,0.8) 58%, rgba(3,7,5,0.96) 100%),
    radial-gradient(90% 60% at 50% 0%, rgba(4,7,12,0.9), transparent 60%);
}
.footer__top { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 2fr; gap: clamp(40px, 6vw, 90px); padding-block: 0 clamp(50px, 8vh, 96px); }
.footer__cta-title { font-family: "Cormorant Garamond", serif; font-weight: 300; line-height: 1.02;
  font-size: clamp(34px, 4.4vw, 58px); letter-spacing: -0.015em; margin-bottom: 18px; }
.footer__cta-title em { font-style: italic; color: var(--green); }
.footer__cta-text { color: var(--ink-soft); font-weight: 300; font-size: 15px; max-width: 40ch; margin-bottom: 28px; }

.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer__col h4 { font-family: "Plus Jakarta Sans"; font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--ink-mute); font-weight: 600; margin-bottom: 18px; }
.footer__col a { display: block; padding: 6px 0; color: var(--ink-soft); font-size: 14.5px; font-weight: 300;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease); }
.footer__col a:hover { color: var(--green); transform: translateX(4px); }

/* huge outlined wordmark — a green gradient reveals under the cursor */
.footer__wordmark {
  position: relative; z-index: 2; width: 100%;
  margin-top: clamp(20px, 4vh, 56px);
  cursor: crosshair;
}
.the { display: block; width: 100%; height: auto; overflow: visible; }
.the text {
  font-family: "Fraunces", "Cormorant Garamond", serif; font-weight: 400;
  font-size: 205px; letter-spacing: -5px;
}
/* faint always-on outline, drawn in on scroll-in */
.the__base {
  fill: transparent; stroke: rgba(188,220,176,0.22); stroke-width: 1.1;
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
}
.footer__wordmark.is-in .the__base {
  animation: drawStroke 2.4s var(--ease) forwards;
}
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
/* the green gradient outline, masked to a soft circle around the cursor */
.the__grad {
  fill: transparent; stroke: url(#theGrad); stroke-width: 2;
  filter: drop-shadow(0 0 16px rgba(166,232,106,0.5)) drop-shadow(0 0 4px rgba(230,255,200,0.4));
}

.footer__bar { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; max-width: var(--maxw); margin: 0 auto; padding: 22px var(--pad) 34px;
  font-size: 12.5px; color: var(--ink-mute); }
.footer__socials { display: flex; gap: 8px; }
.footer__socials a { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--glass-line); font-size: 11px; letter-spacing: 0.05em; color: var(--ink-soft);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s; }
.footer__socials a:hover { background: rgba(255,255,255,0.08); color: var(--ink); border-color: var(--glass-line-2); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* opacity + transform only — no filter: blur. Animating blur forces the
   browser to repaint the blurred region every frame for the whole
   transition; with several elements revealing at once (e.g. all four
   stat cards together) that was the real source of the stutter. */
.reveal { opacity: 0; transform: translateY(46px) scale(0.985);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease-soft); }
.reveal.is-in { opacity: 1; transform: none; }
[data-reveal] { transition-delay: var(--d, 0s); }

/* ---------- MagicText — per-word opacity reveal on scroll ---------- */
.mw { position: relative; display: inline-block; }
.mw__b { position: absolute; left: 0; top: 0; opacity: 0.16; }
.mw__f { opacity: 0; will-change: opacity; }

/* ---------- ScrollReveal — heading straightens + words fade in ---------- */
.sr { transform-origin: 0% 50%; will-change: transform; }
.sr-word { display: inline-block; opacity: 0.1; will-change: opacity; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .work__grid { grid-template-columns: repeat(4, 1fr); }
  .card--wide, .card { grid-column: span 2; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__right .btn--ghost, .nav__right .btn--primary { display: none; }
  .nav__burger { display: grid; }
  .work__grid { grid-template-columns: 1fr; gap: 16px; }
  .card--wide, .card { grid-column: span 1; }
  .impact__grid { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat:nth-child(odd)::before { display: none; }
  .process__list { grid-template-columns: 1fr; }
  .step .shell__core { min-height: 180px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .approach__points { grid-template-columns: 1fr; }
  .point .shell__core { min-height: 150px; }
  .content { border-radius: 34px 34px 0 0; }
  .hero { align-items: flex-end; }
}

@media (max-width: 460px) {
  .impact__grid { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
  .footer__cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
