/* ============================================================
   AiLeap — "Ascent" homepage
   3D scroll experience · GSAP + ScrollTrigger + Lenis + Three.js
   Brand palette from the AiLeap mark:
   charcoal #0C0C10 · pink #F0329C · violet #A855F7 · blue #3EB8F0 · orange #F5813C
   ============================================================ */

:root {
  --bg: #0c0c10;
  --bg-2: #131318;
  --paper: #ececef;
  --white: #fafafc;
  --tx-dark: #b9b6c6;      /* body on dark */
  --tx-light: #4a4656;     /* body on light */
  --pink: #f0329c;
  --violet: #a855f7;
  --blue: #3eb8f0;
  --orange: #f5813c;
  --grad: linear-gradient(100deg, #3eb8f0 0%, #a855f7 48%, #f0329c 100%);
  --line-d: rgba(255,255,255,.12);
  --line-l: rgba(12,12,16,.16);
  --font-sans: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--tx-dark);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--pink); color: var(--white); }

img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
ul { list-style: none; }

.wrap { width: min(1360px, calc(100% - 80px)); margin-inline: auto; }
@media (max-width: 720px) { .wrap { width: calc(100% - 40px); } }

/* headline voice: light grotesk, sentence case */
.h-display {
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--white);
}
.on-light .h-display, .sec-light .h-display { color: #141218; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* mono micro-labels + underline arrow links */
.m-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  position: relative;
  transition: color .3s ease;
}
.link-arrow .ar { transition: transform .4s var(--ease); }
.link-arrow:hover .ar { transform: translateX(6px); }
.link-arrow:hover { color: var(--pink); }

/* line-mask split scaffolding */
.split-line { display: block; overflow: hidden; padding-bottom: .09em; margin-bottom: -.09em; }
.split-line > .inner { display: block; transform: translateY(110%); will-change: transform; }

/* ---------- preloader ---------- */
.loader {
  position: fixed; inset: 0;
  z-index: 4000;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity .8s ease, visibility .8s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.loader .mark { width: 148px; height: 148px; animation: loader-turn 2.4s linear infinite; filter: drop-shadow(0 0 30px rgba(240,50,156,.4)); }
.loader .mark img { width: 100%; }
@keyframes loader-turn { to { transform: rotate(360deg); } }
.loader-txt {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .28em;
  text-indent: .28em;
  color: #8d88a0;
}


/* ---------- header ---------- */
.hd {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 3.2vw, 44px);
  transition: transform .55s var(--ease);
}
.hd.hide { transform: translateY(-120%); }
.hd .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .18em;
  color: var(--white);
}
.hd .brand img { width: 68px; height: 68px; }
.on-light .hd .brand, .hd.on-light .brand { color: #141218; }
.hd .pills { display: flex; gap: 10px; align-items: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 11px 22px;
  border-radius: 999px;
  transition: transform .35s var(--ease), background .3s ease, color .3s ease;
}
.pill:hover { transform: scale(1.05); }
.pill.solid { background: var(--white); color: #141218; }
.pill.solid:hover { background: var(--pink); color: var(--white); }
.pill.line { border: 1px solid var(--line-d); color: var(--white); backdrop-filter: blur(6px); }
.hd.on-light .pill.line { border-color: var(--line-l); color: #141218; }
.hd.on-light .pill.solid { background: #141218; color: var(--white); }
.pill .bars { display: inline-flex; flex-direction: column; gap: 4px; }
.pill .bars i { width: 16px; height: 1.6px; background: currentColor; transition: transform .35s var(--ease); }
.menu-open .pill .bars i:nth-child(1) { transform: translateY(2.8px) rotate(45deg); }
.menu-open .pill .bars i:nth-child(2) { transform: translateY(-2.8px) rotate(-45deg); }

/* fullscreen menu */
.menu {
  position: fixed; inset: 0;
  z-index: 900;
  background: rgba(12,12,16,.97);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu nav { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.menu nav a {
  font-size: clamp(34px, 5.6vw, 64px);
  font-weight: 300;
  letter-spacing: -.03em;
  color: var(--tx-dark);
  line-height: 1.25;
  transition: color .3s ease, letter-spacing .4s var(--ease);
}
.menu nav a:hover { color: var(--white); letter-spacing: .01em; }
.menu .m-label { position: absolute; bottom: 44px; color: #6d6880; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#hero3d { position: absolute; inset: 0; z-index: 1; }
#hero3d canvas { width: 100%; height: 100%; }
.hero .content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(20px, 3.2vw, 44px);
  margin-top: clamp(60px, 14vh, 160px); /* below centre, toward the mountain base */
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero .tagline {
  position: absolute;
  left: clamp(20px, 3.2vw, 44px);
  top: clamp(145px, 20vh, 235px);
  z-index: 2;
  pointer-events: none;
}
.hero .tagline .tg {
  font-size: clamp(52px, 7.5vw, 116px);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.08;
  color: var(--white);
  text-align: left;
}
@media (max-width: 860px) {
  .hero .tagline { position: static; margin: 34px clamp(20px, 3.2vw, 44px) 0; }
}
.hero h1.brand-big {
  font-size: clamp(40px, 5.6vw, 84px);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
}
.hero .hud-top { color: #8d88a0; margin-bottom: clamp(16px, 3vh, 30px); }
.hero .sub-line {
  margin-top: clamp(16px, 3vh, 28px);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 300;
  color: var(--tx-dark);
}
.hero .meta-card {
  position: absolute;
  right: clamp(20px, 3.2vw, 44px);
  bottom: 130px;
  z-index: 2;
  max-width: 250px;
  pointer-events: none;
}
.hero .meta-card .box {
  display: flex;
  border: 1px solid var(--line-d);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}
.hero .meta-card .box > div {
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tx-dark);
}
.hero .meta-card .box > div:first-child { border-right: 1px solid var(--line-d); white-space: nowrap; }
.hero .meta-card p { font-size: 14.5px; color: var(--tx-dark); line-height: 1.6; }
.hero .hints {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8d88a0;
  line-height: 2;
  pointer-events: none;
}
.hero .hints b { color: var(--white); font-weight: 500; }
@media (max-width: 860px) {
  .hero .meta-card { position: static; margin: 40px clamp(20px,3.2vw,44px) 0; max-width: 320px; }
  .hero { justify-content: flex-start; padding-bottom: 120px; }
}

/* ---------- marquee ---------- */
.marquee {
  position: relative;
  padding: clamp(60px, 10vh, 120px) 0 0;
  overflow: clip;
  background: var(--bg);
}
.marquee .track {
  display: flex;
  align-items: center;
  gap: clamp(40px, 5vw, 90px);
  width: max-content;
  will-change: transform;
  padding-bottom: 26px;
}
.marquee .word {
  font-size: clamp(72px, 12vw, 170px);
  font-weight: 300;
  letter-spacing: -.02em;
  color: var(--white);
  white-space: nowrap;
  line-height: 1;
}
.marquee .plus { font-size: clamp(28px, 3.4vw, 48px); color: #8d88a0; font-weight: 300; }
.marquee hr { border: 0; border-top: 1.5px solid rgba(255,255,255,.55); }
.marquee .tail {
  text-align: center;
  padding: 26px 0 60px;
  color: #8d88a0;
}
.marquee .tail::before { content: "✦ "; color: var(--pink); }

/* ---------- about ---------- */
.about {
  position: relative;
  padding: clamp(80px, 14vh, 170px) 0;
  background: var(--bg);
  overflow: clip;
}
.about .lbl { position: absolute; top: clamp(84px, 14vh, 174px); left: clamp(20px, 3.2vw, 44px); color: #8d88a0; }
.about .statement {
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.18;
  color: var(--white);
  max-width: 21ch;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 100px);
}
.about .statement .w { opacity: .14; display: inline-block; }
.about .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 120px);
  max-width: 1100px;
  margin: clamp(60px, 9vh, 110px) auto 0;
  padding: clamp(40px, 6vh, 70px) clamp(20px, 3.2vw, 44px) 0;
  border-top: 1px solid var(--line-d);
}
.about .cols .m-label { color: #8d88a0; display: block; margin-bottom: 16px; line-height: 1.9; }
.about .cols p { font-size: 16.5px; color: var(--tx-dark); max-width: 42ch; }
.about .cols .cta { margin-top: 26px; }
@media (max-width: 760px) { .about .cols { grid-template-columns: 1fr; } }

/* floating debris images behind about (parallax shards) */
.shard {
  position: absolute;
  border-radius: 6px;
  opacity: .5;
  pointer-events: none;
  will-change: transform;
  filter: saturate(.85);
}

/* ---------- work (light) ---------- */
.work {
  position: relative;
  background: linear-gradient(0deg, #ffffff 0%, #d6d5da 100%);
  color: var(--tx-light);
  padding: clamp(80px, 12vh, 150px) 0 clamp(60px, 9vh, 120px);
}
.work .head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(50px, 8vh, 90px);
}
.work h2 { font-size: clamp(40px, 6vw, 88px); }
.work .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 90px);
  align-items: start;
}
.work .col-r { margin-top: clamp(60px, 12vh, 160px); }
.project { display: block; margin-bottom: clamp(50px, 9vh, 110px); }
.project .media {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 16 / 10.6;
  background: #c9c8cf;
}
.project .media img, .project .media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.project:hover .media img, .project:hover .media video { transform: scale(1.05); }
.project .t {
  margin-top: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.project h3 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 400; letter-spacing: -.02em; color: #141218; }
.project p { font-size: 14.5px; max-width: 34ch; margin-top: 6px; }
.project .link-arrow { flex: 0 0 auto; font-size: 12px; }
@media (max-width: 760px) {
  .work .grid { grid-template-columns: 1fr; }
  .work .col-r { margin-top: 0; }
}

/* interstitial band */
.work .band {
  margin-top: clamp(20px, 4vh, 50px);
  background: var(--bg);
  border-radius: 14px;
  padding: clamp(50px, 9vh, 100px) clamp(24px, 5vw, 80px);
  text-align: center;
  color: var(--tx-dark);
}
.work .band h3 {
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 300;
  letter-spacing: -.02em;
  color: var(--white);
  max-width: 26ch;
  margin: 0 auto 30px;
}

/* ---------- key facts (light) ---------- */
.facts {
  background: linear-gradient(0deg, #c9c8cf 0%, #ffffff 55%);
  padding: clamp(70px, 11vh, 140px) 0;
  color: var(--tx-light);
}
.facts .head { text-align: center; margin-bottom: clamp(50px, 8vh, 90px); }
.facts h2 { font-size: clamp(44px, 6.4vw, 96px); }
.facts .sub { margin-top: 14px; font-size: 15px; }
.facts .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 34px);
  max-width: 1180px;
  margin: 0 auto;
}
.fact {
  border-radius: 16px;
  padding: 30px 30px 26px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.fact.dark { background: #17161d; color: var(--tx-dark); }
.fact.lite { background: #efeef2; }
.fact .m-label { display: block; text-align: center; color: inherit; opacity: .8; }
.fact .media { flex: 1; display: grid; place-items: center; padding: 26px 0; }
.fact .media img { border-radius: 10px; max-height: 230px; object-fit: cover; }
.fact .big {
  font-size: clamp(54px, 5vw, 76px);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--white);
  font-variant-numeric: tabular-nums; /* equal-width digits — no reflow while counting */
  white-space: nowrap;
}
.fact.lite .big { color: #141218; }
.fact .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; font-size: 13.5px; }
.fact .ring {
  width: 190px; height: 190px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 30px 60px rgba(20,18,24,.14);
}
@media (max-width: 900px) { .facts .cards { grid-template-columns: 1fr; } .fact { min-height: 340px; } }

/* ---------- reel banner ---------- */
.reel {
  background: var(--bg);
  padding: clamp(70px, 11vh, 150px) 0;
  overflow: clip;
}
.reel .frame {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  transform: scale(.8);
  will-change: transform;
  position: relative;
}
.reel video { width: 100%; aspect-ratio: 16/8.2; object-fit: cover; }
.reel .cap {
  position: absolute;
  left: 30px; bottom: 24px;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
}

/* ---------- services (pinned rock) ---------- */
.services { position: relative; background: var(--bg); }
.services .stage {
  position: relative;
  height: 100svh;
  overflow: clip;
  display: flex;
  align-items: center;
  justify-content: center;
}
#rock3d { position: absolute; inset: 0; z-index: 1; }
.services .lbl {
  position: absolute;
  top: 100px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #8d88a0;
}
.svc-stack {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}
.svc-stack .word {
  font-size: clamp(36px, min(8.6vw, 10vh), 128px);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: .98;
  color: var(--white);
  display: block;
  will-change: transform, opacity;
}
.svc-beat {
  position: absolute;
  z-index: 3;
  max-width: 300px;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}
.svc-beat h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 400; letter-spacing: -.02em; color: var(--white); margin-bottom: 14px; }
.svc-beat p { font-size: 14.5px; color: var(--tx-dark); }
.svc-beat.-l { left: clamp(24px, 7vw, 120px); }
.svc-beat.-r { right: clamp(24px, 7vw, 120px); text-align: left; }
.svc-beat.-t { top: 24%; }
.svc-beat.-b { bottom: 20%; }
.services .view {
  position: absolute;
  right: clamp(24px, 4vw, 60px);
  bottom: 44px;
  z-index: 3;
  color: var(--white);
}
.services .tail-note {
  position: absolute;
  bottom: 44px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #8d88a0;
}
.services .tail-note::before { content: "✦ "; color: var(--orange); }
@media (max-width: 860px) {
  .svc-beat { max-width: 230px; }
  .svc-beat.-l { left: 20px; } .svc-beat.-r { right: 20px; }
}

/* ---------- motion (arc carousel, light) ---------- */
.motion {
  position: relative;
  background: linear-gradient(0deg, #c3c3c8 0%, #ffffff 40%);
  color: var(--tx-light);
  padding: clamp(80px, 12vh, 150px) 0 0;
  overflow: clip;
  min-height: 130svh;
}
.motion h2 {
  font-size: clamp(52px, 8.4vw, 130px);
  text-align: center;
  line-height: 1;
}
.motion h2 .l1 { display: block; transform: translateX(-6%); }
.motion h2 .l2 { display: block; transform: translateX(10%); margin-top: .12em; }
.motion .mid {
  text-align: center;
  margin: 18px 0 0;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.motion .arc {
  position: relative;
  height: 70svh;
  margin-top: clamp(30px, 5vh, 70px);
}
.arc .disc {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2600px; height: 2600px;
  transform: translateX(-50%);
  will-change: transform;
}
.arc .card {
  position: absolute;
  top: 0; left: 50%;
  width: clamp(200px, 22vw, 320px);
  aspect-ratio: 16/10.4;
  border-radius: 10px;
  overflow: hidden;
  transform-origin: center 1300px; /* half disc — cards orbit the disc centre */
  box-shadow: 0 24px 60px rgba(20,18,24,.25);
}
.arc .card img { width: 100%; height: 100%; object-fit: cover; }
.motion .foot {
  position: absolute;
  bottom: 34px; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(20px, 3.2vw, 44px);
}
.motion .foot p { font-size: 14px; max-width: 34ch; }

/* ---------- footer ---------- */
.ft {
  position: relative;
  background: var(--bg);
  padding: clamp(80px, 12vh, 140px) 0 0;
  overflow: clip;
}
.ft .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 0 clamp(20px, 3.2vw, 44px);
}
.ft .m-label { color: #8d88a0; }
.ft h2 {
  font-size: clamp(44px, 6.6vw, 100px);
  margin-top: 18px;
  max-width: 12ch;
}
.ft .right { text-align: left; margin-top: 8px; }
.ft .clock { font-family: var(--font-mono); font-size: 13px; letter-spacing: .18em; color: #8d88a0; }
.ft .collab { margin-top: 60px; color: var(--white); }
.ft .cols {
  display: flex;
  gap: clamp(40px, 7vw, 120px);
  padding: clamp(50px, 8vh, 80px) clamp(20px, 3.2vw, 44px) 0;
}
.ft .cols h5 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: #8d88a0; margin-bottom: 14px; }
.ft .cols a { display: block; padding: 4px 0; font-size: 15.5px; color: var(--tx-dark); transition: color .3s; }
.ft .cols a:hover { color: var(--white); }
#wordmark { width: 100%; height: clamp(200px, 30vw, 430px); display: block; margin-top: clamp(30px, 6vh, 60px); cursor: crosshair; }
.ft .bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 3.2vw, 44px) 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #6d6880;
  border-top: 1px solid var(--line-d);
}
@media (max-width: 760px) {
  .ft .top { flex-direction: column; }
  .ft .cols { flex-wrap: wrap; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .loader .mark { animation: none; }
  .split-line > .inner { transform: none !important; }
  .about .statement .w { opacity: 1 !important; }
}

/* light-section headline colour fix */
.work .h-display, .facts .h-display, .motion .h-display { color: #141218; }
.work .link-arrow:not(.band .link-arrow), .facts .link-arrow, .motion .link-arrow { color: #33303e; }
.work .link-arrow:hover, .motion .link-arrow:hover { color: var(--pink); }

/* ---------- blade CTA (GSAP-animated hover) ---------- */
.btn-blade {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 17px 34px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pink);
  background: var(--pink);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  isolation: isolate;
  cursor: pointer;
  will-change: transform;
}
.btn-blade .fill {
  position: absolute; inset: 1.6px;
  background: var(--bg);
  clip-path: polygon(17px 0, 100% 0, 100% calc(100% - 17px), calc(100% - 17px) 100%, 0 100%, 0 17px);
  z-index: -1;
  transform-origin: right center;
}
.btn-blade .dmd {
  width: 10px; height: 10px;
  background: currentColor;
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.btn-blade .lbl { position: relative; }
.hero .cta-row { margin-top: clamp(24px, 4vh, 40px); pointer-events: auto; }

/* hint icons (lucide) */
.hints .ic { display: inline-block; vertical-align: -2px; }
.hints .hint-ic { width: 13px; height: 13px; display: inline-block; }
.hints .ic.-amber { color: var(--orange); }
.hints .ic.-pink { color: var(--pink); }

/* ---------- the ascent (climb) section ---------- */
.climb {
  position: relative;
  overflow: clip;
  padding: clamp(100px, 14vh, 180px) 0;
  color: var(--tx-light);
  background: #e9e6f0;
}
.climb-bg {
  position: absolute;
  left: 0; top: -12%;
  width: 100%; height: 124%;
  object-fit: cover;
  opacity: .92;
  will-change: transform;
}
.climb::before, .climb::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 120px;
  z-index: 2;
  pointer-events: none;
}
.climb::before { top: 0; background: linear-gradient(to bottom, #0c0c10, transparent); }
.climb::after { bottom: 0; background: linear-gradient(to top, #0c0c10, transparent); }
.climb-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.climb-copy h2 { font-size: clamp(52px, 7.5vw, 116px); color: #141218; margin: 16px 0 30px; }
.climb-copy h2 em { font-style: normal; }
.climb-copy .m-label { color: #6e6884; }
.climb-copy p { max-width: 44ch; margin-bottom: 16px; font-size: 16.5px; }
.climb-copy .link-arrow { margin-top: 12px; color: #33303e; }
.climb-media { position: relative; }
.climb-media { position: relative; }
.climb-media video {
  width: 118%;
  max-width: none;
  margin: -16% -16% -4% -2%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 90%, transparent 100%),
                      linear-gradient(to bottom, transparent 0%, black 26%, black 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, black 20%, black 90%, transparent 100%),
              linear-gradient(to bottom, transparent 0%, black 26%, black 84%, transparent 100%);
  mask-composite: intersect;
}
.anno {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 12px;
  color: #fafafc;
  text-shadow: 0 1px 8px rgba(10,8,14,.65);
  pointer-events: none;
}
.anno i {
  display: block;
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(250,250,252,.9), rgba(250,250,252,.35));
  position: relative;
}
.anno i::after {
  content: "";
  position: absolute;
  right: -4px; top: -3.5px;
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
}
.anno .-num { font-weight: 600; }
.anno.-a { top: 21%; left: 7%; width: 50%; }
.anno.-b { top: 58%; left: 16%; width: 38%; }
@media (max-width: 860px) {
  .climb-inner { grid-template-columns: 1fr; }
  .anno.-a { width: 44%; }
}

/* clouds draped over the climb video edges */
.climb-media .cloud {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .42;
}
.climb-media .cloud.-top {
  top: -22%;
  left: 26%;
  width: 78%;
  max-width: none;
  -webkit-mask-image: radial-gradient(72% 58% at 50% 46%, black 22%, transparent 62%);
  mask-image: radial-gradient(72% 58% at 50% 46%, black 22%, transparent 62%);
  animation: cloud-drift 26s ease-in-out infinite alternate;
}
.climb-media .cloud.-right {
  top: 58%;
  right: -18%;
  width: 44%;
  max-width: none;
  -webkit-mask-image: radial-gradient(62% 68% at 50% 50%, black 24%, transparent 60%);
  mask-image: radial-gradient(62% 68% at 50% 50%, black 24%, transparent 60%);
  animation: cloud-drift 32s ease-in-out infinite alternate-reverse;
}
@keyframes cloud-drift {
  from { transform: translateX(-2.5%); }
  to { transform: translateX(2.5%); }
}
@media (prefers-reduced-motion: reduce) { .climb-media .cloud { animation: none; } }

/* dark mountain mass anchoring the right edge (Pixila-style) */
.climb .rock-edge {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  height: 100%;
  width: clamp(130px, 21vw, 360px);
  z-index: 2;
  pointer-events: none;
}

/* climb milestones — appear as he ascends */
.mile {
  position: absolute;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #1d1a26;
  text-shadow: 0 1px 6px rgba(255,255,255,.7), 0 0 16px rgba(255,255,255,.45);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.mile::before {
  content: "◆ ";
  color: var(--pink);
}
.mile b { font-weight: 700; }
.mile.-m1 { left: 8%; bottom: 22%; }
.mile.-m2 { left: 5%; top: 46%; }
.mile.-m3 { left: 12%; top: 26%; }
.mile.-m4 { left: 30%; top: 9%; font-size: 14px; }

/* ---------- full-bleed ascent rework ---------- */
.climb { height: 100svh; min-height: 640px; padding: 0; background: #0c0c10; }
.climb > #climbVid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: left center;
  margin: 0;
  -webkit-mask-image: linear-gradient(to right, black 90%, transparent 99.5%);
  mask-image: linear-gradient(to right, black 90%, transparent 99.5%);
}
.climb::before, .climb::after { height: 90px; }
.climb-overlay { position: absolute; inset: 0; z-index: 3; }
.climb-copy {
  position: absolute;
  right: clamp(20px, 3.2vw, 44px);
  top: clamp(100px, 15vh, 170px);
  max-width: min(470px, 36vw);
  text-align: left;
}
.climb-copy .m-label {
  color: var(--pink);
  font-weight: 700;
  font-size: 13px;
  text-shadow: 0 1px 3px rgba(255,255,255,.45);
}
.climb-copy h2 { font-size: clamp(38px, 5vw, 76px); color: var(--white); }
.climb-copy p {
  color: #eae6f0;
  font-weight: 500;
  font-size: 17px;
  text-shadow: 0 1px 8px rgba(10, 8, 14, .55);
}
.climb-copy .link-arrow {
  color: var(--pink);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255,255,255,.4);
}
.climb-copy .link-arrow:hover { color: #c2187a; }
.climb-overlay .anno.-a { top: 15%; left: calc(min(100vw, 100svh * 1.7778) * 0.62); width: 17%; }
.climb-overlay .anno.-b { top: 21%; left: calc(min(100vw, 100svh * 1.7778) * 0.62); width: 15%; }
.climb-overlay .mile.-m1 { left: 5%; bottom: 14%; }
.climb-overlay .mile.-m4 { left: 34%; top: 9%; }
@media (max-width: 860px) {
  .climb > #climbVid { object-position: 70% center; }
  .climb-copy { max-width: 82vw; }
  .climb-overlay .anno.-a { left: 8%; width: 40%; }
  .climb-overlay .anno.-b { display: none; }
}

/* big screens: video keeps its natural size, brown rock backdrop fills the rest */
@media (min-width: 1700px) {
  .climb-copy .m-label { color: #b9b2c6; text-shadow: none; }
  .climb-copy h2 { color: var(--white); }
  .climb-copy p { color: #d8d3e0; text-shadow: none; }
  .climb-copy .link-arrow { text-shadow: none; }
  .climb-overlay .mile, .climb-overlay .anno { color: #efeaf4; text-shadow: 0 1px 8px rgba(10,8,14,.6); }
}

/* jagged mountain ridge overlapping the video bottom (pixila-style) */
.climb-ridge {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: clamp(50px, 7vw, 100px);
  z-index: 4;
  pointer-events: none;
}
.climb-ridge.-top {
  bottom: auto;
  top: -1px;
  transform: scale(-1, -1); /* mirrored + tilted the other way */
}

/* pixila seam: dark mountain range rising into the promo pink, flag on the peak */
.promo-ridge {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: clamp(96px, 13vw, 200px);
  z-index: 3;
  pointer-events: none;
}

/* ---------- summit: scroll-hijacked case gallery (dark) ---------- */
.summit { position: relative; background: var(--bg); padding: clamp(56px, 9vh, 100px) 0 clamp(88px, 13vh, 150px); overflow-x: clip; }

/* pixila "vos projets" ticker — names scroll horizontally across the summit top */
.summit-names {
  overflow: clip;
  margin-bottom: clamp(36px, 5vw, 64px);
  /* pixila: the ticker runs a couple of degrees off-horizontal */
  rotate: -2deg;
  width: 106%;
  margin-left: -3%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.summit-names .ntrack {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: names-x 38s linear infinite;
}
.summit-names .nm {
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 900; /* thick, like pixila's logo strip */
  letter-spacing: -.02em;
  color: rgba(250, 250, 252, .92);
  white-space: nowrap;
  line-height: 1;
  margin-right: clamp(26px, 3.2vw, 52px); /* margins (not gap) so -50% loops seamlessly */
}
.summit-names .sep {
  color: var(--pink);
  font-size: clamp(12px, 1.2vw, 18px);
  margin-right: clamp(26px, 3.2vw, 52px);
}
@keyframes names-x { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .summit-names .ntrack { animation: none; } }
.summit-stage {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(20px, 3.2vw, 44px);
}
.summit-head { max-width: 680px; margin: 0 auto clamp(34px, 4.2vw, 58px); text-align: center; }
.summit-head .m-label { color: #8d88a0; }
.summit-head h2 { font-size: clamp(38px, 4.6vw, 70px); margin: 14px 0 20px; }
.summit-head h2 .sl { display: block; }
.summit-head p { color: var(--tx-dark); max-width: 54ch; margin-inline: auto; }
/* pixila chevron — thin mountain outline that draws in on scroll */
.peak-line { display: block; width: clamp(110px, 13vw, 180px); margin: 0 auto 18px; overflow: visible; }
.peak-line polygon {
  fill: none;
  stroke: rgba(240, 50, 156, .7);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

/* summit — separate coloured cards, urbi bento style (checkerboard light/dark) */
.summit-panel { background: none; border: 0; border-radius: 0; padding: 0; }
.summit-panel .summit-head { margin-bottom: clamp(30px, 4vw, 54px); }
.case-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 1.5vw, 24px);
}
.summit .scase {
  position: relative;
  grid-column: span 6;
  min-height: clamp(380px, 44vh, 500px);
  border-radius: 0; /* pixila: square corners */
  --notch: clamp(44px, 4.4vw, 62px);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  padding: clamp(24px, 2.2vw, 34px) clamp(24px, 2.2vw, 34px) 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: translate .5s var(--ease), filter .5s var(--ease);
}
.summit .scase.s7 { grid-column: span 7; }
.summit .scase.s5 { grid-column: span 5; }
.summit .scase.s6 { grid-column: span 6; }
.summit .scase.s3 { grid-column: span 3; }
.summit .scase.s3 .txt p { font-size: 14px; }
.summit .scase.is-dark {
  background: linear-gradient(165deg, #231a37 0%, #191227 46%, #120e1d 100%);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.summit .scase.is-light {
  background: linear-gradient(172deg, #f8f7fb 0%, #ebe9f0 100%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 #fff;
}
.summit .scase:hover { translate: 0 -8px; }
.summit .scase.is-dark:hover  { filter: drop-shadow(0 26px 28px rgba(88, 60, 170, .4)); }
.summit .scase.is-light:hover { filter: drop-shadow(0 26px 28px rgba(12, 12, 16, .45)); }
/* floating 3D object — one glossy hero object per card (pixila-style) */
.summit .scase .obj3d {
  position: absolute; z-index: 0; pointer-events: none;
  left: 50%; bottom: clamp(185px, 28vh, 262px);
  width: clamp(200px, 30vh, 315px); height: auto;
  margin: 0 0 0 calc(-1 * clamp(100px, 15vh, 157px));
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .38));
  animation: obj-bob 8s ease-in-out infinite;
}
.summit .scase.is-light .obj3d { filter: drop-shadow(0 14px 20px rgba(20, 18, 34, .28)); }
.summit .scase:nth-child(2n) .obj3d { animation-duration: 8s; animation-delay: -2.6s; }
.summit .scase:hover .obj3d { animation-duration: 5s; }
@keyframes obj-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-13px); }
}
@media (prefers-reduced-motion: reduce) { .summit .scase .obj3d { animation: none; } }


/* orbit rings — a live light path travels the circles on mouse-over */
@property --oa { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.summit .scase .orb-ring {
  position: absolute; z-index: 0; pointer-events: none;
  border-radius: 50%; padding: 1.6px; opacity: 0;
  background: conic-gradient(from var(--oa),
    transparent 0deg 292deg, rgba(62,184,240,.45) 318deg,
    rgba(168,85,247,.7) 342deg, transparent 360deg);
  -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;
  transition: opacity .5s var(--ease);
}
.summit .scase.is-light .orb-ring {
  background: conic-gradient(from var(--oa),
    transparent 0deg 292deg, rgba(47,116,208,.4) 318deg,
    rgba(120,70,220,.6) 342deg, transparent 360deg);
}
.summit .scase .orb-ring.r1 { width: clamp(96px, 9vw, 132px);  height: clamp(96px, 9vw, 132px);  top: 7%;  right: 6%; }
.summit .scase .orb-ring.r2 { width: clamp(128px, 12vw, 176px); height: clamp(128px, 12vw, 176px); top: 24%; left: -5%; }
.summit .scase:hover .orb-ring { opacity: 1; animation: orb-spin 2.4s linear infinite; }
.summit .scase:hover .orb-ring.r2 { animation-duration: 3.4s; animation-direction: reverse; }
@keyframes orb-spin { to { --oa: 360deg; } }
@media (prefers-reduced-motion: reduce) { .summit .scase:hover .orb-ring { animation: none; opacity: .5; } }

/* card background texture — faint rings + dot grid so cards never look empty */
.summit .scase::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 86% 14%, transparent 52px, rgba(255,255,255,.06) 53px, transparent 55px),
    radial-gradient(circle at 86% 14%, transparent 90px, rgba(255,255,255,.045) 91px, transparent 93px),
    radial-gradient(circle at 8% 92%, transparent 66px, rgba(255,255,255,.04) 67px, transparent 69px),
    radial-gradient(rgba(255,255,255,.04) 1px, transparent 1.5px);
  background-size: auto, auto, auto, 26px 26px;
}
.summit .scase.is-light::before {
  background:
    radial-gradient(circle at 86% 14%, transparent 52px, rgba(20,18,34,.07) 53px, transparent 55px),
    radial-gradient(circle at 86% 14%, transparent 90px, rgba(20,18,34,.05) 91px, transparent 93px),
    radial-gradient(circle at 8% 92%, transparent 66px, rgba(20,18,34,.05) 67px, transparent 69px),
    radial-gradient(rgba(20,18,34,.055) 1px, transparent 1.5px);
  background-size: auto, auto, auto, 26px 26px;
}

/* pixila pinned horizontal gallery (desktop, applied by JS as .h-scroll)
   — compact vertical rhythm so the whole pinned stage fits inside 100vh */
.summit.h-scroll { padding: 0; }
.summit.h-scroll .summit-stage {
  overflow: clip; position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
}
.summit.h-scroll .summit-stage::before,
.summit.h-scroll .summit-stage::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(40px, 5vw, 80px);
  z-index: 3; pointer-events: none;
}
.summit.h-scroll .summit-stage::before { left: 0;  background: linear-gradient(90deg, #0c0c10, transparent); }
.summit.h-scroll .summit-stage::after  { right: 0; background: linear-gradient(-90deg, #0c0c10, transparent); }
.summit > .summit-names {
  /* anchored just below the lowest valley of the zigzag (65% down the ridge) */
  position: absolute; top: calc(clamp(96px, 13vw, 200px) * -0.35 + 34px); left: -3%;
  margin: 0; z-index: 4;
}

.summit.h-scroll .peak-line {
  position: absolute; z-index: 0;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
}
.summit.h-scroll .peak-line polygon {
  vector-effect: none;   /* non-scaling-stroke breaks dash math on stretched SVGs */
  stroke-width: .28;     /* user units — ~3px at full-screen stretch */
}
.summit.h-scroll .summit-head {
  position: absolute; z-index: 2;
  left: 50%; top: 50%;
  translate: -50% -50%;
  margin: 0; width: 92%; max-width: 1080px;
}
.summit.h-scroll .summit-head h2 { font-size: clamp(60px, 8.2vw, 132px); margin: 14px 0 20px; }
.summit.h-scroll .summit-head p { font-size: clamp(15px, 1.3vw, 19px); }
.summit.h-scroll .case-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(18px, 1.6vw, 26px);
  width: max-content;
  will-change: transform;
  padding-right: 4vw;
}
.summit.h-scroll .scase { flex: 0 0 auto; min-height: 0; height: var(--cardH, min(56vh, 520px)); }
/* short screens: shed header weight so cards keep room */
@media (max-height: 800px) {
  .summit.h-scroll .summit-head h2 { font-size: clamp(44px, 6vw, 84px); }
}
.summit.h-scroll .scase.s7, .summit.h-scroll .scase.s6 { width: clamp(420px, 36vw, 560px); }
.summit.h-scroll .scase.s5 { width: clamp(390px, 32vw, 510px); }
.summit.h-scroll .scase.s3 { width: clamp(350px, 28vw, 450px); }
/* finale CTA — appears centred beneath the re-drawn line */
.summit.h-scroll .summit-cta {
  position: absolute; z-index: 3;
  left: 50%; top: 84%;
  translate: -50% 0;
  margin: 0;
  visibility: hidden; /* GSAP reveals it in the finale */
}
.summit .scase .txt {
  position: relative; z-index: 3; max-width: 34ch;
  order: 2; margin-top: auto;
  padding-bottom: clamp(20px, 2.6vw, 34px);
}
.summit .scase h3 {
  font-size: clamp(29px, 2.9vw, 42px);
  font-weight: 500;
  letter-spacing: -.022em;
  line-height: 1.14;
  padding-bottom: .05em; /* keeps gradient-keyword descenders unclipped */
}
.summit .scase h3 .grad-text {
  background: linear-gradient(92deg, #a855f7, #f0329c);
  -webkit-background-clip: text;
  background-clip: text;
}
.summit .scase.is-dark h3 { color: var(--white); }
.summit .scase.is-light h3 { color: #141218; }
.summit .scase .txt p {
  margin-top: 12px;
  font-size: 17.5px;
  line-height: 1.6;
}
.summit .scase.is-dark .txt p { color: rgba(226, 221, 240, .68); }
.summit .scase.is-light .txt p { color: #57515f; }
.summit .scase .shot {
  position: relative;
  order: 1;
  flex: 1;
  min-height: 190px;
  margin: clamp(18px, 2vw, 26px) calc(-1 * clamp(24px, 2.2vw, 34px)) 0;
}
.summit .scase .ill { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* scene palettes per card colour */
.summit .is-dark .ill { --ln: rgba(255,255,255,.24); --ac: #7cc4f5; --ac2: #c39bf7; --gl: rgba(168,85,247,.55); }
.summit .is-light .ill { --ln: rgba(20,18,34,.22); --ac: #6a37d4; --ac2: #2f74d0; --gl: rgba(120,70,220,.3); }
.summit .is-light .ill .bgl { stroke: rgba(20,18,34,.07); }
.summit .is-light .ill .f-wht { stroke: rgba(20,18,34,.28); stroke-width: 1.5; }
.summit .is-light .ill .pkt { fill: #7a3ff2; filter: drop-shadow(0 0 6px rgba(122,63,242,.7)); }
.summit .is-light .ill .wline { stroke: #fff; }
.summit .ill .f-blue { fill: #3eb8f0; }
.summit .ill .f-vio  { fill: #a855f7; }
.summit .ill .f-pink { fill: #f0329c; }
.summit .ill .f-org  { fill: #f5813c; }
.summit .ill .f-grn  { fill: #4ade80; }
.summit .ill .f-red  { fill: #ef4444; }
.summit .ill .f-wht  { fill: #fff; }
.summit .ill .wline  { stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.summit .ill .bgl    { stroke: rgba(255,255,255,.10); stroke-width: 1.4; fill: none; }
.summit .ill .pkt    { fill: #fff; opacity: 0; filter: drop-shadow(0 0 6px rgba(124,196,245,.9)); }
.summit .ill .s-pink { stroke: #f0329c; }
.summit .ill .s-blue { stroke: #3eb8f0; }
.summit .ill .fence  { fill: rgba(74,222,128,.10); stroke: #4ade80; stroke-width: 1.6; stroke-dasharray: 7 5; }

.summit .ill .frame, .summit .ill .axis, .summit .ill .tline,
.summit .ill .edge, .summit .ill .cross, .summit .ill .lock {
  fill: none; stroke: var(--ln); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.summit .ill .dataline, .summit .ill .shield {
  fill: none; stroke: var(--ac); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 4px var(--gl));
}
.summit .ill .rring, .summit .ill .ping { fill: none; stroke: var(--ac); stroke-width: 2; }
.summit .ill .bar  { fill: var(--ac); opacity: .85; }
.summit .ill .node { fill: var(--ac2); }
.summit .ill .node.hub, .summit .ill .lead { fill: var(--ac); filter: drop-shadow(0 0 6px var(--gl)); }

/* draw-in prep (added by JS as .will-draw, only when motion allowed) */
.summit .scase.will-draw .ill .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.summit .scase.will-draw .ill .pop  { opacity: 0; transform: scale(.3);  transform-box: fill-box; transform-origin: center; }
.summit .scase.will-draw .ill .grow { transform: scaleY(0); transform-box: fill-box; transform-origin: bottom; }
.summit .scase.will-draw .ill .rring { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* draw-in play (added by JS on scroll-into-view as .drawn) */
.summit .scase.drawn .ill .draw { animation: sc-draw .95s var(--ease) forwards; }
.summit .scase.drawn .ill .pop  { animation: sc-pop  .55s var(--ease) forwards; }
.summit .scase.drawn .ill .grow { animation: sc-grow .7s  var(--ease) forwards; }
.summit .scase.drawn .ill .d2 { animation-delay: .12s; }
.summit .scase.drawn .ill .d3 { animation-delay: .24s; }
.summit .scase.drawn .ill .d4 { animation-delay: .36s; }
.summit .scase.drawn .ill .d5 { animation-delay: .48s; }
.summit .scase.drawn .ill .d6 { animation-delay: .60s; }
@keyframes sc-draw { to { stroke-dashoffset: 0; } }
@keyframes sc-pop  { to { opacity: 1; transform: scale(1); } }
@keyframes sc-grow { to { transform: scaleY(1); } }

/* rest state: scenes are STILL — all motion is hover-only (urbi help-card behaviour) */
.summit .ill .lead.f-pink { fill: #f0329c; }
.summit .ill .scanbar  { fill: #3eb8f0; opacity: 0; }
.summit .ill .ping     { opacity: 0; stroke: #f0329c; }
.summit .ill .sweep    { transform-box: view-box; transform-origin: 240px 123px; }
@keyframes sc-pulse    { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes sc-scanmove { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .75; } 88% { opacity: .75; } 100% { transform: translateY(200px); opacity: 0; } }
@keyframes sc-ping     { 0% { opacity: .6; transform: scale(1); transform-box: fill-box; transform-origin: center; } 70%,100% { opacity: 0; transform: scale(3.2); transform-box: fill-box; transform-origin: center; } }
@keyframes sc-ringpulse{ 0%,100% { opacity: .25; } 45% { opacity: .65; } }
@keyframes sc-spin     { to { transform: rotate(360deg); } }
@keyframes sc-flow     { to { stroke-dashoffset: -36; } }
@keyframes sc-alarm    { 0%,100% { transform: scale(1); } 50% { transform: scale(1.3); } }

/* mouse-over: the scene comes alive (per-card accent set) */
.summit .scase:hover .ill { filter: brightness(1.14); }
.summit .scase:hover .ill .dataline,
.summit .scase:hover .ill .shield,
.summit .scase:hover .ill .node.hub { filter: drop-shadow(0 0 9px var(--gl)); }
/* all four scenes are GSAP-driven on hover (main.js) — .live disables the
   CSS draw-fill so inline GSAP transforms can take over after first hover */
.summit .scase.live .ill .draw  { animation: none; stroke-dasharray: 1; stroke-dashoffset: 0; }
.summit .scase.live .ill .pop   { animation: none; opacity: 1; transform: none; }
.summit .scase.live .ill .grow  { animation: none; transform: none; }
.summit .scase.live .ill .rring { animation: none; stroke-dasharray: 1; stroke-dashoffset: 0; }
.summit .ill .blip { fill: #f0329c; opacity: 0; filter: drop-shadow(0 0 7px rgba(240,50,156,.8)); }

@media (prefers-reduced-motion: reduce) {
  .summit .scase:hover { translate: none; }
  /* show the final illustration, no drawing / no ambient loops */
  .summit .scase .ill * { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1; transform: none !important; }
  .summit .scase .ill .sweep { opacity: .18; }
}

.summit-cta { margin-top: clamp(32px, 4vw, 54px); }

@media (max-width: 860px) {
  .summit { padding: 70px 0; }
  .case-grid { grid-template-columns: 1fr; gap: 18px; }
  .summit .scase,
  .summit .scase.s7,
  .summit .scase.s6,
  .summit .scase.s5,
  .summit .scase.s3 { grid-column: 1 / -1; min-height: 440px; }
  .summit .scase .obj3d {
    width: clamp(125px, 34vw, 170px);
    bottom: 176px;
    margin-left: calc(-1 * clamp(62.5px, 17vw, 85px));
  }
  .summit .scase h3 { font-size: 26px; }
  .summit .scase .txt p { font-size: 15px; }
}

/* ---------- promo: accent statement (pixila-style intro) ---------- */
.promo {
  background: linear-gradient(120deg, #e12b93 0%, var(--pink) 45%, #b81f9e 100%);
  text-align: center;
  /* extra bottom room so the mountain ridge never covers the content */
  padding: clamp(100px, 16vh, 190px) 0 calc(clamp(70px, 10vh, 120px) + clamp(96px, 13vw, 200px));
  position: relative;
  overflow: clip;
}
.promo h2 {
  font-size: clamp(46px, 8vw, 118px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .98;
  color: #2a0620;
}
.promo h2 .white { color: var(--white); }
.promo .sub {
  max-width: 620px;
  margin: 30px auto 36px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(15px, 1.5vw, 19px);
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.6;
  color: rgba(42, 6, 32, .82);
}
.promo .link-arrow { color: #2a0620; }
.promo .link-arrow:hover { color: var(--white); }

/* ---------- questions (faq) ---------- */
.faq {
  background: linear-gradient(0deg, #c9c8cf 0%, #ffffff 55%);
  color: var(--tx-light);
  padding: clamp(90px, 13vh, 160px) 0;
}
.faq .head { text-align: center; margin-bottom: clamp(40px, 7vh, 70px); }
.faq .head .m-label { color: #6e6884; }
.faq h2 { font-size: clamp(40px, 5.6vw, 88px); margin-top: 10px; color: #141218; }
.faq .items { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid rgba(12,12,16,.16); }
.faq details:first-of-type { border-top: 1px solid rgba(12,12,16,.16); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 500;
  color: #141218;
  transition: color .3s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--pink); }
.faq summary .x { position: relative; width: 16px; height: 16px; flex: 0 0 auto; }
.faq summary .x::before, .faq summary .x::after {
  content: "";
  position: absolute;
  background: var(--pink);
  transition: transform .4s var(--ease);
}
.faq summary .x::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq summary .x::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq details[open] summary .x::after { transform: scaleY(0); }
.faq details p { padding: 0 4px 26px; max-width: 90%; font-size: 15.5px; }
.faq-cta { text-align: center; margin-top: 48px; }
.btn-blade.-ink { background: #141218; color: #141218; }
.btn-blade.-ink .fill { background: #ececef; }
.btn-blade.-ink:hover { color: #ececef; }

/* header logo hidden on the last page (footer) */
.hd.no-brand .brand { opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.hd .brand { transition: opacity .4s ease; }

/* footer credits */
.ft .bar .credits a { color: #9c97ad; text-decoration: none; transition: color .3s; }
.ft .bar .credits a:hover { color: var(--pink); }

.ft .bar .credits { display: inline-flex; align-items: center; gap: 8px; }
.cr-logo { height: 22px; width: auto; display: inline-block; vertical-align: middle; opacity: .85; transition: opacity .3s; }
.credits a:hover .cr-logo { opacity: 1; }

/* ---------- wire: the impossible (text left, video right) ---------- */
.wire {
  position: relative;
  height: 100svh;
  min-height: 620px;
  background: #0c0c10;
  overflow: clip;
}
.wire > #wireVid {
  position: absolute;
  right: 0; top: 0;
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: right center;
  clip-path: polygon(6% 0%, 100% 0%, 100% 100%, 6% 100%, 2% 92%, 7% 83%, 2% 74%, 6% 65%, 1% 56%, 6% 47%, 2% 38%, 7% 29%, 2% 20%, 6% 11%);
}
.wire-copy {
  position: absolute;
  left: clamp(20px, 3.2vw, 44px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  max-width: min(470px, 38vw);
}
.wire-copy .m-label { color: var(--pink); font-weight: 700; }
.wire-copy h2 { font-size: clamp(38px, 5vw, 78px); margin: 14px 0 22px; color: var(--white); }
.wire-copy p { color: #d8d3e0; margin-bottom: 20px; max-width: 42ch; text-shadow: 0 1px 8px rgba(10,8,14,.5); }
.wire-copy .link-arrow { color: var(--pink); }
@media (max-width: 860px) {
  .wire { height: auto; padding: 70px 0; }
  .wire > #wireVid { position: relative; width: 100%; height: auto; }
  .wire-copy { position: static; transform: none; max-width: 88vw; margin: 30px clamp(20px,3.2vw,44px) 0; }
}

/* wire: dark blend bands top & bottom like the ascent */
.wire::before, .wire::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 100px;
  z-index: 2;
  pointer-events: none;
}
.wire::before { top: 0; background: linear-gradient(to bottom, #0c0c10, transparent); }
.wire::after { bottom: 0; background: linear-gradient(to top, #0c0c10, transparent); }

/* ================= subpages (trionn system) ================= */
.sub-hero {
  min-height: 58svh;
  display: flex;
  align-items: flex-end;
  padding: 160px clamp(20px, 3.2vw, 44px) 70px;
  position: relative;
  background: radial-gradient(70% 55% at 72% 12%, rgba(240,50,156,.14), transparent 62%), var(--bg);
  overflow: clip;
}
.sub-hero .inner-wrap { max-width: 1360px; margin: 0 auto; width: 100%; }
.sub-hero .m-label { color: var(--pink); font-weight: 700; }
.sub-hero h1 { font-size: clamp(46px, 7vw, 106px); margin-top: 14px; }
.sub-hero p.lead { max-width: 58ch; color: var(--tx-dark); margin-top: 24px; font-size: 17px; }
.sub-sec { padding: clamp(70px, 10vh, 130px) 0; position: relative; }
.sub-sec.-light { background: linear-gradient(0deg, #c9c8cf 0%, #ffffff 60%); color: var(--tx-light); }
.sub-sec.-light .h-display { color: #141218; }
.sub-sec .shead { max-width: 760px; margin-bottom: 50px; }
.sub-sec .shead h2 { font-size: clamp(34px, 4.6vw, 66px); margin-top: 12px; }
.sub-sec .shead .m-label { color: var(--pink); font-weight: 700; }
.cardgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.xcard {
  position: relative;
  border: 1px solid var(--line-d);
  border-radius: 14px;
  padding: 32px 30px;
  background: #121118;
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s ease;
}
.xcard:hover { transform: translateY(-6px); border-color: rgba(240,50,156,.55); }
.xcard::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(240,50,156,.16), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.xcard:hover::before { opacity: 1; }
.xcard .n { font-family: var(--font-mono); color: var(--pink); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; }
.xcard h3 { font-size: 20px; font-weight: 600; color: var(--white); margin: 12px 0 10px; letter-spacing: -.01em; }
.xcard p { font-size: 14.5px; color: var(--tx-dark); }
.xcard ul { margin-top: 14px; }
.xcard li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8d88a0;
  padding: 7px 0 7px 18px;
  border-top: 1px solid var(--line-d);
  position: relative;
}
.xcard li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; transform: rotate(45deg); background: var(--pink); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.stepx { border: 1px solid rgba(12,12,16,.14); border-radius: 14px; padding: 28px 26px; background: #fff; transition: transform .4s var(--ease), box-shadow .4s ease; }
.stepx:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(20,18,24,.12); }
.stepx .sn { font-weight: 300; font-size: 46px; color: var(--pink); line-height: 1; }
.stepx h4 { margin: 12px 0 8px; font-weight: 600; color: #141218; }
.stepx p { font-size: 14px; }
.checkrows .row { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-d); font-size: 15.5px; color: var(--tx-dark); }
.checkrows .row::before { content: "◆"; color: var(--pink); font-size: 12px; line-height: 1.8; flex: 0 0 auto; }
.twocol { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
@media (max-width: 860px) { .twocol { grid-template-columns: 1fr; } }
.cta-band {
  background: linear-gradient(120deg, #e12b93 0%, var(--pink) 45%, #b81f9e 100%);
  border-radius: 18px;
  padding: clamp(40px, 7vh, 70px) clamp(24px, 5vw, 70px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h3 { font-size: clamp(24px, 3vw, 40px); font-weight: 600; color: #fff; max-width: 24ch; letter-spacing: -.01em; }
.cta-band .link-arrow { color: #fff; }
.cta-band .link-arrow:hover { color: #2a0620; }
/* contact form */
.cform label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: #8d88a0; margin: 24px 0 10px; }
.cform input, .cform select, .cform textarea {
  width: 100%;
  background: #121118;
  border: 1px solid var(--line-d);
  border-radius: 10px;
  color: var(--white);
  font: 15.5px var(--font-sans);
  padding: 15px 16px;
  outline: none;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.cform input:focus, .cform select:focus, .cform textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--pink), 0 0 26px rgba(240,50,156,.16);
}
.cform option { background: #16141d; }
.cform .cta-row { margin-top: 30px; }
.talk-panel .cta-row { display: flex; justify-content: flex-end; }
.cform .ok { display: none; margin-top: 16px; font-family: var(--font-mono); font-size: 13px; color: var(--pink); }
/* simple subpage footer */
.sub-foot { border-top: 1px solid var(--line-d); background: var(--bg); }
.sub-foot .bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 24px;
  padding: 22px clamp(20px, 3.2vw, 44px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #6d6880;
}
.sub-foot a:hover { color: var(--pink); }
.sub-foot .credits { display: inline-flex; align-items: center; gap: 8px; }

button.btn-blade { cursor: pointer; font: inherit; }

/* subpage hero with character image */
.sub-hero.-withimg .inner-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.sub-hero.-withimg .sh-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3.1;
  border: 1px solid var(--line-d);
}
.sub-hero.-withimg .sh-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.sub-hero.-withimg:hover .sh-media img { transform: scale(1.04); }
.sub-hero.-withimg .sh-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 55%, rgba(240,50,156,.14)); pointer-events: none; }
@media (max-width: 860px) {
  .sub-hero.-withimg .inner-wrap { grid-template-columns: 1fr; }
  .sub-hero.-withimg .sh-media { max-height: 46vh; }
}

/* FAQ accent word in solid brand pink */
.faq h2 .grad-text {
  background: none;
  -webkit-text-fill-color: var(--pink);
  color: var(--pink);
}

/* ---- contact form success animation ---- */
.cform { position: relative; }
.cform.sent > label, .cform.sent > input, .cform.sent > select, .cform.sent > .sel,
.cform.sent > textarea, .cform.sent > .cta-row, .cform.sent > .ok {
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
.form-success {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 10px;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease, visibility .5s;
}
.form-success.show { opacity: 1; visibility: visible; transform: translateY(0); }
.form-success h3 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; color: var(--white); letter-spacing: -.01em; }
.form-success p { color: var(--tx-dark); max-width: 34ch; }
.form-success .link-arrow { color: var(--pink); background: none; border: 0; cursor: pointer; font: 600 14px var(--font-sans); padding: 8px 0 0; }
.form-success .tick { width: 64px; height: 64px; margin-bottom: 6px; }
.form-success .tick circle { stroke: var(--pink); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; }
.form-success .tick path { stroke: var(--pink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; }
.form-success.show .tick circle { animation: tick-circle .5s ease forwards; }
.form-success.show .tick path { animation: tick-check .35s .45s ease forwards; }
@keyframes tick-circle { to { stroke-dashoffset: 0; } }
@keyframes tick-check { to { stroke-dashoffset: 0; } }

/* ---- subpage hero: professional vertical alignment + clean mobile order ---- */
.sub-hero.-withimg { align-items: center; }
.sub-hero.-withimg .sh-text { align-self: center; }
@media (max-width: 860px) {
  .sub-hero.-withimg .inner-wrap { gap: 30px; }
  .sub-hero.-withimg .sh-media { order: -1; aspect-ratio: 16/10; max-height: 40vh; }  /* image sits neatly above heading on mobile */
}

/* matrix rain behind the thank-you card */
.form-success .matrix-rain {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; z-index: 0;
  border-radius: 12px;
  transition: opacity .6s ease;
  -webkit-mask-image: radial-gradient(120% 100% at 20% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(120% 100% at 20% 40%, #000 30%, transparent 85%);
}
.form-success.show .matrix-rain { opacity: .8; }
.form-success > * { position: relative; z-index: 1; }

/* ---- subpage scroll-scrubbed video band (robot + geek) ---- */
.sub-reel { position: relative; height: 100svh; min-height: 620px; background: #0c0c10; overflow: clip; }
.sub-reel > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.sub-reel .sr-copy {
  position: absolute; left: clamp(20px, 3.2vw, 60px); bottom: clamp(50px, 10vh, 110px);
  z-index: 4; max-width: min(560px, 60vw);
}
.sub-reel .sr-copy .m-label { color: var(--pink); font-weight: 700; }
.sub-reel .sr-copy h2 { font-size: clamp(32px, 4.4vw, 68px); margin-top: 12px; color: var(--white); text-shadow: 0 2px 20px rgba(10,8,14,.5); }
.sub-reel .sr-copy p { color: #e7e2ee; margin-top: 14px; max-width: 44ch; text-shadow: 0 1px 10px rgba(10,8,14,.6); }
.sub-reel::before, .sub-reel::after {
  content: ""; position: absolute; left: 0; right: 0; height: 90px; z-index: 3; pointer-events: none;
}
.sub-reel::before { top: 0; background: linear-gradient(to bottom, #0c0c10, transparent); }
.sub-reel::after { bottom: 0; background: linear-gradient(to top, #0c0c10, transparent); }
/* About reel — deliberate full-bleed composition:
   cover fill (consistent with Services/Kickstart), crop anchored so the robots sit
   with clearance below the header and their feet near the base; standard ridges + bottom scrim. */
.sub-reel.-safehead { overflow: clip; }
.sub-reel.-safehead > video { object-fit: cover; object-position: center 26%; }


/* styled select dropdown (custom caret + pink accent) */
.cform select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--pink) 50%),
    linear-gradient(135deg, var(--pink) 50%, transparent 50%);
  background-position: calc(100% - 22px) center, calc(100% - 16px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
  cursor: pointer;
}
.cform select:focus {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--white) 50%),
    linear-gradient(135deg, var(--white) 50%, transparent 50%);
}
.cform option {
  background: #16141d;
  color: var(--white);
  padding: 12px;
}
.cform option:checked { color: var(--pink); font-weight: 600; }

/* ---- plain subpage hero: centered, balanced when no image ---- */
.sub-hero:not(.-withimg) { text-align: center; align-items: center; padding-top: 180px; }
.sub-hero:not(.-withimg) .inner-wrap { max-width: 900px; }
.sub-hero:not(.-withimg) .lead { margin-left: auto; margin-right: auto; }
.sub-hero:not(.-withimg) .m-label { display: inline-block; }

/* ---- professional footer with organized link columns ---- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line-d); padding: clamp(56px, 8vh, 90px) 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: 54px;
}
.footer-brand .fb-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand .fb-logo img { width: 40px; height: 40px; }
.footer-brand .fb-logo span { font-weight: 700; letter-spacing: .04em; font-size: 20px; }
.footer-brand p { color: var(--tx-dark); font-size: 14px; max-width: 30ch; }
.footer-brand .fpill { display: inline-flex; margin-top: 20px; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .24em;
  text-transform: uppercase; color: #7d7890; margin-bottom: 18px;
}
.footer-col a, .footer-col span.fi {
  display: block; color: var(--tx-dark); font-size: 14.5px;
  padding: 7px 0; transition: color .25s ease, transform .25s ease;
}
.footer-col a:hover { color: var(--pink); transform: translateX(3px); }
.footer-bar {
  border-top: 1px solid var(--line-d);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px 24px; padding: 22px 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #6d6880;
}
.footer-bar .credits { display: inline-flex; align-items: center; gap: 8px; }
.footer-bar a:hover { color: var(--pink); }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .sub-hero:not(.-withimg) { padding-top: 130px; }
}

/* mobile: give the fixed header a soft backdrop so content doesn't collide visually */
@media (max-width: 860px) {
  .hd {
    background: linear-gradient(to bottom, rgba(12,12,16,.88) 55%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .hd.on-light {
    background: linear-gradient(to bottom, rgba(250,250,252,.9) 55%, transparent);
  }
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.bcard {
  position: relative; border: 1px solid var(--line-d); border-radius: 14px;
  padding: 30px 28px; background: #121118; overflow: hidden; display: flex; flex-direction: column; gap: 12px;
  transition: transform .45s var(--ease), border-color .45s ease;
}
.bcard:hover { transform: translateY(-6px); border-color: rgba(240,50,156,.55); }
.bcard .m-label { color: var(--pink); }
.bcard h2 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--white); line-height: 1.25; }
.bcard p { font-size: 14.5px; color: var(--tx-dark); flex: 1; }
.bcard .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #7d7890; }

/* ── Blog index: industry-standard content hub ─────────────── */
.blog-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  font: 500 13px/1 var(--font-sans); padding: 10px 17px; border-radius: 999px;
  border: 1px solid var(--line-d); background: transparent; color: var(--tx-dark);
  cursor: pointer; letter-spacing: .01em; white-space: nowrap;
  transition: color .3s ease, border-color .3s ease, background .3s ease;
}
.chip:hover { color: var(--white); border-color: rgba(240,50,156,.5); }
.chip.is-active { background: var(--pink); border-color: var(--pink); color: #fff; }

/* Featured / flagship post */
.bfeature {
  display: grid; grid-template-columns: 1.35fr .65fr; align-items: stretch;
  border: 1px solid var(--line-d); border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, #151019, #100e15); margin-bottom: 22px;
  position: relative; transition: transform .5s var(--ease), border-color .5s ease;
}
.bfeature:hover { transform: translateY(-4px); border-color: rgba(240,50,156,.5); }
.bfeature .bf-text { padding: clamp(28px, 3.6vw, 52px); display: flex; flex-direction: column; gap: 14px; }
.bfeature .bf-tags { display: flex; align-items: center; gap: 12px; }
.bfeature .bf-flag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #0c0c10; background: var(--pink); padding: 5px 10px; border-radius: 6px; font-weight: 600; }
.bfeature .m-label { color: var(--pink); }
.bfeature h2 { font-size: clamp(28px, 3.3vw, 44px); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; color: var(--white); }
.bfeature p { font-size: 16px; color: var(--tx-dark); line-height: 1.7; max-width: 60ch; }
.bfeature .bf-foot { display: flex; align-items: center; gap: 18px; margin-top: auto; padding-top: 16px; }
.bfeature .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #7d7890; }
.bfeature .read-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-weight: 600; font-size: 14px; white-space: nowrap; }
.bfeature .read-cta .ar { color: var(--pink); transition: transform .4s var(--ease); }
.bfeature:hover .read-cta .ar { transform: translateX(5px); }
.bfeature .bf-visual { position: relative; min-height: 230px; overflow: hidden;
  background: radial-gradient(120% 130% at 80% 20%, rgba(240,50,156,.32), transparent 55%), radial-gradient(120% 130% at 20% 90%, rgba(168,85,247,.28), transparent 55%), #0e0c13; }
.bfeature .bf-visual::before { content: ""; position: absolute; inset: 0; background: url(/assets/img/ai-leap.png) no-repeat center / 56%; opacity: .16; }
.bfeature .bf-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #120f17 2%, transparent 34%); }

/* Grid card refinements */
.bcard::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--pink), var(--violet)); transition: width .55s var(--ease); }
.bcard:hover::before { width: 100%; }
.bcard .bc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.bcard .arrow { color: var(--pink); font-size: 17px; opacity: 0; transform: translateX(-6px); transition: opacity .4s ease, transform .4s ease; }
.bcard:hover .arrow { opacity: 1; transform: translateX(0); }

.is-hidden { display: none !important; }
.blog-empty { text-align: center; color: var(--tx-dark); font-size: 15px; padding: 40px 0; }
.chip-reset { color: var(--pink); background: none; border: none; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Card thumbnails (Pexels, dark tech, brand-tinted) */
.bc-thumb { position: relative; margin: -30px -28px 6px; height: 172px; overflow: hidden; }
.bc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.bcard:hover .bc-thumb img { transform: scale(1.06); }
.bc-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,17,24,0) 58%, rgba(18,17,24,.92)); }

/* Featured card: photo behind the visual panel */
.bfeature .bf-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bfeature .bf-visual::before { z-index: 2; background: linear-gradient(120deg, rgba(240,50,156,.08), transparent 50%); }
.bfeature .bf-visual::after { z-index: 2; }

/* Article hero banner image */
.post-hero-img { max-width: 1040px; margin: 4px auto 0; padding: 0 clamp(20px, 5vw, 40px); }
.post-hero-img .phi-frame { position: relative; height: clamp(210px, 42vw, 430px); border-radius: 16px; overflow: hidden; border: 1px solid var(--line-d); }
.post-hero-img .phi-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-hero-img .phi-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(12,12,16,.45)); }
@media (max-width: 720px) { .post-hero-img .phi-frame { border-radius: 12px; } }

@media (max-width: 720px) {
  .bfeature { grid-template-columns: 1fr; }
  .bfeature .bf-visual { min-height: 118px; order: -1; }
  .bfeature .bf-visual::after { background: linear-gradient(0deg, #120f17 2%, transparent 58%); }
  .blog-filter { gap: 8px; margin-bottom: 26px; }
  .chip { padding: 9px 14px; font-size: 12.5px; }
  .bfeature .bf-foot { flex-wrap: wrap; gap: 8px 16px; }
}
.post-hero { padding-top: 150px; padding-bottom: 30px; }
.post-hero h1 { font-size: clamp(34px, 4.6vw, 64px); }
.post-hero .meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: #7d7890; margin-top: 20px; }
.post-body { max-width: 760px; margin: 0 auto; padding: 30px 0 70px; }
.post-body h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.02em; color: var(--white); margin: 42px 0 16px; line-height: 1.2; }
.post-body h3 { font-size: 19px; font-weight: 600; color: var(--white); margin: 30px 0 12px; }
.post-body p { margin-bottom: 18px; font-size: 16.5px; line-height: 1.75; }
.post-body ul { margin: 0 0 20px 2px; }
.post-body li { position: relative; padding: 6px 0 6px 22px; font-size: 15.5px; line-height: 1.65; }
.post-body li::before { content: ""; position: absolute; left: 0; top: 15px; width: 7px; height: 7px; transform: rotate(45deg); background: var(--pink); }
.post-body a { color: var(--pink); border-bottom: 1px solid rgba(240,50,156,.35); transition: border-color .3s; }
.post-body a:hover { border-color: var(--pink); }
.post-body strong { color: var(--white); font-weight: 600; }
.post-body blockquote {
  margin: 28px 0; padding: 20px 26px; border-left: 3px solid var(--pink);
  background: #131119; border-radius: 0 12px 12px 0; font-size: 17px; color: var(--white); font-weight: 400;
}
.post-body .link-block {
  margin: 34px 0; padding: 24px 26px; border: 1px solid var(--line-d); border-radius: 14px; background: #121118;
}
.post-body .link-block .m-label { color: var(--pink); display: block; margin-bottom: 12px; }
.post-body .link-block ul { margin: 0; }
.post-body .link-block li { padding: 5px 0 5px 22px; }
.post-body .link-block a { border-bottom: none; color: var(--tx-dark); }
.post-body .link-block a:hover { color: var(--pink); }
.post-cta {
  margin-top: 40px; padding: 30px; border-radius: 16px; text-align: center;
  background: linear-gradient(120deg, rgba(240,50,156,.12), rgba(168,85,247,.1));
  border: 1px solid rgba(240,50,156,.25);
}
.post-cta h3 { font-size: 22px; color: var(--white); font-weight: 600; margin-bottom: 8px; }
.post-cta p { color: var(--tx-dark); margin-bottom: 18px; }

/* ---------- Let's Talk slide-in modal ---------- */
html.talk-lock, html.talk-lock body { overflow: hidden; }
.talk-modal { position: fixed; inset: 0; z-index: 3000; visibility: hidden; }
.talk-modal.open { visibility: visible; }
.talk-backdrop { position: absolute; inset: 0; background: rgba(8,8,12,.62); opacity: 0; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.talk-panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(480px, 92vw);
  background: #131118; border-right: 1px solid var(--line-d);
  padding: 78px clamp(24px, 4vw, 44px) 44px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateX(-100%);
  box-shadow: 40px 0 90px rgba(0,0,0,.55);
}
.talk-close {
  position: absolute; top: 20px; right: 20px; width: 42px; height: 42px;
  border-radius: 999px; border: 1px solid var(--line-d); background: #1a1822;
  color: var(--white); font-size: 15px; display: grid; place-items: center;
  transition: background .3s, transform .3s;
}
.talk-close:hover { background: var(--pink); transform: rotate(90deg); }
.talk-title { font-size: clamp(28px, 5vw, 40px); font-weight: 300; letter-spacing: -.02em; color: var(--white); margin: 12px 0 10px; line-height: 1.05; }
.talk-sub { color: var(--tx-dark); font-size: 15px; line-height: 1.6; margin-bottom: 22px; }
.talk-panel .cform label:first-of-type { margin-top: 4px; }
.talk-panel .cform .ok { color: var(--pink); }

/* ---------- mobile: homepage footer credit bar stacks cleanly ---------- */
@media (max-width: 760px) {
  .ft .bar { flex-direction: column; align-items: flex-start; gap: 12px; line-height: 1.6; }
  .ft .bar .credits { flex-wrap: wrap; gap: 6px 8px; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sub-foot .bar { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- mobile: the Ascent stacks — video on top, text below ---------- */
@media (max-width: 860px) {
  .climb { height: auto; min-height: 0; display: block; padding: 0 0 44px; background: #0c0c10; }
  .climb > #climbVid {
    position: relative; inset: auto;
    width: 100%; height: auto; aspect-ratio: 16 / 10;
    object-fit: cover; object-position: 60% center; transform: none;
  }
  .climb-overlay { position: relative; inset: auto; z-index: 3; }
  .climb-copy {
    position: static; transform: none; max-width: 100%;
    padding: 26px clamp(20px, 5vw, 30px) 0; text-align: left;
  }
  .climb-copy .m-label { color: var(--pink); font-weight: 700; text-shadow: none; }
  .climb-copy h2 { color: var(--white); font-size: clamp(34px, 9vw, 54px); margin: 12px 0 16px; }
  .climb-copy p { color: var(--tx-dark); text-shadow: none; }
  .climb-copy .link-arrow { color: var(--pink); text-shadow: none; }
  .climb-overlay .anno, .climb-overlay .mile { display: none; }
  .climb .climb-ridge { display: block; height: clamp(22px, 5.5vw, 40px); z-index: 4; }
  .climb .climb-ridge.-top { top: -1px; }
  .climb .climb-ridge:not(.-top) { top: auto; bottom: auto; top: calc(62.5vw - clamp(22px, 5.5vw, 40px)); }
}

/* ---------- custom styled dropdown (replaces native select option list) ---------- */
.sel { position: relative; }
.sel > select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sel-btn {
  width: 100%; background: #121118; border: 1px solid var(--line-d); border-radius: 10px;
  color: var(--white); font: 15.5px var(--font-sans); padding: 15px 44px 15px 16px;
  text-align: left; cursor: pointer; position: relative; transition: border-color .3s, box-shadow .3s;
}
.sel-btn.placeholder { color: #8d88a0; }
.sel-btn::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--pink); border-bottom: 2px solid var(--pink);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s;
}
.sel.open .sel-btn::after { transform: translateY(-30%) rotate(225deg); }
.sel.open .sel-btn, .sel-btn:focus { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink), 0 0 26px rgba(240,50,156,.16); outline: none; }
.sel-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  background: #16141d; border: 1px solid var(--line-d); border-radius: 10px; padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  box-shadow: 0 22px 55px rgba(0,0,0,.55); max-height: 260px; overflow: auto;
}
.sel.open .sel-list { opacity: 1; visibility: visible; transform: translateY(0); }
.sel-opt {
  padding: 11px 14px; border-radius: 7px; color: var(--tx-dark); font-size: 15px;
  cursor: pointer; transition: background .2s, color .2s;
}
.sel-opt:hover, .sel-opt.active { background: rgba(240,50,156,.14); color: var(--white); }

/* branded scrollbar for the Let's Talk popup */
.talk-panel { scrollbar-width: thin; scrollbar-color: var(--pink) #1a1822; }
.talk-panel::-webkit-scrollbar { width: 10px; }
.talk-panel::-webkit-scrollbar-track { background: #1a1822; border-radius: 10px; }
.talk-panel::-webkit-scrollbar-thumb { background: linear-gradient(var(--pink), var(--violet)); border-radius: 10px; border: 2px solid #1a1822; }
.talk-panel::-webkit-scrollbar-thumb:hover { background: var(--pink); }
.sel-list::-webkit-scrollbar { width: 8px; }
.sel-list::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 8px; }
.sel-list { scrollbar-width: thin; scrollbar-color: var(--pink) #16141d; }

/* mobile: keep "Make the leap to AI." on one line */
@media (max-width: 860px) {
  .hero .tagline .tg { font-size: clamp(24px, 7.6vw, 52px); white-space: nowrap; line-height: 1.12; }
}

/* ---------- mobile: subpage video reels stack — video on top, text below ---------- */
@media (max-width: 860px) {
  .sub-reel, .sub-reel.-safehead, .sub-reel.-space {
    height: auto; min-height: 0; display: block; padding: 0 0 40px; overflow: visible;
  }
  .sub-reel > video, .sub-reel.-safehead > video, .sub-reel.-space > video {
    position: relative; inset: auto; width: 100%; height: auto;
    aspect-ratio: 16 / 10; object-fit: cover; object-position: center; transform: none;
  }
  .sub-reel .sr-copy {
    position: static; transform: none; max-width: 100%; bottom: auto; left: auto;
    padding: 26px clamp(20px, 5vw, 30px) 0;
  }
  .sub-reel .sr-copy h2 { font-size: clamp(30px, 8vw, 48px); }
  .sub-reel .sr-copy p { color: var(--tx-dark); text-shadow: none; }
  .sub-reel .sr-copy .m-label { text-shadow: none; }
  .sub-reel .climb-ridge { display: block; height: clamp(22px, 5.5vw, 40px); z-index: 4; }
  .sub-reel .climb-ridge.-top { top: -1px; }
  .sub-reel .climb-ridge:not(.-top) { top: calc(62.5vw - clamp(22px, 5.5vw, 40px)); bottom: auto; }
  .sub-reel::before { display: block; top: 0; height: 40px; }
  .sub-reel::after { display: none; }
}

/* ===== mobile audit fixes ===== */
/* #1 home services section: stop tail-note & "view services" colliding */
@media (max-width: 620px) {
  .services .tail-note { bottom: 74px; width: 88%; text-align: center; font-size: 10px; letter-spacing: .12em; }
  .services .view { right: 50%; transform: translateX(50%); bottom: 32px; }
}
/* #4 services 3D-panel beat text legibility over dark rock */
.svc-beat h3 { text-shadow: 0 2px 26px rgba(0,0,0,.75); }
.svc-beat p { color: #cfccd8; text-shadow: 0 2px 22px rgba(0,0,0,.75); }
/* #3 blog post hero: kill the dead space above the fold on mobile */
@media (max-width: 860px) {
  .post-hero { padding-top: 92px; padding-bottom: 18px; }
}
/* #5 contact: tighten the empty gap between intro and form on mobile */
@media (max-width: 860px) {
  .sub-hero.-withimg { padding-bottom: 16px; }
  .sub-hero.-withimg .sh-media { max-height: 36vh; }
}
/* #2 home footer wordmark: keep it inside the viewport on small screens */
@media (max-width: 620px) {
  #wordmark { height: clamp(120px, 26vw, 200px); }
}
