/* ============================================================
   Motwani Constructions — Cinematic Cloud Homepage
   ============================================================ */

:root {
  --ink:      #0a0a0a;
  --ink-2:    #1a1a1a;
  --ink-soft: #4a4a4a;
  --paper:    #ffffff;
  --cream:    #faf7f1;
  --sky-1:    #cfe5f4;   /* top pale blue */
  --sky-2:    #e9d7c6;   /* mid soft peach */
  --sky-3:    #f5cdb6;   /* lower warm peach */
  --sky-4:    #ffe7d2;   /* lowest warm cream */
  --peach:    #f5b78a;
  --gold:     #c49355;
  --gold-2:   #e6b886;
  --brand:    #dd5a1f;          /* Motwani logo orange — used for ALL hover effects */
  --brand-deep: #a8431a;
  --muted:    #a3a3a3;
  --line:     rgba(10,10,10,0.08);

  --font:     'Montserrat', -apple-system, system-ui, sans-serif;
  --max:      1340px;
  --pad:      clamp(20px, 4vw, 56px);
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --easeIO:   cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ────── helpers ────── */
.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  background: rgba(255,255,255,0.5);
}
.chip--light {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
}

.display {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(36px, 5.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.display--light { color: var(--paper); }
.muted { color: var(--muted); font-weight: 500; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.4s var(--ease);
}
.pill:hover { background: var(--brand); color: #fff; transform: translateY(-2px); box-shadow: 0 20px 40px -16px rgba(221, 90, 31, 0.45); }
.pill svg { transition: transform 0.3s var(--ease); }
.pill:hover svg { transform: translateX(4px); }
.pill--gold { background: var(--gold); }
.pill--gold:hover { background: var(--ink); }
.pill--outline {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.3);
}
.pill--outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ============================================================
   PRELOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { text-align: center; }
.loader__logo { height: 56px; margin: 0 auto 32px; opacity: 0.9; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.loader__bar {
  width: min(280px, 60vw); height: 1px; margin: 0 auto 14px;
  background: rgba(0,0,0,0.08); overflow: hidden; position: relative;
}
.loader__bar span { position: absolute; inset: 0; width: 0; background: var(--ink); transition: width 0.4s var(--ease); }
.loader__pct {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  color: var(--ink-soft); text-transform: uppercase;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  padding: 12px 0;
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad);
  display: flex; align-items: center; gap: 32px;
}
.nav__brand img { height: 42px; transition: height 0.3s; }
.nav.is-scrolled .nav__brand img { height: 36px; }
.nav__links {
  display: flex; gap: 32px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-2);
  transition: color 0.3s;
}
.nav__links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  display: inline-flex; align-items: center;
  padding: 11px 22px;
  background: var(--ink); color: var(--paper);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.3s;
}
.nav__cta:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 880px) {
  .nav__links { display: none; }
}

/* ============================================================
   CINEMA — pinned scroll-driven hero
   ============================================================ */
.cinema {
  position: relative;
  height: 380vh;        /* scroll runway */
  background: var(--sky-1);
}
.cinema__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* Bright pastel sky */
.sky {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 80% 90%, var(--sky-4) 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 20% 95%, var(--sky-3) 0%, transparent 50%),
    linear-gradient(180deg, var(--sky-1) 0%, #dde8f0 35%, var(--sky-2) 60%, var(--sky-3) 85%, var(--sky-4) 100%);
}

/* Warm sun glow */
.sun {
  position: absolute;
  z-index: 1;
  right: -10%; bottom: 20%;
  width: 70vw; height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,150,0.5) 0%, rgba(255,180,130,0.2) 30%, transparent 60%);
  filter: blur(50px);
  pointer-events: none;
}

/* CLOUDS — multiple soft blurred shapes */
.clouds {
  position: absolute; inset: 0;
  pointer-events: none;
}
.clouds--back  { z-index: 2; }
.clouds--front { z-index: 7; }

.cloud {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  will-change: transform, opacity;
}

/* Back clouds (faint, drifting behind everything) */
.cloud--b1 { left: -8%; top: 28%; width: 50vw; height: 24vh; opacity: 0.7; filter: blur(50px); }
.cloud--b2 { right: -5%; top: 36%; width: 42vw; height: 20vh; opacity: 0.55; filter: blur(45px); }
.cloud--b3 { left: 35%; top: 22%; width: 32vw; height: 16vh; opacity: 0.4; filter: blur(55px); }

/* Front clouds — large, dense, cottony — sit at building base, part during scroll */
.cloud--f1 { left: -18%; bottom: 4%;   width: 75vw; height: 44vh; filter: blur(55px); opacity: 0.98; }
.cloud--f2 { right: -20%; bottom: 6%;  width: 75vw; height: 42vh; filter: blur(55px); opacity: 0.98; }
.cloud--f3 { left: 10%;  bottom: -2%;  width: 90vw; height: 32vh; filter: blur(60px); opacity: 0.95; }
.cloud--f4 { left: -10%; top: 50%;     width: 55vw; height: 28vh; filter: blur(50px); opacity: 0.78; }
.cloud--f5 { right: -5%;  top: 56%;    width: 50vw; height: 26vh; filter: blur(48px); opacity: 0.72; }

/* ────────── HEADLINE — small, top-aligned ────────── */
.headline {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;          /* BELOW building (z:4) so the rising building hides it */
  padding: 110px var(--pad) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  will-change: transform, opacity;
  pointer-events: none;
}
.headline > * { pointer-events: auto; }

.headline__title {
  font-weight: 800;
  font-size: clamp(26px, 4.2vw, 60px);     /* fits "at the Affordable Price." on one line */
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--brand);                      /* Motwani logo orange */
  margin-bottom: 18px;
}
.headline__title .line {
  display: block;
  overflow: hidden;
  white-space: nowrap;                      /* lock each line — never wraps further */
}
.headline__title .word {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

.headline__sub {
  font-size: clamp(11px, 1vw, 15px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 22px;
  white-space: nowrap;                      /* one line on desktop / tablet */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease) 0.55s, transform 0.9s var(--ease) 0.55s;
}
@media (max-width: 520px) {
  .headline__sub { white-space: normal; max-width: 340px; }
}
.headline__sub .dim { color: var(--muted); font-weight: 400; }
.is-ready .headline__sub { opacity: 1; transform: none; }

.headline .pill {
  padding: 13px 22px;
  font-size: 12.5px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease) 0.75s, transform 0.9s var(--ease) 0.75s;
}
.is-ready .headline .pill { opacity: 1; transform: none; }

/* ────────── BUILDING — full transparent PNG, rises from bottom ────────── */
.building {
  position: absolute;
  left: 50%;
  bottom: -8%;
  width: min(1000px, 78vw);
  transform: translateX(-50%);
  z-index: 4;          /* ABOVE headline — covers it as it rises */
  will-change: transform, opacity;
  pointer-events: none;
}
.building img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.2));
  /* Fade the bottom of the photo so the hard ground edge dissolves into clouds */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, rgba(0,0,0,0.4) 88%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 70%, rgba(0,0,0,0.4) 88%, transparent 100%);
}

/* ────────── LOGO WINDOW — building clipped INSIDE logo silhouette via CSS mask ────────── */
.logo-window {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(504px, 56vw);            /* 30% smaller */
  aspect-ratio: 700 / 588;
  transform: translate(-50%, -50%);
  z-index: 5;
  opacity: 0;
  will-change: opacity, transform;
  pointer-events: none;
  -webkit-mask-image: url('assets/logo.webp');
          mask-image: url('assets/logo.webp');
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  overflow: hidden;
}
.logo-window img {
  position: absolute;
  left: 50%;
  bottom: -160%;
  width: min(1000px, 78vw);
  transform: translateX(-50%);
  will-change: transform;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, rgba(0,0,0,0.4) 88%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 70%, rgba(0,0,0,0.4) 88%, transparent 100%);
}

/* ────────── LOGO STROKE — inline SVG, outline derived via filter,
   revealed through a grid mask whose cells animate independently ────────── */
.logo-stroke {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(504px, 56vw);            /* 30% smaller, matches logo-real */
  aspect-ratio: 700 / 588;
  transform: translate(-50%, -50%);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  overflow: visible;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.35));
}
.logo-stroke image { display: block; }
.logo-stroke .rev {
  fill: #fff;
  will-change: width;
}

/* ────────── LOGO REAL — full-color brand mark, the final reveal ────────── */
.logo-real {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(504px, 56vw);            /* 30% smaller */
  aspect-ratio: 700 / 588;
  object-fit: contain;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 6;
  opacity: 0;
  will-change: opacity, transform;
  pointer-events: none;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

/* SCROLL CUE */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 11;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  will-change: opacity;
}
.scroll-cue__bar {
  display: block;
  width: 1px; height: 40px;
  background: rgba(0,0,0,0.15);
  overflow: hidden;
  position: relative;
}
.scroll-cue__bar i {
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 50%;
  background: var(--ink);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: -50%; } 100% { top: 100%; }
}

/* ============================================================
   WHY  (emerges from clouds)
   ============================================================ */
.why {
  position: relative;
  background: var(--paper);
  padding: clamp(60px, 8vw, 120px) 0 clamp(100px, 12vw, 160px);
  z-index: 5;
}
.why__cloud-cap {
  position: absolute;
  left: 0; right: 0;
  top: -120px;
  height: 240px;
  background:
    radial-gradient(ellipse 50% 60% at 15% 50%, #fff 0%, transparent 70%),
    radial-gradient(ellipse 60% 70% at 50% 60%, #fff 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 50%, #fff 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}
.why__head {
  max-width: 920px;
  margin-bottom: 48px;
}
.why__lede {
  max-width: 720px;
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 80px;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.why__card {
  padding: 40px 32px;
  background: var(--cream);
  border-radius: 16px;
  transition: transform 0.5s var(--ease), background 0.5s;
}
.why__card:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 30px 60px -25px rgba(0,0,0,0.1); }
.why__num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 28px;
}
.why__card h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.15;
}
.why__card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}
@media (max-width: 820px) {
  .why__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: var(--paper);
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 56px);
}
.stat {
  border-left: 2px solid var(--ink);
  padding-left: 24px;
}
.stat strong {
  display: block;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 10px;
}
.stat span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 820px) {
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================================
   PROJECTS — tilted poster gallery, smooth horizontal scroll on vertical scroll
   Uses CSS sticky ONLY (no GSAP pin) so subsequent sections never overlap.
   The .projects section is tall (its height = vertical runway);
   .projects__sticky pins inside the viewport; the rail translates horizontally
   driven by ScrollTrigger scrub.
   ============================================================ */
.projects {
  --rail-height: 100vh;
  position: relative;
  background: linear-gradient(180deg, #d4e6f3 0%, #cee0ee 100%);   /* soft pastel blue */
  color: var(--ink);
  /* runway: total scroll distance for the section */
  height: 360vh;
}
.projects__sticky {
  position: sticky;
  top: 0;
  height: var(--rail-height);
  display: flex;
  flex-direction: column;
  /* header at top, rail in middle, progress at bottom — no overlap */
  justify-content: space-between;
  align-items: stretch;
  overflow: hidden;
  padding: clamp(70px, 8vh, 110px) 0 clamp(50px, 7vh, 90px);
}

/* Header — in normal flow, not absolute */
.projects__head {
  text-align: center;
  padding: 0 var(--pad);
  flex-shrink: 0;
}
.projects__head .chip {
  background: rgba(10,10,10,0.06);
  border-color: rgba(10,10,10,0.1);
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.projects__title {
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}
.projects__title em {
  font-style: normal;
  color: var(--gold-deep);
}

/* The horizontal rail — grows to fill remaining vertical space */
.rail {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.rail__track {
  display: flex;
  align-items: flex-end;
  gap: clamp(28px, 3vw, 56px);     /* normal spacing — like the reference */
  padding: 0 16vw;
  will-change: transform;
}

/* ── Single poster ── */
.poster {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.poster__card {
  width: clamp(220px, 20vw, 290px);
  aspect-ratio: 3 / 4;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(10,10,10,0.06),
    0 22px 44px -16px rgba(10,10,10,0.22),
    0 50px 90px -40px rgba(10,10,10,0.16);
  position: relative;
  /* Default centre pivot (50% 50%) — like the reference.
     Rotation is set dynamically by JS based on viewport position, very subtle (±5°). */
  will-change: transform;
}
.poster:hover .poster__card {
  /* hover handled in JS so it doesn't fight the per-frame rotation update */
}
.poster__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}
.poster__card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.poster:hover .poster__card img { transform: scale(1.06); }

.poster figcaption {
  text-align: center;
  font-weight: 500;
}
.poster figcaption strong {
  display: block;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
}
.poster figcaption span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ── Progress indicator — in normal flow at bottom ── */
.rail__progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.rail__progress b {
  font-weight: 700;
  color: var(--ink);
}
.rail__bar {
  position: relative;
  display: block;
  width: clamp(120px, 16vw, 200px);
  height: 1px;
  background: rgba(10,10,10,0.15);
  overflow: hidden;
}
.rail__bar i {
  position: absolute;
  inset: 0;
  width: 6%;
  background: var(--gold-deep);
}

/* ── Mobile — native horizontal swipe (no sticky/pin) ── */
@media (max-width: 820px) {
  .projects { height: auto; padding: 80px 0 100px; }
  .projects__sticky {
    position: relative;
    height: auto;
    overflow: visible;
  }
  .projects__head { position: relative; top: 0; margin-bottom: 40px; }
  .rail {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 40px 0 20px;
  }
  .rail__track {
    padding: 0 10vw;
    gap: 50px;
    transform: none !important;
  }
  .poster { scroll-snap-align: center; }
  .rail__progress { display: none; }
}

/* ============================================================
   PROJECT SECTION 2 — vertical narrative with diagonal corner exit
   ============================================================ */
.projects-2 {
  /* Motwani brand palette — orange lifted straight from the logo */
  --p2-bg:     #dd5a1f;          /* logo orange */
  --p2-bg-2:   #a8431a;          /* deeper rust for inset / tint */
  --p2-bg-3:   #7a300f;          /* darkest, used for radial vignette */
  --p2-cream:  #fff7e6;          /* near-white cream for max contrast */
  --p2-muted:  rgba(255, 247, 230, 0.7);
  --p2-accent: #fff7e6;

  position: relative;
  background: var(--p2-bg);
  color: var(--p2-cream);
  height: 720vh;
}
.p2__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, var(--p2-bg-3) 0%, transparent 65%),
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 230, 190, 0.08) 0%, transparent 60%),
    var(--p2-bg);
}

/* ── Top bar ── */
.p2__bar {
  position: absolute;
  top: clamp(28px, 4vh, 48px);
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(24px, 4vw, 56px);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  z-index: 5;
}
.p2__brand em {
  font-style: italic;
  font-weight: 400;
  opacity: 0.7;
}
.p2__chat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: opacity 0.3s;
}
.p2__chat:hover { opacity: 0.7; }

/* ── Vertical step indicator ── */
.p2__steps {
  position: absolute;
  top: 50%;
  left: clamp(24px, 4vw, 56px);
  transform: translateY(-50%);
  list-style: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: var(--p2-muted);
  z-index: 5;
}
.p2__steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 32px;
  position: relative;
  transition: color 0.4s var(--ease);
}
.p2__step-num {
  display: inline-block;
  min-width: 14px;
  font-style: italic;
  font-weight: 400;
}
.p2__step-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.p2__step-name::before {
  content: '— ';
  opacity: 0.5;
}
.p2__steps li.is-active {
  color: var(--p2-cream);
}
.p2__steps li.is-active .p2__step-name {
  opacity: 1;
  transform: translateX(0);
}

/* ── Right-side copy / project highlights ── */
.p2__copy {
  position: absolute;
  top: 32%;                                   /* shifted UP from 50% — sits above the centre card */
  right: clamp(16px, 3vw, 56px);              /* nudged toward the right edge */
  transform: translateY(-30%);                /* anchor near top of block, not centre */
  /* belt + braces: width + min-width so the column can never collapse to min-content */
  width: clamp(300px, 28vw, 380px);
  min-width: 280px;
  z-index: 4;
}
.p2__entry {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.p2__entry.is-active {
  opacity: 1;
  transform: translateY(0);
}
.p2__entry-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--p2-cream);
  opacity: 0.7;
  margin-bottom: 16px;
}
.p2__entry h3 {
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 6px;
  color: var(--p2-cream);
}
.p2__entry-loc {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--p2-muted);
  margin-bottom: 22px;
}
.p2__highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}
.p2__highlights li {
  position: relative;
  padding-left: 18px;
  padding-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--p2-cream);
  opacity: 0.85;
}
.p2__highlights li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 1px;
  background: var(--p2-cream);
  opacity: 0.5;
}

/* ── Image stage ── */
.p2__stage {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.p2__frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(300px, 30vw, 440px);
  aspect-ratio: 4 / 3;            /* landscape — like the reference */
  /* Transform set by GSAP — initial state applied in JS */
  will-change: transform, opacity;
  opacity: 0;
}
.p2__img {
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.45);
}
.p2__img {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--p2-bg-2);
  /* Filter is animated by GSAP: 0% on current, 100% on exiting cards.
     Matches the team-cards pattern on fromanother.love. */
  will-change: filter, opacity;
}
.p2__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.p2__tint {
  /* Kept in markup for backward compatibility but no longer used.
     The grayscale filter on .p2__img is what creates the "past" look now. */
  display: none;
}

/* ── Section label ── */
.p2__label {
  position: absolute;
  bottom: clamp(20px, 4vh, 40px);
  right: clamp(24px, 5vw, 80px);
  font-size: 13px;
  font-style: italic;
  color: var(--p2-muted);
  z-index: 5;
  letter-spacing: 0.01em;
}

/* ── Mobile fallback — vertical stacked, no pin ── */
@media (max-width: 820px) {
  .projects-2 { height: auto; padding: 100px 0 80px; }
  .p2__sticky {
    position: relative;
    height: auto;
    padding: 60px 0 80px;
  }
  .p2__steps { display: none; }
  .p2__label { display: none; }
  .p2__stage {
    position: relative;
    height: auto;
    display: grid;
    gap: 56px;
    padding: 80px 24px 0;
  }
  .p2__frame {
    position: relative;
    top: 0; left: 0;
    transform: none;
    opacity: 1;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .p2__copy {
    position: relative;
    top: 0; right: 0;
    transform: none;
    max-width: 100%;
    padding: 0 24px;
    margin-bottom: 40px;
  }
  .p2__copy p {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    margin-bottom: 24px;
  }
  .p2__copy p.is-active { /* unused on mobile */ }
  .p2__bar { position: relative; padding-bottom: 40px; }
}

/* ============================================================
   TRUST PILLARS — three columns with brand-orange hover
   ============================================================ */
.pillars {
  --brand:      #dd5a1f;          /* logo orange */
  --brand-deep: #a8431a;
  background: var(--paper);
  padding: clamp(100px, 12vw, 160px) 0;
}
.pillars__head {
  max-width: 880px;
  margin-bottom: 80px;
}
.pillars__head .display em {
  font-style: normal;
  color: var(--brand);
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pillar {
  position: relative;
  padding: 56px 40px 84px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.5s var(--ease),
    border-color 0.45s var(--ease),
    box-shadow 0.5s var(--ease);
}
.pillar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  z-index: 0;
}
.pillar > * { position: relative; z-index: 1; }

.pillar__num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--brand);
  margin-bottom: 36px;
  transition: color 0.45s var(--ease);
}
.pillar h3 {
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--ink);
  transition: color 0.45s var(--ease);
}
.pillar p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  transition: color 0.45s var(--ease);
}
.pillar__arrow {
  position: absolute;
  bottom: 28px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  background: var(--cream, #faf7f1);
  color: var(--ink);
  border: 1px solid var(--line);
  z-index: 2;
  transition:
    background 0.45s var(--ease),
    color 0.45s var(--ease),
    border-color 0.45s var(--ease),
    transform 0.45s var(--ease);
}

/* HOVER — full brand-orange wash */
.pillar:hover {
  transform: translateY(-8px);
  border-color: var(--brand);
  box-shadow: 0 28px 56px -22px rgba(221, 90, 31, 0.55);
}
.pillar:hover::before { opacity: 1; }
.pillar:hover .pillar__num { color: rgba(255, 255, 255, 0.85); }
.pillar:hover h3,
.pillar:hover p { color: #fff; }
.pillar:hover .pillar__arrow {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
  transform: rotate(-45deg);     /* arrow rotates up-right on hover */
}

@media (max-width: 980px) {
  .pillars__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pillars__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   VOICES
   ============================================================ */
.voices {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(100px, 12vw, 160px) 0;
  position: relative;
  overflow: hidden;
}
.voices .chip { margin-bottom: 24px; }
.voices .display { margin-bottom: 80px; max-width: 22ch; }

.voices__stage {
  position: relative;
  min-height: 280px;
}
.voice {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}
.voice.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.voice__quote {
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  max-width: 1100px;
}
.voice__quote::before {
  content: '"';
  display: inline-block;
  color: var(--gold-2);
  margin-right: 6px;
}
.voice__author {
  font-size: 14px;
}
.voice__author strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 4px;
}
.voice__author span {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.voices__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 60px;
}
.voices__btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--paper);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.voices__btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.voices__dots { display: flex; gap: 6px; }
.voices__dots button {
  width: 24px; height: 2px;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s;
}
.voices__dots button.is-active {
  background: var(--gold-2);
  width: 40px;
}

/* ============================================================
   LEADERSHIP
   ============================================================ */
.leadership {
  background: var(--cream);
  padding: clamp(100px, 12vw, 160px) 0;
}
.leadership__head {
  max-width: 760px;
  margin-bottom: 72px;
}
.leaders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.leader {
  position: relative;
  padding: 44px 36px;
  background: var(--paper);
  border-radius: 16px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
  overflow: hidden;
}
.leader::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 3px; width: 50px;
  background: var(--gold);
  transition: width 0.5s var(--ease);
}
.leader:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -25px rgba(0,0,0,0.12); }
.leader:hover::before { width: 100%; }
.leader__years {
  font-size: 70px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 28px;
}
.leader__years small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  text-transform: uppercase;
  vertical-align: top;
  margin-left: 6px;
}
.leader h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.leader__role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.leader p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
@media (max-width: 820px) {
  .leaders { grid-template-columns: 1fr; }
}

/* ============================================================
   AWARDS RIBBON
   ============================================================ */
.awards {
  background: var(--paper);
  padding: 52px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.awards__inner {
  display: flex; justify-content: space-around; align-items: center;
  flex-wrap: wrap; gap: 36px;
}
.award { text-align: center; }
.award strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}
.award span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative;
  padding: clamp(120px, 16vw, 200px) 0;
  text-align: center;
  color: var(--paper);
  overflow: hidden;
}
.cta__bg { position: absolute; inset: 0; z-index: 0; }
.cta__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}
.cta__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
}
.cta__inner { position: relative; z-index: 1; max-width: 900px; }
.cta__title {
  font-size: clamp(36px, 6vw, 88px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.cta__sub {
  font-size: clamp(16px, 1.4vw, 20px);
  color: rgba(255,255,255,0.75);
  margin-bottom: 44px;
}
.cta__buttons {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding-top: 100px;
  font-size: 14px;
  overflow: hidden;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand img {
  height: 60px;
  margin-bottom: 24px;
  filter: brightness(0) invert(1) opacity(0.9);
}
.footer__brand p {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}
.footer__col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 18px;
}
.footer__col p { margin-bottom: 12px; line-height: 1.7; }
.footer__col a { transition: color 0.2s; }
.footer__col a:hover { color: var(--brand); }
.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 10px; }
.footer__mega {
  font-size: clamp(120px, 22vw, 320px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,0.04);
  padding: 80px var(--pad) 40px;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}
.footer__legal {
  display: flex; justify-content: space-between;
  padding: 24px var(--pad);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: rgba(255,255,255,0.4);
}
@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__legal { flex-direction: column; gap: 10px; text-align: center; }
}
@media (max-width: 540px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ============================================================
   ANIMATION STAGES
   ============================================================ */
[data-anim] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-anim].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-anim] { opacity: 1 !important; transform: none !important; }
}
