/* ============================================================
   Torque motion system — restrained, GPU-friendly, progressive.
   Loaded after main.css. Quiet unless .has-gsap / Lenis is present.
   ============================================================ */

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

/* ----- Page veil (mark in the dark, ~0.8s) ----- */
.veil {
  display: grid;
  place-items: center;
  background: #140e08;
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.veil__mark {
  width: 52px;
  height: 48px;
  background-color: #c9a45c;
  -webkit-mask: url("../img/logo-mark-gold.png") center / contain no-repeat;
          mask: url("../img/logo-mark-gold.png") center / contain no-repeat;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.28s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
body.is-leaving .veil,
body.is-arriving .veil { transform: translateY(0); pointer-events: auto; }
body.is-leaving .veil__mark,
body.is-arriving .veil__mark { opacity: 1; transform: scale(1); }

/* ----- Hero cinematic extras ----- */
.hero__plate {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__plate img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  object-position: 70% 40%;
  opacity: 0.16;
  transform: scale(1.06);
  filter: saturate(0.55) contrast(1.05);
  will-change: transform;
}
.hero--cream .hero__plate img { mix-blend-mode: multiply; }
.hero__glow {
  position: absolute;
  width: min(52vw, 560px);
  height: min(52vw, 560px);
  left: 8%;
  top: 18%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.22), transparent 68%);
  transform: translate3d(var(--gx, 0px), var(--gy, 0px), 0);
  z-index: 0;
  opacity: 0.7;
}
.hero__lede,
.hero__actions,
.hero__eyebrow,
.hero__scroll {
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero:not(.is-in) .hero__lede,
.hero:not(.is-in) .hero__actions,
.hero:not(.is-in) .hero__eyebrow,
.hero:not(.is-in) .hero__scroll {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}
.hero.is-in .hero__lede { transition-delay: 0.38s; }
.hero.is-in .hero__actions { transition-delay: 0.52s; }
.hero.is-in .hero__scroll { transition-delay: 0.7s; }
.hero.is-in .hero__actions .btn:nth-child(2) { transition-delay: 0.62s; }

html.has-gsap .hero__lede,
html.has-gsap .hero__actions,
html.has-gsap .hero__eyebrow,
html.has-gsap .hero__scroll {
  opacity: 1;
  transform: none;
  transition: none;
}
html.has-gsap .kine span i,
html.has-gsap .kine span em {
  transform: none;
  transition: none;
}
html.has-gsap .filmstrip__cell,
html.has-gsap .bento__cell--media { overflow: hidden; }
html.has-gsap .filmstrip__cell img,
html.has-gsap .bento__cell--media img {
  transform: scale(1.05);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.05s cubic-bezier(0.22, 1, 0.36, 1), transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
}
html.has-gsap .filmstrip__cell.is-in img,
html.has-gsap .bento__cell--media.is-in img {
  clip-path: inset(0);
  transform: scale(1);
}

/* ----- Kinetic type ----- */
.kine-band {
  position: relative;
  padding: clamp(48px, 7vw, 88px) 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--cream-deep, #efe4d0);
  border-block: 1px solid var(--hairline);
}
.kine-band--dark {
  background: var(--navy);
  border-color: var(--navy-line);
  color: #fff;
}
.kine {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 4.2vw, 3.4rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--ink);
}
.kine-band--dark .kine { color: #fff; }
.kine span {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.kine span i,
.kine span > em {
  font-style: normal;
  display: block;
  transform: translateY(108%);
}
.kine.is-in span i,
.kine.is-in span > em { transform: none; transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.kine.is-in span:nth-child(2) i,
.kine.is-in span:nth-child(2) em { transition-delay: 0.08s; }
.kine.is-in span:nth-child(3) i,
.kine.is-in span:nth-child(3) em { transition-delay: 0.16s; }
.kine.is-in span:nth-child(4) i,
.kine.is-in span:nth-child(4) em { transition-delay: 0.24s; }
.kine--line {
  font-size: clamp(1.2rem, 2.4vw, 1.85rem);
  letter-spacing: 0.18em;
  color: var(--gold);
  margin: 0 0 28px;
}
.kine--line i { font-style: normal; opacity: 0.55; margin-inline: 0.4em; }

/* ----- Sticky process story ----- */
.story {
  position: relative;
  background: #16100a;
  color: rgba(255, 255, 255, 0.84);
  isolation: isolate;
}
.story__pin {
  min-height: 100svh;
  display: grid;
  align-items: stretch;
}
.story__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.story__wash {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(50% 40% at 18% 20%, rgba(201, 164, 92, 0.16), transparent 62%),
    radial-gradient(40% 50% at 88% 80%, rgba(140, 104, 40, 0.12), transparent 64%);
}
.story__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(201, 164, 92, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 164, 92, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 40% 50%, #000 30%, transparent 78%);
}
.story__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 100svh;
  padding-block: clamp(48px, 8vh, 96px);
}
.story__media {
  position: relative;
  min-height: min(72vh, 640px);
}
.story__spine {
  position: absolute;
  left: -18px;
  top: 8%;
  height: 84%;
  width: 12px;
  overflow: visible;
  z-index: 2;
  pointer-events: none;
}
.story__spine path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-linecap: round;
}
.story__frames {
  position: relative;
  height: min(72vh, 640px);
  overflow: hidden;
  border: 1px solid rgba(201, 164, 92, 0.22);
  background: #1c140c;
}
.story__frame {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: scale(1.05);
  transition: opacity 0.7s ease, clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.story__frame.is-active {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: scale(1);
  z-index: 1;
}
.story__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.78) contrast(1.04);
}
.story__copy { max-width: 38rem; }
.story__copy .eyebrow { color: var(--gold); }
.story__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.story__steps li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.38;
  transition: opacity 0.45s ease;
}
.story__steps li.is-active { opacity: 1; }
.story__steps li span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
  padding-top: 6px;
}
.story__steps h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  color: #fff;
}
.story__steps p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.62);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.55s ease, opacity 0.4s ease;
}
.story__steps li.is-active p {
  max-height: 6.5em;
  opacity: 1;
}

@media (max-width: 900px) {
  .story__layout {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 56px;
  }
  .story__media, .story__frames { min-height: 42vh; height: 42vh; }
  .story__spine { display: none; }
  .story__steps p { max-height: none; opacity: 1; }
  .story__steps li { opacity: 1; }
}

/* ----- GCC journey draw ----- */
html.has-gsap .routemap__arc { animation: none; }
html.has-gsap .routemap__arc path {
  fill: none;
  stroke: rgba(200, 135, 59, 0.72);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.routemap__node {
  opacity: 0.28;
  transition: opacity 0.5s ease;
}
.routemap__node.is-lit,
.routemap__origin { opacity: 1; }
.journey-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.journey-cats span {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid rgba(201, 164, 92, 0.28);
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.4s ease;
}
.journey-cats span.is-in {
  opacity: 1;
  transform: none;
  color: rgba(255, 255, 255, 0.82);
}

/* ----- Image curtain / scale ----- */
html.has-gsap [data-img-reveal] { overflow: hidden; }
html.has-gsap [data-img-reveal] img,
html.has-gsap [data-img-reveal] > img,
html.has-gsap .industry img {
  transform: scale(1.05);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.05s cubic-bezier(0.22, 1, 0.36, 1), transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
}
html.has-gsap [data-img-reveal].is-in img,
html.has-gsap [data-img-reveal].is-in > img,
html.has-gsap .industry.is-in img {
  clip-path: inset(0);
  transform: scale(1);
}

/* Leadership: editorial, authentic photos */
.person__img img {
  filter: grayscale(0.12) contrast(1.03);
  transform: scale(1.04);
  transition: filter 0.7s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.person.is-in .person__img img { transform: scale(1); }
.person:hover .person__img img,
.person:focus-visible .person__img img {
  filter: grayscale(0) contrast(1.02);
  transform: scale(1.03);
}

/* ----- Magnetic / buttons ----- */
.btn { will-change: transform; }
.btn .arrow { display: inline-block; }
html.has-gsap .btn--copper { transition: color 0.45s var(--ease, ease), border-color 0.45s ease, box-shadow 0.45s ease; }
.btn--copper:hover { box-shadow: 0 10px 28px rgba(140, 104, 40, 0.22); }

/* ----- Card tilt ----- */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}
.industry__body, .bento__cell > * { transform: translateZ(12px); }

/* ----- Cursor light (dark sections only) ----- */
.ptr-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(420px circle at var(--lx, 50%) var(--ly, 38%), rgba(201, 164, 92, 0.13), transparent 58%);
  opacity: 0;
  transition: opacity 0.5s ease;
  mix-blend-mode: screen;
}
[data-cursor-light] { position: relative; }
[data-cursor-light].is-lit .ptr-light { opacity: 1; }
[data-cursor-light] > *:not(.ptr-light) { position: relative; z-index: 1; }

/* ----- Section glue ----- */
.section.on-dark,
.cta,
.story {
  margin-top: -1px;
}
.cta::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 164, 92, 0.45), transparent);
  transform: scaleX(0.4);
  transform-origin: center;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.cta.is-in::after { transform: scaleX(1); }

/* ----- Micro ----- */
.nav__link { position: relative; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__link:hover::after,
.nav__link.is-current::after { transform: scaleX(1); }
.acc-item { transition: background 0.4s ease; }
.acc-body { transition: height 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.tabs__btn { position: relative; }
.tabs__btn::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.tabs__btn[aria-selected="true"]::after { transform: scaleX(1); }

/* Industrial ticks on journey */
.routemap::before {
  content: "23.81°N  90.41°E   ·   DHAKA DESK";
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__plate img, .hero__glow, .story__frame, .kine span i, .kine span em { transform: none !important; clip-path: none !important; }
  .hero:not(.is-in) .hero__lede,
  .hero:not(.is-in) .hero__actions,
  .hero:not(.is-in) .hero__eyebrow,
  .hero:not(.is-in) .hero__scroll { opacity: 1; transform: none; }
  .industry img, [data-img-reveal] img { clip-path: none; transform: none; }
  .person__img img { filter: none; transform: none; }
  .ptr-light, .veil__mark { display: none; }
  .story__steps p { max-height: none; opacity: 1; }
  .story__steps li, .routemap__node, .journey-cats span { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .hero__plate img { opacity: 0.1; }
  .hero__glow { display: none; }
  .ptr-light { display: none; }
  [data-tilt] { transform: none !important; }
}
