/* =========================================================
   kormot — design system
   ========================================================= */
:root,
:root[data-theme="dark"] {
  --bg: #08080a;
  --bg-2: #0c0c0f;
  --surface: #121216;
  --surface-2: #17171c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4ef;
  --muted: #9a9a93;
  --muted-2: #6c6c66;
  --accent: #d6ff3e;
  --accent-2: #b6e62f;
  --accent-strong: #d6ff3e;
  --accent-glow: rgba(214, 255, 62, 0.35);
  --nav-bg: rgba(8, 8, 10, 0.72);
  --grain-blend: screen;
  --grain-opacity: 0.04;
  --shadow-card: 0 0 0 transparent;
  --wordmark-ghost: rgba(244, 244, 239, 0.05);
  color-scheme: dark;
}

/* ---------- light theme ---------- */
:root[data-theme="light"] {
  --bg: #f5f4ef;
  --bg-2: #ecebe4;
  --surface: #ffffff;
  --surface-2: #f4f3ec;
  --line: rgba(18, 18, 22, 0.10);
  --line-2: rgba(18, 18, 22, 0.18);
  --text: #14141a;
  --muted: #56564f;
  --muted-2: #8a8a82;
  --accent: #cdee3a;
  --accent-2: #b9dd2b;
  --accent-strong: #8fa900;
  --accent-glow: rgba(150, 190, 40, 0.28);
  --nav-bg: rgba(245, 244, 239, 0.82);
  --grain-blend: multiply;
  --grain-opacity: 0.05;
  --shadow-card: 0 18px 50px -28px rgba(20, 20, 30, 0.35);
  --wordmark-ghost: rgba(20, 20, 26, 0.06);
  color-scheme: light;
}

:root {
  --font-display: "Hanken Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container: 1340px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 18px;
  --radius-lg: 28px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-2: cubic-bezier(0.7, 0, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
@media (hover: none) { body { cursor: auto; } }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: #000; }

/* ---------- shared utilities ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.5em;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 1px solid var(--line-2);
  color: var(--text);
  background: transparent;
  cursor: none;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease), transform 0.4s var(--ease);
  will-change: transform;
  overflow: hidden;
}
.btn svg { transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: #08080a; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 0 40px var(--accent-glow); }
.btn--ghost:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }
.btn--sm { padding: 0.7em 1.15em; font-size: 0.85rem; }
.btn--lg { padding: 1.15em 2em; font-size: 1.05rem; }

/* =========================================================
   Grain overlay
   ========================================================= */
.grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: var(--grain-opacity); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   Custom cursor
   ========================================================= */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot {
  position: fixed; top: 0; left: 0; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%);
}
.cursor__ring {
  position: fixed; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6); transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: rgba(255,255,255,0.1); border-color: transparent; }
.cursor.is-down .cursor__ring { width: 28px; height: 28px; }
@media (hover: none) { .cursor { display: none; } }

/* =========================================================
   Preloader
   ========================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
}
.preloader__inner { width: max-content; max-width: 92vw; text-align: center; }
.preloader__word { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.8rem, 11vw, 5.5rem); letter-spacing: -0.03em; display: flex; justify-content: center; overflow: hidden; padding: 0.04em 0.06em; }
.preloader__word span { display: inline-block; transform: translateY(115%); }
.preloader__bar { margin: 1.5rem 0 0.8rem; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 0%; background: var(--accent); }
.preloader__meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); display: flex; justify-content: center; gap: 1px; }
.preloader.is-done { pointer-events: none; }

/* =========================================================
   Scroll progress
   ========================================================= */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9997; background: transparent; }
.scroll-progress i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent-glow); }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: padding 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 14px var(--gutter);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { z-index: 2; }
.nav__logo { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.04em; }
.nav__logo em { font-style: normal; color: var(--accent-strong); }
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
  position: relative; font-size: 0.92rem; font-weight: 500; color: var(--muted);
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px;
  background: var(--accent); transition: width 0.35s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { z-index: 2; }

/* theme + language controls */
.nav__tools { display: flex; align-items: center; gap: 0.5rem; z-index: 2; }
.tool-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; min-width: 40px; padding: 0 0.5rem;
  border: 1px solid var(--line-2); border-radius: 100px;
  background: transparent; color: var(--text); cursor: pointer;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.tool-btn:hover { border-color: var(--accent-strong); color: var(--accent-strong); }
.tool-btn svg { width: 18px; height: 18px; }
.tool-btn--lang { padding: 0 0.85rem; font-weight: 500; }
/* sun shows in dark mode (tap to go light); moon shows in light mode */
.tool-btn__sun { display: block; }
.tool-btn__moon { display: none; }
:root[data-theme="light"] .tool-btn__sun { display: none; }
:root[data-theme="light"] .tool-btn__moon { display: block; }

.nav__burger { display: none; }

@media (max-width: 920px) {
  .nav__links, .nav__cta, .nav__tools { display: none; }
  .nav__burger {
    display: flex; flex-direction: column; gap: 6px; width: 44px; height: 44px;
    align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line-2);
    border-radius: 50%; cursor: pointer; z-index: 2;
  }
  .nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform 0.4s var(--ease), opacity 0.3s; }
  .nav__burger.is-open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center; padding: var(--gutter);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease); pointer-events: none;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-menu__links a {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 11vw, 4.5rem);
  letter-spacing: -0.03em; line-height: 1.05; color: var(--text); opacity: 0;
  transform: translateY(40px); transition: color 0.3s;
}
.mobile-menu__links a:hover { color: var(--accent-strong); }
.mobile-menu.is-open .mobile-menu__links a { opacity: 1; transform: translateY(0); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.mobile-menu.is-open .mobile-menu__links a:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(2) { transition-delay: 0.22s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(3) { transition-delay: 0.29s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(4) { transition-delay: 0.36s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(5) { transition-delay: 0.43s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(6) { transition-delay: 0.5s; }
.mobile-menu__tools { display: flex; gap: 0.6rem; margin-top: 2.6rem; }
.mobile-menu__tools .tool-btn { height: 46px; min-width: 46px; }
.mobile-menu__tools .tool-btn--lang { padding: 0 1.1rem; font-size: 0.85rem; }
.mobile-menu__foot { margin-top: 1.6rem; font-family: var(--font-mono); color: var(--muted); display: flex; flex-direction: column; gap: 0.55rem; }
.mobile-menu__foot a { width: fit-content; transition: color 0.3s; }
.mobile-menu__foot a:hover { color: var(--accent-strong); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; padding: 0 var(--gutter); overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__inner { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; width: 100%; padding-top: 8vh; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.9rem; font-family: var(--font-mono);
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.8rem;
}
.hero__eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.8rem, 8.5vw, 7.8rem); line-height: 1.02; letter-spacing: -0.025em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__title .w { display: inline-block; will-change: transform; }
.hero__title .accent { color: var(--accent-strong); }
.hero__lede { max-width: 560px; margin-top: 2rem; font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--muted); line-height: 1.6; }
.hero__lede strong { color: var(--text); font-weight: 600; }
.hero__lede em { color: var(--accent-strong); font-style: normal; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

.hero__stats {
  position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding: 3.5vh 0 4vh; border-top: 1px solid var(--line); margin-top: 6vh;
}
.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 3rem); letter-spacing: -0.03em; line-height: 1; }
.stat__label { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.01em; }

.hero__scroll {
  position: absolute; bottom: 26px; right: var(--gutter); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--accent); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { top: -50%; } 100% { top: 100%; } }

@media (max-width: 720px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
  .hero__scroll { display: none; }
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.4rem 0; overflow: hidden; background: var(--bg-2); }
.marquee__track { display: flex; align-items: center; gap: 2.5rem; white-space: nowrap; width: max-content; will-change: transform; }
.marquee__track span { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: -0.02em; }
.marquee__track i { color: var(--accent-strong); font-style: normal; font-size: 1rem; }

/* =========================================================
   Intro
   ========================================================= */
.intro { padding: clamp(6rem, 16vh, 14rem) var(--gutter); max-width: 1100px; margin: 0 auto; }
.intro__text { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 4.6vw, 3.6rem); line-height: 1.18; letter-spacing: -0.025em; }
.intro__text .reveal-word { display: inline-block; opacity: 0.14; transition: opacity 0.5s var(--ease); }
.intro__text .accent { color: var(--accent-strong); }

/* =========================================================
   Section scaffolding
   ========================================================= */
.section { padding: clamp(5rem, 12vh, 9rem) var(--gutter); max-width: var(--container); margin: 0 auto; }
.section__head { max-width: 760px; margin-bottom: clamp(2.5rem, 6vh, 5rem); }
.section__index { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-strong); letter-spacing: 0.1em; }
.section__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 4.6rem); letter-spacing: -0.022em; line-height: 1.05; margin: 0.8rem 0 1.2rem; }
.section__title .word { display: inline-block; white-space: nowrap; }
.section__title .char { display: inline-block; }
.section__sub { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.18rem); max-width: 620px; }

/* Bengali glyphs need taller line boxes, especially inside animated masks. */
:root[lang="bn"] {
  --font-display: "Noto Sans Bengali", "Hanken Grotesk", sans-serif;
  --font-body: "Noto Sans Bengali", "Manrope", sans-serif;
}
:root[lang="bn"] .hero__title,
:root[lang="bn"] .cta__title {
  line-height: 1.16;
  letter-spacing: normal;
}
:root[lang="bn"] .hero__title .line,
:root[lang="bn"] .cta__title .line {
  padding-top: 0.12em;
  padding-bottom: 0.14em;
  margin-top: -0.08em;
  margin-bottom: -0.08em;
}
:root[lang="bn"] .section__title {
  line-height: 1.18;
  letter-spacing: normal;
}
:root[lang="bn"] .intro__text,
:root[lang="bn"] .step__title {
  line-height: 1.28;
}

/* reveal helpers */
[data-reveal] { opacity: 0; transform: translateY(40px); }

/* =========================================================
   Products
   ========================================================= */
.products__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.product {
  position: relative; padding: clamp(1.6rem, 3vw, 2.6rem); border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--surface);
  overflow: hidden; min-height: 280px; display: flex; flex-direction: column;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), background 0.5s var(--ease);
}
/* thin accent line that draws across the top edge on hover */
.product::after {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0;
  background: var(--accent); transition: width 0.55s var(--ease);
}
.product:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-6px); }
.product:hover::after { width: 100%; }
.product__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.product__tag { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 0.35em 0.8em; border: 1px solid var(--line); border-radius: 100px; }
.product__live { display: inline-flex; align-items: center; gap: 0.45em; font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-strong); }
.product__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.product__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; margin: 2.4rem 0 0.7rem; }
.product__desc { color: var(--muted); font-size: 1rem; max-width: 90%; }
.product__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: 1.6rem; }
.product__meta li { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted-2); position: relative; padding-left: 1rem; }
.product__meta li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.product__arrow { position: absolute; right: clamp(1.6rem, 3vw, 2.6rem); bottom: clamp(1.6rem, 3vw, 2.6rem); font-size: 1.4rem; color: var(--accent-strong); opacity: 0; transform: translate(-8px, 8px); transition: all 0.5s var(--ease); }
.product:hover .product__arrow { opacity: 1; transform: translate(0,0); }
@media (max-width: 720px) { .products__grid { grid-template-columns: 1fr; } }

/* =========================================================
   Services
   ========================================================= */
.services__list { border-top: 1px solid var(--line); }
.service { position: relative; display: grid; grid-template-columns: 90px 1.2fr 1.4fr; gap: 2rem; align-items: start; padding: clamp(1.8rem, 4vh, 3rem) 0; border-bottom: 1px solid var(--line); transition: padding 0.5s var(--ease); }
.service::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--accent); transition: width 0.6s var(--ease); }
.service:hover::after { width: 100%; }
.service:hover { padding-left: 1.2rem; }
.service__no { font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent-strong); padding-top: 0.5rem; }
.service__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.05; transition: color 0.4s; }
.service:hover .service__name { color: var(--accent-strong); }
.service__desc { color: var(--muted); font-size: 1rem; }
.service__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.service__tags span { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); padding: 0.3em 0.7em; border: 1px solid var(--line); border-radius: 100px; }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; gap: 0.8rem; }
  .service__no { padding-top: 0; }
  .service:hover { padding-left: 0; }
}

/* =========================================================
   Work / Case studies
   ========================================================= */
.cases { display: flex; flex-direction: column; gap: clamp(1.5rem, 4vw, 3rem); }
.case { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.case--alt { grid-template-columns: 1fr 1.1fr; }
.case--alt .case__media { order: 2; }
.case__media { position: relative; min-height: 340px; overflow: hidden; display: flex; align-items: flex-end; padding: 1.6rem; }
.case__media[data-bg="1"] { background: linear-gradient(135deg, #1a2a12, #0c0c0f); }
.case__media[data-bg="2"] { background: linear-gradient(135deg, #0f2230, #0c0c0f); }
.case__media[data-bg="3"] { background: linear-gradient(135deg, #241433, #0c0c0f); }
.case__media::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 30% 20%, var(--accent-glow), transparent 40%); opacity: 0.5; }
.case__media::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(transparent 95%, rgba(255,255,255,0.06) 95%), linear-gradient(90deg, transparent 95%, rgba(255,255,255,0.06) 95%); background-size: 32px 32px; mask-image: radial-gradient(circle at 70% 80%, #000, transparent 70%); }
.case__sector { position: relative; z-index: 2; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); padding: 0.4em 0.9em; border: 1px solid var(--line-2); border-radius: 100px; background: rgba(0,0,0,0.3); }
.case__body { padding: clamp(1.8rem, 3.5vw, 3.2rem); display: flex; flex-direction: column; justify-content: center; }
.case__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -0.025em; line-height: 1.1; }
.case__desc { color: var(--muted); margin: 1rem 0 2rem; font-size: 1rem; }
.case__metrics { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.case__metrics > div { display: flex; flex-direction: column; gap: 0.2rem; }
.case__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--accent-strong); letter-spacing: -0.02em; line-height: 1; }
.case__metrics small { color: var(--muted); font-size: 0.8rem; }
@media (max-width: 860px) {
  .case, .case--alt { grid-template-columns: 1fr; }
  .case--alt .case__media { order: 0; }
  .case__media { min-height: 220px; }
}

/* =========================================================
   Process — pinned: title stays, cards scroll horizontally
   ========================================================= */
.process { position: relative; background: var(--bg); }
.process__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: clamp(4rem, 9vh, 7rem) 0; }
/* title aligns to the container, exactly like every other section */
.process__head { width: 100%; max-width: var(--container); margin: 0 auto clamp(2rem, 5vh, 3.5rem); padding: 0 var(--gutter); }
.process__head .section__sub { max-width: 620px; }
.process__progress { margin-top: 1.8rem; height: 2px; width: 100%; max-width: 320px; background: var(--line); border-radius: 2px; overflow: hidden; }
.process__progress i { display: block; height: 100%; width: 0%; background: var(--accent); }
/* viewport is full-bleed so cards scroll edge-to-edge (never clipped at the container) */
.process__viewport { overflow: hidden; width: 100%; }
.process__steps {
  --process-side-inset: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  display: flex; gap: 1.5rem; width: max-content; will-change: transform;
  /* first card starts at the same left inset as the title */
  padding-left: var(--process-side-inset);
  /* matching the trailing inset prevents the last card from feeling cropped */
  padding-right: var(--process-side-inset);
}
.step {
  flex: 0 0 clamp(270px, 30vw, 400px); padding: clamp(1.8rem, 3vw, 2.6rem);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  min-height: 320px; display: flex; flex-direction: column; transition: border-color 0.4s, background 0.4s;
}
.step:hover { border-color: var(--line-2); background: var(--surface-2); }
.step__no { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-strong); }
.step__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.025em; line-height: 1.05; margin: auto 0 0.8rem; }
.step__desc { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 720px) {
  .process__pin { min-height: 0; display: block; padding: clamp(5rem, 12vh, 9rem) 0; }
  .process__viewport { overflow: visible; }
  .process__steps { flex-direction: column; width: auto; padding: 0 var(--gutter); }
  .step { flex: none; min-height: auto; }
  .process__progress { display: none; }
}

/* =========================================================
   Stack
   ========================================================= */
.stack__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stack__col { padding: clamp(1.4rem, 2.5vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 0.4s, transform 0.4s var(--ease); }
.stack__col:hover { border-color: var(--line-2); transform: translateY(-4px); }
.stack__col h4 { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-strong); margin-bottom: 1.2rem; }
.stack__col li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--text); font-weight: 500; }
.stack__col li:last-child { border-bottom: none; }
@media (max-width: 860px) { .stack__cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stack__cols { grid-template-columns: 1fr; } }

/* =========================================================
   Testimonials
   ========================================================= */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote { padding: clamp(1.8rem, 3vw, 2.6rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.quote blockquote { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.4; letter-spacing: -0.01em; }
.quote figcaption { display: flex; align-items: center; gap: 0.9rem; }
.quote__avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #08080a; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; flex: none; }
.quote__who { display: flex; flex-direction: column; }
.quote__who strong { font-weight: 600; font-size: 0.95rem; }
.quote__who small { color: var(--muted); font-size: 0.82rem; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

.clients { margin-top: clamp(3rem, 7vh, 6rem); border-top: 1px solid var(--line); padding-top: 2.5rem; }
.clients__label { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.clients__row { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 1.5rem; }
.clients__row span { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.5vw, 2rem); color: var(--muted-2); letter-spacing: -0.02em; transition: color 0.4s; }
.clients__row span:hover { color: var(--text); }

/* =========================================================
   CTA
   ========================================================= */
.cta { position: relative; padding: clamp(6rem, 18vh, 13rem) var(--gutter); text-align: center; overflow: hidden; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.cta::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 120vw; height: 120vw; max-width: 1100px; max-height: 1100px; background: radial-gradient(circle, var(--accent-glow), transparent 60%); opacity: 0.25; pointer-events: none; }
.cta__inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.cta__eyebrow { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-strong); }
.cta__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 8.5vw, 6.6rem); line-height: 1.02; letter-spacing: -0.025em; margin: 1.2rem 0; }
.cta__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.cta__title .w { display: inline-block; }
.cta__title .accent { color: var(--accent-strong); }
.cta__sub { max-width: 560px; margin: 0 auto 2.5rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.2rem); }
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.cta__contact { margin-top: 2.5rem; font-family: var(--font-mono); font-size: 0.9rem; color: var(--muted); display: flex; gap: 1rem; justify-content: center; align-items: center; }
.cta__contact a { transition: color 0.3s; }
.cta__contact a:hover { color: var(--accent-strong); }

/* =========================================================
   Footer
   ========================================================= */
.footer { padding: clamp(3rem, 8vh, 6rem) var(--gutter) 2rem; border-top: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 3rem; max-width: var(--container); margin: 0 auto; width: 100%; }
.footer__logo { font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -0.04em; }
.footer__logo em { font-style: normal; color: var(--accent-strong); }
.footer__brand p { color: var(--muted); margin-top: 1rem; max-width: 320px; font-size: 0.95rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__col h5 { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 1.2rem; }
.footer__col a { display: block; padding: 0.4rem 0; color: var(--text); font-size: 0.95rem; transition: color 0.3s; }
.footer__col a:hover { color: var(--accent-strong); }
.footer__wordmark { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 22vw, 20rem); letter-spacing: -0.04em; line-height: 0.8; text-align: center; margin: clamp(2rem, 6vh, 5rem) 0 1rem; color: var(--wordmark-ghost); -webkit-text-stroke: 0 transparent; user-select: none; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; max-width: var(--container); margin: 0 auto; width: 100%; padding-top: 2rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) { .footer__cols { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   reveal-fade helpers (JS toggles)
   ========================================================= */
.reveal-fade { opacity: 0; transform: translateY(24px); }
.reveal-line { opacity: 0; }
