/* =========================================================
   3KITS — Home "Particle World" (three.js + GSAP edition)
   One fixed WebGL canvas behind the page: morphing particles
   per section + DOM-synced image planes. Content sits on glass.
   ========================================================= */

/* ---------- Font: Mona Sans (GitHub, SIL OFL — fonts/mona-sans-OFL.txt) is the single typeface site-wide.
   Self-hosted variable font (weights 200–900). mona-sans-latin.woff2 holds the letters the pages use (English, punctuation,
   arrows) and is the one preloaded; the full file is only downloaded when a page has one of its rarer characters.
   Inter's tiny file still supplies the rupee sign ---------- */
@font-face {
  font-family: 'Mona Sans';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/mona-sans-latin.woff2') format('woff2-variations'), url('../fonts/mona-sans-latin.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0-00AC, U+00AE-00B4, U+00B6-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2190-2194, U+2212;
}

@font-face {
  font-family: 'Mona Sans';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/mona-sans-vf.woff2') format('woff2-variations'), url('../fonts/mona-sans-vf.woff2') format('woff2');
  unicode-range: U+0100-0130, U+0132-0137, U+0139-0148, U+014A-014D, U+0150-0151, U+0154-017E, U+0192, U+01A0-01A1, U+01AF-01B0, U+01CD-01DC, U+01E6-01E7, U+01F8-01F9, U+0218-021B, U+0237, U+02C7, U+02D8-02D9, U+02DB, U+02DD, U+0300-0304, U+0306-030C, U+0312, U+031B, U+0323, U+0326-0328, U+0335-0338, U+03BC, U+03C0, U+0E3F, U+1E3E-1E3F, U+1E80-1E85, U+1E9E, U+1EA0-1EF9, U+2070, U+2074-2079, U+2080-2089, U+20A9-20AA, U+20B8, U+20BA, U+20BF, U+2103, U+2109, U+2113, U+2116-2117, U+212E, U+215B-215E, U+2205, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+2460-2468, U+24EA, U+24FF, U+25CB-25CC, U+25CF, U+2639-263A, U+2713, U+2776-277E, U+F8FF, U+FB01-FB02;
}

@font-face {
  font-family: 'Mona Sans';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/inter-rupee.woff2') format('woff2');
  unicode-range: U+20B9;
}

:root {
  --blue: #2f80ed;
  --orange: #f2751a;
  --grey: #8a8f9c;
  --pink: #df1e5a;
  --green: #7cc242;
  --grad: linear-gradient(100deg, var(--blue), var(--pink) 55%, var(--orange));

  --bg: #04040a;
  --glass: rgba(16, 16, 28, .5);
  --glass-2: rgba(22, 22, 38, .72);
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .2);
  --text: #eeeef6;
  --muted: rgba(238, 238, 246, .64);
  --dim: rgba(238, 238, 246, .38);
  --cream: #f3efe6;

  --display: 'Mona Sans', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Mona Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: var(--body);
  /* small uppercase labels — same Mona Sans, kept as a token */

  --gutter: clamp(16px, 3.4vw, 56px);
  --sec: clamp(44px, 4.5vw, 76px);
  --radius: 24px;
  --h-size: clamp(32px, 3.2vw, 76px);
  /* one size for every page and section heading */
  --ease: cubic-bezier(.22, 1, .36, 1);
}


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

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  background: var(--bg);
  overflow-x: clip;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

body.is-loading {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

input,
select,
textarea,
optgroup,
code,
pre,
kbd,
samp {
  font-family: inherit;
}

/* one typeface everywhere */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

::selection {
  background: var(--pink);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap,
.container {
  width: 100%;
  max-width: calc(1560px + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* page top on Tech, About, Insights and Our Work: big heading, then an intro indented to the right (same as the contact page) */
.pg-hero {
  padding: calc(84px + clamp(36px, 5.4vw, 88px)) 0 clamp(48px, 6vw, 96px);
}

.pg-hero__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--h-size);
  line-height: 1.08;
  letter-spacing: 0;
}

.pg-hero__intro {
  margin-top: 30px;
  font-size: clamp(18px, 1.7vw, 30px);
  line-height: 1.6;
  color: var(--text);
}

@media (max-width: 700px) {
  .pg-hero__intro {
    margin-left: 0;
  }
}

/* text for screen readers and search engines only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* "page not found" (404.php) */
.nf__code {
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--muted);
}

.nf__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 36px;
}

.nf__contact {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nf__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
  padding: 0;
  list-style: none;
}

.nf__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 15px;
  transition: border-color .3s;
}

.nf__links a:hover,
.nf__links a:focus-visible {
  border-color: var(--text);
}

.pg-hero__intro a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* same heading + intro used as a section further down a page (service pages) */
.pg-intro {
  padding: var(--sec) 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 999;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

/* the WebGL world sits behind everything */
.world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

main>section:not(.hero) :is(.grad, .grad *) {
  text-shadow: none;
}

/* gradient text is transparent; a shadow would show through it */

/* ---------- Type ---------- */
.mono {
  font-family: var(--mono);
}

.eyebrow,
.h6 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

.h-xl {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 2.8vw, 44px);
  line-height: 1.1;
  letter-spacing: 0;
}

/* heading highlight: one logo colour fading through a light tint to white. Each section takes the next
   logo colour in turn; paintGrads() in main3.js stretches one gradient across split words/letters */
main>section:nth-of-type(4n+1) {
  --hue: var(--orange);
}

main>section:nth-of-type(4n+2) {
  --hue: var(--blue);
}

main>section:nth-of-type(4n+3) {
  --hue: var(--pink);
}

main>section:nth-of-type(4n+4) {
  --hue: var(--green);
}

.grad {
  font-style: normal;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-image: linear-gradient(90deg, var(--hue, var(--pink)), #fff);
  background-image: linear-gradient(90deg, var(--hue, var(--pink)), color-mix(in srgb, var(--hue, var(--pink)) 45%, #fff) 52%, #fff 96%);
}

.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}

.w>span {
  display: inline-block;
  will-change: transform;
}

.c {
  display: inline-block;
  will-change: transform;
}

.cw {
  display: inline-block;
  white-space: nowrap;
}

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sec-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 44px);
}

.sec-head__side {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.sec-head__side p {
  color: var(--muted);
  max-width: 46ch;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 15px;
}

.link-arrow i {
  font-style: normal;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  transition: background .4s, border-color .4s, transform .5s var(--ease);
}

.link-arrow:hover i {
  background: var(--grad);
  border-color: transparent;
  transform: rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 32px;
  border-radius: 100px;
  overflow: hidden;
  isolation: isolate;
  background: var(--grad);
  background-size: 200% 100%;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
  transition: background-position .8s var(--ease), box-shadow .5s;
  box-shadow: 0 10px 40px rgba(223, 30, 90, .25);
}

.btn:hover {
  background-position: 100% 0;
  box-shadow: 0 14px 60px rgba(223, 30, 90, .45);
}

.btn span {
  position: relative;
}

.btn-circle {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background .4s, color .4s;
}

.btn-circle svg {
  width: 24px;
  transition: transform .5s var(--ease);
}

.btn-circle:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-circle:hover svg {
  transform: translateX(4px);
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  background: var(--bg);
}

.loader__logo {
  width: clamp(96px, 10vw, 140px);
  height: auto;
  display: block;
}

.loader__bar {
  width: 240px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.loader__bar i {
  display: block;
  height: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}

.loader__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .1em;
}

/* ---------- Cursor ---------- */
.cursor {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  opacity: 0;
  transition: opacity .3s;
}

.cursor.is-active {
  opacity: 1;
}

.cursor__dot,
.cursor__ring {
  position: fixed;
  left: 0;
  top: 0;
  border-radius: 50%;
}

.cursor__dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: #fff;
}

.cursor__ring {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid rgba(255, 255, 255, .4);
  display: grid;
  place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .4s, border-color .4s;
}

.cursor__ring span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0;
  transition: opacity .3s;
}

.cursor.is-hover .cursor__ring {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-color: var(--pink);
}

.cursor.is-view .cursor__ring {
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  background: #fff;
  border-color: #fff;
}

.cursor.is-view .cursor__ring span {
  opacity: 1;
}

@media (hover: none),
(pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ---------- Scene dots ---------- */

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  transition: transform .6s var(--ease), background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(4, 4, 10, .55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.menu-open .header {
  background: rgb(6, 6, 14);
  border-color: transparent;
  transform: none;
}

.header__inner {
  max-width: calc(1560px + 2 * var(--gutter));
  margin: 0 auto;
  height: 84px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-inline: var(--gutter);
}

.header__logo img {
  height: 46px;
  width: auto;
}

.nav {
  margin-left: auto;
  margin-right: clamp(12px, 2.5vw, 48px);
  height: 100%;
}

.nav__list {
  display: flex;
  gap: clamp(20px, 2.2vw, 36px);
  height: 100%;
}

.nav__item {
  display: flex;
  align-items: center;
}

.nav__link {
  position: relative;
  display: block;
  overflow: hidden;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.4;
  text-transform: capitalize;
  color: transparent;
}

.nav__link::before,
.nav__link::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  transition: transform .5s var(--ease);
}

.nav__link::before {
  top: 0;
  color: var(--text);
}

.nav__link::after {
  top: 100%;
  color: var(--orange);
}

.nav__item:hover .nav__link::before,
.nav__item:hover .nav__link::after {
  transform: translateY(-100%);
}

/* "+" beside Services: turns into a "×" while the mega menu is open */
.has-mega::after {
  content: "+";
  margin-left: 6px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--orange);
  transition: transform .5s var(--ease);
}

.has-mega:hover::after,
.has-mega:focus-within::after {
  transform: rotate(45deg);
}

.mega {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  top: 84px;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.2fr;
  gap: 32px;
  padding: 36px;
  border-radius: 26px;
  background: rgba(14, 14, 24, .92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .35s, visibility .35s, transform .5s var(--ease);
}

.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mega__col .h6 {
  margin-bottom: 14px;
  color: var(--dim);
}

.mega__col a {
  display: block;
  font-size: 15px;
  color: var(--muted);
  padding: 5px 0;
  transition: color .3s, transform .4s var(--ease);
}

.mega__col a:hover {
  color: var(--text);
  transform: translateX(4px);
}

.mega__promo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: 18px;
  background: radial-gradient(120% 120% at 100% 0%, rgba(47, 128, 237, .35), rgba(223, 30, 90, .25) 45%, transparent 75%), rgba(8, 8, 16, .8);
  border: 1px solid var(--line);
}

.mega__promo .eyebrow {
  color: var(--orange);
}

.mega__promo strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
}

.mega__promo span:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
}

.mega__promo em {
  font-style: normal;
  margin-top: auto;
  font-weight: 500;
}

.header__call {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
}

/* phone as a glass pill: a 1px contour with a highlight travelling round it, a blurred copy of that
   highlight glowing inside, the icon in a white circle on the right. On hover a warm glow lifts from the
   bottom edge, the number rolls up to a fresh copy and the phone rings. Every layer stays inside the pill. */
.header__call-num {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 5px 5px 5px 22px;
  border-radius: 999px;
  color: #fff;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  background: radial-gradient(107.5% 107.5% at 50% 215%, rgba(242, 140, 80, .22), rgba(242, 140, 80, 0)), rgba(223, 228, 248, .05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color .5s;
}

.header__call:hover .header__call-num,
.header__call:focus-visible .header__call-num {
  background-color: rgba(242, 117, 26, .12);
}

.header__glow-ring,
.header__glow-halo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

/* an oversized square turning about the pill's centre carries the conic highlight (transform keeps it on the GPU) */
.header__glow-ring::before,
.header__glow-halo::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  aspect-ratio: 1;
  margin: -75% 0 0 -75%;
  animation: glow-spin 4s linear infinite;
  will-change: transform;
}

.header__glow-ring {
  z-index: 1;
  padding: 1px;
  background: rgba(223, 228, 248, .14);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.header__glow-ring::before {
  background: conic-gradient(rgba(255, 236, 222, .7) 0deg, rgba(255, 236, 222, 0) 60deg, rgba(255, 236, 222, 0) 310deg, rgba(255, 236, 222, .7) 360deg);
}

.header__glow-halo {
  z-index: -1;
  opacity: .4;
  transition: opacity 1s;
}

.header__glow-halo::before {
  background: conic-gradient(rgba(242, 117, 26, .32) 0deg, rgba(242, 117, 26, 0) 110deg, rgba(242, 117, 26, 0) 250deg, rgba(242, 117, 26, .32) 360deg);
  filter: blur(18px);
}

.header__glow-halo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(85% 120% at 50% 120%, rgba(242, 117, 26, .55), rgba(242, 117, 26, 0));
  filter: blur(18px);
  opacity: 0;
  transition: opacity 1s;
}

.header__call:hover .header__glow-halo,
.header__call:focus-visible .header__glow-halo,
.header__call:hover .header__glow-halo::after,
.header__call:focus-visible .header__glow-halo::after {
  opacity: 1;
}

@keyframes glow-spin {
  to {
    transform: rotate(360deg);
  }
}

/* number rolls up to a fresh copy on hover (same trick as the menu links) */
.header__call-txt {
  position: relative;
  z-index: 2;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  color: transparent;
}

.header__call-txt::before,
.header__call-txt::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  color: #fff;
  transition: transform .5s var(--ease);
}

.header__call-txt::before {
  top: 0;
}

.header__call-txt::after {
  top: 100%;
}

.header__call:hover .header__call-txt::before,
.header__call:hover .header__call-txt::after,
.header__call:focus-visible .header__call-txt::before,
.header__call:focus-visible .header__call-txt::after {
  transform: translateY(-100%);
}

.header__call-num svg {
  position: relative;
  z-index: 2;
  order: 2;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 12px;
  border-radius: 50%;
  color: #04040a;
  background: radial-gradient(circle closest-side, var(--orange) 98%, transparent 100%) center / 0 0 no-repeat, #fff;
  transition: background-size .45s var(--ease), color .45s var(--ease);
}

/* hover: orange fills the white disc from the centre, the icon turns white, redraws its outline and rings */
.header__call:hover .header__call-num svg,
.header__call:focus-visible .header__call-num svg {
  background-size: 150% 150%, auto;
  color: #fff;
}

.header__call-num svg path {
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}

.header__call:hover .header__call-num svg path,
.header__call:focus-visible .header__call-num svg path {
  animation: phone-draw .9s var(--ease);
}

@keyframes phone-draw {
  from {
    stroke-dashoffset: 100;
  }
}

.header__call-num svg {
  overflow: visible;
}

/* the thicker stroke reaches past the 24px box; the circle has room for it */
.header__call-num svg path {
  stroke-width: 2.4;
}

/* the outline icon is too thin to read at this size */
.header__call:hover .header__call-num svg,
.header__call:focus-visible .header__call-num svg {
  animation: phone-ring .9s var(--ease);
}

@keyframes phone-ring {

  0%,
  100% {
    transform: none;
  }

  15% {
    transform: rotate(-16deg);
  }

  30% {
    transform: rotate(13deg);
  }

  45% {
    transform: rotate(-9deg);
  }

  60% {
    transform: rotate(6deg);
  }

  75% {
    transform: rotate(-3deg);
  }
}

@media (prefers-reduced-motion: reduce) {

  .header__glow-ring::before,
  .header__glow-halo::before,
  .header__call:hover .header__call-num svg,
  .header__call:hover .header__call-num svg path {
    animation: none;
  }
}

.burger {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: none;
  position: relative;
  flex: none;
}

.burger span {
  position: absolute;
  left: 16px;
  right: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform .5s var(--ease), top .5s var(--ease), opacity .3s;
}

.burger span:nth-child(1) {
  top: 18px;
}

.burger span:nth-child(2) {
  top: 24px;
}

.burger span:nth-child(3) {
  top: 30px;
}

.menu-open .burger span:nth-child(1) {
  top: 24px;
  transform: rotate(45deg);
}

.menu-open .burger span:nth-child(2) {
  opacity: 0;
}

.menu-open .burger span:nth-child(3) {
  top: 24px;
  transform: rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 75;
  visibility: hidden;
  overflow-y: auto;
}

/* fixed, so it still covers the page when the menu scrolls (open Services list on a short screen) */
.menu__bg {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 14, .9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
}

.menu__inner {
  position: relative;
  min-height: 100%;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-top: 130px;
  padding-bottom: 48px;
  align-items: end;
}

.menu__main li {
  overflow: hidden;
}

.menu__main a {
  display: block;
  padding: 4px 0;
  transition: transform .5s var(--ease);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.1;
  letter-spacing: 0;
}

/* the span's transform belongs to the GSAP open animation; the hover slide moves the link instead */
.menu__main a span {
  display: inline-block;
}

.menu__main a:hover {
  transform: translateX(16px);
}

.menu__main a:hover span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Services row in the mobile menu: the name opens the page, the round button opens the full list */
.menu__row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.menu__toggle {
  flex: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--text);
  transition: background .4s, border-color .4s, transform .5s var(--ease);
}

.menu__toggle i::before,
.menu__toggle i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  margin: -.75px 0 0 -7px;
  background: currentColor;
  transition: transform .5s var(--ease);
}

.menu__toggle i::after {
  transform: rotate(90deg);
}

.menu__has-sub.is-open .menu__toggle {
  background: var(--grad);
  border-color: transparent;
  transform: rotate(180deg);
}

.menu__has-sub.is-open .menu__toggle i::after {
  transform: rotate(0);
}

.menu__sub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 22px 32px;
  padding: 16px 0 26px;
}

.menu__sub .h6 {
  color: var(--dim);
  margin-bottom: 8px;
}

.menu__main .menu__sub a {
  padding: 7px 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--muted);
  transition: color .3s, transform .4s var(--ease);
}

.menu__main .menu__sub a:hover {
  color: var(--text);
  transform: translateX(4px);
}

.menu__side {
  display: grid;
  gap: 10px;
  align-content: end;
}

.menu__side .h6 {
  color: var(--dim);
  margin-bottom: 8px;
}

.menu__side>a {
  font-family: var(--display);
  font-size: clamp(18px, 1.8vw, 26px);
}

.menu__side p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 8px;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.socials a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-size: 14px;
}

.socials a:hover {
  background: var(--text);
  color: var(--bg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 85px 0 clamp(28px, 5vh, 56px);
}

/* light-streak background (three.js, see initHeroStreaks); fades into the world canvas at the bottom */
.hero__fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, #000 88%, transparent);
}

.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
}

/* auto margins split the spare height: headline block centred, tech stack pinned to the bottom of the hero */
.hero__eyebrow {
  margin-top: auto;
}

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: inherit;   /* it is the home page's h1: keeps the weight of the small label */
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero__title {
  max-width: 30ch;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 4.7vw, 88px);
  line-height: 1.02;
  letter-spacing: 0;
  perspective: 900px;
  text-shadow: 0 8px 40px rgba(4, 4, 10, .6);
}

.hero__sub {
  margin-top: 26px;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 500;
  color: var(--text);
  text-shadow: 0 0 24px rgba(4, 4, 10, .95), 0 0 10px rgba(4, 4, 10, .9), 0 1px 3px rgba(4, 4, 10, .9);
}

/* sits on the bright waist of the light streaks */
.hero__actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* tech-stack marquee under the hero buttons */
.stack {
  width: 100%;
  min-width: 0;
  margin-top: auto;
  padding-top: clamp(44px, 5.5vw, 40px);
}

.stack__title {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  font-size: clamp(15px, 1.15vw, 19px);
  color: var(--muted);
  white-space: nowrap;
}

.stack__title::before,
.stack__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2));
}

.stack__title::after {
  background: linear-gradient(90deg, var(--line-2), transparent);
}

.stack__viewport {
  margin-top: clamp(22px, 2.4vw, 36px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.stack__track {
  display: flex;
  width: max-content;
  animation: stack-scroll 45s linear infinite;
}

.stack__viewport:hover .stack__track {
  animation-play-state: paused;
}

.stack__list {
  display: flex;
  align-items: center;
  gap: clamp(40px, 4.5vw, 80px);
  padding-right: clamp(40px, 4.5vw, 80px);
}

.stack__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 600;
  font-size: clamp(16px, 1.3vw, 21px);
  color: rgba(238, 238, 246, .62);
  transition: color .3s;
}

.stack__list li:hover {
  color: #fff;
}

.stack__list svg {
  flex: none;
  width: 1.45em;
  height: 1.45em;
  fill: currentColor;
}

@keyframes stack-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stack__track {
    animation: none;
  }
}

.seal {
  position: absolute;
  left: var(--gutter);
  bottom: 32px;
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
}

.seal svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 18s linear infinite;
}

.seal text {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 3px;
  fill: var(--muted);
}

.seal img {
  width: 54px;
  height: auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* scroll hint: in the hero's centre column, under the buttons */
.scroll-cue {
  margin-top: clamp(28px, 4vh, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue i {
  width: 1px;
  height: 60px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 40%;
  background: var(--grad);
  animation: cue 1.8s var(--ease) infinite;
}

@keyframes cue {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(260%);
  }
}

/* ---------- WebGL media (DOM fallback underneath) ---------- */
.gl-media {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tint, #111);
  display: grid;
  place-items: center;
}

.gl-media img {
  width: 84%;
  height: auto;
  transition: opacity .3s;
}

.gl-media--cover {
  aspect-ratio: 4 / 3;
}

.gl-media--cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* once the image planes are live, WebGL draws them in place of the DOM pictures */
.gl-images .gl-media {
  background: none;
}

.gl-images .gl-media img {
  opacity: 0;
}

/* ---------- Work ---------- */
.work {
  padding: var(--sec) 0;
}

/* staggered case studies: wide/narrow cards, scene photo behind a floating browser window */
.cases {
  --cg: clamp(20px, 3vw, 56px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--cg);
  row-gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.case {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background: #0d0d16;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45);
}

.case--wide {
  aspect-ratio: 16 / 11.5;
}

.case--narrow {
  aspect-ratio: 4 / 4.6;
}

.case--full {
  aspect-ratio: 16 / 8;
}

/* rows alternate wide | narrow, narrow | wide, the second card in each row sits lower, and the last spans the width */
.case:nth-child(1) {
  grid-column: 1 / 8;
}

.case:nth-child(2) {
  grid-column: 8 / 13;
  margin-top: clamp(80px, 14vw, 220px);
}

.case:nth-child(3) {
  grid-column: 2 / 7;
}

.case:nth-child(4) {
  grid-column: 7 / 13;
  margin-top: clamp(80px, 12vw, 200px);
}

.case:nth-child(5) {
  grid-column: 1 / 13;
}

/* index3: one card per row, zigzagging left and right edges, each exactly as wide as a 7-column card */
.cases--stack {
  display: flex;
  flex-direction: column;
}

.cases--stack .case:nth-child(n) {
  width: calc((100% - 11 * var(--cg)) * 7 / 12 + 6 * var(--cg));
  margin-top: 0;
}

.cases--stack .case:nth-child(odd) {
  align-self: flex-start;
}

.cases--stack .case:nth-child(even) {
  align-self: flex-end;
}

.case--full .case__stage {
  inset: 10% 18% 20%;
}

.case__bg {
  position: absolute;
  inset: -4%;
  z-index: -2;
  background: center / cover no-repeat;
  transition: transform 1.4s var(--ease);
}

.case:hover .case__bg {
  transform: scale(1.06);
}

/* bottom scrim so the title reads on any photo */
.case::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .55));
  pointer-events: none;
}

.case__stage {
  position: absolute;
  inset: 9% 7% 22%;
  display: grid;
  place-items: center;
}

.case__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .12);
  transition: transform .9s var(--ease);
}

.case:hover .case__screen {
  transform: translateY(-10px);
}

.case__bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: rgba(245, 245, 247, .96);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.case__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
}

.case__bar i:nth-child(2) {
  background: #febc2e;
}

.case__bar i:nth-child(3) {
  background: #28c840;
}

.case__video {
  position: absolute;
  inset: 22px 0 0;
  width: 100%;
  height: calc(100% - 22px);
  object-fit: cover;
  object-position: top;
  display: block;
}

/* index4: a full-page homepage screenshot scrolls down and back inside the window while the card is on screen;
   JS sets --travel (how far) and --dur (at a steady reading speed) */
.case__page {
  position: absolute;
  inset: 22px 0 0;
  overflow: hidden;
}

.case__page img {
  width: 100%;
  height: auto;
  display: block;
  animation: case-scroll var(--dur, 40s) ease-in-out infinite alternate;
  animation-play-state: paused;
  will-change: transform;
}

.case.is-inview .case__page img {
  animation-play-state: running;
}

@keyframes case-scroll {

  0%,
  6% {
    transform: translateY(0);
  }

  94%,
  100% {
    transform: translateY(var(--travel, 0px));
  }
}

.case__title {
  position: absolute;
  left: clamp(20px, 3vw, 44px);
  right: clamp(20px, 3vw, 44px);
  bottom: clamp(18px, 2.6vw, 38px);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 36px);
  letter-spacing: 0;
  line-height: 1.1;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  gap: 14px;
}

.case__title::after {
  content: "↗";
  font-size: .7em;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .4s, transform .5s var(--ease);
}

.case:hover .case__title::after {
  opacity: 1;
  transform: none;
}

/* ---------- About ---------- */
.about {
  padding: var(--sec) 0;
}

.about__title {
  margin: 22px 0 clamp(32px, 4vw, 56px);
  font-size: clamp(28px, 3vw, 52px);
  line-height: 1.1;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(28px, 5vw, 90px);
  align-items: center;
}

.about__media {
  overflow: hidden;
  padding: 10px;
}

.about__media img {
  /*border-radius: 16px;*/
  width: 100%;
  height: auto;
  /*aspect-ratio: 4 / 3.4;*/
  object-fit: cover;
}

.about__lead {
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(18px, 1.6vw, 26px);
  line-height: 1.7;
}

.scrub-words .sw {
  color: rgba(238, 238, 246, .5);
}

.about__lead p+p {
  margin-top: .9em;
}

.about__lead p {
  /*text-align: justify;*/
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.about__items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 28px);
  margin-top: clamp(40px, 5vw, 80px);
}

.num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 40px;
}

/* intro stats (like 23digital.com.au): rounded cards, a coloured dot top-left, big figure and title at the bottom.
   All cards start plain; the one under the pointer (or focused) lights up:
   the campaigns video fades in behind it, the dot pulses and the description slides up */
.stat {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(240px, 19.5vw, 375px);
  padding: clamp(24px, 2.4vw, 40px);
  border-radius: clamp(16px, 1.4vw, 22px);
  background: #1b1828;
  transition: background .5s;
}

.stat::before {
  content: "";
  position: absolute;
  top: clamp(24px, 2.4vw, 40px);
  left: clamp(24px, 2.4vw, 40px);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 0 var(--dot);
}

/* hover backdrop: the campaigns video, with a shade at the bottom so the text stays readable */
.stat__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #04040a;
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
  transition: opacity .7s var(--ease), transform 1.4s var(--ease);
}

.stat::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(to top, rgba(4, 4, 10, .7), transparent 65%);
  transition: opacity .7s var(--ease);
}

.stat:nth-child(1) {
  --dot: var(--pink);
}

.stat:nth-child(2) {
  --dot: var(--blue);
}

.stat:nth-child(3) {
  --dot: var(--orange);
}

.stat:nth-child(4) {
  --dot: var(--green);
}

.stat__value {
  display: flex;
  align-items: flex-end;
  gap: 0;
  height: auto;
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(54px, 5.6vw, 100px);
  line-height: .9;
  color: #fff;
  transition: font-size .6s var(--ease);
}

.stat__value span {
  color: #fff;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

.stat__value i {
  font-style: normal;
  font-size: 1em;
  line-height: .9;
  color: #fff;
}

.stat__icon {
  width: auto;
  height: .9em;
}

.stat__body {
  padding: 0;
}

.stat__label {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.3;
  margin: 0;
}

.stat__body p {
  color: rgba(238, 238, 246, .78);
  font-size: 15px;
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .7s var(--ease), opacity .4s, margin .5s;
}

/* the hovered / focused card */
.stat:hover,
.stat:focus-within {
  background: #221e33;
}

.stat:hover::after,
.stat:focus-within::after {
  opacity: 1;
}

.stat:hover .stat__video,
.stat:focus-within .stat__video {
  opacity: 1;
  transform: none;
}

.stat:hover::before,
.stat:focus-within::before {
  animation: stat-ping 2s ease-out infinite;
}

.stat:hover .stat__body p,
.stat:focus-within .stat__body p {
  max-height: 10em;
  opacity: 1;
  margin-top: 12px;
}

/* the figure shrinks to make room for the description, so the card keeps its height */
.stat:hover .stat__value,
.stat:focus-within .stat__value {
  font-size: clamp(36px, 3.2vw, 56px);
}

@keyframes stat-ping {
  0% {
    box-shadow: 0 0 0 0 var(--dot);
  }

  100% {
    box-shadow: 0 0 0 12px transparent;
  }
}

/* touch screens: no hover, so every description shows */
@media (hover: none) {
  .stat__body p {
    max-height: none;
    opacity: 1;
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat::before {
    animation: none !important;
  }
}

/* ---------- Why Hyderabad (sheet: numbered tabs left, sticky panel right; accordion below 1101px) ---------- */
.why {
  position: relative;
  z-index: 1;
  padding: var(--sec) 0;
  background: #0b0b12;
  border-radius: clamp(28px, 3vw, 48px);
  box-shadow: 0 0 0 1px var(--line), 0 -30px 60px rgba(0, 0, 0, .35);
}

.why .eyebrow {
  margin-bottom: 18px;
  color: var(--orange);
}

.why__title {
  font-size: clamp(28px, 3vw, 52px);
  line-height: 1.08;
}

.why .sec-head {
  grid-template-columns: 1.75fr 1fr;
}

.why .sec-head__side p {
  color: var(--muted);
}

/* cards in a sideways slider: cut-corner outline, line-art icon, title + "+" (opens the story) */
.why-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.why-slider {
  margin-top: clamp(36px, 4vw, 64px);
}

/* the row bleeds to both screen edges (margins/padding set in initWhy) while the first card lines up with the content */
.why-track {
  display: flex;
  gap: clamp(14px, 1.5vw, 26px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-block: 2px;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.why-track::-webkit-scrollbar {
  display: none;
}

.why-track.is-drag {
  scroll-snap-type: none;
  cursor: grabbing;
}

.wcard {
  position: relative;
  isolation: isolate;
  flex: 0 0 clamp(290px, 30vw, 540px);
  height: clamp(520px, 36vw, 620px);
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 2.6vw, 44px);
  scroll-snap-align: start;
  color: var(--text);
}

.wcard__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: visible;
  pointer-events: none;
}

.wcard__fill {
  fill: url(#wcardFill);
}

.wcard__line {
  fill: none;
  stroke: rgba(255, 255, 255, .28);
  stroke-width: 1;
  transition: stroke .5s;
}

.wcard__glow {
  fill: none;
  stroke: url(#wcardStroke);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: stroke-dashoffset 1.3s var(--ease), opacity .4s;
}

.wcard:hover .wcard__glow,
.wcard:focus-within .wcard__glow,
.wcard.is-open .wcard__glow {
  stroke-dashoffset: 0;
  opacity: 1;
}

.wcard:hover .wcard__line,
.wcard.is-open .wcard__line {
  stroke: rgba(255, 255, 255, .1);
}

.wcard__num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--dim);
  transition: color .4s;
}

.wcard:hover .wcard__num,
.wcard.is-open .wcard__num {
  color: var(--orange);
}

.wcard__icon {
  position: absolute;
  left: 50%;
  top: 13%;
  width: min(56%, 230px);
  transform: translateX(-50%);
  transform-origin: 50% 0;
  z-index: 0;
  transition: opacity .6s var(--ease), transform .9s var(--ease);
}

.wcard.is-open .wcard__icon {
  opacity: 0;
  transform: translateX(-50%) translateY(-10%) scale(.8);
}

.wcard__body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  transition: padding-bottom .7s var(--ease);
}

.wcard__title {
  margin: 0;
  padding-right: 64px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 1.75vw, 30px);
  line-height: 1.15;
  letter-spacing: 0;
}

.wcard__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .7s var(--ease);
}

.wcard__more>div {
  overflow: hidden;
  min-height: 0;
}

.wcard__more p {
  margin: 0;
  padding-top: 16px;
  font-size: clamp(15px, 1.02vw, 16px);
  line-height: 1.7;
  color: var(--muted);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s, transform .7s var(--ease);
}

.wcard.is-open .wcard__body {
  padding-bottom: 68px;
}

.wcard.is-open .wcard__more {
  grid-template-rows: 1fr;
}

.wcard.is-open .wcard__more p {
  opacity: 1;
  transform: none;
  transition-delay: .15s;
}

.wcard__btn {
  position: absolute;
  z-index: 2;
  right: clamp(28px, 2.6vw, 44px);
  bottom: clamp(28px, 2.6vw, 44px);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background .4s, color .4s, border-color .4s, transform .6s var(--ease);
}

.wcard__btn i {
  position: relative;
  width: 16px;
  height: 16px;
}

.wcard__btn i::before,
.wcard__btn i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1.6px;
  margin-top: -.8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .5s var(--ease);
}

.wcard__btn i::after {
  transform: rotate(90deg);
}

.wcard:hover .wcard__btn,
.wcard__btn:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #0b0b12;
}

.wcard.is-open .wcard__btn {
  background: #fff;
  border-color: #fff;
  color: #0b0b12;
  transform: rotate(180deg);
}

.wcard.is-open .wcard__btn i::after {
  transform: rotate(0);
}

/* ---- line-art icons: draw in once the row is on screen, then a small motion each on hover ---- */
.wicon {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.wicon * {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wicon g,
.wicon rect,
.wicon path,
.wicon circle {
  transform-box: fill-box;
  transform-origin: center;
}

.wicon .w-d {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.why-slider.is-ready .w-d {
  stroke-dashoffset: 1;
  opacity: 0;
  transition: stroke-dashoffset 1.6s var(--ease) var(--d, 0s), opacity .1s var(--d, 0s);
}

.why-slider.is-ready.is-drawn .w-d {
  stroke-dashoffset: 0;
  opacity: 1;
}

@keyframes why-redraw {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes why-bar {

  0%,
  100% {
    transform: scaleY(1);
  }

  40% {
    transform: scaleY(.35);
  }
}

@keyframes why-typing {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-7px);
  }
}

@keyframes why-orbit {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(7px, -6px);
  }

  50% {
    transform: translate(0, -11px);
  }

  75% {
    transform: translate(-7px, -5px);
  }
}

@keyframes why-twinkle {

  0%,
  100% {
    transform: scale(1) rotate(0);
  }

  50% {
    transform: scale(.55) rotate(45deg);
  }
}

@keyframes why-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes why-beat {

  0%,
  100% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.07);
  }
}

/* insight: bars dip and spring back one after another, the trend arrow redraws */
.wicon--insight .w-bar {
  transform-origin: 50% 100%;
}

.wcard:hover .wicon--insight .w-bar {
  animation: why-bar 1s var(--ease) both;
}

.wcard:hover .wicon--insight .w-bar:nth-of-type(2) {
  animation-delay: .1s;
}

.wcard:hover .wicon--insight .w-bar:nth-of-type(3) {
  animation-delay: .2s;
}

.wcard:hover .wicon--insight .w-trend {
  animation: why-redraw 1.2s var(--ease) .15s both;
}

.wcard:hover .wicon--insight .w-arrow {
  animation: why-redraw .6s var(--ease) .9s both;
}

/* talk: the two bubbles lean apart and the dots type */
.wicon--talk .w-left,
.wicon--talk .w-right {
  transition: transform .8s var(--ease);
}

.wcard:hover .wicon--talk .w-left {
  transform: translate(-7px, -5px) rotate(-3deg);
}

.wcard:hover .wicon--talk .w-right {
  transform: translate(7px, 5px) rotate(3deg);
}

.wcard:hover .wicon--talk .w-dot {
  animation: why-typing 1s ease-in-out infinite;
}

.wcard:hover .wicon--talk .w-dot:nth-of-type(2) {
  animation-delay: .15s;
}

.wcard:hover .wicon--talk .w-dot:nth-of-type(3) {
  animation-delay: .3s;
}

/* shield: dashed ring keeps turning, the shield beats and the tick redraws */
.wicon--shield .w-ring {
  stroke-width: 1.4;
  stroke-dasharray: 2 11;
  opacity: 0;
  transition: opacity 1s .8s;
  animation: why-spin 40s linear infinite;
}

.why-slider.is-drawn .wicon--shield .w-ring {
  opacity: .45;
}

.wcard:hover .wicon--shield .w-ring {
  animation-duration: 8s;
}

.wcard:hover .wicon--shield .w-shield,
.wcard:hover .wicon--shield .w-shield-in {
  animation: why-beat .9s var(--ease);
}

.wcard:hover .wicon--shield .w-check {
  animation: why-redraw .9s var(--ease) .2s both;
}

/* search: the lens scans around, sparkles twinkle (slowly at rest, quicker on hover) */
.why-slider.is-drawn .wicon--search .w-spark--a {
  animation: why-twinkle 3.2s ease-in-out 1.6s infinite;
}

.why-slider.is-drawn .wicon--search .w-spark--b {
  animation: why-twinkle 3.2s ease-in-out 2.4s infinite;
}

.wcard:hover .wicon--search .w-lens {
  animation: why-orbit 2.2s ease-in-out infinite;
}

.wcard:hover .wicon--search .w-spark {
  animation-duration: 1.2s;
}

.wcard:hover .wicon--search .w-lens .w-spark {
  animation: why-twinkle 1.2s ease-in-out infinite;
}

.why-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(28px, 3vw, 48px);
}

.why-nav__btn {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  color: var(--text);
  background: none;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .4s, color .4s, border-color .4s, opacity .3s;
}

.why-nav__btn:not(:disabled):hover {
  background: #fff;
  border-color: #fff;
  color: #0b0b12;
}

.why-nav__btn:disabled {
  opacity: .3;
  cursor: default;
}

.why-nav__bar {
  position: relative;
  flex: 1;
  height: 2px;
  margin-left: clamp(12px, 3vw, 56px);
  border-radius: 2px;
  background: rgba(255, 255, 255, .16);
  overflow: hidden;
}

.why-nav__bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  border-radius: inherit;
  background: var(--grad);
  transition: left .25s linear;
}

@media (max-width: 720px) {
  .wcard {
    flex-basis: min(84vw, 360px);
    height: 560px;
  }

  .why-nav__btn {
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-slider .w-d {
    transition: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
  }

  .wicon *,
  .wicon {
    animation: none !important;
  }
}

.card3d {
  transform-style: preserve-3d;
  transition: border-color .4s;
}

.card3d:hover {
  border-color: rgba(242, 117, 26, .45);
}

/* ---------- Services (sticky side + step counter; cards stack like a deck) ---------- */
.services {
  padding: var(--sec) 0;
}

.svs__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}

.svs__side {
  position: sticky;
  top: 124px;
}

.svs__title {
  font-size: clamp(30px, 3.2vw, 56px);
  line-height: 1.04;
}

.svs__side>p {
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 19px);
  max-width: 40ch;
  margin: 28px 0 40px;
}

.svs__counter {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 36px;
}

.svs__now {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  font-family: var(--display);
  font-size: clamp(64px, 5.6vw, 100px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.svs__now span {
  display: block;
}

.svs__total {
  font-family: var(--display);
  font-size: clamp(28px, 2.4vw, 40px);
  color: var(--dim);
}

.svs__bar {
  flex-basis: 100%;
  height: 2px;
  margin-top: 18px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.svs__bar i {
  display: block;
  height: 100%;
  background: var(--grad);
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .7s var(--ease);
}

.svs__stack {
  display: grid;
  gap: 28px;
}

.svs-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  column-gap: clamp(28px, 3.4vw, 64px);
  grid-template-areas: "head head" "art body";
  grid-template-rows: auto 1fr;
  padding: clamp(28px, 3vw, 48px);
  border-radius: 28px;
  transform-origin: center top;
  background: radial-gradient(90% 140% at 0% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 55%), #111119;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent) 55%, transparent), 0 -24px 60px rgba(0, 0, 0, .5);
}

.svs-card__shade {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: #04040a;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

/* left: "/01." + title, then the illustration disc */
.svs-card__head {
  grid-area: head;
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.4vw, 24px);
}

.svs-card__num {
  flex: none;
  padding-top: .55em;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.svs-card__title {
  font-family: var(--display);
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: 0;
}

.svs-card__title a:hover {
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
}

.svs-card__art {
  grid-area: art;
  position: relative;
  align-self: start;
  width: min(100%, 280px);
  aspect-ratio: 1;
  margin-top: clamp(28px, 3vw, 44px);
}

/* line-art illustration on a light disc tinted by the card colour: navy strokes, white fills, yellow accents (home + services) */
.svs-card__art .svx-art {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  color: #000021;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, #fbf4f1), #f6dc94);
  transition: transform .6s var(--ease);
}

.svs-card:hover .svx-art {
  transform: rotate(-4deg) scale(1.02);
}

.svx-art {
  display: block;
  width: 100%;
  height: 100%;
}

.svx-art .l {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svx-art .f {
  fill: #fff;
}

.svx-art .a {
  fill: #f5c443;
  stroke: none;
}

.svx-art .d {
  stroke-dasharray: 3 5;
  stroke-width: 2;
}

/* continuous idle motion inside the illustrations (stopped by the global prefers-reduced-motion rule) */
.svx-art [class*="fx-"] {
  transform-box: fill-box;
  transform-origin: center;
}

.svx-art .fx-dot {
  animation: svx-float 4s ease-in-out infinite;
}

.svx-art .fx-dot:nth-of-type(2n) {
  animation-duration: 5s;
  animation-delay: -1.2s;
}

.svx-art .fx-dot:nth-of-type(3n) {
  animation-duration: 6s;
  animation-delay: -2.4s;
}

.svx-art .fx-cloud {
  animation: svx-drift 7s ease-in-out infinite alternate;
}

.svx-art .fx-cloud~.fx-cloud {
  animation-duration: 9s;
  animation-direction: alternate-reverse;
}

.svx-art .fx-bob {
  animation: svx-bob 3.6s ease-in-out infinite;
}

.svx-art .fx-dash {
  animation: svx-march 1.2s linear infinite;
}

.svx-art .fx-pulse {
  animation: svx-pulse 2.4s ease-in-out infinite;
}

.svx-art .fx-beat {
  animation: svx-beat 1.6s ease-in-out infinite;
}

.svx-art .fx-grow {
  transform-origin: bottom;
  animation: svx-grow 2.8s ease-in-out infinite;
}

.svx-art .fx-type {
  animation: svx-type 1.4s ease-in-out infinite;
}

.svx-art .fx-type:nth-of-type(2n) {
  animation-delay: .2s;
}

.svx-art .fx-type:last-of-type {
  animation-delay: .4s;
}

.svx-art .fx-blink {
  animation: svx-blink 1.6s ease-in-out infinite;
}

@keyframes svx-float {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(-8px);
    opacity: .55;
  }
}

@keyframes svx-drift {
  from {
    transform: translateX(-8px);
  }

  to {
    transform: translateX(8px);
  }
}

@keyframes svx-bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes svx-march {
  to {
    stroke-dashoffset: -16;
  }
}

@keyframes svx-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.35);
  }
}

@keyframes svx-beat {

  0%,
  100% {
    transform: scale(1);
  }

  15% {
    transform: scale(1.18);
  }

  30% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.12);
  }
}

@keyframes svx-grow {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(1.25);
  }
}

@keyframes svx-type {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-5px);
  }
}

@keyframes svx-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .25;
  }
}

/* right: lead, key features, button */
.svs-card__body {
  grid-area: body;
  margin-top: clamp(28px, 3vw, 44px);
}

/* lines up with the top of the image under the full-width heading */
.svs-card__lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.svs-card__kf {
  margin: 26px 0 14px;
  color: var(--text);
  font-weight: 500;
  font-size: 16px;
}

.svs-card__list {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.svs-card__list li {
  position: relative;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text);
  opacity: .88;
}

.svs-card__list li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.svs-card__more {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding: 0 34px;
  margin-top: 30px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 15px;
  border: 1.5px solid transparent;
  background: linear-gradient(#111119, #111119) padding-box, var(--grad) border-box;
  transition: color .4s, background .4s;
}

.svs-card__more:hover {
  color: #fff;
  background: var(--grad) padding-box, var(--grad) border-box;
}

/* desktop: each card sticks a little lower than the last, so they pile up like a deck */
@media (min-width: 1101px) {
  .svs-card {
    position: sticky;
    top: calc(124px + var(--i) * 22px);
    will-change: transform;
  }
}

@media (max-width: 1100px) {
  .about__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svs__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .svs__side {
    position: static;
  }

  .svs__side>p {
    margin: 20px 0 24px;
  }

  .svs__counter {
    display: none;
  }
}

@media (max-width: 720px) {
  .svs-card {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "art" "body";
    grid-template-rows: auto;
  }

  .svs-card__art {
    width: min(70%, 220px);
    margin: 24px 0 28px;
  }

  .svs-card__body {
    margin-top: 0;
  }

  .svs-card__num {
    padding-top: .45em;
  }
}

/* ---------- Industries (rows of panels: the hovered one widens and opens its text) ---------- */
/* heading on its own full-width line, intro text below it */
.industries .sec-head {
  grid-template-columns: 1fr;
  gap: 18px;
}

.industries .sec-head__side p {
  max-width: 70ch;
}

.industries {
  position: relative;
  padding: var(--sec) 0;
  overflow: hidden;
  overflow: clip;   /* clips the same, but lets the card below stay sticky (hidden would stop it) */
}

/* desktop: the list of 20 is taller than the card, so the card stays in view while the list scrolls */
@media (min-width: 1101px) {
  .ind-cards {
    position: sticky;
    top: 124px;
  }
}

/* list on the left, one big gradient card on the right (tabs; switched in initIndustries) */
.ind-ui {
  display: grid;
  grid-template-columns: minmax(220px, .62fr) 2fr;
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}

.ind-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ind-tab {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 10px 0;
  text-align: left;
  font-size: clamp(17px, 1.1vw, 21px);
  line-height: 1.3;
  color: var(--muted);
  transition: color .35s, gap .5s var(--ease);
}

.ind-tab:hover {
  color: var(--text);
}

.ind-tab__thumb {
  flex: none;
  width: 0;
  height: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  background: linear-gradient(135deg, #0a0c16, var(--c1) 45%, var(--c2) 80%, var(--c3));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  transition: width .5s var(--ease), height .5s var(--ease), opacity .4s;
}

.ind-tab__icon {
  flex: none;
  width: 26px;
  height: 26px;
}

.ind-tab__icon g {
  stroke: #fff;
}

.ind-tab.is-active {
  gap: 16px;
  color: var(--text);
  font-weight: 500;
}

.ind-tab.is-active .ind-tab__thumb {
  width: 46px;
  height: 46px;
  opacity: 1;
}

.ind-cards {
  display: grid;
}

/* inside the card: copy on the left, a big glass tablet running off the right edge (clipped by the card), tags along the bottom */
.ind-card {
  grid-area: 1 / 1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(560px, 44vw, 700px);
  padding: clamp(28px, 3.4vw, 56px);
  display: flex;
  flex-direction: column;
  border-radius: clamp(22px, 2vw, 32px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  background: radial-gradient(110% 80% at 0% 0%, rgba(4, 4, 10, .92), transparent 60%), linear-gradient(115deg, #0a0c16 0%, var(--c1) 38%, var(--c2) 72%, var(--c3) 104%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s var(--ease), visibility 0s .6s;
}

/* hidden cards also drop out of the accessibility tree */
.ind-card.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .6s var(--ease);
}

/* copy keeps to the left ~45% so it never runs under the tablet */
.ind-card__copy {
  position: relative;
  z-index: 1;
  max-width: min(33rem, 45%);
}

.ind-card__n {
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .6);
}

.ind-card__title {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.12;
  letter-spacing: 0;
  color: #fff;
}

.ind-card__text {
  margin-top: 22px;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
}

.ind-card__tags {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ind-card__tags li {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: clamp(13px, .95vw, 16px);
  color: #fff;
  background: rgba(8, 8, 16, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

/* copy and tags rise in each time a card becomes active */
.ind-card__copy>*,
.ind-card__tags li {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}

.ind-card.is-active .ind-card__copy>*,
.ind-card.is-active .ind-card__tags li {
  opacity: 1;
  transform: none;
}

.ind-card.is-active .ind-card__title {
  transition-delay: .06s;
}

.ind-card.is-active .ind-card__text {
  transition-delay: .12s;
}

.ind-card.is-active .ind-card__tags li {
  transition-delay: calc(.2s + var(--i, 0) * .04s);
}

/* glass tablet on the right, tilted and running off the card's right edge */
.ind-card__device {
  position: absolute;
  z-index: 0;
  right: clamp(-60px, -3vw, -20px);
  bottom: clamp(70px, 9vw, 130px);
  width: min(52%, 520px);
  aspect-ratio: 4 / 3;
  padding: 14px;
  border-radius: 30px;
  background: rgba(10, 10, 18, .78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 40px 80px rgba(0, 0, 0, .45);
  transform: perspective(1200px) rotateY(-16deg) rotateX(6deg) translateX(40px);
  opacity: 0;
  transition: transform 1.1s var(--ease), opacity .8s var(--ease);
}

.ind-card.is-active .ind-card__device {
  transform: perspective(1200px) rotateY(-16deg) rotateX(6deg);
  opacity: 1;
  transition-delay: .1s;
}

.ind-card__screen {
  position: relative;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(80% 70% at 30% 20%, color-mix(in srgb, var(--c2) 45%, transparent), transparent 70%), linear-gradient(160deg, #0d1020, color-mix(in srgb, var(--c1) 70%, #05060c));
}

.ind-card__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ind-card__icon {
  width: 34%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .4));
}

.ind-card__bar {
  position: absolute;
  left: 9%;
  height: 8px;
  width: 34%;
  border-radius: 4px;
  background: rgba(255, 255, 255, .16);
  bottom: 22%;
}

.ind-card__bar--s {
  width: 24%;
  bottom: 15%;
}

.ind-card__bar--xs {
  width: 14%;
  bottom: 8%;
  background: color-mix(in srgb, var(--c3) 80%, transparent);
}

/* ---------- Process (self-drawing timeline) ---------- */
.process {
  position: relative;
  padding: var(--sec) 0;
}

.process__head {
  margin-bottom: clamp(36px, 4.5vw, 64px);
  text-align: center;
}

.process__head .title {
  font-size: clamp(30px, 3.7vw, 62px);
}

.process__head p {
  color: var(--muted);
  max-width: 52ch;
  margin: 28px auto 0;
}

/* zigzag timeline: image | numbered node on the centre line | text — sides swap every step */
.timeline {
  position: relative;
  display: grid;
  gap: clamp(72px, 9vw, 170px);
  margin-top: clamp(64px, 8vw, 150px);
}

/* the line runs from the first node to the last (top/height set in initProcess) */
/* centre strands (like decibelstudios.com/about): orange left, a pink pair in the middle, blue right; the outer ones bend out at the top.
   A dim copy shows the whole path and a lit copy is revealed down to the scroll position (--p, 0–1) */
.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 260px;
  margin-left: -130px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 88%, transparent);
}

.tl-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tl-svg--dim {
  opacity: .2;
}

.tl-lit .tl-svg {
  opacity: .8;
}

.tl-lit {
  position: absolute;
  inset: 0;
  --p: 0;
  clip-path: inset(0 0 calc((1 - var(--p)) * 100%) 0);
}

.tl-svg path {
  fill: none;
  stroke-linecap: round;
}

.tstep {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(110px, 12vw, 200px) minmax(0, 1fr);
  align-items: center;
}

.tstep__media {
  grid-row: 1;
  grid-column: 1;
}

.tstep__media img {
  display: block;
  width: min(100%, 520px);
  max-height: 480px;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
  animation: tstep-float 7s ease-in-out infinite;
}

/* mirror an image so it faces the centre line (the bird sits on the right but looks right) */
.tstep__media--flip img {
  scale: -1 1;
}

.tstep:nth-of-type(even) .tstep__media img {
  animation-delay: -3.5s;
}

/* glass ring with a bright dot on the strands; a hairline runs out to the step's text */
.tstep__node {
  grid-row: 1;
  grid-column: 2;
  justify-self: center;
  position: relative;
  z-index: 1;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03) 70%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .05);
  transition: border-color .6s, box-shadow .6s;
}

/* four bright arcs on the rim */
.tstep__node::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from -22deg, rgba(255, 255, 255, .85) 0 44deg, transparent 0 90deg, rgba(255, 255, 255, .85) 0 134deg, transparent 0 180deg, rgba(255, 255, 255, .85) 0 224deg, transparent 0 270deg, rgba(255, 255, 255, .85) 0 314deg, transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  opacity: .45;
  transition: opacity .6s;
}

.tstep__node::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  opacity: 0;
}

.tstep__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff, 0 0 24px rgba(255, 255, 255, .45);
  transition: transform .6s var(--ease), box-shadow .6s;
}

.tstep__link {
  position: absolute;
  top: 50%;
  left: 100%;
  width: clamp(28px, 4vw, 70px);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .55), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease) .2s;
}

.tstep:nth-of-type(even) .tstep__link {
  left: auto;
  right: 100%;
  background: linear-gradient(-90deg, rgba(255, 255, 255, .55), transparent);
  transform-origin: right;
}

.tstep.is-on .tstep__node {
  border-color: rgba(255, 255, 255, .22);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, .08), 0 0 40px rgba(223, 30, 90, .25);
}

.tstep.is-on .tstep__node::before {
  opacity: 1;
  animation: tstep-spin 14s linear infinite;
}

.tstep.is-on .tstep__node::after {
  animation: tstep-pulse 2.8s ease-out infinite;
}

.tstep.is-on .tstep__dot {
  transform: scale(1.3);
  box-shadow: 0 0 12px #fff, 0 0 30px rgba(255, 255, 255, .6), 0 0 60px rgba(242, 117, 26, .45);
}

.tstep.is-on .tstep__link {
  transform: scaleX(1);
}

.tstep__step {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
}

.tstep__card {
  grid-row: 1;
  grid-column: 3;
}

.tstep:nth-of-type(even) .tstep__media {
  grid-column: 3;
}

.tstep:nth-of-type(even) .tstep__card {
  grid-column: 1;
  text-align: right;
}

.tstep__card {
  max-width: 520px;
}

.tstep:nth-of-type(even) .tstep__card {
  justify-self: end;
}

.tstep__card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 3.8vw, 64px);
  line-height: 1.02;
  margin-bottom: 18px;
}

.tstep__intro {
  color: var(--muted);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.7;
}

@keyframes tstep-float {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-16px) rotate(-1.5deg);
  }
}

@keyframes tstep-pulse {
  0% {
    transform: scale(1);
    opacity: .7;
  }

  100% {
    transform: scale(1.85);
    opacity: 0;
  }
}

@keyframes tstep-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {

  /* stacked: image, number, text — centred like the reference's mobile layout */
  .timeline {
    gap: clamp(64px, 12vw, 110px);
  }

  .timeline__line {
    display: none;
  }

  .tstep,
  .tstep:nth-of-type(n) {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .tstep:nth-of-type(n) .tstep__media,
  .tstep:nth-of-type(n) .tstep__node,
  .tstep:nth-of-type(n) .tstep__card {
    grid-column: 1;
    grid-row: auto;
    text-align: center;
  }

  .tstep__media img {
    width: min(72vw, 380px);
  }

  .tstep__node {
    width: 64px;
    height: 64px;
    margin: 18px 0 22px;
  }

  .tstep__link {
    display: none;
  }

  .tstep__card,
  .tstep:nth-of-type(n) .tstep__card {
    max-width: 560px;
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {

  .tstep__media img,
  .tstep__node::before,
  .tstep__node::after {
    animation: none !important;
  }
}

/* ---------- Talk (giant title, lines drift apart on scroll; spinning CTA) ---------- */
/* keeps its orange highlight whichever position the section lands in (the colour otherwise follows the section order) */
main>section.talk {
  --hue: var(--orange);
}

.talk {
  position: relative;
  padding: calc(var(--sec) * .4) 0 calc(var(--sec) * .7);
  overflow: hidden;
  background: transparent;
}

.talk__glow {
  display: none;
}

/* no glow shade behind the talk section */
.talk__glow {
  position: absolute;
  left: 50%;
  bottom: -60%;
  width: 120vw;
  height: 100%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(223, 30, 90, .35), rgba(242, 117, 26, .15) 50%, transparent);
  filter: blur(30px);
  pointer-events: none;
}

.talk__title {
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-size: clamp(36px, 6.3vw, 124px);
  line-height: .95;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  margin-bottom: clamp(28px, 3.5vw, 25px);
}

/* home page, wider screens: a smaller title so "Ambitious Brands, Across Every Sector" fits on one line (two lines in all);
   tablets and phones keep their own sizes further down */
@media (min-width: 1101px) {
  .talk--home .talk__title {
    font-size: clamp(34px, 4.6vw, 92px);
  }
}

.talk__line {
  display: block;
  width: max-content;
  padding-inline: var(--gutter);
  will-change: transform;
}

.talk__line em {
  font-style: normal;
}

/* "We ♥ Working With": the heart drawn in the brand gradient, sized to the letters, with a soft heartbeat */
.talk__heart {
  display: inline-block;
  width: .82em;
  height: .82em;
  margin: 0 .04em;
  vertical-align: -.04em;
  animation: talk-beat 1.6s ease-in-out infinite;
}

.talk__heart svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: var(--pink);
}

@supports (background-clip: text) {
  .talk__heart {
    background: linear-gradient(135deg, var(--pink), var(--orange));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.2 10.6 20C5.4 15.3 2 12.2 2 8.4 2 5.3 4.4 3 7.5 3c1.7 0 3.4.8 4.5 2.1C13.1 3.8 14.8 3 16.5 3 19.6 3 22 5.3 22 8.4c0 3.8-3.4 6.9-8.6 11.6L12 21.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.2 10.6 20C5.4 15.3 2 12.2 2 8.4 2 5.3 4.4 3 7.5 3c1.7 0 3.4.8 4.5 2.1C13.1 3.8 14.8 3 16.5 3 19.6 3 22 5.3 22 8.4c0 3.8-3.4 6.9-8.6 11.6L12 21.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .talk__heart svg {
    visibility: hidden;
  }
}

@keyframes talk-beat {
  0%, 40%, 100% { transform: scale(1); }
  15% { transform: scale(1.14); }
  28% { transform: scale(.96); }
}

@media (prefers-reduced-motion: reduce) {
  .talk__heart {
    animation: none;
  }
}

/* the brand name reads better in the plain sans than in the wide display face */
.brand {
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: 0;
}

.talk__row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.talk__row p {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.75;
}

.talk__btn {
  position: relative;
  flex: none;
  width: clamp(160px, 13vw, 210px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.talk__btn svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 16s linear infinite;
}

.talk__btn text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.05px;
  text-transform: uppercase;
  fill: var(--text);
}

.talk__arrow {
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-size: clamp(26px, 2.4vw, 38px);
  color: #fff;
  transition: transform .7s var(--ease), background .4s, color .4s;
}

.talk__btn:hover .talk__arrow {
  transform: scale(1.12) rotate(45deg);
  background: var(--text);
  color: var(--bg);
}

.talk__btn:hover svg {
  animation-duration: 5s;
}

/* gradient pill CTA under the paragraph (same look as the UI/UX page button) */
.talk__cta {
  gap: 12px;
  margin-top: 32px;
}

.talk__copy>.talk__cta:first-child {
  margin-top: 0;
}

/* home page: no paragraph above the button */
/* home page: the title's first line runs the full width, "Talk to 3KITS," on the left and the round button on the right
   (this line does not drift with the scroll, js/main3.js) */
.talk__line--btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 56px);
  width: auto;
}

/* the round button sits at the right edge, centred on line one, without making that line taller
   (so the two lines of the title stay close together). Negative margin, not a transform: the magnetic hover moves it with transforms */
.talk__btn--inline {
  --tb: clamp(130px, 11vw, 210px);
  position: absolute;
  right: var(--gutter);
  top: 50%;
  width: var(--tb);
  margin-top: calc(var(--tb) / -2);
  font-weight: 400;
  line-height: 1;
}

.talk__cta svg {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .5s var(--ease);
}

.talk__cta:hover svg {
  transform: translateX(4px);
}

@media (max-width: 560px) {
  .talk__cta {
    width: 100%;
    height: 56px;
    font-size: 15px;
  }
}

/* ---------- Insights ---------- */
.insights {
  padding: var(--sec) 0;
}

.insights .title {
  margin-bottom: clamp(28px, 3.5vw, 52px);
}

/* magazine cards: inset image, title, excerpt, byline row with a round arrow */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}

.post {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 1.8vw, 28px);
  border-radius: 28px;
  transition: transform .6s var(--ease);
}

/* on hover a brand-colour gradient runs round the edge (a masked ring, so the glass stays see-through) */
@property --post-ang {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.post::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 3px;
  pointer-events: none;
  background: conic-gradient(from var(--post-ang), var(--blue), #8b3fd9, var(--pink), var(--orange), #f5c443, var(--green), #2ec5c5, var(--blue));
  -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 exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity .5s;
  animation: post-edge 4s linear infinite;
  animation-play-state: paused;
}

.post:hover::before,
.post:focus-visible::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes post-edge {
  to {
    --post-ang: 360deg;
  }
}

.post:hover {
  transform: translateY(-6px);
}

/* post images stay real <img>s (not WebGL planes): a plane is drawn behind the page, so the card's glass would blur it */
.post__img {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #111;
}

/* thumbnails are 4:5 with their headline at the top, so crop from the top */
.post__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transform-origin: 50% 0;
  transition: transform 1.1s var(--ease), filter .6s;
}

.post:hover .post__img img {
  transform: scale(1.07);
  filter: saturate(1.15);
}

.post h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(19px, 1.6vw, 26px);
  line-height: 1.22;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.post__excerpt {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 28px;
}

/* byline row: name in the accent, date-style label muted, solid arrow button that outlines on hover */
.post__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.post__by {
  color: var(--orange);
}

.post__date {
  color: var(--dim);
}

.post__go {
  flex: none;
  margin-left: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--bg);
  border: 1.5px solid var(--orange);
  transition: background .4s, color .4s, transform .5s var(--ease);
}

.post__go svg {
  width: 18px;
  height: 18px;
}

.post:hover .post__go {
  background: transparent;
  color: var(--orange);
  transform: scale(1.05);
}

/* ---------- FAQ ---------- */
.faq {
  padding: var(--sec) 0;
}

.faq__title {
  text-align: center;
  margin-bottom: clamp(28px, 3.5vw, 52px);
}

.faq__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.faq__col {
  display: grid;
  gap: 14px;
}

.acc {
  border-radius: 20px;
  transition: border-color .4s, background .4s;
}

.acc.is-open {
  border-color: rgba(242, 117, 26, .45);
}

.acc__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  text-align: left;
  font-weight: 500;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.35;
}

.acc__q i {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  position: relative;
  transition: background .4s, transform .5s var(--ease), border-color .4s;
}

.acc__q i::before,
.acc__q i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: -.75px 0 0 -6px;
  background: currentColor;
  transition: transform .5s var(--ease);
}

.acc__q i::after {
  transform: rotate(90deg);
}

.acc.is-open .acc__q i {
  background: var(--grad);
  border-color: transparent;
  transform: rotate(180deg);
}

.acc.is-open .acc__q i::after {
  transform: rotate(0);
}

.acc__a {
  padding: 0 24px 22px;
}

.acc__a p {
  color: var(--muted);
  font-size: 15px;
}

.acc__a p+p {
  margin-top: 10px;
}

.acc__list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.acc__list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
}

.acc__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
}

/* home page FAQ: square navy boxes in two columns, a square +/− and orange corner brackets on hover / when open */
.faq--boxes .faq__cols {
  column-gap: clamp(20px, 2.6vw, 50px);
}

.faq--boxes .faq__col {
  gap: clamp(20px, 2.6vw, 50px);
}

.faq--boxes .acc {
  position: relative;
  border: 0;
  border-radius: 0;
  background: #1b1828;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background .4s;
}

.faq--boxes .acc::before {
  content: "";
  position: absolute;
  inset: -6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s, inset .5s var(--ease);
  --c: var(--orange);
  --l: 16px;
  --w: 1.5px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w), linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w), linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w), linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w), linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l);
  background-repeat: no-repeat;
}

.faq--boxes .acc:hover::before,
.faq--boxes .acc.is-open::before {
  opacity: .9;
  inset: -13px;
}

.faq--boxes .acc__q {
  gap: 28px;
  padding: clamp(26px, 2.6vw, 48px);
  font-weight: 400;
  font-size: clamp(18px, 1.55vw, 26px);
  line-height: 1.3;
}

.faq--boxes .acc__q i {
  width: 54px;
  height: 54px;
  border-radius: 0;
  border-color: rgba(255, 255, 255, .5);
}

.faq--boxes .acc__q i::before,
.faq--boxes .acc__q i::after {
  width: 18px;
  margin-left: -9px;
}

.faq--boxes .acc__q:hover i {
  border-color: #fff;
}

.faq--boxes .acc.is-open .acc__q i {
  background: none;
  border-color: var(--orange);
  color: var(--orange);
  transform: none;
}

.faq--boxes .acc__a {
  padding: 0 clamp(26px, 2.6vw, 48px) clamp(26px, 2.6vw, 44px);
  margin-top: -6px;
}

.faq--boxes .acc__a p,
.faq--boxes .acc__list li {
  font-size: 16px;
  line-height: 1.75;
}

@media (max-width: 720px) {
  .faq--boxes .acc__q i {
    width: 44px;
    height: 44px;
  }

  .faq--boxes .acc::before {
    inset: -4px;
  }

  .faq--boxes .acc:hover::before,
  .faq--boxes .acc.is-open::before {
    inset: -9px;
  }
}

/* ---------- Contact ---------- */
.contact {
  padding: var(--sec) 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}

.contact__sub {
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  margin-top: 22px;
  max-width: 40ch;
}

.form {
  padding: clamp(24px, 3.2vw, 48px);
  border-radius: 28px;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 30px;
}

.field {
  position: relative;
  display: block;
}

.field--full {
  grid-column: 1 / -1;
}

/* security code of the forms (includes/ui_captcha.php): the field, the picture and a "new picture" button */
.captcha {
  display: grid;
  max-width: 560px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 18px;
  margin: 6px 0 18px;
}

.captcha__pic {
  display: flex;
  align-items: center;
  gap: 8px;
}

.captcha__pic img {
  display: block;
  width: 180px;
  height: 56px;
  border-radius: 12px;
  background: #eef0f6;
}

.captcha__new {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--glass-2);
  color: var(--text);
  cursor: pointer;
  transition: transform .4s var(--ease), border-color .3s;
}

.captcha__new:hover,
.captcha__new:focus-visible {
  border-color: var(--text);
  transform: rotate(-90deg);
}

.captcha__new svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.captcha__help {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 560px) {
  .captcha {
    grid-template-columns: minmax(0, 1fr);
  }
}

.field input,
.field textarea {
  width: 100%;
  padding: 30px 0 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--text);
  font: inherit;
  font-size: 18px;
  outline: none;
  resize: vertical;
  border-radius: 0;
  transition: border-color .3s;
}

.field span {
  position: absolute;
  left: 0;
  top: 30px;
  color: var(--muted);
  font-size: 18px;
  pointer-events: none;
  transform-origin: left top;
  transition: transform .4s var(--ease), color .3s;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--pink);
}

.field input:focus+span,
.field input:not(:placeholder-shown)+span,
.field textarea:focus+span,
.field textarea:not(:placeholder-shown)+span {
  transform: translateY(-24px) scale(.68);
  color: var(--orange);
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--pink);
}

.field.has-error span {
  color: var(--pink);
}

.form__note {
  font-size: 13px;
  color: var(--dim);
  margin: 20px 0;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 26px;
}

.check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.check input:checked {
  background: var(--grad);
  border-color: transparent;
}

.check input:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}

.check a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.check.has-error input {
  border-color: var(--pink);
}

.form__status {
  margin-top: 16px;
  font-size: 15px;
  min-height: 1.5em;
}

.form__status.ok {
  color: var(--green);
}

.form__status.err {
  color: var(--pink);
}

.find {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(40px, 5vw, 80px);
  padding: clamp(22px, 3vw, 40px);
  border-radius: 28px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
}

.find__info .h-xl {
  margin-bottom: 26px;
}

.find__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(16px, 1.25vw, 18px);
}

.find__list li:first-child {
  border-top: 1px solid var(--line);
}

.find__list svg {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}

.find__list a:hover {
  color: var(--orange);
}

.find__note {
  color: var(--muted);
  font-size: 15px;
  margin-top: 20px;
}

.find__note a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.find__map {
  border-radius: 20px;
  overflow: hidden;
  min-height: 340px;
}

.find__map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
  filter: invert(.92) hue-rotate(180deg) saturate(.6) contrast(.95);
}

/* ---------- Footer ---------- */
.footer {
  padding-top: var(--sec);
  background: linear-gradient(to bottom, transparent, rgba(4, 4, 10, .85) 30%);
}

/* footer marquee (same look as the careers .cr-ticker): two identical groups slide left by -50% for a seamless loop */
.footer__ticker {
  margin-inline: calc(50% - 50vw);
  padding: clamp(16px, 1.8vw, 26px) 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.footer__ticker-track {
  display: flex;
  width: max-content;
  animation: footer-tick 80s linear infinite;
}

.footer__ticker:hover .footer__ticker-track {
  animation-play-state: paused;
}

.footer__ticker-group {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding-right: clamp(20px, 3vw, 48px);
}

.footer__ticker-group span {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 68px);
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
}

.footer__ticker-group span:nth-of-type(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 238, 246, .55);
}

.footer__ticker-group i {
  flex: none;
  width: clamp(10px, 1vw, 16px);
  height: clamp(10px, 1vw, 16px);
  border-radius: 50%;
  background: var(--grad);
}

@keyframes footer-tick {
  to {
    transform: translateX(-50%);
  }
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  background: var(--glass);
  transition: background .4s, border-color .4s, transform .5s var(--ease);
}

.footer__social svg {
  width: 24px;
  height: 24px;
}

.footer__social a:hover {
  background: var(--grad);
  border-color: transparent;
  transform: translateY(-4px);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  padding: clamp(32px, 4vw, 56px) 0;
}

.footer__col .h6 {
  margin-bottom: 18px;
  color: var(--dim);
}

.footer__col a {
  display: block;
  font-size: 15px;
  color: var(--muted);
  padding: 4px 0;
  transition: color .3s, transform .4s var(--ease);
}

.footer__col a:hover {
  color: var(--text);
  transform: translateX(4px);
}

/* bottom bar: copyright | social icons (centred) | legal links — equal side padding keeps the icons on the true centre line */
.footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px 28px;
  max-width: calc(1560px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 24px calc(var(--gutter) + 72px);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer__bottom .footer__social a {
  width: 44px;
  height: 44px;
  color: var(--text);
}

.footer__bottom .footer__social svg {
  width: 20px;
  height: 20px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 28px;
}

.footer__bottom .footer__legal a:hover {
  color: var(--text);
}

/* ---------- Floating ---------- */
.to-top {
  position: fixed;
  left: var(--gutter);
  bottom: 28px;
  z-index: 60;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--glass-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .4s, visibility .4s, transform .5s var(--ease);
}

.to-top__ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.to-top__ring circle {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
}

.to-top__ring .to-top__progress {
  stroke: url(#topGrad);
  stroke-dasharray: 150.8;
  stroke-dashoffset: 150.8;
  stroke-linecap: round;
}

.to-top__arrow {
  width: 14px;
  height: 18px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  position: relative;
}

/* floating WhatsApp: a green rounded-square button with a pulsing ring and a red "1" badge (markup in includes/ui_footer.php) */
.wa-float {
  position: fixed;
  right: var(--gutter);
  bottom: 28px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .4s, visibility .4s, transform .5s var(--ease);
}

/* always on screen at the right. Home page: js/main3.js sets top so the button sits just above the
   line over the technology logos. Inner pages: a formula that follows where it lands on the home page */
.wa-float--hero {
  top: calc(90vh - 116px);
  bottom: auto;
}

.wa-float__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 8px 32px rgba(37, 211, 102, .35);
  animation: wa-pulse 2s ease-out infinite;
  transition: transform .4s var(--ease);
}

.wa-float__btn:hover {
  transform: scale(1.06);
}

.wa-float__btn svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.wa-float__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

/* a green ring breathes out from the button */
@keyframes wa-pulse {
  0% { box-shadow: 0 8px 32px rgba(37, 211, 102, .35), 0 0 0 0 rgba(37, 211, 102, .45); }
  70% { box-shadow: 0 8px 32px rgba(37, 211, 102, .35), 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 32px rgba(37, 211, 102, .35), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float__btn {
    animation: none;
  }
}

.call-float {
  display: none;
}

.to-top.is-visible,
.wa-float.is-visible,
.call-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* live website: the Collect.chat bot sits in the bottom-right corner (its greeting bubble reaches ~175px up),
   so WhatsApp always stays above it (body.has-chatbot: includes/ui_header.php; home page: js/main3.js) */
.has-chatbot .wa-float--hero {
  top: min(calc(90vh - 116px), calc(100vh - 250px));
}

@media (max-width: 720px) {
  .has-chatbot .wa-float--hero {
    bottom: 186px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .nav__list {
    gap: 20px;
  }
}

@media (max-width: 1100px) {
  .why .sec-head {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .burger {
    display: block;
  }

  .header__call {
    margin-left: auto;
  }

  .header__logo img {
    height: 40px;
  }

  .menu__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .sec-head,
  .about__grid,
  .contact__grid,
  .find {
    grid-template-columns: 1fr;
  }

  .case:nth-child(n),
  .cases--stack .case:nth-child(n) {
    grid-column: 1 / -1;
    margin-top: 0;
    width: 100%;
  }

  .case--narrow,
  .case--full {
    aspect-ratio: 16 / 12;
  }

  .case--full .case__stage {
    inset: 9% 7% 22%;
  }

  .faq__cols {
    grid-template-columns: 1fr;
  }

  /* the list becomes a row of chips you can swipe; the tablet sits under the copy */
  .ind-ui {
    grid-template-columns: 1fr;
  }

  .ind-list {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }

  .ind-list::-webkit-scrollbar {
    display: none;
  }

  .ind-tab {
    white-space: nowrap;
    width: auto;
    padding: 8px 16px 8px 8px;
    border-radius: 999px;
    font-size: 15px;
    box-shadow: inset 0 0 0 1px var(--line-2);
  }

  .ind-tab:not(.is-active) {
    padding-left: 16px;
  }

  .ind-tab.is-active {
    gap: 10px;
  }

  .ind-tab__thumb {
    height: 30px;
    border-radius: 999px;
  }

  .ind-tab.is-active .ind-tab__thumb {
    width: 30px;
  }

  .ind-tab.is-active .ind-tab__thumb {
    height: 30px;
  }

  .ind-tab__icon {
    width: 18px;
    height: 18px;
  }

  /* one column: copy, then the tablet, then the tags */
  .ind-card {
    min-height: 0;
  }

  .ind-card__copy {
    max-width: none;
  }

  .ind-card__device {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 440px);
    margin: 32px auto 0;
    transform: translateY(24px);
  }

  .ind-card.is-active .ind-card__device {
    transform: none;
  }

  .posts {
    grid-template-columns: 1fr 1fr;
  }

  /* phones: the second line would be twice the screen width, so wrap the title instead of sliding it */
  .talk__title {
    font-size: clamp(30px, 8.5vw, 46px);
    line-height: 1.02;
    white-space: normal;
  }

  .talk__line {
    width: auto;
    transform: none !important;
  }

  .footer__cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .header__inner {
    height: 70px;
  }

  .header__call {
    display: none;
  }

  .burger {
    margin-left: auto;
  }

  .seal,
  .scroll-cue {
    display: none;
  }

  .hero__eyebrow {
    font-size: 12px;
    letter-spacing: .06em;
  }

  .stat {
    min-height: 220px;
  }

  .about__items,
  .posts,
  .form__grid {
    grid-template-columns: 1fr;
  }

  .footer__cols {
    grid-template-columns: 1fr 1fr;
  }

  /* extra room at the very bottom so the floating Call / WhatsApp buttons don't cover the copyright and legal links */
  .footer__bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-inline: var(--gutter);
    padding-bottom: 160px;
  }

  /* justified text leaves big word gaps on a narrow screen */
  .about__lead p {
    text-align: left;
    -webkit-hyphens: manual;
    hyphens: manual;
  }

  .footer__bottom .footer__social {
    order: -1;
  }

  .footer__legal {
    justify-content: center;
  }

  /* phones: the title wraps across the full width, so the round button stays in line one's flow (smaller) instead of overlapping line two */
  .talk__btn--inline {
    --tb: 92px;
    position: relative;
    right: auto;
    top: auto;
    margin-top: 0;
  }

  /* phones: the call button takes the bottom-left corner, back-to-top sits above it */
  .to-top {
    bottom: 96px;
  }

  /* phones: the content runs edge to edge, so WhatsApp goes back to the bottom-right corner (still always shown),
     a little smaller; !important beats the height main3.js sets on the home page */
  .wa-float--hero {
    top: auto !important;
    bottom: 28px;
  }

  .wa-float__btn {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .wa-float__btn svg {
    width: 26px;
    height: 26px;
  }

  .call-float {
    position: fixed;
    left: var(--gutter);
    bottom: 28px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    padding: 8px 20px;
    border-radius: 100px;
    background: var(--glass-2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .4s, visibility .4s, transform .5s var(--ease);
  }

  .call-float small {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
  }

  .call-float strong {
    font-size: 15px;
    font-weight: 500;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  /* no scroll drift here, so let the long talk title wrap instead of running off screen */
  .talk__title {
    white-space: normal;
  }

  .talk__line {
    width: auto;
  }
}

/* ---------- One heading size everywhere ----------
   Page-top and section headings on every page share --h-size (same as .pg-hero__title).
   Loaded first, so the higher specificity here beats the per-page sheets (about, services, work…).
   Left alone on purpose: the home hero headline, the giant "Talk to 3KITS" banner, and smaller
   sub-headings inside content (article / legal body h2s, case-study card titles). */
html body :is(.title, .pg-hero__title, .ct-hero__title--work, .lg-hero__title, .abt-panel__title, .abt-princ__title,
  .abt-says__title, .ins-pop__title, .plist__title, .art-cta__title, .dbs-copy__h, .process__head .title) {
  font-size: var(--h-size);
}

/* ---------- current page in the menu ---------- */
/* desktop: the orange text stays showing, with a thin orange bar underneath */
.nav__link.is-current::before,
.nav__link.is-current::after {
  transform: translateY(-100%);
}

.nav__item.is-current {
  position: relative;
}

.nav__item.is-current::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 16px);
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

/* the open service inside the Services mega menu */
.mega__col a.is-current {
  color: var(--orange);
}

/* phone menu */
.menu__main > li > a.is-current span,
.menu__main .menu__row > a.is-current span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.menu__main .menu__sub a.is-current {
  color: var(--orange);
}

/* ---------- Responsive fixes (Nov 2026 check of every page at 320-1920px) ---------- */
/* phone numbers never break over two lines */
a[href^="tel:"] {
  white-space: nowrap;
}

/* live website with the chat bot: WhatsApp (when not pinned) and the service pages' "Next" button stay above the bot */
.has-chatbot .wa-float:not(.wa-float--hero) {
  bottom: 186px;
}

.has-chatbot .dbs-next {
  bottom: 96px;
}

/* phones: on the home page's stacked work cards the title goes under the screenshot (a 2-line title covered it) */
@media (max-width: 720px) {
  .cases--stack .case--wide {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
  }

  .cases--stack .case__stage {
    position: relative;
    inset: auto;
    margin: 7% 7% 0;
  }

  .cases--stack .case__title {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 22px 20px 18px;
  }
}

/* very small phones (320px): "Modern Technologies. Proven Performance." wraps instead of being cut off */
@media (max-width: 359px) {
  .stack__title {
    white-space: normal;
    text-align: center;
  }

  .stack__title::before,
  .stack__title::after {
    min-width: 16px;
  }
}
