/* Gurkha Labs — revamp v2. Brand palette from the logo: navy + Gurkha blue + Gurkha orange.
   Light by default (the logo is built for light backgrounds); `.dark` sections flip the tokens. */
@font-face { font-family: 'Geist'; src: url('fonts/Geist-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: optional; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/GeistMono-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* brand (sampled from gurkha-logo.png) */
  --navy: #0c253a;
  --navy-2: #04274a;
  --blue: #0a4272;
  --orange: #c55818;
  --orange-hi: #e0702c;
  --orange-soft: rgba(197, 88, 24, 0.1);

  /* light surface tokens */
  --bg: #f4f7fb;
  --bg-alt: #eaf0f6;
  --surface: #ffffff;
  --text: #0c253a;
  --heading: #0c253a;
  --muted: #3f586d;
  --dim: #4d6479;
  --line: rgba(12, 37, 58, 0.1);
  --line-2: rgba(12, 37, 58, 0.18);
  --accent: var(--orange);
  --accent-text: #b04c13;
  --chip-bg: #f1f5f9;
  --shadow: 0 1px 2px rgba(12, 37, 58, 0.04), 0 12px 32px -12px rgba(12, 37, 58, 0.14);
  --shadow-lg: 0 2px 4px rgba(12, 37, 58, 0.04), 0 30px 60px -24px rgba(12, 37, 58, 0.28);
  --ok: #17a673;

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.dark {
  --bg: #0c253a;
  --surface: #11304b;
  --text: #e8eff6;
  --heading: #ffffff;
  --muted: #a9bccd;
  --dim: #8da3b7;
  --line: rgba(190, 215, 235, 0.12);
  --line-2: rgba(190, 215, 235, 0.22);
  --accent: var(--orange-hi);
  --accent-text: #f2894a;
  --chip-bg: rgba(255, 255, 255, 0.04);
  --shadow: none;
  --shadow-lg: none;
  --ok: #3ddc97;
  background: var(--bg);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); letter-spacing: -0.01em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--orange); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ── type ─────────────────────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--accent-text); letter-spacing: 0.02em; margin: 0 0 18px; }
.eyebrow::before { content: '//'; color: var(--dim); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; color: var(--heading); }
.display { font-size: clamp(44px, 7vw, 92px); letter-spacing: -0.045em; line-height: 0.98; }
.display em, h2 em { font-style: normal; color: var(--accent-text); }
h2 { font-size: clamp(34px, 4.6vw, 58px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 600px; margin: 22px 0 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { color: var(--muted); margin: 18px 0 0; max-width: 620px; }

/* ── buttons ──────────────────────────────────────────── */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 12px;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer; border: 0;
  transform: translate(var(--mx), var(--my));
  transition: background 0.25s var(--ease), border-color 0.25s, color 0.25s, box-shadow 0.3s, transform 0.2s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--orange); color: #fff;
  /* the same slanted cut as the foot of the L in the logo */
  clip-path: polygon(0 0, 100% 0, 100% 64%, calc(100% - 14px) 100%, 0 100%);
  box-shadow: 0 12px 30px -12px rgba(197, 88, 24, 0.6);
}
.btn-primary:hover { background: var(--orange-hi); }
.btn-ghost { background: var(--surface); color: var(--heading); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.dark .btn-ghost { background: transparent; }
.dark .btn-ghost:hover { color: var(--accent-text); border-color: var(--accent); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--chip-bg); font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.chip.amber { color: var(--accent-text); border-color: rgba(197, 88, 24, 0.35); background: var(--orange-soft); }

/* ── nav ──────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }
.nav.scrolled { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border-color: var(--line); box-shadow: 0 8px 30px -20px rgba(12, 37, 58, 0.35); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 4px; border-radius: 12px; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--navy); background: rgba(12, 37, 58, 0.05); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--navy); margin: 4px auto; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.nav-links .mobile-only { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-cta .btn { display: none; }
  .brand img { height: 34px; }
  .nav.open { background: #fff; border-color: var(--line); }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; padding: 8px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: 0 30px 40px -30px rgba(12, 37, 58, 0.3); }
  .nav.open .nav-links a { font-size: 20px; padding: 14px 0; color: var(--navy); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav.open .nav-links .mobile-only { display: block; }
  .nav.open .nav-links li:last-child a { border: 0; color: var(--orange); }
}

/* ── hero (cinematic: sky → contours → ridges → summit) ── */
.hero { position: relative; min-height: max(100svh, 820px); display: flex; align-items: flex-start; padding: 132px 0 0; overflow: hidden; isolation: isolate; background: #0c253a; }
.hero-scene { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-scene .layer { position: absolute; left: 0; right: 0; will-change: transform; }
.sky { inset: 0; background: url('art/hero-sky-1280.webp') center bottom / cover no-repeat, linear-gradient(180deg, #ffffff 0%, #f6f8fb 38%, #f7efe8 66%, #f3dccb 84%, #eec4a6 100%); }
@media (min-width: 1100px), (min-resolution: 2dppx) and (min-width: 700px) { .sky { background-image: url('art/hero-sky.webp'), linear-gradient(180deg, #ffffff 0%, #f3dccb 100%); } }
.sky-video { object-position: center bottom; }
.sky-video.ready { transition: opacity 0.8s var(--ease); }
#sky-loop { transition: none; }
#sky-loop.ready { transition: none; }
.sky-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.sky-video.ready { opacity: 1; }
.ridge { bottom: 0; width: 100%; }
.ridge.far { height: 50vh; }
.ridge.mid { height: 31vh; bottom: -2px; }
.ridge.near { height: 21vh; bottom: -2px; }
.ridge.fg { height: 25vw; bottom: -11vw; }
.ridge img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero::before {
  /* reading veil behind the copy */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(62% 60% at 16% 34%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.5) 52%, transparent 80%);
}
.hero-inner { position: relative; will-change: transform, opacity; }
.hero-copy { max-width: 900px; }
.hero .display { font-size: clamp(42px, 5.9vw, 86px); }
.hero .lede { max-width: 640px; }
.hero .eyebrow { padding: 6px 12px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--muted); }
.hero .eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: ping 2.4s infinite; }
.caret { color: var(--orange); animation: blink 1.1s steps(1) infinite; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 30px 0 0; font-size: 13px; color: var(--dim); }
.hero-meta li::before { content: '▸ '; color: var(--orange); }
.summit { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.flag { position: absolute; left: 0; top: 0; width: 112px; max-width: none; height: auto; transform: translate(-4px, -100%); overflow: visible; filter: drop-shadow(0 10px 18px rgba(12, 37, 58, 0.28)); }
.summit-label { position: absolute; left: 14px; top: -14px; white-space: nowrap; font-size: 11px; color: #fff; padding: 2px 8px; border-radius: 999px; background: rgba(12, 37, 58, 0.72); backdrop-filter: blur(4px); }
#snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 11px; color: rgba(255, 255, 255, 0.7); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2; }
.scroll-cue i { width: 1px; height: 36px; background: linear-gradient(var(--orange-hi), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@media (max-width: 900px) {
  .hero { padding-top: 108px; min-height: 100svh; }
  .ridge.far { height: 38vh; }
  .ridge.mid { height: 26vh; }
  .ridge.near { height: 19vh; }
  .ridge.fg { height: 25vw; bottom: -7vw; }
  .summit { display: none; }
  .hero::before { background: linear-gradient(to bottom, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.6) 55%, transparent 75%); }
  .scroll-cue { display: none; }
}
@media (max-height: 760px) and (min-width: 901px) { .ridge.far { height: 46vh; } .ridge.mid { height: 27vh; } }

/* ── split-line reveal ───────────────────────────────── */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.js [data-split].in .w > span { transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ── proof band (dark) ───────────────────────────────── */
.proof { padding: clamp(56px, 7vw, 90px) 0; position: relative; overflow: hidden; }
.proof::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 120% at 85% 0%, rgba(10, 66, 114, 0.7), transparent 70%); pointer-events: none; }
.proof .wrap { position: relative; }
.proof-label { font-size: 13px; color: var(--dim); text-align: center; margin: 0 0 26px; }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 72px; width: max-content; animation: marquee 38s linear infinite; align-items: center; padding: 8px 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 38px; width: auto; opacity: 0.92; transition: opacity 0.3s, transform 0.3s; }
.marquee img.tall { height: 52px; }
.marquee img:hover { opacity: 1; transform: scale(1.04); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 5vw, 64px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.03); overflow: hidden; }
.stat { padding: 30px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-size: clamp(34px, 3.6vw, 48px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--heading); }
.stat-num .u { color: var(--accent-text); }
.stat p { margin: 12px 0 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

/* ── contour divider ─────────────────────────────────── */
.contours { display: block; width: 100%; height: 90px; color: rgba(10, 66, 114, 0.16); }

/* ── ascent (pinned climb) ───────────────────────────── */
.ascent { position: relative; height: 320vh; background: linear-gradient(180deg, var(--bg) 0%, #f7f1ec 100%); }
.ascent-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.ascent-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ascent .lede { font-size: 18px; }
.altimeter { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 18px; }
.alt-k { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.alt-num { font-family: var(--font); font-size: clamp(40px, 4.4vw, 60px); font-weight: 600; letter-spacing: -0.04em; color: var(--heading); font-variant-numeric: tabular-nums; line-height: 1; }
.alt-u { font-size: 18px; color: var(--orange); }
.alt-bar { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--line); margin-left: 12px; align-self: center; overflow: hidden; }
.alt-bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--blue), var(--orange)); border-radius: 4px; }
.camps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.camp { position: relative; padding: 12px 16px 12px 44px; border-radius: var(--radius); border: 1px solid transparent; opacity: 0.62; transition: opacity 0.45s var(--ease), background 0.45s, border-color 0.45s, box-shadow 0.45s; }
.camp::before { content: ''; position: absolute; left: 16px; top: 18px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg); transition: all 0.4s var(--ease); }
.camp.on { opacity: 1; }
.camp.on .camp-alt { color: var(--accent-text); }
.camp.on::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 5px rgba(197, 88, 24, 0.15); }
.camp.current { background: var(--surface); border-color: rgba(197, 88, 24, 0.28); box-shadow: var(--shadow); }
.camp-alt { font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.04em; }
.camp h3 { font-size: 19px; margin: 2px 0 0; }
.camp p { margin: 2px 0 0; font-size: 14.5px; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.camp.current p { max-height: 3em; }
.ascent-mountain { position: relative; height: min(78vh, 720px); }
.ascent-mountain > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ascent-mountain .mtn-art { -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); }
.ascent-mountain .mtn-img { object-fit: contain; object-position: center bottom; }
.trail-base { fill: none; stroke: rgba(12, 37, 58, 0.28); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; stroke-linejoin: round; }
.trail { fill: none; stroke: var(--orange); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 6px rgba(197, 88, 24, 0.45)); }
.camp-mark circle { fill: #fff; stroke: var(--navy); stroke-width: 2; transition: fill 0.3s, stroke 0.3s; }
.camp-mark.on circle { fill: var(--orange); stroke: #fff; }
.camp-mark text { font-family: var(--mono); font-size: 13px; fill: var(--navy); paint-order: stroke; stroke: rgba(255, 255, 255, 0.9); stroke-width: 4px; stroke-linejoin: round; }
.climber-dot { fill: var(--navy); stroke: #fff; stroke-width: 3; }
.climber-halo { fill: rgba(197, 88, 24, 0.25); animation: halo 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@media (max-width: 900px), (max-height: 640px) {
  .ascent { height: auto; padding: clamp(70px, 9vw, 120px) 0; }
  .ascent-pin { position: relative; height: auto; }
  .ascent-grid { grid-template-columns: 1fr; }
  .ascent-mountain { height: 70vw; max-height: 520px; order: -1; }
  .camp { opacity: 1; }
  .camp p { max-height: none; }
}

/* ── generic section ─────────────────────────────────── */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section.alt { background: var(--bg-alt); }

/* ── work ────────────────────────────────────────────── */
.domains { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--radius-lg); background: var(--navy); color: #e8eff6; margin-top: clamp(24px, 3vw, 40px); overflow: hidden; }
.domain { padding: 26px 24px 28px; }
.domain + .domain { border-left: 1px solid rgba(190, 215, 235, 0.12); }
.domain h3 { font-size: 13px; font-family: var(--mono); font-weight: 500; color: #f2894a; letter-spacing: 0.02em; margin-bottom: 12px; text-transform: uppercase; }
.domain ul { list-style: none; margin: 0; padding: 0; font-size: 15px; color: #c3d2df; }
.domain li { padding: 3px 0; }
@media (max-width: 900px) {
  .domains { grid-template-columns: 1fr 1fr; }
  .domain:nth-child(3) { border-left: 0; }
  .domain:nth-child(-n + 2) { border-bottom: 1px solid rgba(190, 215, 235, 0.12); }
}
.work-card {
  --rx: 0deg; --ry: 0deg; --px: 0px; --py: 0px;
  position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; box-shadow: var(--shadow);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.work-card:hover { border-color: rgba(197, 88, 24, 0.35); box-shadow: var(--shadow-lg); }
.shot { position: relative; margin: 18px 18px 0; border-radius: 12px 12px 0 0; overflow: hidden; background: #e9eff5; border: 1px solid var(--line); border-bottom: 0; aspect-ratio: 550 / 265; }
.shot::before { content: ''; display: block; height: 22px; background: #f3f6f9; border-bottom: 1px solid var(--line); }
.shot::after { content: ''; position: absolute; top: 8px; left: 10px; width: 6px; height: 6px; border-radius: 50%; background: #ff5f57; box-shadow: 10px 0 #febc2e, 20px 0 #28c840; }
.shot img { width: 100%; height: calc(100% - 22px); object-fit: cover; object-position: top; transform: translate(var(--px), var(--py)) scale(1.06); transition: transform 0.6s var(--ease); }
.metric { position: absolute; right: 14px; bottom: 14px; padding: 10px 14px; border-radius: 12px; font-size: 13px; color: #c3d2df; background: rgba(12, 37, 58, 0.92); transform: translateY(12px); opacity: 0; transition: all 0.45s var(--ease); }
.metric b { display: block; font-family: var(--font); font-size: 22px; color: #f2894a; letter-spacing: -0.03em; line-height: 1.1; }
.work-card:hover .metric, .work-card:focus-within .metric { transform: none; opacity: 1; }
@media (hover: none) { .metric { transform: none; opacity: 1; } }
.work-body { padding: 24px 26px 28px; border-top: 1px solid var(--line); }
.work-kicker { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.work-body h3 { margin: 6px 0 2px; font-size: 26px; }
.work-role { font-size: 14px; font-weight: 500; color: var(--accent-text); }
.work-body p { margin: 12px 0 16px; color: var(--muted); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
/* case-study gallery: pinned horizontal scroll on desktop, swipe on mobile */
/* case deck: pinned; each scroll step swaps to the next case (desktop). Swipe on mobile. */
.gallery { position: relative; }
.gallery-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.gallery-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: 40px; }
.gallery-side .section-head { margin-bottom: 26px; }
.gallery-side h2 { font-size: clamp(32px, 3.8vw, 52px); }
.case-tabs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.case-tab { width: 100%; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; text-align: left; padding: 11px 14px; border-radius: 12px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--muted); transition: background 0.3s, border-color 0.3s, color 0.3s; }
.case-tab span { grid-row: span 2; font-size: 12px; color: var(--dim); padding-top: 3px; }
.case-tab b { font-size: 17px; font-weight: 600; color: inherit; letter-spacing: -0.01em; }
.case-tab small { font-size: 11.5px; color: var(--dim); }
.case-tab:hover { color: var(--heading); }
.case-tab.is-active { background: var(--surface); border-color: rgba(197, 88, 24, 0.3); color: var(--heading); box-shadow: var(--shadow); }
.case-tab.is-active span { color: var(--accent-text); }
.gallery-bar { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 12px; color: var(--dim); }
.gallery-bar #gallery-count { color: var(--accent-text); }
.gallery-progress { position: relative; flex: 1; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.gallery-progress i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0.25) * 100%); background: var(--orange); transition: width 0.5s var(--ease); }
.gallery-stage { position: relative; height: min(600px, calc(100vh - 170px)); }
.case { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transform: translateY(60px) scale(0.94); transition: opacity 0.55s var(--ease), transform 0.75s var(--ease); }
.case.is-next { opacity: 0.5; transform: translateY(26px) scale(0.95); z-index: 1; filter: saturate(0.6); }
.case.is-active { opacity: 1; transform: none; pointer-events: auto; z-index: 2; filter: none; }
.case.is-past { opacity: 0; transform: translateY(-50px) scale(0.97); }
.case .shot { flex: 1 1 auto; min-height: 0; margin: 18px 18px 0; aspect-ratio: auto; }
.case .shot img { height: calc(100% - 22px); }
.case .work-body { flex: none; padding: 22px 26px 24px; }
.case .work-body h3 { font-size: 28px; }
.case .work-body p { margin: 10px 0 14px; }
.case .metric { transform: none; opacity: 1; }
@media (max-width: 900px), (max-height: 680px) {
  .gallery-pin { position: relative; height: auto; display: block; }
  .gallery-grid { grid-template-columns: 1fr; padding-top: 0; }
  .case-tabs, .gallery-bar { display: none; }
  .gallery-stage { height: auto; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .gallery-stage::-webkit-scrollbar { display: none; }
  .case, .case.is-next, .case.is-past { position: relative; inset: auto; flex: none; width: 84vw; max-width: 520px; opacity: 1; transform: none; filter: none; pointer-events: auto; scroll-snap-align: center; }
  .case .shot { flex: none; aspect-ratio: 550 / 287; }
}
.disclaimer { margin-top: 26px; font-size: 13.5px; color: var(--dim); }


/* ── agentic (dark signature) ────────────────────────── */
.agentic { overflow: hidden; }
.agentic::before { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 30% at 70% 75%, rgba(10, 66, 114, 0.5), transparent 70%); pointer-events: none; }
.agentic .wrap { position: relative; }
.agentic-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 28px; align-items: stretch; }
.fleet { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, #0f2d47, #0a2034); padding: 18px; min-height: 460px; }
.fleet > svg { width: 100%; height: 100%; overflow: visible; }
.fleet .lane { fill: none; stroke: rgba(190, 215, 235, 0.2); stroke-width: 1.2; stroke-dasharray: 3 5; }
.fleet .lane.hot { stroke: rgba(240, 122, 46, 0.75); stroke-dasharray: none; }
.fleet .agent rect { fill: #133554; stroke: rgba(190, 215, 235, 0.22); transition: stroke 0.3s, fill 0.3s; }
.fleet .agent.hot rect { stroke: var(--orange-hi); fill: #24344a; }
.fleet .agent text { fill: #fff; font-family: var(--font); font-size: 13px; font-weight: 600; }
.fleet .agent .n { fill: #8da3b7; font-family: var(--mono); font-size: 10px; font-weight: 400; }
.fleet .agent .led { fill: #8da3b7; transition: fill 0.2s; }
.fleet .agent.hot .led { fill: var(--orange-hi); }
.fleet .core rect { fill: #ffffff; stroke: rgba(197, 88, 24, 0.5); }
.fleet .core text { fill: var(--navy); font-family: var(--mono); font-size: 11px; font-weight: 500; }
.fleet .core .sub { fill: #587087; font-weight: 400; }
.fleet .main text { fill: #e8eff6; font-family: var(--mono); font-size: 11px; }
.fleet .main rect { fill: rgba(61, 220, 151, 0.06); stroke: rgba(61, 220, 151, 0.35); transition: fill 0.3s; }
.fleet .main.flash rect { fill: rgba(61, 220, 151, 0.2); }
.fleet .main .ok { fill: #3ddc97; }
.packet { fill: var(--orange-hi); }
.terminal { border-radius: var(--radius-lg); border: 1px solid var(--line); background: #071a2a; overflow: hidden; display: flex; flex-direction: column; min-height: 460px; }
.term-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--dim); }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: #23405b; }
.term-bar .live { margin-left: auto; color: #3ddc97; display: flex; align-items: center; gap: 6px; }
.term-bar .live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #3ddc97; animation: ping 1.8s infinite; }
.term-body { flex: 1; padding: 16px 16px 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: #c5d3df; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.term-body .ln { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-body .t { color: #56708a; margin-right: 8px; }
.term-body .who { color: #f2894a; margin-right: 8px; }
.term-body .ok { color: #3ddc97; }
.term-body .cmd { color: #fff; }
.term-body .cmd::before { content: '$ '; color: #f2894a; }
.agentic-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (max-width: 960px) {
  .agentic-grid { grid-template-columns: 1fr; }
  .fleet { min-height: 0; }
  .terminal { min-height: 300px; }
}

/* ── engage ──────────────────────────────────────────── */
.engage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.pkg { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s; }
.pkg:hover { border-color: rgba(197, 88, 24, 0.4); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pkg.featured { background: #0c283d; border-color: #0c283d; color: #e8eff6; --heading: #fff; --muted: #b5c6d5; --dim: #8da3b7; --line: rgba(190, 215, 235, 0.14); }
.pkg.featured::after { content: 'most requested'; position: absolute; top: 22px; right: 22px; font-family: var(--mono); font-size: 11px; color: #f2894a; padding: 3px 9px; border: 1px solid rgba(242, 137, 74, 0.4); border-radius: 999px; }
.pkg .num { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.pkg h3 { margin: 14px 0 8px; font-size: 26px; }
.pkg > p { color: var(--muted); margin: 0 0 22px; font-size: 15.5px; }
.pkg ul { list-style: none; padding: 0; margin: 0 0 26px; font-size: 15px; }
.pkg li { padding: 8px 0 8px 24px; border-top: 1px solid var(--line); position: relative; }
.pkg li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 10px; height: 6px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.pkg.featured li::before { border-color: #f2894a; }
.pkg dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: auto 0 22px; font-size: 14px; }
.pkg dt { font-family: var(--mono); color: var(--dim); font-size: 12px; padding-top: 2px; }
.pkg dd { margin: 0; color: var(--heading); font-weight: 500; }
.pkg .btn { align-self: flex-start; }
.process { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 7vw, 90px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.step { padding: 26px 24px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .idx { font-family: var(--mono); font-size: 12px; color: var(--accent-text); }
.step h3 { font-size: 18px; margin: 10px 0 6px; }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); }
.stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 36px; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.stack span::before { content: '◆ '; color: var(--orange); font-size: 9px; vertical-align: 2px; }
@media (max-width: 960px) {
  .engage-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .process { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
}

/* ── team ────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person { display: flex; gap: 18px; padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transition: border-color 0.3s, transform 0.4s var(--ease); }
.person:hover { border-color: rgba(197, 88, 24, 0.35); transform: translateY(-3px); }
.person img { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; flex: none; }
.person .role { font-family: var(--mono); font-size: 11.5px; color: var(--accent-text); line-height: 1.4; text-transform: uppercase; letter-spacing: 0.02em; }
.person h3 { font-size: 19px; margin: 4px 0 6px; }
.person p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.socials { display: flex; gap: 6px; margin-top: 12px; }
.socials a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); transition: all 0.2s; }
.socials a:hover { color: var(--orange); border-color: rgba(197, 88, 24, 0.4); }
.dark .socials a:hover { color: var(--accent-text); }
.socials svg { width: 15px; height: 15px; }
@media (max-width: 1000px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; } }

/* ── faq ─────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 22px; transition: border-color 0.3s, box-shadow 0.3s; }
.faq-list details[open] { border-color: rgba(197, 88, 24, 0.3); box-shadow: var(--shadow); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 17px; font-weight: 600; color: var(--heading); letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { position: relative; flex: none; width: 22px; height: 22px; margin-top: 1px; }
.faq-list summary i::before, .faq-list summary i::after { content: ''; position: absolute; left: 4px; right: 4px; top: 10px; height: 2px; background: var(--orange); transition: transform 0.35s var(--ease); }
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i::after { transform: rotate(0); }
.faq-list .a p { margin: 0 0 20px; color: var(--muted); max-width: 640px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ── contact (dark card) ─────────────────────────────── */
.contact { padding-bottom: clamp(60px, 8vw, 100px); }
.contact-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; background: linear-gradient(150deg, #0f3a62 0%, var(--navy) 55%, #081c2e 100%); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); box-shadow: 0 40px 80px -40px rgba(12, 37, 58, 0.6); }
.contact-card { background: radial-gradient(70% 60% at 18% 0%, rgba(242, 137, 74, 0.16), transparent 60%), linear-gradient(170deg, #0f3a62 0%, var(--navy) 60%, #081c2e 100%); }
.contact-card > .contact-art { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none; }
.contact-art img { width: 100%; height: auto; transform: translateY(16%); }
.contact-card::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,.7), transparent), radial-gradient(1px 1px at 28% 32%, rgba(255,255,255,.5), transparent), radial-gradient(1.4px 1.4px at 44% 12%, rgba(255,255,255,.6), transparent), radial-gradient(1px 1px at 8% 44%, rgba(255,255,255,.45), transparent), radial-gradient(1.2px 1.2px at 36% 50%, rgba(255,255,255,.4), transparent), radial-gradient(1px 1px at 20% 8%, rgba(255,255,255,.55), transparent); }
.contact-card h2 { font-size: clamp(36px, 4.4vw, 56px); }
.contact-lines { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.contact-lines a { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); transition: color 0.2s; font-size: 15.5px; }
.contact-lines a:hover { color: #fff; }
.contact-lines svg { width: 18px; height: 18px; color: var(--accent-text); }
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.trust div { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(4, 20, 34, 0.35); font-size: 13.5px; color: var(--muted); }
.trust b { display: block; color: #fff; font-weight: 600; font-size: 14.5px; }
form.brief { display: grid; gap: 14px; align-content: start; padding: clamp(20px, 3vw, 30px); border-radius: var(--radius-lg); background: #fff; color: var(--navy); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5); }
.brief .ttl { margin: 0; color: var(--orange); font-size: 13px; }
.brief .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.brief label { display: grid; gap: 6px; font-family: var(--mono); font-size: 12px; color: #587087; }
.brief input, .brief select, .brief textarea { width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(12, 37, 58, 0.18); background: #f6f9fc; color: var(--navy); font-family: var(--font); font-size: 15px; transition: border-color 0.2s, background 0.2s; }
.brief textarea { height: 110px; padding: 12px 14px; resize: vertical; }
.brief input:focus, .brief select:focus, .brief textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
.brief .btn { width: 100%; justify-content: center; }
.brief small { color: #587087; font-size: 12.5px; text-align: center; }
@media (max-width: 900px) { .contact-card { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .brief .row, .trust { grid-template-columns: 1fr; } }

/* ── footer (dark) ───────────────────────────────────── */
.footer { padding: 48px 0 40px; font-size: 14px; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-logo { display: inline-block; padding: 10px 16px; background: #fff; border-radius: 14px; }
.footer-logo img { height: 40px; width: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer nav a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* ── keyframes ───────────────────────────────────────── */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(23, 166, 115, 0.45); } 80%, 100% { box-shadow: 0 0 0 8px rgba(23, 166, 115, 0); } }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 520px) {
  .hero .eyebrow { font-size: 11.5px; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden='true'] { display: none; }
  .js [data-split] .w > span, .js [data-reveal] { transform: none; opacity: 1; }
  .ascent { height: auto; padding: clamp(70px, 9vw, 120px) 0; }
  .ascent-pin { position: relative; height: auto; }
  .camp { opacity: 1; }
  .camp p { max-height: none; }
  .gallery-pin { position: relative; height: auto; display: block; }
  .case { transition: none; }
}

/* ── nav clock ───────────────────────────────────────── */
.nav-clock { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--dim); margin-right: 6px; white-space: nowrap; }
.nav-clock b { font-weight: 500; color: var(--navy); }
.nav-clock i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(23, 166, 115, 0.15); }
.nav-clock.after i { background: var(--orange); box-shadow: 0 0 0 3px rgba(197, 88, 24, 0.15); }
@media (max-width: 1100px) { .nav-clock { display: none; } }

/* ── built in kathmandu band ─────────────────────────── */
.ktm { position: relative; overflow: hidden; isolation: isolate; padding: clamp(110px, 13vw, 190px) 0; background: linear-gradient(180deg, #0c253a 0%, #12385a 55%, #2a4a68 78%, #7a5a4f 100%); }
.ktm-skyline, .ktm-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(150px, 20vw, 300px); z-index: -1; }
.ktm-art { inset: 0; height: 100%; object-fit: cover; object-position: center 70%; z-index: -2; }
.ktm::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 37, 58, 0.94) 0%, rgba(12, 37, 58, 0.72) 42%, rgba(12, 37, 58, 0.15) 78%), linear-gradient(0deg, rgba(12, 37, 58, 0.55), transparent 45%); }
@media (max-width: 860px) { .ktm::before { background: linear-gradient(180deg, rgba(12, 37, 58, 0.92) 0%, rgba(12, 37, 58, 0.7) 60%, rgba(12, 37, 58, 0.35) 100%); } }
.ktm-art + .ktm-skyline { display: none; }
.ktm-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 40px; align-items: end; z-index: 1; }
.ktm-clock { justify-self: end; text-align: right; display: grid; gap: 4px; padding: 20px 24px; border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: rgba(6, 22, 36, 0.45); backdrop-filter: blur(6px); }
.ktm-k { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.ktm-time { font-size: clamp(48px, 6vw, 76px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.ktm-status { font-size: 12.5px; color: var(--accent-text); }
@media (max-width: 860px) { .ktm-inner { grid-template-columns: 1fr; } .ktm-clock { justify-self: start; text-align: left; } }

/* ── cursor spotlight on dark bands ──────────────────── */
.spot { position: relative; }
.spot::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 0.4s; background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 50%), rgba(242, 137, 74, 0.11), transparent 62%); border-radius: inherit; }
.spot.lit::after { opacity: 1; }
.spot > .wrap, .contact-card > div, .contact-card > form { position: relative; z-index: 1; }

/* ── intro: the monogram, then the curtain lifts ─────── */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #0c253a; animation: intro-out 0.55s var(--ease) 0.75s forwards; pointer-events: none; }
.intro-mark { position: relative; display: grid; place-items: center; width: 132px; height: 132px; border-radius: 32px; background: #fff; animation: intro-in 0.5s var(--ease) both; }
.intro-mark img { width: 84px; height: auto; }
.intro-mark i { position: absolute; left: 18px; right: 18px; bottom: -22px; height: 3px; border-radius: 3px; background: var(--orange); transform-origin: left; animation: intro-bar 0.6s var(--ease) 0.15s both; }
.no-intro .intro, .intro.done { display: none; }
@keyframes intro-in { from { opacity: 0; transform: scale(0.86); } }
@keyframes intro-bar { from { transform: scaleX(0); } }
@keyframes intro-out { to { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce), (max-width: 760px) { .intro { display: none; } }

/* ── engage card art (Venice) ────────────────────────── */
.pkg-art { position: relative; height: 200px; margin: -10px -6px 10px; border-radius: 16px; overflow: hidden; }
.pkg-art img, .pkg-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s var(--ease); mix-blend-mode: multiply; }
.pkg.featured .pkg-art img, .pkg.featured .pkg-art video { mix-blend-mode: normal; }
.pkg-art video { opacity: 0; transition: opacity 0.6s; }
.pkg-art video.ready { opacity: 1; }
.pkg:hover .pkg-art img, .pkg:hover .pkg-art video { transform: scale(1.05) translateY(-4px); }
@media (max-width: 960px) { .pkg-art { height: 220px; } }

/* ── hero rotating word ──────────────────────────────── */
.rotator { position: relative; display: inline-grid; vertical-align: bottom; height: 1em; clip-path: inset(-0.05em -0.12em -0.26em -0.12em); transition: width 0.55s var(--ease); }
.rot-word { grid-area: 1 / 1; justify-self: start; font-style: normal; color: var(--accent-text); white-space: nowrap; transform: translateY(125%); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.4s; }
.rot-word.is-on { transform: none; opacity: 1; }
.rot-word.is-out { transform: translateY(-125%); opacity: 0; }
.rotator::after { content: ''; position: absolute; left: 0; right: 0; bottom: -0.2em; height: 0.06em; border-radius: 2px; background: var(--orange); transform-origin: left; animation: rot-bar 2.4s linear infinite; opacity: 0.55; }
@keyframes rot-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .rotator::after { display: none; } }

/* ── agent fleet backdrop: night base camp (Venice) ──── */
.fleet-art { position: absolute; left: 0; right: 0; top: 0; height: min(46vw, 760px); background: linear-gradient(90deg, rgba(11, 37, 59, 0.9) 0%, rgba(11, 37, 59, 0.55) 38%, transparent 62%), url('art/fleet-basecamp-1280.webp') right top / cover no-repeat; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); pointer-events: none; }
@media (min-width: 1100px), (min-resolution: 2dppx) and (min-width: 700px) { .fleet-art { background-image: linear-gradient(90deg, rgba(11, 37, 59, 0.9) 0%, rgba(11, 37, 59, 0.55) 38%, transparent 62%), url('art/fleet-basecamp.webp'); } }
@media (max-width: 760px) { .fleet-art { height: 70vw; background-position: 70% top; opacity: 0.55; } }
.agentic { background: #0b253b; }
.agentic .section-head { min-height: min(26vw, 380px); }

/* ── final touches ───────────────────────────────────── */
@view-transition { navigation: auto; }
:target, section[id] { scroll-margin-top: 84px; }
.progress { position: fixed; left: 0; top: 0; z-index: 60; height: 2px; width: 100%; background: linear-gradient(90deg, var(--blue), var(--orange)); transform-origin: left; transform: scaleX(var(--sp, 0)); pointer-events: none; }
.nav-links a.active { color: var(--navy); background: rgba(12, 37, 58, 0.06); }
.nav-links a.active::after { content: ''; display: block; height: 2px; margin-top: 2px; border-radius: 2px; background: var(--orange); }
@media (max-width: 900px) { .nav-links a.active::after { display: none; } }
/* a slow light sweep across the primary buttons */
.btn-primary { overflow: hidden; }
.btn-primary::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent); transform: skewX(-18deg); animation: sheen 6s ease-in-out 2.5s infinite; pointer-events: none; }
@keyframes sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
/* mobile: a docked call-to-action once the hero is gone */
.dock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55; display: none; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 14px; background: var(--orange); color: #fff; font-weight: 600; box-shadow: 0 16px 40px -12px rgba(12, 37, 58, 0.55); transform: translateY(140%); transition: transform 0.45s var(--ease); }
.dock svg { width: 18px; height: 18px; }
.dock.show { transform: none; }
@media (max-width: 760px) { .dock { display: flex; } }
@media (prefers-reduced-motion: reduce) { .btn-primary::after { display: none; } }

/* ── teams / outsourcing page ────────────────────────── */
.hero-sub { min-height: max(100svh, 820px); }
.hero-sub .lede { max-width: 600px; }
.hero-sub .display { font-size: clamp(40px, 5.4vw, 78px); }
.hero-sub .display em { font-style: normal; color: var(--accent-text); }
.hero-where { display: inline-block; margin: 26px 0 0; padding: 6px 12px; border-radius: 12px; line-height: 1.5; font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, 0.85); }
.hero-sub .ridge.fg { bottom: -11vw; }
.stat-num.stat-words { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; }
@media (max-width: 900px) { .hero-sub .ridge.fg { bottom: -12vw; } }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why { padding: 26px 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transition: transform 0.4s var(--ease), border-color 0.3s; }
.why:hover { transform: translateY(-4px); border-color: rgba(197, 88, 24, 0.35); }
.why .idx, .how .idx, .svc .num { font-size: 12px; color: var(--accent-text); }
.why h3 { font-size: 20px; margin: 12px 0 8px; }
.why p { margin: 0; color: var(--muted); font-size: 15px; }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: 28px; padding: 26px 30px; border-radius: var(--radius-lg); background: linear-gradient(120deg, rgba(197, 88, 24, 0.08), rgba(10, 66, 114, 0.06)); border: 1px solid rgba(197, 88, 24, 0.22); }
.callout p { margin: 0; max-width: 760px; font-size: 17px; color: var(--text); }
.callout b { color: var(--heading); }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.svc { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transition: transform 0.4s var(--ease), border-color 0.3s; }
.svc:hover { transform: translateY(-4px); border-color: rgba(197, 88, 24, 0.35); }
.svc.featured { background: #0c283d; border-color: #0c283d; }
.svc h3 { font-size: 23px; margin: 8px 0 8px; }
.svc p { margin: 0; color: var(--muted); font-size: 15px; }
.svc-art { height: 150px; margin: 0; }
.svc.featured .pkg-art img, .svc.featured .pkg-art video { mix-blend-mode: normal; }
.svc-mark { display: grid; place-items: center; border-radius: 18px; background: var(--bg-alt); }
.svc-mark img { width: 70px; height: auto; }
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: how; position: relative; }
.how::before { content: ''; position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--orange)); opacity: 0.35; }
.how li { position: relative; padding: 0 22px 0 0; }
.how li::before { content: ''; display: block; width: 14px; height: 14px; margin: 16px 0 22px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(197, 88, 24, 0.15); }
.how h3 { font-size: 19px; margin: 8px 0 6px; }
.how p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: 1fr 1fr; } .svc-grid { grid-template-columns: 1fr; } .how { grid-template-columns: 1fr 1fr; gap: 28px 0; } .how::before { display: none; } }
@media (max-width: 560px) { .why-grid, .how { grid-template-columns: 1fr; } .svc { grid-template-columns: 1fr; } .svc-art { height: 190px; } }

/* skip layout/paint for far-below-the-fold sections until they're near */
#engage, #kathmandu, #team, #faq, #contact, .footer, #why, #services, #how { content-visibility: auto; contain-intrinsic-size: auto 1000px; }
@media (max-width: 1100px) {
  .fleet-art { background-image: linear-gradient(180deg, rgba(11, 37, 59, 0.82), rgba(11, 37, 59, 0.6)), url('art/fleet-basecamp-1280.webp'); }
}

/* ── legal pages ─────────────────────────────────────── */
.legal-hero { padding: 140px 0 0; background: linear-gradient(180deg, #fff, var(--bg)); }
.legal-hero .display { font-size: clamp(40px, 6vw, 72px); }
.legal-date { margin: 14px 0 0; font-size: 13px; color: var(--dim); }
.legal { padding-top: 40px; }
.legal-body { max-width: 780px; font-size: 16.5px; color: var(--muted); }
.legal-body h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 44px 0 12px; color: var(--heading); }
.legal-body h3 { font-size: 18px; margin: 26px 0 8px; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin: 6px 0; }
.legal-body li::marker { color: var(--orange); }
.legal-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { color: var(--heading); }

/* ── tech layer: blueprint cross-fade, terminal line, ops HUD, commit strip ── */
.blueprint { inset: 0; opacity: 0; pointer-events: none; will-change: opacity; contain: strict; }
.blueprint img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.blueprint::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(159, 195, 230, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(159, 195, 230, 0.07) 1px, transparent 1px); background-size: 48px 48px; }
.hero .eyebrow.term { font-size: 12.5px; color: var(--navy); }
.hero .eyebrow.term::before { display: none; }
.term .t-cmd { color: var(--navy); }
.term .t-ok { color: var(--ok); font-weight: 500; }
.js .term.typing .t-ok { opacity: 0; }
.hud { position: absolute; top: 128px; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); width: 260px; z-index: 2; padding: 14px 16px 12px; border-radius: 16px; font-size: 12px; color: #dbe6f0; background: rgba(12, 37, 58, 0.62); border: 1px solid rgba(190, 215, 235, 0.18); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); box-shadow: 0 24px 50px -24px rgba(12, 37, 58, 0.6); will-change: transform, opacity; }
.hud-head { display: flex; align-items: center; gap: 7px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid rgba(190, 215, 235, 0.14); color: #fff; }
.hud-dim { color: #8da3b7; }
.hud-time { margin-left: auto; color: #8da3b7; }
.hud-dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.18); animation: ping 2s infinite; }
.hud dl { margin: 0; display: grid; gap: 5px; }
.hud dl div { display: flex; justify-content: space-between; align-items: baseline; }
.hud dt { color: #8da3b7; }
.hud dd { margin: 0; color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; transition: color 0.4s; }
.hud dd.bump { color: #f2894a; }
.hud dd small { color: #8da3b7; margin-left: 2px; }
.hud-spark { display: block; width: 100%; height: 26px; margin: 10px 0 6px; color: #f2894a; }
.hud-foot { color: #8da3b7; font-size: 11px; }
.hud-foot b { color: #fff; font-weight: 500; }
.hud-foot b.ok { color: #3ddc97; }
@media (max-width: 1100px) { .hud { display: none; } }
.commit-strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 38px; display: flex; align-items: center; overflow: hidden; font-size: 12px; color: rgba(220, 232, 243, 0.7); border-top: 1px solid rgba(190, 215, 235, 0.12); background: linear-gradient(90deg, rgba(8, 26, 41, 0.75), rgba(8, 26, 41, 0.45)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.commit-track { display: flex; gap: 34px; width: max-content; white-space: nowrap; animation: marquee 70s linear infinite; }
.commit-track span b { color: #f2894a; font-weight: 500; margin-right: 6px; }
.commit-track span i { font-style: normal; color: #3ddc97; margin-left: 6px; }
@media (max-width: 760px) { .commit-strip { height: 32px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .commit-track { animation: none; } }
.case .shot img { object-position: top center; }

/* ── 404: off the trail ──────────────────────────────── */
.lost { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.lost-art { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.2) 55%, rgba(12,37,58,.15)), url('art/hero-sky-1280.webp') center bottom / cover no-repeat; filter: saturate(0.85); }
@media (min-width: 1100px) { .lost-art { background-image: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.2) 55%, rgba(12,37,58,.15)), url('art/hero-sky.webp'); } }
.lost-inner { padding: 40px var(--gutter) 30vh; }
.lost .brand img { height: 40px; width: auto; margin-bottom: 48px; }
.lost .display { font-size: clamp(42px, 6.4vw, 88px); max-width: 900px; }
.lost .display em { font-style: normal; color: var(--accent-text); }
.lost .eyebrow.term { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--navy); font-size: 12.5px; }
.lost .eyebrow.term::before { display: none; }
.t-err { color: #c0392b; font-weight: 500; }
.lost-alt { margin-top: 28px; font-size: 12px; color: var(--muted); }
