/* ==========================================================================
   Lavand Company — styles
   Palette taken from the company profile: slate, taupe, sand, copper.
   ========================================================================== */

:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: #d2d2d7;
  --bg: #ffffff;
  --gray: #f5f5f7;

  --slate: #3e5468;
  --slate-deep: #1c2733;
  --taupe: #928775;
  --sand: #f3ebe1;
  --copper: #a35f3c;

  --radius: 28px;
  --max: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

.container { width: min(100% - 44px, var(--max)); margin-inline: auto; }
.container--narrow { width: min(100% - 44px, 820px); }
.center { text-align: center; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
}
.eyebrow--light { color: #d9b79f; }

.headline {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.display {
  font-size: clamp(48px, 8.5vw, 104px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.lede {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 640px;
  margin-top: 24px;
}
.lede.center { margin-inline: auto; }
.lede--light { color: rgba(255, 255, 255, 0.72); }

.link-arrow {
  color: var(--slate);
  font-size: 19px;
  font-weight: 500;
}
.link-arrow::after { content: " ›"; transition: margin 0.3s var(--ease); }
.link-arrow:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--slate);
  color: #fff;
  border: 1px solid var(--slate);
  font-size: 17px;
  font-weight: 500;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn { overflow: hidden; }
.btn:hover { background: var(--slate-deep); border-color: var(--slate-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(28, 39, 51, 0.14); }
.btn.m::after { background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 60%); }
.btn--ghost.m::after { background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(62, 84, 104, 0.14), transparent 60%); }
.btn:active { transform: scale(0.98); }
.btn--ghost { background: transparent; color: var(--slate); }
.btn--ghost:hover { background: var(--slate); color: #fff; border-color: var(--slate); }

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 52px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: rgba(0, 0, 0, 0.08); }

.nav-inner {
  width: min(100% - 44px, var(--max));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.nav-seal { width: 38px; transition: transform 0.5s var(--ease); }
.nav-brand:hover .nav-seal { transform: rotate(-8deg) scale(1.06); }

.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 13px; color: rgba(0, 0, 0, 0.8); transition: color 0.2s; }
.nav-links a:hover { color: var(--copper); }

.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -12px; background: none; border: 0; position: relative; }
.nav-toggle span { position: absolute; left: 13px; width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.35s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav.is-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 52px 0 0 0;
    height: calc(100vh - 52px);
    flex-direction: column;
    gap: 0;
    padding: 12px 22px 28px;
    background: #fff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { font-size: 24px; font-weight: 600; padding: 10px 0; color: var(--ink); }
}

/* --------------------------------------------------------------------------
   Intro loader — the L is written as an outline, then inked, while a ring closes
   -------------------------------------------------------------------------- */

.is-loading, .is-loading body { overflow: hidden; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 26px;
  background: var(--bg);
  opacity: 1;
  transition: opacity 0.8s var(--ease);
  /* Safety net: if the script never runs, the overlay lets go by itself */
  animation: loader-safety 0s linear 6s forwards;
}
.loader.is-done { opacity: 0; pointer-events: none; }
@keyframes loader-safety { to { opacity: 0; visibility: hidden; } }

.loader-mark { width: min(34vh, 46vw, 250px); aspect-ratio: 1; }
.loader-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.loader.is-done .loader-mark { transform: scale(1.05); transition: transform 0.8s var(--ease); }

.loader .l-ink {
  fill: var(--slate-deep);
  fill-opacity: 0;
  stroke: var(--slate-deep);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: l-write 1.5s cubic-bezier(0.6, 0, 0.25, 1) 0.1s forwards,
             l-ink 0.8s var(--ease) 1.25s forwards;
}
@keyframes l-write { to { stroke-dashoffset: 0; } }
@keyframes l-ink { to { fill-opacity: 1; } }

.loader .l-ring {
  fill: none;
  stroke: var(--taupe);
  stroke-width: 7;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transform-box: view-box;
  transform-origin: 500px 500px;
  transform: rotate(-90deg);
  animation: l-write 2s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}

.loader-word {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: 0;
  animation: loader-word 1s var(--ease) 1.1s forwards;
}
@keyframes loader-word { from { opacity: 0; transform: translateY(6px); } to { opacity: 0.9; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .is-loading, .is-loading body { overflow: auto; }
}

/* --------------------------------------------------------------------------
   Seal — inline SVG injected from assets/lavand-seal.svg (see main.js)
   Parts: .seal-ring (pathLength 1), .seal-text--en / --ar, .seal-l
   -------------------------------------------------------------------------- */

.seal { display: block; aspect-ratio: 1; flex: none; }
.seal svg { display: block; width: 100%; height: 100%; overflow: visible; }
.seal-text, .seal-l { transform-box: view-box; transform-origin: 500px 500px; }

@media (prefers-reduced-motion: no-preference) {
  /* Hero: the seal resolves into focus. Soft blur and a hair oversized, settling
     sharp and still. No spin, no bounce: it simply arrives. */
  .seal--focus { opacity: 0; }
  .seal--focus .seal-ring,
  .seal--focus .seal-text,
  .seal--focus .seal-l { opacity: 0; }
  .seal--focus.is-play { animation: seal-focus 1.3s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .seal--focus.is-play .seal-ring { animation: seal-fade 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both; }
  .seal--focus.is-play .seal-text { animation: seal-fade 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both; }
  .seal--focus.is-play .seal-l { animation: seal-fade 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both; }

  /* Contact: a soft diagonal light passes across the seal and leaves it behind,
     while the whole mark lifts a few pixels into place. */
  .seal--wipe {
    -webkit-mask-image: linear-gradient(112deg, #000 34%, rgba(0, 0, 0, 0) 62%);
    mask-image: linear-gradient(112deg, #000 34%, rgba(0, 0, 0, 0) 62%);
    -webkit-mask-size: 320% 320%;
    mask-size: 320% 320%;
    -webkit-mask-position: 100% 100%;
    mask-position: 100% 100%;
    opacity: 0;
  }
  .seal--wipe.is-in { animation: seal-wipe 1.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
}

@keyframes seal-focus {
  from { opacity: 0; transform: scale(1.05); filter: blur(9px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes seal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes seal-wipe {
  from {
    opacity: 0;
    transform: translateY(14px);
    -webkit-mask-position: 100% 100%;
    mask-position: 100% 100%;
  }
  35% { opacity: 1; }
  to {
    opacity: 1;
    transform: none;
    -webkit-mask-position: 0% 0%;
    mask-position: 0% 0%;
  }
}

/* --------------------------------------------------------------------------
   Hero — pinned; JS sets --p from 0 → 1 while scrolling through it
   -------------------------------------------------------------------------- */

.hero { --p: 0; height: 240vh; position: relative; }

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.hero-copy {
  position: absolute;
  inset: 0 0 auto 0;
  padding: calc(52px + 5vh) 22px 0;
  text-align: center;
  opacity: clamp(0, calc(1 - var(--p) * 2.4), 1);
  transform: translateY(calc(var(--p) * -14vh));
  will-change: transform, opacity;
}

.hero-logo { width: clamp(112px, 18vh, 160px); margin: 0 auto 18px; }

.hero h1 {
  font-size: clamp(56px, 11vw, 136px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, var(--slate-deep) 30%, var(--slate) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

.hero-sub {
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.35;
  color: var(--ink-2);
  max-width: 620px;
  margin: 22px auto 0;
}

.hero-links { display: flex; gap: 32px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* Footage card: starts low and inset, grows to full-bleed */
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--slate-deep);
  border-radius: calc(var(--radius) * (1 - var(--p)));
  transform:
    translateY(calc((1 - clamp(0, var(--p) * 1.4, 1)) * var(--start, 58vh)))
    scale(calc(0.62 + clamp(0, var(--p) * 1.4, 1) * 0.38));
  transform-origin: 50% 0%;
  will-change: transform;
}

/* Self-hosted hero loop: seamless, no player chrome, no branding to crop away */
.hero-poster { position: absolute; inset: 0; }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s var(--ease);
  pointer-events: none;
}
.hero-film.is-ready { opacity: 1; }
/* The player keeps a full 1920x1080 layout size — YouTube picks its quality from
   that, so it always serves 1080p — and we scale it down to fit (never up).
   --film-scale is set in main.js and already includes a small crop that keeps
   YouTube's corner badge out of frame. */
.bg-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1080px;
  transform: translate(-50%, -50%) scale(var(--film-scale, 1));
  transform-origin: 50% 50%;
  border: 0;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.15 - var(--p) * 0.15));
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 28, 36, 0) 30%, rgba(20, 28, 36, 0.75) 100%);
  opacity: clamp(0, calc((var(--p) - 0.4) * 2), 1);
}

.hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 10vh;
  z-index: 1;
  text-align: center;
  color: #fff;
  opacity: clamp(0, calc((var(--p) - 0.62) * 3), 1);
  transform: translateY(calc((1 - clamp(0, (var(--p) - 0.62) * 3, 1)) * 30px));
}
.hero-caption p { font-size: clamp(17px, 2vw, 22px); font-weight: 500; color: rgba(255, 255, 255, 0.8); }
.hero-caption .hero-caption-big { font-size: clamp(48px, 8vw, 96px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; color: #fff; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 24px; height: 38px;
  margin-left: -12px;
  border: 1.5px solid rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  opacity: clamp(0, calc(1 - var(--p) * 8), 1);
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 7px;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.4);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* --------------------------------------------------------------------------
   Statement — words light up as you scroll
   -------------------------------------------------------------------------- */

.statement { height: 260vh; position: relative; background: var(--bg); }
.statement-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
}
.statement-text {
  width: min(100% - 44px, 980px);
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.statement-text .w { opacity: 0.14; transition: opacity 0.25s linear; }
.statement-text .w.is-lit { opacity: 1; }
.statement-text .w.accent { color: var(--slate); }

/* --------------------------------------------------------------------------
   Brand — the seal sharpens and grows; JS sets --p
   -------------------------------------------------------------------------- */

.brand {
  --p: 0;
  /* staged: rings draw → lettering turns in → the L is inked → headline */
  --ring: clamp(0, calc(var(--p) * 2.3), 1);
  --txt: clamp(0, calc((var(--p) - 0.2) * 2.8), 1);
  --ink: clamp(0, calc((var(--p) - 0.34) * 3), 1);
  height: 260vh;
  position: relative;
  background: var(--bg);
}
.brand-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vh, 32px);
  padding-top: 52px;
  text-align: center;
  overflow: hidden;
}
.brand-logo {
  width: min(54vh, 74vw, 480px);
  transform: scale(calc(0.84 + var(--ring) * 0.16));
}
.seal--scrub .seal-ring { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--ring)); }
.seal--scrub .seal-text { opacity: var(--txt); transform: rotate(calc((1 - var(--txt)) * -28deg)); }
.seal--scrub .seal-text--ar { transform: rotate(calc((1 - var(--txt)) * 28deg)); }
.seal--scrub .seal-l { clip-path: inset(0 calc((1 - var(--ink)) * 100%) 0 0); }
.brand-text {
  opacity: clamp(0, calc((var(--p) - 0.55) * 3.5), 1);
  transform: translateY(calc((1 - clamp(0, (var(--p) - 0.55) * 3.5, 1)) * 30px));
}
.brand-text .headline {
  background: linear-gradient(90deg, var(--slate) 0%, var(--slate) 45%, var(--taupe) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

/* --------------------------------------------------------------------------
   Generic sections
   -------------------------------------------------------------------------- */

.section { padding: clamp(96px, 14vh, 160px) 0; }
.section--gray { background: var(--gray); }

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Motion language — shared by every card and button:
   .m       a light that follows the cursor, plus a lift on hover
   .m-rise  rises and tilts into place when scrolled to, staggered by --i
   -------------------------------------------------------------------------- */

.m { position: relative; isolation: isolate; }
.m::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(62, 84, 104, 0.12), transparent 62%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.m:hover::after, .m:focus-visible::after { opacity: 1; }
.m--light::after { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.16), transparent 62%); }

.m-rise { opacity: 0; }
.m-rise.is-in { animation: m-rise 0.95s var(--ease) calc(var(--i, 1) * 0.055s) both; }
@keyframes m-rise {
  from { opacity: 0; transform: translateY(42px) rotateX(10deg) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .m-rise { opacity: 1; }
  .m-rise.is-in { animation: none; }
  .m::after { display: none; }
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

/* Flex + centered so the row stays balanced whatever the number of tiles */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 72px;
}
.stat {
  flex: 1 1 260px;
  max-width: 340px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(28, 39, 51, 0.08); }
.stat-num {
  display: block;
  font-size: clamp(40px, 4.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.stat-num small { font-size: 0.42em; letter-spacing: -0.01em; color: var(--taupe); }
.stat-label { display: block; margin-top: 12px; font-size: 15px; color: var(--ink-2); }

@media (max-width: 760px) { .stat { flex-basis: 100%; max-width: none; } }

/* --------------------------------------------------------------------------
   Feature — Khanke
   -------------------------------------------------------------------------- */

.feature {
  position: relative;
  overflow: hidden;
  background: var(--slate-deep);
  color: #fff;
  padding: clamp(120px, 18vh, 200px) 0;
}
.feature-bg { position: absolute; inset: -10% 0; }
.feature-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transform: translateY(var(--parallax, 0px)) scale(1.08);
  will-change: transform;
}
.feature-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28, 39, 51, 0.92) 0%, rgba(28, 39, 51, 0.55) 55%, rgba(28, 39, 51, 0.3) 100%);
}
.feature-inner { position: relative; }

.feature-figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.figure-num { display: block; font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.figure-label { display: block; margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, 0.55); }

.records {
  margin-top: 56px;
  padding: 32px 36px;
  border-radius: var(--radius);
  background: rgba(243, 235, 225, 0.08);
  border: 1px solid rgba(243, 235, 225, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 640px;
}
.records-title { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #d9b79f; }
.records ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.records li { font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; padding-left: 36px; position: relative; }
.records li::before {
  content: "";
  position: absolute; left: 0; top: 0.2em;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #d9b79f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2733' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

@media (max-width: 760px) {
  .feature-figures { grid-template-columns: 1fr; gap: 24px; }
  /* narrow screens: darken from the top down instead of left to right */
  .feature-bg::after { background: linear-gradient(180deg, rgba(28, 39, 51, 0.86) 0%, rgba(28, 39, 51, 0.55) 55%, rgba(28, 39, 51, 0.8) 100%); }
}

/* Khanke, parts two and three */
.feature + .feature { padding-top: clamp(100px, 15vh, 170px); }
.feature--alt .feature-bg::after {
  background: linear-gradient(270deg, rgba(28, 39, 51, 0.92) 0%, rgba(28, 39, 51, 0.55) 55%, rgba(28, 39, 51, 0.3) 100%);
}
.feature--alt .feature-inner { text-align: right; }
.feature--alt .lede { margin-left: auto; }
.feature--alt .feature-figures { direction: rtl; }
.feature--alt .feature-figures > div { direction: ltr; }

.feature--film .feature-bg::after {
  background: linear-gradient(180deg, rgba(28, 39, 51, 0.82) 0%, rgba(28, 39, 51, 0.5) 45%, rgba(28, 39, 51, 0.88) 100%);
}
.feature--film .feature-bg img { opacity: 0.85; }

.bg-video { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.2s var(--ease); }
.bg-video.is-ready { opacity: 0.85; }


.feature-caption {
  margin-top: 40px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 760px) {
  .feature--alt .feature-inner { text-align: left; }
  .feature--alt .lede { margin-left: 0; }
  .feature--alt .feature-figures { direction: ltr; }
  .feature--alt .feature-bg::after,
  .feature--film .feature-bg::after {
    background: linear-gradient(180deg, rgba(28, 39, 51, 0.86) 0%, rgba(28, 39, 51, 0.55) 55%, rgba(28, 39, 51, 0.8) 100%);
  }
}

/* Three-step sequence (Khanke) */
.steps {
  list-style: none;
  margin: 72px 0 0;
  padding: 40px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  padding: 26px 26px 28px;
  border-radius: 22px;
  border: 1px solid rgba(243, 235, 225, 0.16);
  background: rgba(243, 235, 225, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.step:hover { transform: translateY(-5px); border-color: rgba(243, 235, 225, 0.4); }
.step-num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #d9b79f;
  font-variant-numeric: tabular-nums;
}
.step-title {
  margin-top: 14px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #fff;
}
.step-text { margin-top: 10px; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, 0.7); }

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

/* --------------------------------------------------------------------------
   Horizontal projects — pinned; JS sets section height and --x on the track
   -------------------------------------------------------------------------- */

.hscroll { position: relative; background: var(--bg); }
.hscroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 4.5vh, 48px);
  padding-top: 52px;
  overflow: hidden;
}
.hscroll-head { flex: none; }

.hscroll-track {
  display: flex;
  gap: 24px;
  padding-inline: max(22px, calc((100vw - var(--max)) / 2));
  transform: translateX(var(--x, 0px));
  will-change: transform;
}

.pcard {
  flex: none;
  width: min(78vw, 440px);
  min-height: min(420px, 54vh);
  display: flex;
  flex-direction: column;
  padding: 40px 36px 36px;
  border-radius: var(--radius);
  background: var(--gray);
}
.pcard { transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.pcard:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(28, 39, 51, 0.1); }
.pcard--dark::after, .pcard--dark.m::after { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.14), transparent 62%); }

.pcard-meta { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--copper); }
.pcard h3 { margin-top: 14px; font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.pcard > p:not(.pcard-meta) { margin-top: 14px; color: var(--ink-2); }
.pcard dl { margin: auto 0 0; padding-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.pcard dt { font-size: 13px; color: var(--ink-2); }
.pcard dd { margin: 4px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--slate); font-variant-numeric: tabular-nums; }

.pcard--dark { background: var(--slate-deep); color: #fff; }
.pcard--dark .pcard-meta { color: #d9b79f; }
.pcard--dark > p:not(.pcard-meta) { color: rgba(255, 255, 255, 0.68); }
.pcard--dark dl { border-top-color: rgba(255, 255, 255, 0.16); }
.pcard--dark dt { color: rgba(255, 255, 255, 0.55); }
.pcard--dark dd { color: #fff; }
.pcard--sand { background: var(--sand); }

.hscroll-progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; flex: none; }
.hscroll-progress span { display: block; height: 100%; width: 100%; background: var(--slate); transform-origin: 0 50%; transform: scaleX(var(--hp, 0)); }

/* Touch / small screens: native swipe instead of pinning */
.hscroll.is-native { height: auto !important; padding: 96px 0; }
.hscroll.is-native .hscroll-sticky { position: static; height: auto; overflow: visible; }
.hscroll.is-native .hscroll-track {
  transform: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 22px;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.hscroll.is-native .hscroll-track::-webkit-scrollbar { display: none; }
.hscroll.is-native .pcard { scroll-snap-align: start; min-height: 380px; }
.hscroll.is-native .hscroll-progress { display: none; }

/* --------------------------------------------------------------------------
   Videos
   -------------------------------------------------------------------------- */

.videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 72px;
}
.video {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--slate-deep);
  text-align: left;
}
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.55) 100%); }
.video:hover img { transform: scale(1.04); }
/* Auto-captured frames carry black letterbox bars — scale them out */
.video img.is-frame { transform: scale(1.22); }
.video:hover img.is-frame { transform: scale(1.27); }
.video-label { position: absolute; left: 28px; bottom: 24px; z-index: 1; color: #fff; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.play {
  position: absolute;
  z-index: 1;
  right: 24px; bottom: 20px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease), background 0.3s;
}
.play::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  margin: -8px 0 0 -5px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--slate-deep);
}
.video { transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.video:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(28, 39, 51, 0.14); }
.video.m::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.18), transparent 62%); }
.video:hover .play { transform: scale(1.08); background: #fff; }
.video:focus-visible { outline: 3px solid var(--copper); outline-offset: 4px; }

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

.lightbox {
  width: min(92vw, 1100px);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.86); backdrop-filter: blur(6px); }
.lightbox-frame { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox-close {
  position: absolute; right: 0; top: -52px;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff; font-size: 24px; line-height: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

/* --------------------------------------------------------------------------
   Principles — cards stack as they stick
   -------------------------------------------------------------------------- */

.stack { margin-top: 72px; display: grid; gap: 24px; }
.stack-card {
  position: sticky;
  top: calc(96px + var(--i, 0) * 22px);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  min-height: 300px;
  padding: 48px;
  border-radius: var(--radius);
  background: var(--gray);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.04);
  transform-origin: 50% 0;
}
.stack-card:nth-child(1) { --i: 0; }
.stack-card:nth-child(2) { --i: 1; }
.stack-card:nth-child(3) { --i: 2; }
.stack-card:nth-child(4) { --i: 3; }
.stack-card h3 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.stack-card p:not(.stack-num) { margin-top: 18px; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; color: var(--ink-2); max-width: 640px; }
.stack-num { font-size: 15px; font-weight: 600; color: var(--copper); font-variant-numeric: tabular-nums; }

.stack-card { transition: box-shadow 0.45s var(--ease); }
.stack-card--slate.m::after, .stack-card--dark.m::after { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.1), transparent 62%); }
.stack-card--sand { background: var(--sand); }
.stack-card--slate { background: var(--slate); color: #fff; }
.stack-card--dark { background: var(--slate-deep); color: #fff; }
.stack-card--slate p:not(.stack-num), .stack-card--dark p:not(.stack-num) { color: rgba(255, 255, 255, 0.72); }
.stack-card--slate .stack-num, .stack-card--dark .stack-num { color: #d9b79f; }

@media (max-width: 760px) {
  .stack-card { grid-template-columns: 1fr; gap: 8px; padding: 36px 28px; min-height: 0; }
}

/* --------------------------------------------------------------------------
   Experience
   -------------------------------------------------------------------------- */

.exp { list-style: none; margin: 64px 0 40px; padding: 0; counter-reset: exp; }
.exp li {
  counter-increment: exp;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.exp li::before {
  content: counter(exp, decimal-leading-zero);
  grid-row: span 2;
  font-size: 15px;
  font-weight: 600;
  color: var(--taupe);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.exp p { font-size: 18px; line-height: 1.45; }
.exp em { font-style: normal; color: var(--copper); font-weight: 500; }
.exp span { margin-top: 6px; font-size: 14px; color: var(--ink-2); }

.exp-more { display: none !important; }
.exp.is-expanded .exp-more { display: grid !important; animation: rise 0.6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Clients and funders — cards rise in on a stagger, then drift as you scroll */
.clients { --cp: 0.5; margin-top: clamp(96px, 12vh, 140px); perspective: 1200px; }
.clients-title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 48px;
}
.client-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.client {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  transform-style: preserve-3d;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

/* the inner layer carries the scroll drift, so it never fights the reveal */
.client-motion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  transform: translateY(calc((0.5 - var(--cp)) * var(--drift, 14px)));
  will-change: transform;
}
.client:nth-child(3n + 2) { --drift: 26px; }
.client:nth-child(3n + 3) { --drift: -18px; }

.client:hover {
  border-color: var(--slate);
  box-shadow: 0 14px 34px rgba(28, 39, 51, 0.09);
}
.client:hover .client-motion { transition: transform 0.4s var(--ease); }

.client-name { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.client-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  transition: color 0.4s var(--ease);
}
.client:hover .client-tag { color: var(--copper); }

@media (prefers-reduced-motion: reduce) {
  .client-motion { transform: none; }
}

/* --------------------------------------------------------------------------
   Contact + footer
   -------------------------------------------------------------------------- */

.contact { padding: clamp(120px, 18vh, 200px) 0; background: var(--bg); }
.contact-logo { width: clamp(170px, 22vw, 240px); margin: 0 auto 44px; }
.contact .display {
  background: linear-gradient(180deg, var(--slate-deep) 20%, var(--slate) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.contact-address { margin-top: 28px; color: var(--ink-2); font-size: 15px; }

.footer { background: var(--gray); padding: 28px 0; font-size: 12px; color: var(--ink-2); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-seal { width: 44px; }

/* --------------------------------------------------------------------------
   Reduced motion — show everything, no pinning or scrubbing
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { --p: 0 !important; height: auto; }
  .hero-sticky { position: relative; height: auto; overflow: visible; padding-bottom: 80px; }
  .hero-copy { position: relative; padding-bottom: 64px; }
  .hero-media { position: relative; transform: none; border-radius: var(--radius); width: min(100% - 44px, var(--max)); margin-inline: auto; aspect-ratio: 16 / 9; inset: auto; }
  .hero-media img { transform: none; }
  .hero-media::after, .hero-caption { opacity: 1; transform: none; }
  .scroll-cue { display: none; }
  .brand { --p: 1 !important; height: auto; padding: 120px 0; }
  .brand-sticky { position: static; height: auto; }
  .statement { height: auto; padding: 120px 0; }
  .statement-sticky { position: static; height: auto; }
  .statement-text .w { opacity: 1; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .feature-bg img { transform: scale(1.08); }
}
