/* =========================================================
   Sadani — landing page
   Mobile-first. Montserrat throughout.
   ========================================================= */

:root {
  --ink: #1A1A1A;
  --ink-2: #3D3D3D;
  --muted: #6F6F6F;
  --soft: #A9A9A9;
  --word-off: #C9C9C9;
  --line: #E4E4E4;
  --grey: #F3F3F3;
  --white: #FFFFFF;

  --cream: #FFFCEB;
  --butter: #FBEDA2;
  --sun: #F6DB6E;
  --honey: #F2C94C;

  --gold-text: linear-gradient(90deg, #6B5A1E 0%, #A6862B 55%, #D4B24A 100%);
  --icon-grad: linear-gradient(135deg, #8C8C8C 0%, #F2C94C 100%);

  --pad: clamp(20px, 5.6vw, 80px);
  --maxw: 1440px;
  --nav-h: 76px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --fs-display: clamp(40px, 5vw, 72px);
  --fs-h2: clamp(32px, 3.9vw, 56px);
  --fs-h3: clamp(24px, 2.4vw, 34px);
  --fs-body: clamp(14px, 1.05vw, 15px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); }
body {
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: clamp(15px, 1.4vw, 20px);
  letter-spacing: -0.01em;
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.eyebrow .w__i { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 400% 100%; }

/* ---------- Split words (mask reveal) ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .2em; margin-bottom: -.2em; }
.w__i { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  --h: 54px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 16px;
  height: var(--h);
  padding: 0 24px;
  font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: color .45s var(--ease-out), border-color .45s var(--ease-out), transform .45s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .55s var(--ease-out);
}
.btn:active { transform: scale(.98); }
.btn--dark { background: var(--ink); color: #fff; padding-right: 8px; }
.btn--dark::before { background: #3a3a3a; }
.btn--light { background: #fff; color: var(--ink); border-color: #DADADA; }
.btn--light::before { background: var(--ink); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn--light:hover, .btn--light:focus-visible { color: #fff; border-color: var(--ink); }
.btn__icon {
  width: 38px; height: 38px; background: #fff; color: var(--ink);
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.btn__icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .5s var(--ease-out); }
.btn--dark:hover .btn__icon svg { animation: arrow-out .6s var(--ease-out); }
@keyframes arrow-out {
  0% { transform: translate(0, 0); }
  45% { transform: translate(140%, -140%); }
  46% { transform: translate(-140%, 140%); }
  100% { transform: translate(0, 0); }
}

.scroll-pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 32px; padding: 0 14px;
  border: 1px solid #D5D5D5; border-radius: 999px;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  background: rgba(255,255,255,.6);
}
.scroll-pill svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; animation: nudge 2.2s var(--ease-io) infinite; }
.scroll-pill--glass {
  background: rgba(70, 64, 48, .55); color: #fff; border-color: rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
@keyframes nudge { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(3px); } }

/* ---------- NAV ---------- */
.nav {
  position: fixed; z-index: 50; left: 0; right: 0;
  top: calc(10px + env(safe-area-inset-top, 0px));
  padding-inline: 12px;
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  position: relative;
  max-width: 996px; margin-inline: auto;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px 0 18px;
  background: rgba(240, 240, 240, .78);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 999px;
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  transition: box-shadow .5s var(--ease-out), background .5s;
}
.nav.is-scrolled .nav__pill { box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); background: rgba(246,246,246,.85); }
.nav__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.nav__brand img { height: 26px; width: auto; }
.nav__links {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  display: grid; gap: 4px; padding: 12px;
  background: rgba(246,246,246,.96); border: 1px solid rgba(0,0,0,.06); border-radius: 22px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(-8px); visibility: hidden;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s .35s;
}
.nav.is-open .nav__links { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.nav__links a { padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.nav__links a:hover { background: rgba(0,0,0,.05); }
.nav__right { display: flex; align-items: center; gap: 8px; }

.lang {
  position: relative; display: inline-flex; align-items: center;
  height: 30px; padding: 2px; border-radius: 999px; border: 1px solid #1A1A1A;
}
.lang__btn { position: relative; z-index: 1; width: 30px; height: 24px; font-size: 11px; font-weight: 600; border-radius: 999px; transition: color .35s; }
.lang__btn[aria-pressed="true"] { color: #fff; }
.lang__thumb {
  position: absolute; top: 2px; left: 2px; width: 30px; height: 24px; border-radius: 999px; background: var(--ink);
  transition: transform .45s var(--ease-out);
}
.lang[data-active="en"] .lang__thumb { transform: translateX(30px); }

.nav__burger { width: 40px; height: 40px; border-radius: 50%; display: grid; place-content: center; gap: 5px; }
.nav__burger i { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease-out); }
.nav.is-open .nav__burger i:first-of-type { transform: translateY(3.25px) rotate(45deg); }
.nav.is-open .nav__burger i:last-of-type { transform: translateY(-3.25px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav { top: 14px; }
  .nav__pill { height: 62px; padding: 0 12px 0 26px; }
  .nav__links {
    position: static; display: flex; gap: 30px; padding: 0; background: none; border: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    opacity: 1; transform: none; visibility: visible;
  }
  .nav__links a { padding: 6px 0; font-size: 14px; border-radius: 0; position: relative; }
  .nav__links a:hover { background: none; }
  .nav__links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
  }
  .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
  .nav__burger { display: none; }
  .nav__brand { font-size: 22px; }
  .nav__brand img { height: 30px; width: auto; }
}

/* ================= NAV — mobile menu panel (keep at the very end) ================= */
@media (max-width: 899px) {
  .nav__links {
    background: #FFFFFF;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .3);
  }
}

/* ---------- AURORA ---------- */
.aurora {
  position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF4 45%, #FCF1C4 100%);
}
/* Each blob is a soft glowing mound that rises from the bottom edge,
   swells, drifts sideways and fades out, then repeats. */
.aurora__blob {
  position: absolute; bottom: -38%;
  left: var(--x); width: var(--w); height: var(--h);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c), rgba(255, 255, 255, 0));
  filter: blur(28px);
  transform-origin: 50% 100%;
  will-change: transform, opacity;
  animation: aurora-rise var(--dur) ease-in-out var(--delay) infinite;
}
.aurora .a1 { --x: -6%; --w: 38%; --h: 105%; --c: #F6D862; --dur: 7s;   --delay: -1s;   --dx: 6%;  }
.aurora .a2 { --x: 20%; --w: 32%; --h: 125%; --c: #FBE89C; --dur: 8.5s; --delay: -5s;   --dx: -5%; }
.aurora .a3 { --x: 42%; --w: 38%; --h: 110%; --c: #F4D25A; --dur: 9s;   --delay: -3s;   --dx: 5%;  }
.aurora .a4 { --x: 64%; --w: 34%; --h: 120%; --c: #F8E184; --dur: 7.5s; --delay: -6.5s; --dx: -6%; }
.aurora .a5 { --x: 80%; --w: 30%; --h: 95%;  --c: #F6D862; --dur: 6.5s; --delay: -2.5s; --dx: 4%;  }
@keyframes aurora-rise {
  0%   { opacity: 0;   transform: translate3d(0, 20%, 0) scale(.75, .45); }
  35%  { opacity: 1;   transform: translate3d(calc(var(--dx) * .5), 0, 0) scale(1, 1); }
  65%  { opacity: .85; transform: translate3d(var(--dx), -6%, 0) scale(1.08, 1.15); }
  100% { opacity: 0;   transform: translate3d(calc(var(--dx) * 1.4), 12%, 0) scale(.85, .55); }
}

/* ---------- HERO ---------- */
.hero { position: relative; overflow: clip; min-height: 100svh; display: flex; flex-direction: column; background: var(--grey); }
.hero__top { background: var(--grey); padding-top: calc(var(--nav-h) + 34px + env(safe-area-inset-top, 0px)); padding-bottom: 28px; position: relative; z-index: 2; }
.hero__head { display: grid; gap: 22px; }
.hero__title { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.035em; font-weight: 400; }
.hero__l1, .hero__l2 { display: block; }
.hero__l2 { font-weight: 600; }
.hero__side { display: grid; gap: 14px; justify-items: start; }
.hero__copy { font-size: 13px; color: var(--ink-2); }
.hero__stage { position: relative; flex: 1; min-height: 420px; }
.hero__stage-inner { position: relative; z-index: 1; padding-top: 36px; }
.hero__note {
  max-width: 250px; padding-left: 16px; border-left: 3px solid var(--honey);
  font-size: 13px; line-height: 1.55; color: var(--ink-2);
}
.hero__logo {
  position: absolute; z-index: 3; left: 50%; bottom: 20px;
  width: min(74vw, 420px);
  transform: translateX(-50%);
  pointer-events: none;
}
.hero__logo-tilt { transform-style: preserve-3d; will-change: transform; }
.hero__logo img { width: 100%; height: auto; }
.hero__scroll { position: absolute; z-index: 4; left: 50%; bottom: 26px; transform: translateX(-50%); }
.hero__scroll.intro-fade { transform: translateX(-50%); }
.hero__side { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; }
.hero__copy { margin-top: auto; }

@media (min-width: 900px) {
  .hero { min-height: max(100svh, 760px); }
  .hero__top { padding-top: 116px; padding-bottom: 40px; min-height: 330px; }
  .hero__head { grid-template-columns: 1fr auto; align-items: start; }
  .hero__side { justify-items: end; padding-top: 8px; }
  .hero__stage { min-height: 0; }
  .hero__stage-inner { padding-top: 64px; }
  .hero__logo { width: clamp(340px, 40vw, 580px); bottom: 2%; top: auto; }
}

/* ---------- MARQUEE ---------- */
.marquee { background: var(--grey); border-top: 1px solid #ECECEC; overflow: hidden; padding: 34px 0; position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; animation: marquee var(--mq-dur, 30s) linear infinite; }
.marquee__group { display: flex; align-items: center; gap: clamp(28px, 3vw, 44px); padding-right: clamp(28px, 3vw, 44px); }
.marquee__group span { font-size: clamp(15px, 1.4vw, 20px); letter-spacing: .14em; text-transform: uppercase; color: #4F4F4F; white-space: nowrap; }
.marquee .star { width: 16px; height: 16px; fill: #C9A43E; flex: none; }
@keyframes marquee { to { transform: translateX(var(--mq-shift, -50%)); } }

/* ---------- PINNED SCENES (shared) ---------- */
.pin { position: relative; height: var(--pin-h, 300vh); }
.pin__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* ---------- ABOUT ---------- */
.about { --pin-h: 240vh; }
.about .pin__stage { display: grid; place-items: center; }
.about__grid { position: absolute; inset: 0; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); display: grid; grid-template-columns: repeat(3, 1fr); pointer-events: none; }
.about__grid i { border-left: 1px solid #EFEFEF; }
.about__grid i:nth-child(4) { position: absolute; right: var(--pad); top: 0; bottom: 0; }
.about__grid i:first-child { border-left-color: #E2E2E2; }
.about__grid i:last-child { border-left-color: #E2E2E2; }
.about__inner { position: relative; text-align: center; display: grid; justify-items: center; gap: 22px; }
.about__big {
  max-width: 17.5em;
  font-size: clamp(26px, 3.1vw, 44px); font-weight: 600; line-height: 1.24; letter-spacing: -0.025em;
}
.about__big .cw { color: var(--word-off); transition: color .5s var(--ease-out); }
.about__big .cw.is-on { color: var(--ink); }
.about__eyebrow { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.about.is-live .about__eyebrow { opacity: 1; transform: none; }
.about__card {
  position: relative; margin-top: 26px;
  max-width: 100%; padding: 22px 28px 26px;
  font-size: clamp(15px, 1.4vw, 18px); line-height: 1.4; font-weight: 400;
  background: linear-gradient(90deg, rgba(255,251,225,.9), rgba(247,247,247,.95) 25%, rgba(247,247,247,.95) 75%, rgba(255,251,225,.9));
  will-change: transform, opacity;
}
.about__card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -36px;
  width: 78%;
  height: 61px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(0deg, #F7CD54 0%, #1C1C1C 100%);
  opacity: .25;
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

/* Gradient stroke around the card */
.about__card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;                       /* stroke thickness */
  background: linear-gradient(135deg, rgba(255, 255, 255, .15) 0%, rgba(255, 255, 255, .6) 45%, #FFFFFF 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  pointer-events: none;
}

/* White fade at the bottom of the about background */
.about .pin__stage::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 35%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
  pointer-events: none;
  z-index: 0;
}
.about__inner { z-index: 1; }

.about__inner { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 899px) {
  .about__eyebrow { max-width: 260px; }
}

/* ---------- SCALING ---------- */
.scale { padding: clamp(80px, 12vw, 180px) 0 clamp(80px, 10vw, 140px); }
.scale__title { max-width: none; }
.scale__row { display: grid; gap: 28px; margin-top: 44px; }
.scale__lead { max-width: 270px; color: var(--ink-2); font-size: 14px; }
.stats { display: grid; gap: 12px; }
.stat {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 250px; padding: 22px 20px 20px; background: var(--grey);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.stat__head { display: flex; gap: 16px; align-items: flex-start; }
.stat__num { font-size: clamp(36px, 3vw, 46px); font-weight: 300; line-height: .9; letter-spacing: -0.03em; }
.stat h3 { font-size: 15px; font-weight: 500; line-height: 1.3; }
.stat p { font-size: 13px; line-height: 1.55; color: var(--ink-2); }
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(3, 1fr); align-items: end; }
}
@media (min-width: 1100px) {
  .scale__row { grid-template-columns: 1fr 2.63fr; gap: 20px; margin-top: 56px; align-items: start; }
  .scale__lead { padding-top: 40px; }
  .stats { gap: 12px; margin-top: 50px; }
  .stat { min-height: 300px; }
}

/* Card hover: lift + warm gradient (the old centre-card style) */
.stat { isolation: isolate; }
.stat::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #FFFDE0 0%, #FFFFFF 78%);
  opacity: 0;
  transition: opacity 1s cubic-bezier(.25, .8, .25, 1);
}
.stat.reveal {
  transition: opacity 1.1s var(--ease-out) var(--rd, 0s),
              transform 1.3s var(--ease-out) var(--rd, 0s),
              filter 1.1s var(--ease-out) var(--rd, 0s),
              translate 1s cubic-bezier(.25, .8, .25, 1);
}
@media (hover: hover) {
  .stat:hover { translate: 0 -50px; }
  .stat:hover::before { opacity: 1; }
  /* invisible strip below the lifted card so it doesn't flicker */
  .stat:hover::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 50px; }
}

/* ---------- REVEAL (generic, in-view) ---------- */
.reveal { opacity: 0; transform: translateY(46px); filter: blur(6px); transition: opacity 1.1s var(--ease-out) var(--rd, 0s), transform 1.3s var(--ease-out) var(--rd, 0s), filter 1.1s var(--ease-out) var(--rd, 0s); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.reveal[data-split] { opacity: 1; transform: none; filter: none; }
.reveal[data-split] .w__i { transform: translateY(108%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--rd, 0s) + var(--i) * .045s); }
.reveal[data-split].is-in .w__i { transform: none; }

/* ---------- PROJECTS ---------- */
.projects { --pin-h: 820vh; }
.proj {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  will-change: transform, filter;
}
.proj__card { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 16px) var(--pad) 22px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; }
.proj__card-bg { position: absolute; inset: 0; }
.proj__card-bg::after { content: ""; position: absolute; inset: 0;   background: linear-gradient(135deg, rgba(252, 250, 226, .6), rgba(242, 240, 214, .45)); }
.proj__card-bg img {
  position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none;
  object-fit: cover; filter: blur(12px);
  opacity: 0; transition: opacity 1.2s var(--ease-out);
}
.proj__card-bg img.is-active { opacity: 1; }
.proj__titles { position: relative; display: grid; }
.proj__titles .swap, .proj__descs .swap { grid-area: 1 / 1; }
.proj__cat { font-size: clamp(16px, 1.55vw, 22px); font-weight: 400; }
.proj__name { font-size: clamp(38px, 4.4vw, 62px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.proj__count { position: relative; align-self: flex-end; display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.proj__count-now { display: inline-flex; font-size: clamp(56px, 6.2vw, 90px); font-weight: 400; letter-spacing: -0.04em; color: var(--ink); height: 1em; overflow: hidden; line-height: 1; }
.proj__roll { display: inline-block; height: 1em; overflow: hidden; }
.proj__roll [data-roll] { display: flex; flex-direction: column; transition: transform 1s var(--ease-out); }
.proj__roll b { font-weight: inherit; height: 1em; }
.proj__count-total { font-size: clamp(26px, 2.6vw, 38px); color: #9A9A9A; letter-spacing: -0.02em; }
.proj__progress { position: absolute; left: var(--pad); bottom: 24px; width: 90px; height: 2px; background: rgba(0,0,0,.08); }
.proj__progress i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }

.proj__media { position: relative; overflow: hidden; background: #E9E9E6; min-height: 0; }
.proj__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0);
  transform: scale(1.18);
  transition: clip-path 1.15s var(--ease-io), transform 1.6s var(--ease-out), filter 1.15s var(--ease-io);
  z-index: 0;
}
.proj[data-dir="up"] .proj__media img { clip-path: inset(0 0 100% 0); }
.proj .proj__media img.is-prev { clip-path: inset(0); transform: scale(1.02); filter: brightness(.82); z-index: 1; }
.proj .proj__media img.is-active { clip-path: inset(0); transform: scale(1); z-index: 2; }

.proj__info { padding: 18px var(--pad) 24px; display: grid; gap: 16px; justify-items: start; }
.proj__descs { display: grid; max-width: 290px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }

/* swap (word-level): old text leaves first, then new text enters */
.swap { visibility: hidden; }
.swap.is-active, .swap.is-leaving { visibility: visible; }

/* waiting: parked out of view, no animation (prevents the flash-back) */
.swap .w__i { transform: translateY(110%); opacity: 0; transition: none; }
.proj[data-dir="up"] .swap:not(.is-active):not(.is-leaving) .w__i { transform: translateY(-110%); }

/* leaving: quick slide out + fade */
.swap.is-leaving .w__i {
  transform: translateY(-110%); opacity: 0;
  transition: transform .5s cubic-bezier(.55, 0, .75, .2), opacity .4s ease;
  transition-delay: calc(var(--i) * .012s);
}
.proj[data-dir="up"] .swap.is-leaving .w__i { transform: translateY(110%); }

/* entering: waits until the old text has cleared, then rises in */
.swap.is-active .w__i {
  transform: none; opacity: 1;
  transition: transform 1s var(--ease-out), opacity .8s ease;
  transition-delay: calc(.45s + var(--i) * .025s);
}

@media (min-width: 900px) {
  .proj {
    height: 100%;
    grid-template-columns: 32.6% 18.7% 16.1% 32.6%;
    grid-template-rows: 37% 1fr;
  }
  .proj__card { grid-column: 3 / 5; grid-row: 1 / 3;   padding: calc(var(--nav-h) + 2vw) 3.4vw 2.6vw 2vw; min-height: 0; }
  .proj__titles { margin-top: 5vh; }
  .proj__progress { left: 2vw; bottom: 2.6vw; }
  .proj__media { grid-column: 2 / 4; grid-row: 2; z-index: 2; }
  .proj__info { grid-column: 1; grid-row: 2; align-content: space-between; padding: 0 var(--pad) 40px; }
  .proj__info { padding-top: 34px; }
}
@media (max-width: 899px) {
  .proj {
    padding-top: var(--nav-h);
    grid-template-columns: 1fr;
    grid-template-rows: 120px minmax(0, 1fr) auto auto;
    grid-template-areas: "card" "media" "titles" "info";
  }
  /* unwrap the card so its parts can sit in different rows */
  .proj__card { display: contents; }

  /* row 1: yellow band with the counter */
  .proj__card-bg { grid-area: card; position: relative; inset: auto; overflow: hidden; }
  .proj__count { grid-area: card; justify-self: end; align-self: end; position: relative; z-index: 1; padding: 0 var(--pad) 14px 0; }
  .proj__progress { display: none; }

  /* row 2: full-width image */
  .proj__media { grid-area: media; margin: 0; }

  /* row 3: category + name */
  .proj__titles { grid-area: titles; padding: 28px var(--pad) 0; margin: 0; }

  /* row 4: description + button */
  .proj__info { grid-area: info; padding: 16px var(--pad) calc(28px + env(safe-area-inset-bottom, 0px)); }
  .proj__descs { max-width: none; }
  .proj__info .scroll-pill { display: none; }
}

.proj__veil { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 5; }

/* next product layer */
.next { position: absolute; inset: 0; z-index: 6; display: grid; align-items: center; pointer-events: none; visibility: hidden; }
.next.is-visible { visibility: visible; pointer-events: auto; }
.next__glow {
  position: absolute; top: 5%; bottom: 5%; width: 60vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(246,222,110,.85), rgba(250,236,160,.5) 45%, rgba(255,250,220,0));
  filter: blur(40px); opacity: 0; will-change: transform, opacity;
}
.next__glow--l { left: -38vw; }
.next__glow--r { right: -38vw; }
.next__inner { position: relative; display: grid; gap: 28px; }
.next__title { max-width: 9.5em; }
.next__side { display: grid; gap: 22px; justify-items: start; }

/* Scroll-driven: --c1/--c2/--c3 go from 0 (off to the side) to 1 (in place) */
.next__title .w__i { transform: none; }
.next__title {
  opacity: var(--c1, 0);
  transform: translate3d(calc((1 - var(--c1, 0)) * -140px), 0, 0);
  filter: blur(calc((1 - var(--c1, 0)) * 8px));
}
.next__side p { white-space: pre-line; font-size: 14px; color: var(--ink-2); }
.next__side p {
  opacity: var(--c2, 0);
  transform: translate3d(calc((1 - var(--c2, 0)) * 140px), 0, 0);
  filter: blur(calc((1 - var(--c2, 0)) * 8px));
}
.next__side .btn {
  opacity: var(--c3, 0);
  transform: translate3d(calc((1 - var(--c3, 0)) * 140px), 0, 0);
  filter: blur(calc((1 - var(--c3, 0)) * 8px));
  transition: color .45s, border-color .45s;
}

@media (min-width: 900px) {
  .next__inner { grid-template-columns: 1fr auto; padding-left: 15%; padding-right: 15%; }
  .next__side { grid-column: 2; grid-row: 2; justify-self: end; }
}

/* ---------- BUILD (video) ---------- */
.build { --pin-h: 560vh; background: #fff; }
.build__vbox {
  position: absolute; top: 10svh; left: 50%;
  width: 180vw; aspect-ratio: 16 / 9;
  transform: translate3d(calc(-50% + var(--pan, 0px)), 0, 0);
}
.build__screen-logo {
  position: absolute; left: 71.3%; top: 38.6%; width: 6.4%;
  transform: translate(-50%, -50%) perspective(600px) rotateY(-8deg);
  filter: sepia(1) saturate(2.2) hue-rotate(-8deg) brightness(1.05) drop-shadow(0 0 10px rgba(242,201,76,.35));
  opacity: var(--logo-o, 1);
  pointer-events: none;
}
.build__steps { position: absolute; inset: auto 0 0 0; padding-bottom: calc(46px + env(safe-area-inset-bottom, 0px)); display: grid; }
.bstep { grid-area: 1 / 1; align-self: end; max-width: 540px; }
.bstep__num { display: block; font-size: clamp(28px, 2.7vw, 40px); font-weight: 400; color: #A6A6A6; letter-spacing: -0.02em; margin-bottom: 8px; }
.bstep__title { margin-bottom: 18px; }
.bstep__body { font-size: 14px; color: var(--ink-2); max-width: 440px; }
.bstep .w__i {
  transform: translate3d(0, 115%, 0) rotate(5deg);
  transform-origin: 0 100%;
  transition: transform 1s var(--ease-out);
  transition-delay: calc(.12s + var(--i) * .03s);
}
.bstep__body .w__i { transition-delay: calc(.32s + var(--i) * .012s); }
.bstep { transform: translate3d(var(--enter-x, 60px), 0, 0); filter: blur(6px); opacity: 0; transition: transform 1.1s var(--ease-out), filter .9s var(--ease-out), opacity .6s var(--ease-out); }
.bstep--left { --enter-x: -60px; --leave-x: -80px; }
.bstep--right { --enter-x: 60px; --leave-x: 80px; }
.bstep.is-active { transform: none; filter: none; opacity: 1; transition-delay: .1s; }
.bstep.is-active .w__i { transform: none; }
.bstep.is-leaving { transform: translate3d(0, -40px, 0); filter: blur(8px); opacity: 0; transition-duration: .7s, .6s, .55s; }
.bstep.is-leaving .w__i { transform: translate3d(0, -115%, 0) rotate(-3deg); transition-duration: .6s; transition-delay: calc(var(--i) * .012s); }

.build__dots { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.build__dots li { width: 6px; height: 6px; border-radius: 50%; background: #D6D6D6; transition: background .4s, transform .4s var(--ease-out); }
.build__dots li.is-active { background: var(--ink); transform: scale(1.5); }

@media (min-width: 900px) {
  .build__vbox { top: 52%; width: min(100vw, 150svh); transform: translate3d(-50%, -50%, 0); }
  .build__steps { inset: 0; padding-bottom: 0; align-items: center; }
  .bstep { align-self: center; }
  .bstep--left { justify-self: start; max-width: 42%; }
  .bstep--right { justify-self: start; margin-left: 50.5%; max-width: 44%; }
  .bstep[data-step="0"] { align-self: center; padding-top: 18vh; }
  .build__dots { right: 28px; }
}

.proj__lead { display: grid; gap: 28px; justify-items: start; }
.proj__btn { height: 50px; padding: 0 38px; }

@media (max-width: 899px) {
  .build__vbox { top: 8svh; }

  /* progress dots: horizontal, centred under the computer */
  .build__dots {
    top: calc(8svh + 97vw);
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
  }

  /* text: below the dots */
  .build__steps {
    inset: auto 0 auto 0;
    top: calc(8svh + 109vw);
    padding-bottom: 0;
  }
  .bstep { align-self: start; }
}

/* ---------- AI ---------- */
.ai { --pin-h: 380vh; background: #fff; }
.ai__media { position: absolute; inset: 0; clip-path: inset(34%); will-change: clip-path; }
.ai__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.3); will-change: transform; }
.ai__halo {
  position: absolute; inset: 0; opacity: 0; will-change: opacity;
  background:
    radial-gradient(ellipse 40% 52% at 50% 48%, rgba(255,255,255,0) 0%, rgba(255,255,255,.12) 45%, rgba(255,255,255,.72) 75%, #fff 100%),
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,0) 30%, rgba(255,255,255,0) 60%, #fff 100%);
}
.ai__content { position: absolute; inset: auto 0 0 0; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 18px; }
.ai__title { font-size: clamp(32px, 4.1vw, 58px); }
.ai__l1, .ai__l2 { display: block; }
.ai__l1 { font-weight: 500; }
.ai__l2 { font-weight: 600; }
.ai__head .eyebrow { margin-bottom: 8px; }
.ai__body { max-width: 390px; font-size: 14px; color: var(--ink-2); opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out) .45s, transform 1.1s var(--ease-out) .45s; }
.ai__content .w__i { transform: translateY(110%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * .05s); }
.ai__l1 .w__i { transition-delay: calc(.12s + var(--i) * .05s); }
.ai__l2 .w__i { transition-delay: calc(.26s + var(--i) * .05s); }
.ai__content.is-in .w__i { transform: none; }
.ai__content.is-in .ai__body { opacity: 1; transform: none; }
@media (min-width: 900px) {
  .ai__content { grid-template-columns: 1fr 390px; align-items: end; padding-bottom: 7vh; }
}


/* ---------- CAPABILITIES ---------- */
.caps { position: relative; display: grid; }
.caps__panel { position: sticky; top: 0; z-index: 2; background: transparent; isolation: isolate; height: 36svh; min-height: 250px; }
.caps__panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grey);
  opacity: var(--caps-bg, 0);
}
.caps__panel-inner { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: calc(var(--nav-h) + 10px) var(--pad) 28px; }
.caps__panel p { max-width: 300px; font-size: 13px; color: var(--ink-2); }
.caps__meter { width: 120px; height: 2px; background: rgba(0,0,0,.08); position: relative; margin-top: 6px; }
.caps__meter i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .2s linear; }
.caps__list { padding: 40px var(--pad) 70svh; display: grid; gap: 70px; }
.cap { display: grid; gap: 10px; opacity: .32; transform: translateX(0); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
.cap img { width: 44px; height: 44px; margin-bottom: 18px; transition: transform .8s var(--ease-out); }
.cap h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.cap p { font-size: 13px; color: var(--ink-2); }
.cap.is-active { opacity: 1; }
.cap.is-active img { transform: translateY(-4px) rotate(-6deg); }

@media (min-width: 900px) {
  .caps { grid-template-columns: 47.2% 1fr; }
  .caps__panel { height: 100svh; }
  .caps__panel-inner { justify-content: center; padding: var(--nav-h) var(--pad) 0; gap: 26px; }
  .caps__panel p { font-size: 14px; }
  .caps__list { padding: 38svh 0 100svh 11.6%; gap: 110px; max-width: 700px; }
  .cap:hover img { transform: translateY(-4px) rotate(-6deg) scale(1.06); }
}

/* ================= CAPABILITIES — mobile (keep at the very end) ================= */
@media (max-width: 899px) {
  .caps { background: var(--grey); opacity: 1 !important; }

  /* heading block: normal flow instead of sticky */
  .caps__panel { position: relative; height: auto; min-height: 0; background: transparent; }
  .caps__panel::before { display: none; }
  .caps__panel-inner { padding: 72px var(--pad) 8px; justify-content: flex-start; }
  .caps__meter { display: none; }

  /* cards: all fully visible */
  .caps__list { padding: 40px var(--pad) 80px; gap: 56px; }
  .cap { opacity: 1; }
  .cap img { transform: none; }
}

/* ---------- DIRECTION ---------- */
.direction { --pin-h: 300vh; }
.direction__path { position: absolute; left: -8%; top: 4svh; width: 116%; height: 60svh; }
.direction__inner { position: relative; height: 100%; display: flex; align-items: flex-end; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
.direction__content { max-width: 390px; display: grid; gap: 12px; }
.direction__title { font-size: clamp(28px, 2.8vw, 40px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.direction__body { font-size: 14px; color: var(--ink-2); margin-top: 18px; }
.direction__content .w__i { opacity: var(--o, .08); filter: blur(calc((1 - var(--o, .08)) * 6px)); transform: translateY(calc((1 - var(--o, .08)) * 14px)); transition: opacity .35s linear, filter .35s linear, transform .35s linear; }
.direction__content .w { overflow: visible; }
@media (min-width: 900px) {
  .direction__path { left: 1%; top: 6svh; width: 58%; height: 84svh; }
  .direction__inner { align-items: center; justify-content: flex-end; padding-bottom: 0; }
  .direction__content { margin-right: 0; margin-top: 30vh; max-width: 540px; }
}
/* White fades at the top and bottom of the section */
.direction .pin__stage::before,
.direction .pin__stage::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 22%;
  z-index: 1;
  pointer-events: none;
}
.direction .pin__stage::before { top: 0;    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%); }
.direction .pin__stage::after  { bottom: 0; background: linear-gradient(0deg,   #FFFFFF 0%, rgba(255, 255, 255, 0) 100%); }
.direction__inner { z-index: 2; }

.direction__path { overflow: visible; }

/* ---------- CTA ---------- */
.cta { position: relative; padding-top: clamp(100px, 13vw, 190px); overflow: hidden; }
.cta__inner { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; gap: 24px; }
.cta__title { font-size: clamp(34px, 4.1vw, 58px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.cta__body { max-width: 360px; font-size: 14px; color: var(--ink-2); }
.cta__btns { justify-content: center; margin-top: 20px; }
.cta__aurora { position: relative; height: clamp(260px, 34vw, 480px); margin-top: clamp(-20px, -2vw, 0px); }
.cta__aurora .aurora { background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF2 30%, #FCEFB0 100%); }
.cta__aurora::before { content: ""; position: absolute; inset: 0 0 auto; height: 45%; background: linear-gradient(180deg, #fff, rgba(255,255,255,0)); z-index: 1; }
.cta__word {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: -0.12em;
  display: flex; justify-content: center;
  font-size: clamp(110px, 22vw, 320px); font-weight: 700; letter-spacing: -0.03em; line-height: .78;
  color: rgba(255,255,255,.82);
  filter: blur(2.5px);
  text-shadow: 0 0 40px rgba(255,255,255,.7);
  user-select: none;
}
.cta__word span { display: inline-block; transform: translateY(70%); opacity: 0; transition: transform 1.6s var(--ease-out), opacity 1.2s var(--ease-out); }
.cta__word span:nth-child(1) { transition-delay: .00s; }
.cta__word span:nth-child(2) { transition-delay: .07s; }
.cta__word span:nth-child(3) { transition-delay: .14s; }
.cta__word span:nth-child(4) { transition-delay: .21s; }
.cta__word span:nth-child(5) { transition-delay: .28s; }
.cta__word span:nth-child(6) { transition-delay: .35s; }
.cta__word.is-in span { transform: none; opacity: 1; }

/* CTA aurora: faster than the hero */
.aurora--wide .a1 { --dur: 5s; }
.aurora--wide .a2 { --dur: 6s; }
.aurora--wide .a3 { --dur: 6.5s; }
.aurora--wide .a4 { --dur: 5.5s; }
.aurora--wide .a5 { --dur: 4.5s; }

/* ---------- FOOTER ---------- */
.footer { background: var(--grey); padding: 56px 0 28px; font-size: 13px; }
.footer__top { display: grid; gap: 44px; }
.footer__brand { display: grid; gap: 18px; align-content: start; }
.footer__brand p { max-width: 400px; color: var(--ink-2); line-height: 1.6; }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid #E3E3E3; display: grid; place-items: center; transition: background .4s, color .4s, transform .4s var(--ease-out); }
.socials a:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }
.socials svg { width: 16px; height: 16px; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
.footer__col h3 { font-size: 12px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer__col li + li { margin-top: 6px; }
.footer__col a { position: relative; font-weight: 500; }
.footer__col a:hover { color: #8B7426; }
.footer__contact { grid-column: 1 / -1; }
.footer__contact dl > div { display: flex; gap: 10px; margin-top: 6px; }
.footer__contact dt { color: var(--muted); width: 16px; }
.footer__contact dd { font-weight: 500; }
.footer__legal { border-top: 1px solid #DCDCDC; margin-top: 44px; padding-top: 28px; text-align: center; font-size: 12px; color: var(--ink-2); }
.footer__logo img { height: 36px; }
@media (min-width: 900px) {
  .footer { padding: 84px 0 32px; }
  .footer__top { grid-template-columns: 1fr auto; }
  .footer__brand { grid-template-rows: auto auto 1fr; }
  .socials { align-self: end; margin-top: 60px; }
  .footer__cols { grid-template-columns: repeat(3, auto); gap: 40px 72px; }
  .footer__contact { grid-column: 2 / 4; }
  .footer__legal { margin-top: 56px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .aurora__blob { animation: none; }
  .marquee__track { animation: none; }
}

/* ---------- late additions ---------- */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.eyebrow[data-split] { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #A6862B; }
.eyebrow[data-split] .w__i { background: var(--gold-text); background-size: 100% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- mobile refinements ---------- */
@media (max-width: 899px) {
  .direction__path { left: -4%; top: calc(var(--nav-h) + 4svh); width: 108%; height: 46svh; }
  .direction__content { max-width: none; }
}

/* Scroll pill: right-aligned with the buttons on desktop */
@media (min-width: 900px) {
  .hero .hero__scroll.intro-fade {
    left: auto;
    right: max(var(--pad), calc((100% - var(--maxw)) / 2 + var(--pad)));
    bottom: 5%;
    transform: none;
  }
  html.is-loaded .hero .hero__scroll.intro-fade {
    transform: none;
    animation-name: intro-fade;
  }
}

/* ================= AI — mobile (keep at the very end of the file) ================= */
@media (max-width: 899px) {
  .ai { --pin-h: auto; }
  .ai .ai__media { clip-path: none !important; opacity: 1 !important; }
  .ai .ai__media img {
    position: absolute; left: 0; top: 0;
    width: 100%; height: 68%;
    object-fit: cover;
    object-position: 50% 40%;
    opacity: 0;
    transform: scale(1.08) !important;
    transition: opacity 1.2s var(--ease-out), transform 1.8s var(--ease-out);
    -webkit-mask-image:
      linear-gradient(180deg, transparent 0%, #000 18%, #000 58%, transparent 96%),
      radial-gradient(ellipse 72% 62% at 50% 46%, #000 55%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image:
      linear-gradient(180deg, transparent 0%, #000 18%, #000 58%, transparent 96%),
      radial-gradient(ellipse 72% 62% at 50% 46%, #000 55%, transparent 100%);
            mask-composite: intersect;
  }
  .ai.is-in .ai__media img { opacity: 1; transform: none !important; }
  .ai .ai__halo { display: none !important; }
}
