/* ============ Tokens ============ */
:root {
  /* Stacktribe brand (from stacktribe.dev): violet, with cyan + pink sparks.
     The page is light; the hero (and loader) switch to the night palette below. */
  --paper: #f4f6fb;          /* page background */
  --paper-2: #eceaf9;        /* alt section background */
  --surface: linear-gradient(160deg, #f1eefe 0%, #e9e5fb 60%, #e3def8 100%);
  --surface-flat: #ffffff;
  --ink: #0f172a;            /* primary text */
  --ink-2: rgba(15, 23, 42, 0.72);
  --mute: #5d5a7c;           /* 4.9:1 on the lavender sections */
  --accent: #7a57db;         /* brand violet */
  --accent-deep: #5c33cc;
  --accent-hi: #5c33cc;      /* violet for small text: deep on light */
  --accent-grad: linear-gradient(135deg, #7a57db 0%, #5c33cc 100%);
  --cyan: #1f9aa3;           /* cyan, darkened to read on light */
  --hot: #ea4884;            /* brand pink */
  --line: rgba(15, 23, 42, 0.12);
  --night: #0a0a1a;

  --f-display: "Clash Display", "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Satoshi", "Helvetica Neue", Arial, sans-serif; /* small labels: Satoshi, tracked-out caps */

  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Night palette: the hero stays dark like stacktribe.dev */
.hero, .loader {
  --paper: #0a0a1a;
  --paper-2: #11102a;
  --surface-flat: #1c1b38;
  --ink: #f4f6fb;
  --ink-2: rgba(244, 246, 251, 0.72);
  --mute: #8d8aa8;
  --accent-hi: #b9a6f7;
  --cyan: #33c2cc;
  --line: rgba(244, 246, 251, 0.12);
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Clash Display for everything big and loud; Satoshi for everything you read */
h1, h2, h3, .big-title, .loader__count, .nav__logo, .menu__list a,
.founder__tag b, .marquee__track, .hero__strip-track, .svc__name, .proj__name,
.step__num, .num__val, .num__plus, .layer, .person__name, .pkg h3, .contact__mail,
.footer__giant, .confetti, .manifesto__text {
  font-family: var(--f-display);
  word-spacing: 0.1em; /* Clash's space is tight once tracked in */
}
body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: #fff; }

.mono { font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.dark { background: var(--surface); color: var(--ink); }

section { padding: clamp(80px, 12vw, 180px) var(--gutter); position: relative; }

.section-label {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: clamp(32px, 5vw, 64px);
  color: var(--mute);
}
.section-label span {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 22px; padding: 0 8px;
  border: 1px solid currentColor; border-radius: 99px;
}
.dark .section-label { color: var(--mute); }

.big-title {
  font-size: clamp(40px, 11vw, 200px);
  line-height: 0.88;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}
.big-title--right { text-align: right; }

/* Split letters / words */
[data-letters] { display: block; }
.ln { display: block; word-spacing: 0.14em; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.ch { display: inline-block; will-change: transform; }
.ch--sp { width: 0.28em; }
.w { display: inline-block; }

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--gutter);
}
html:not(.js) .loader { display: none; }
.loader__top { display: flex; gap: 4px; color: var(--mute); }
.loader__count {
  font-size: clamp(120px, 28vw, 420px);
  font-weight: 900; line-height: 0.8;
  letter-spacing: -0.04em;
  align-self: flex-end;
  font-variant-numeric: tabular-nums;
}
.loader__bar { height: 3px; background: rgba(255,255,255,0.12); margin-top: 24px; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ============ Cursor ============ */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s;
}
.cursor__label { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-big { width: 84px; height: 84px; margin: -42px 0 0 -42px; mix-blend-mode: normal; background: var(--accent); }
.cursor.is-big .cursor__label { opacity: 1; color: var(--paper); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color .3s, background-color .3s, border-color .3s, padding .3s var(--ease);
}
/* over the dark hero (and with the menu open) the header goes white */
.nav.is-on-dark, .menu-open .nav { color: #fff; }
/* once the page scrolls, give the header a frosted backdrop so content doesn't show through it */
.nav.is-scrolled {
  padding-block: 12px;
  background-color: rgba(244, 246, 251, 0.82);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
.nav.is-scrolled.is-on-dark {
  background-color: rgba(10, 10, 26, 0.72);
  border-bottom-color: rgba(244, 246, 251, 0.1);
}
.menu-open .nav.is-scrolled { background-color: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.nav__logo sup { font-size: 9px; font-weight: 400; }
.nav__logo-img { width: 30px; height: 30px; border-radius: 8px; display: block; transition: transform .5s var(--ease); }
.nav__logo:hover .nav__logo-img { transform: rotate(-8deg) scale(1.06); }
.nav__menu { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.nav__burger { display: grid; gap: 6px; width: 28px; }
.nav__burger i { display: block; height: 2px; background: currentColor; transition: transform .45s var(--ease); }
.menu-open .nav__burger i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .nav__burger i:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ============ Menu ============ */
.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--accent); color: var(--ink);
  padding: 100px var(--gutter) var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__list a {
  display: flex; align-items: baseline; gap: 18px;
  font-size: clamp(44px, 8.5vw, 120px);
  font-weight: 800; line-height: 0.98; text-transform: uppercase;
  letter-spacing: -0.03em;
  border-bottom: 1px solid rgba(255,255,255,.22);
  padding: 4px 0;
  transform: translateY(40px); opacity: 0;
  transition: transform .7s var(--ease), opacity .5s, letter-spacing .5s var(--ease), padding .4s var(--ease);
}
.menu__list a span { font-size: 12px; letter-spacing: 0; }
.menu-open .menu__list a { transform: none; opacity: 1; }
.menu-open .menu__list li:nth-child(2) a { transition-delay: .05s; }
.menu-open .menu__list li:nth-child(3) a { transition-delay: .1s; }
.menu-open .menu__list li:nth-child(4) a { transition-delay: .15s; }
.menu-open .menu__list li:nth-child(5) a { transition-delay: .2s; }
.menu-open .menu__list li:nth-child(6) a { transition-delay: .25s; }
.menu__list a:hover { letter-spacing: 0.02em; padding-left: 24px; }
.menu__foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 99px;
  font-weight: 600; font-size: 16px;
  border: 1.5px solid var(--ink);
  transition: background .3s, color .3s, border-color .3s;
  position: relative; will-change: transform;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn--big { padding: 22px 34px; font-size: 18px; }

/* ============ Hero ============ */
.hero {
  min-height: 100svh;
  padding-top: 92px; padding-bottom: 28px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  overflow: hidden;
}
.hero > * { position: relative; z-index: 1; }
/* Living dot field (drawn by main.js) */
.hero__field {
  position: absolute !important; inset: 0; z-index: 0 !important;
  width: 100%; height: 100%; pointer-events: none;
}
.hero__glow {
  position: absolute !important; z-index: 0 !important; pointer-events: none;
  left: 50%; top: 34%; width: min(1300px, 140vw); aspect-ratio: 1.8;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(122,87,219,.55), rgba(92,51,204,.18) 55%, transparent);
  filter: blur(20px);
  animation: breathe 7s ease-in-out infinite;
}
/* the violet light streak from stacktribe.dev's hero, slowly sweeping */
.hero__glow::after {
  content: ""; position: absolute; left: -40%; right: -40%; top: 38%; height: 34%;
  background: linear-gradient(90deg, transparent 0%, rgba(185,166,247,.32) 38%, rgba(234,72,132,.16) 52%, rgba(51,194,204,.10) 62%, transparent 80%);
  transform: rotate(-9deg); border-radius: 50%;
  animation: sweep 11s ease-in-out infinite alternate;
}
@keyframes sweep { from { translate: -8% 0; } to { translate: 8% -10%; } }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.12); opacity: .75; } }

/* The founders: one composited, tone-matched photo (assets/founders.webp).
   Left-edge and bottom fades are baked into the image. */
.hero__duo {
  --h: clamp(220px, 46svh, 540px);
  height: var(--h);
  aspect-ratio: 1479 / 724;
  max-width: 100%;
}
.hero__duo-img {
  display: block; width: 100%; height: 100%; object-fit: contain;
  user-select: none; -webkit-user-drag: none;
  transition: transform .8s var(--ease);
  transform-origin: bottom center;
}
.hero__duo:hover .hero__duo-img { transform: scale(1.015); }

.founder__tag {
  position: absolute; white-space: nowrap; text-transform: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border-radius: 99px;
  background: var(--paper); border: 1.5px solid var(--ink); color: var(--ink);
  font-size: 12px; box-shadow: 4px 4px 0 var(--accent);
  transition: background .3s, color .3s, transform .5s var(--ease);
  animation: bob 4s ease-in-out infinite;
}
.founder__tag b {
  font-family: var(--f-display); font-size: 13px; font-weight: 700;
  background: var(--accent); color: #fff; padding: 3px 10px; border-radius: 99px;
}
/* Tags live in empty space: top-left beside Nimesh, and on Aditya's tee — never on a face */
.founder__tag--nimesh { top: 12%; left: 6%; rotate: -5deg; }
.founder__tag--aditya { top: 56%; left: 68%; rotate: 4deg; animation-delay: -2s; }
.founder__tag:hover { background: var(--accent); color: #fff; }
/* name on top, role underneath: keeps the tag narrow enough to stay off faces */
@media (min-width: 701px) {
  .founder__tag { flex-direction: column; align-items: flex-start; gap: 5px; padding: 7px 14px 9px 7px; border-radius: 18px; }
  .founder__tag > span { padding-left: 4px; font-size: 11px; letter-spacing: .02em; }
}
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 700px) {
  .founder__tag { padding: 4px; box-shadow: 3px 3px 0 var(--accent); }
  .founder__tag > span { display: none; }
  .founder__tag b { font-size: 12px; }
}

.hero__title {
  font-size: clamp(34px, min(6.6vw, 9.5svh), 132px);
  line-height: 0.9;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  user-select: none;
  margin-top: -0.42em;
  z-index: 3 !important;
}
.hero__line { display: block; }
.hero__line .ch { transition: color .3s; }
.hero__line--accent { color: #9d82ee; }
@media (min-width: 701px) { .hero .hero__line { white-space: nowrap; } }

.hero__lede { margin-top: 22px; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.4; max-width: 46ch; color: var(--ink-2); }
.hero__lede em { font-style: normal; background: var(--ink); color: var(--paper); padding: 0 .25em; border-radius: 4px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.hero__trust { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.hero__trust b { color: var(--accent-hi); }
.hero__flags { display: flex; }
.hero__flags i {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 18px; background: var(--paper);
  border: 1.5px solid var(--ink); margin-left: -10px;
  transition: transform .4s var(--ease);
}
.hero__flags i:first-child { margin-left: 0; }
.hero__trust:hover .hero__flags i { transform: translateY(-6px) rotate(-8deg); }
.hero__trust:hover .hero__flags i:nth-child(2n) { transform: translateY(-6px) rotate(8deg); }

.hero__clients {
  margin-top: auto; padding-top: 36px;
  width: calc(100% + 2 * var(--gutter));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.hero__strip { overflow: hidden; }
.hero__strip-track { display: flex; width: max-content; will-change: transform; }
.hero__strip-track a {
  font-size: clamp(22px, 2.4vw, 36px); font-weight: 800; letter-spacing: -0.02em; color: rgba(244,246,251,.22);
  padding: 0 clamp(24px, 3vw, 48px); white-space: nowrap;
  transition: color .3s;
}
.hero__strip-track a:hover { color: var(--ink); }

@media (max-width: 700px) {
  .hero__duo { --h: auto; width: 100%; height: auto; }
  .hero__field { opacity: .6; }
  .hero__title { margin-top: -0.3em; }
  .hero__trust { flex-direction: column; gap: 8px; }
}

/* Contact title reuses the hero line styles */
.contact__title .hero__line { white-space: nowrap; }
.hero__line--indent { padding-left: 12vw; }
@media (max-width: 900px) { .hero__line--indent { padding-left: 8vw; } }

/* ============ Marquee ============ */
.marquee { overflow: hidden; background: var(--accent-grad); color: #fff; padding: 22px 0; border-block: 1px solid rgba(255,255,255,.18); }
.marquee__track { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.marquee__track span, .marquee__track b {
  font-size: clamp(38px, 6vw, 92px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1;
  padding: 0 .35em;
}
.marquee__track b { font-weight: 400; color: var(--hot); display: inline-block; }

/* ============ Manifesto ============ */
.manifesto__text {
  font-size: clamp(22px, 2.5vw, 40px);
  line-height: 1.28;
  font-weight: 500;
  letter-spacing: -0.015em;
  max-width: 30ch;
}
.manifesto__text .w { opacity: .14; transition: color .3s; }
/* highlighter sweep (width driven by --p from the scroll timeline) */
.m-hl {
  color: inherit; background-color: transparent; padding: 0 .06em; border-radius: .12em;
  background-image: linear-gradient(transparent 56%, rgba(122, 87, 219, .32) 56%, rgba(122, 87, 219, .32) 94%, transparent 94%);
  background-repeat: no-repeat; background-size: var(--p, 0%) 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* pink strike-through drawn across "falls apart" */
.m-strike { text-decoration: none; position: relative; white-space: nowrap; }
.m-strike::after {
  content: ""; position: absolute; left: -3%; right: -3%; top: 52%; height: .085em; border-radius: 1em;
  background: var(--hot); transform: scaleX(var(--s, 0)) rotate(-2deg); transform-origin: left center;
}

/* text left, globe right */
.manifesto__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.globe { margin: 0; position: relative; }
.globe__canvas { display: block; width: 100%; aspect-ratio: 1; cursor: grab; touch-action: pan-y; }
.globe__canvas:active { cursor: grabbing; }
.globe__legend { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; color: var(--ink-2); font-size: 12.5px; text-transform: none; align-items: center; text-align: center; }
.globe__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.globe__dot--home { background: var(--hot); box-shadow: 0 0 0 4px rgba(234, 72, 132, .2); }
@media (max-width: 860px) { .manifesto__grid { grid-template-columns: 1fr; } .manifesto__text { max-width: none; } .globe { max-width: 460px; margin: 0 auto; width: 100%; } }
.manifesto__sign { margin-top: 56px; display: flex; flex-direction: column; gap: 4px; color: var(--mute); }

/* ============ Services ============ */
.svc { margin-top: clamp(40px, 6vw, 90px); border-top: 1.5px solid var(--ink); }
.svc__row { border-bottom: 1.5px solid var(--ink); position: relative; overflow: hidden; }
.svc__row::before {
  content: ""; position: absolute; inset: 0; background: var(--accent-grad);
  transform: translateY(101%); transition: transform .6s var(--ease); z-index: -1;
}
.svc__row:hover::before, .svc__row.is-open::before { transform: none; }
/* on the violet fill everything flips to white so it stays readable */
.svc__row:hover, .svc__row.is-open { color: #fff; }
.svc__row:hover .chips li, .svc__row.is-open .chips li { border-color: rgba(255,255,255,.7); }
.chips li { transition: border-color .3s; }
.svc__head {
  width: 100%; display: grid; grid-template-columns: 60px 1fr minmax(0, 340px) 40px; align-items: center; gap: 24px;
  padding: clamp(18px, 2.6vw, 34px) 0; text-align: left;
}
.svc__name {
  font-size: clamp(40px, 7.6vw, 130px); font-weight: 800; text-transform: uppercase; line-height: .9;
  letter-spacing: -0.03em;
  transition: letter-spacing .6s var(--ease), transform .6s var(--ease);
}
.svc__row:hover .svc__name { letter-spacing: 0.02em; transform: translateX(12px); }
.svc__tag { font-size: 17px; line-height: 1.3; }
.svc__plus { width: 32px; height: 32px; position: relative; justify-self: end; }
.svc__plus::before, .svc__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.svc__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc__row.is-open .svc__plus::after { transform: translate(-50%, -50%) rotate(0); }
.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.svc__row.is-open .svc__body { grid-template-rows: 1fr; }
.svc__body-inner { overflow: hidden; padding-left: 84px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.svc__body-inner > * { margin-bottom: 36px; }
.svc__body p { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.4; max-width: 40ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.chips li { border: 1.5px solid var(--ink); border-radius: 99px; padding: 8px 14px; font-size: 14px; font-weight: 500; }
@media (max-width: 800px) {
  .svc__head { grid-template-columns: 28px 1fr 32px; gap: 12px; }
  .svc__tag { grid-column: 2 / 3; grid-row: 2; font-size: 15px; }
  .svc__body-inner { padding-left: 40px; grid-template-columns: 1fr; gap: 0; }
  .svc__body-inner > * { margin-bottom: 24px; }
}

/* ============ Work index ============ */
.work__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: 48px; }
.work__note { max-width: 30ch; color: var(--ink-2); font-size: 17px; }
@media (max-width: 800px) { .work__head { grid-template-columns: 1fr; } }

/* Cases are grouped by industry, each group with its own bento grid */
.work-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 6vw, 88px); }
.work-group { scroll-margin-top: 96px; }
.work-group__title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 clamp(18px, 2vw, 28px);
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
  font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; letter-spacing: -0.015em;
}
.work-group__count { font-size: 12px; color: var(--mute); }
/* Project bento: 12-column grid, spans set by the build (7+5, 4+4+4, 5+7, ...) */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.proj--4 { grid-column: span 4; } .proj--5 { grid-column: span 5; } .proj--6 { grid-column: span 6; }
.proj--7 { grid-column: span 7; } .proj--12 { grid-column: span 12; }
.proj__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  height: clamp(280px, 28vw, 440px); padding: clamp(20px, 2.2vw, 32px); border-radius: 26px;
  background: var(--pc); color: var(--pc-fg);
  box-shadow: 0 30px 60px -36px rgba(42, 15, 99, .45);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.proj--4 .proj__card { height: clamp(260px, 24vw, 380px); }
/* soft light from the top-right corner gives each flat colour some depth */
.proj__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.22), transparent 55%);
}
.proj__card:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -34px rgba(42, 15, 99, .55); }
.proj__top { display: flex; align-items: flex-start; gap: 12px; }
.proj__idx { font-size: 12px; opacity: .7; padding-top: 2px; }
.proj__cat { flex: 1; font-size: 14px; line-height: 1.35; opacity: .85; max-width: 26ch; }
.proj__icon { width: clamp(48px, 4.6vw, 68px); height: auto; transition: transform .6s var(--ease); }
.proj__card:hover .proj__icon { transform: rotate(-10deg) scale(1.08); }
.proj__name {
  font-size: clamp(32px, 4vw, 64px); font-weight: 800; text-transform: uppercase; line-height: .92;
  letter-spacing: -0.025em; overflow-wrap: anywhere;
}
.proj--4 .proj__name { font-size: clamp(28px, 2.9vw, 46px); }
.proj__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.proj__arrow { font-size: 26px; line-height: 1; transition: transform .5s var(--ease); }
.proj__card:hover .proj__arrow { transform: translateX(6px); }
.proj__tech { display: flex; flex-wrap: wrap; gap: 6px; }
.proj__tech i {
  font-style: normal; font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 99px; border: 1px solid currentColor; opacity: .85; white-space: nowrap;
}
@media (max-width: 1000px) {
  .proj--4, .proj--5, .proj--6, .proj--7 { grid-column: span 6; }
  .work-grid > .proj:last-child:nth-child(odd) { grid-column: span 12; }
  .proj__card, .proj--4 .proj__card { height: auto; min-height: 260px; }
}
@media (max-width: 760px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .proj--4, .proj--5, .proj--6, .proj--7, .proj--12, .work-grid > .proj:last-child:nth-child(odd) { grid-column: auto; }
}

/* ============ Process ============ */
.process { padding: 0; overflow: hidden; }
.process__pin { height: 100svh; display: flex; align-items: center; gap: 6vw; padding: 0 var(--gutter); }
.process__intro { flex: 0 0 min(440px, 80vw); }
.process__title { font-size: clamp(40px, 5vw, 78px); line-height: .95; font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; }
.process__drag { margin-top: 28px; color: var(--cyan); }
.process__track { display: flex; gap: 24px; will-change: transform; }
.step {
  flex: 0 0 clamp(300px, 34vw, 480px); height: min(62vh, 520px);
  border: 1.5px solid var(--line); border-radius: 22px;
  padding: 32px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  transition: background .5s, color .5s, border-color .5s;
}
.step:hover { background: var(--accent-grad); color: #fff; border-color: var(--accent); }
.step__num { font-size: clamp(90px, 11vw, 170px); font-weight: 900; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px currentColor; letter-spacing: -0.04em; }
.step:hover .step__num { color: var(--ink); }
.step h3 { font-size: clamp(36px, 4vw, 60px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; }
.step p { font-size: 18px; line-height: 1.4; max-width: 32ch; opacity: .85; }
@media (max-width: 800px) {
  .process { padding: 90px var(--gutter); }
  .process__pin { height: auto; flex-direction: column; align-items: stretch; padding: 0; gap: 40px; }
  .process__intro { flex: none; }
  .process__drag { display: none; }
  .process__track { flex-direction: column; }
  .step { flex: none; height: auto; min-height: 300px; gap: 28px; }
}

/* ============ Numbers ============ */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding-top: 0; padding-bottom: 0; border-bottom: 1.5px solid var(--ink); }
.num { padding: clamp(40px, 6vw, 90px) 20px; border-right: 1px solid var(--line); }
.num:last-child { border-right: 0; }
.num__val, .num__plus { font-size: clamp(64px, 9vw, 150px); font-weight: 900; line-height: .85; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.num__plus { color: var(--accent-hi); }
.num p { margin-top: 14px; font-size: 16px; color: var(--ink-2); }
@media (max-width: 800px) { .numbers { grid-template-columns: 1fr 1fr; } .num:nth-child(2) { border-right: 0; } .num:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ============ Playground ============ */
.playground__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.playground__title { font-size: clamp(48px, 7vw, 120px); font-weight: 800; text-transform: uppercase; line-height: .88; letter-spacing: -0.03em; }
.playground__copy { margin: 28px 0 32px; font-size: 18px; max-width: 44ch; color: var(--ink-2); }
.tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tool {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--ink); border-radius: 99px; padding: 10px 16px;
  font-weight: 600; font-size: 15px;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.tool:hover { transform: translateY(-3px) rotate(-2deg); }
.tool i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.tool[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tower { position: sticky; top: 100px; }
.tower__stage {
  height: min(60vh, 520px); border-radius: 22px; color: #f4f6fb;
  background-color: #14132b; /* the stack tower is a little piece of night on the light page */
  box-shadow: 0 30px 60px -30px rgba(92, 51, 204, .55);
  padding: 22px; display: flex; flex-direction: column-reverse; gap: 6px; overflow: hidden; position: relative;
  background-image: radial-gradient(rgba(242,239,232,.08) 1px, transparent 1px); background-size: 18px 18px;
}
.tower__empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #8d8aa8; line-height: 1.8; }
.layer {
  flex: 0 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-radius: 10px;
  background: var(--c); color: #0a0a1a;
  font-weight: 800; text-transform: uppercase; font-size: 18px; letter-spacing: -0.01em;
  transform-origin: bottom center;
}
.layer small { font-family: var(--f-mono); font-weight: 400; font-size: 11px; opacity: .7; }
.tower__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 12px; }
@media (max-width: 900px) { .playground__grid { grid-template-columns: 1fr; } .tower { position: static; } .tower__stage { height: 380px; } }

/* ============ Voices ============ */
/* a finite masonry wall: 3 columns on desktop, 2 on tablets, 1 on phones */
.voices[hidden] { display: none; }
.voices__grid { columns: 3 300px; column-gap: 20px; }
.quote {
  break-inside: avoid; margin: 0 0 20px;
  border: 1.5px solid var(--line); border-radius: 22px; padding: 28px; background: rgba(255,255,255,.55);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  transition: background .4s, color .4s, border-color .4s;
}
.quote:hover { background: var(--accent-grad); color: #fff; border-color: var(--accent); }
.quote:hover footer .mono { color: rgba(255,255,255,.75); }
.quote p { font-size: 20px; line-height: 1.35; letter-spacing: -0.01em; }
.quote footer { display: flex; align-items: center; gap: 12px; }
.quote__av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; }
.quote footer strong { display: block; font-size: 16px; }
.quote footer .mono { color: var(--mute); font-size: 12px; }
.quote footer .mono a { color: var(--accent-deep); border-bottom: 1px solid currentColor; }
.quote:hover footer .mono a { color: #fff; }

/* ============ Packages ============ */
.packages__head { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: 56px; }
.packages__head p { max-width: 44ch; font-size: 18px; color: var(--ink-2); }
.pkg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pkg {
  border: 1.5px solid var(--ink); border-radius: 22px; padding: 26px; position: relative;
  display: flex; flex-direction: column; gap: 14px; min-height: 380px;
  transition: transform .5s var(--ease), background .3s, color .3s;
}
.pkg:hover { transform: translateY(-10px) rotate(-1deg); background: var(--surface-flat); border-color: var(--accent); }
.pkg--hot { background: var(--accent-grad); border-color: var(--accent); color: #fff; }
.pkg--hot:hover { background: var(--accent-grad); }
.pkg__badge { position: absolute; top: -12px; right: 20px; background: #c2255f; color: #fff; border-radius: 99px; padding: 5px 11px; font-size: 11px; } /* 5.6:1 */
.pkg h3 { font-size: clamp(40px, 4vw, 60px); font-weight: 800; text-transform: uppercase; line-height: .9; letter-spacing: -0.03em; }
.pkg__for { font-size: 16px; }
.pkg ul { margin-top: auto; display: grid; gap: 8px; font-size: 15px; border-top: 1px solid currentColor; padding-top: 16px; }
.pkg li::before { content: "+ "; }
/* maintenance & rescue CTA: a full-width banner, not a footnote */
.rescue {
  margin-top: 28px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 2.5vw, 32px);
  padding: clamp(20px, 2.6vw, 32px) clamp(20px, 3vw, 40px); border-radius: 26px;
  background: var(--accent-grad); color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(92, 51, 204, .6);
}
.rescue::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 0%, rgba(255,255,255,.22), transparent 45%); pointer-events: none; }
.rescue__icon {
  width: clamp(60px, 6vw, 80px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.55); background: rgba(255,255,255,.12); transition: rotate .5s var(--ease);
}
.rescue__icon img { width: 56%; height: auto; }
.rescue:hover .rescue__icon { rotate: -12deg; }
.rescue__text { display: grid; gap: 6px; }
.rescue__kicker { color: rgba(255,255,255,.75); }
.rescue__title { font-family: var(--f-display); font-size: clamp(24px, 2.8vw, 42px); line-height: 1; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; word-spacing: .1em; }
.rescue__sub { font-size: clamp(15px, 1.2vw, 18px); color: rgba(255,255,255,.85); max-width: 52ch; }
.rescue__btn { background: #fff; color: var(--accent-deep); border-color: #fff; white-space: nowrap; z-index: 1; }
.rescue:hover .rescue__btn { background: var(--night); color: #fff; border-color: var(--night); }
@media (max-width: 760px) { .rescue { grid-template-columns: auto 1fr; } .rescue__btn { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 1000px) { .pkg-grid { grid-template-columns: 1fr 1fr; } .packages__head { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pkg-grid { grid-template-columns: 1fr; } .pkg { min-height: 0; } }

/* ============ Tribe ============ */
.people { margin-top: clamp(40px, 6vw, 90px); border-top: 1.5px solid var(--ink); }
.person {
  --av: clamp(120px, 13vw, 190px);
  display: grid; grid-template-columns: 56px var(--av) 1.4fr 1fr;
  grid-template-areas: "idx av name role" "idx av bio mail";
  grid-template-rows: auto 1fr;
  column-gap: 24px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line); position: relative;
}
.person__avatar {
  grid-area: av; width: var(--av); height: var(--av); display: block; cursor: pointer;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(122, 87, 219, .22), rgba(122, 87, 219, .06) 55%, transparent 70%);
  transition: transform .5s var(--ease);
}
.person:hover .person__avatar { transform: scale(1.06); }
.person__idx { grid-area: idx; color: var(--mute); align-self: start; padding-top: 10px; }
.person__name { grid-area: name; font-size: clamp(30px, 4.6vw, 72px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.025em; line-height: .95; transition: color .3s, letter-spacing .5s var(--ease); }
.person__role { grid-area: role; font-size: 16px; }
.person__bio, .person__mail { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .4s, margin .6s var(--ease); }
.person__bio { grid-area: bio; font-size: 18px; max-width: 46ch; color: var(--ink-2); }
.person__mail { grid-area: mail; text-transform: none; border-bottom: 1px solid currentColor; justify-self: start; }
.person:hover .person__name, .person:focus-within .person__name { color: var(--accent-hi); letter-spacing: 0.005em; }
.person:hover .person__bio, .person:hover .person__mail, .person:focus-within .person__bio, .person:focus-within .person__mail { max-height: 120px; opacity: 1; margin-top: 14px; }
@media (hover: none) { .person__bio, .person__mail { max-height: none; opacity: 1; margin-top: 12px; } }
@media (max-width: 800px) {
  .person { --av: 104px; grid-template-columns: 24px var(--av) 1fr; grid-template-areas: "idx av name" "idx av role" ". bio bio" ". mail mail"; grid-template-rows: auto auto; column-gap: 14px; }
}

/* ============ Contact ============ */
/* compact so the "Book my discovery call" button lands on the first screen of the section */
.contact { background: var(--paper-2); padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }
.contact .section-label { margin-bottom: clamp(20px, 2.5vw, 32px); }
.contact__title { font-size: clamp(40px, 7.6vw, 140px); line-height: .86; font-weight: 800; text-transform: uppercase; letter-spacing: -0.035em; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(28px, 3.5vw, 52px); align-items: start; }
.contact__side { display: flex; flex-direction: column; gap: 20px; }
.contact__side p { font-size: 20px; line-height: 1.4; max-width: 34ch; }
.contact__tz { color: var(--ink-2); font-size: 15px !important; line-height: 1.55 !important; text-transform: none; letter-spacing: 0; font-weight: 500; }
.contact__mail { font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; border-bottom: 2px solid var(--ink); align-self: flex-start; margin-top: auto; transition: color .3s, border-color .3s; word-break: break-all; }
.contact__mail:hover { color: var(--accent-hi); border-color: var(--accent-hi); }
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 10px; position: relative; }
.field span.mono { color: var(--ink-2); }
.field input, .field textarea {
  font: inherit; font-size: clamp(20px, 2vw, 28px); font-weight: 500;
  background: transparent; border: 0; border-bottom: 1.5px solid var(--ink);
  padding: 8px 0 12px; color: var(--ink); outline: none; resize: vertical; border-radius: 0;
  transition: border-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(15,23,42,.68); }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--hot); }
.field__count { position: absolute; right: 0; bottom: -22px; color: var(--mute); }
.form .btn { justify-self: start; margin-top: 6px; }
.form__msg { min-height: 1.4em; color: var(--ink-2); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } .contact__side { order: 2; } /* form first on phones */ }

/* ============ Footer ============ */
.footer { padding: 60px var(--gutter) 28px; overflow: hidden; }
.footer__giant {
  font-size: 13.6vw; font-weight: 900; line-height: .8; letter-spacing: -0.05em; text-align: center; color: var(--accent);
  white-space: nowrap;
}
.footer__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; color: var(--mute); }
.footer__row a:hover { color: var(--paper); }
/* Icons8's free licence needs a visible link; kept as small and quiet as possible */
.footer__credit { margin-top: 22px; text-align: right; font-size: 10px; letter-spacing: .02em; color: var(--mute); opacity: .45; }
.footer__credit a:hover { opacity: 1; text-decoration: underline; }
.footer__egg { margin-top: 18px; color: var(--mute); text-align: center; text-transform: none; }

/* ============ Easter egg ============ */
.confetti { position: fixed; z-index: 95; pointer-events: none; font-weight: 900; font-size: 28px; text-transform: uppercase; top: -40px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 96; transform: translate(-50%, 120px);
  background: var(--accent-grad); color: #fff; padding: 14px 22px; border-radius: 99px;
  font-family: var(--f-mono); font-size: 13px; transition: transform .6s var(--ease);
}
.toast.is-on { transform: translate(-50%, 0); }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .manifesto__text .w { opacity: 1; }
  .m-hl { background-size: 100% 100%; }
  .m-strike::after { transform: scaleX(1) rotate(-2deg); }
}

/* ============ Project case study (project.html) ============ */
.nav__back { color: inherit; opacity: .8; transition: opacity .2s; white-space: nowrap; }
@media (max-width: 480px) { .nav__back { font-size: 11px; letter-spacing: .08em; } .nav__logo { font-size: 16px; gap: 8px; } }
.nav__back:hover { opacity: 1; }

.case-hero {
  min-height: 0; text-align: left; align-items: stretch;
  padding: 130px var(--gutter) clamp(60px, 8vw, 110px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px) clamp(32px, 5vw, 80px);
  grid-template-areas: "top top" "meta shot";
}
.case-hero__glow {
  position: absolute !important; z-index: 0 !important; pointer-events: none;
  right: -10%; top: -20%; width: 70vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--pc) 55%, transparent), transparent 70%);
  filter: blur(30px); opacity: .55;
}
.case-hero__top { grid-area: top; }
.case-eyebrow { display: flex; gap: 18px; flex-wrap: wrap; color: var(--mute); margin-bottom: 18px; }
.case-eyebrow > :first-child { color: var(--accent-hi); }
.case-eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }
.case-title {
  font-family: var(--f-display); word-spacing: .1em;
  font-size: clamp(34px, 10.5vw, 200px); line-height: .86; font-weight: 700; text-transform: uppercase; letter-spacing: -0.035em;
}
.case-tagline { margin-top: 22px; font-size: clamp(19px, 1.8vw, 28px); line-height: 1.3; max-width: 34ch; color: var(--ink-2); }
.case-meta { grid-area: meta; margin: 0; align-self: end; display: grid; gap: 0; border-top: 1px solid var(--line); }
.case-meta > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.case-meta dt { color: var(--mute); padding-top: 3px; }
.case-meta dd { margin: 0; font-size: 17px; }
.case-meta__tech { display: flex; flex-wrap: wrap; gap: 8px; }
.case-meta__tech span { font-size: 13px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); }

.case-shot { grid-area: shot; margin: 0; position: relative; align-self: end; }
.case-shot__frame {
  border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--pc) 70%, #000), 0 0 0 1px rgba(255,255,255,.08);
}
.case-shot__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #ecebf3; color: #6b6888; }
.case-shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3d0e0; }
.case-shot__bar i:nth-child(1) { background: #ea4884; } .case-shot__bar i:nth-child(2) { background: #f5c451; } .case-shot__bar i:nth-child(3) { background: #33c2cc; }
.case-shot__bar span { margin-left: 10px; font-size: 10px; text-transform: none; }
.case-shot__frame > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--pc); }
.case-shot__icon {
  position: absolute; top: -40px; right: -14px; width: clamp(80px, 8vw, 112px); aspect-ratio: 1; display: grid; place-items: center;
  background: #fff; border-radius: 50%; box-shadow: 0 20px 34px -12px rgba(0,0,0,.5);
  animation: hover-float 3.4s ease-in-out infinite;
}
.case-shot__icon img { width: 56%; height: auto; }
@media (max-width: 900px) {
  .case-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "shot" "meta"; padding-top: 110px; }
  .case-meta > div { grid-template-columns: 110px 1fr; }
  .case-shot__icon { right: -6px; }
}
.case-hero--missing { display: flex; flex-direction: column; gap: 28px; min-height: 80svh; justify-content: center; align-items: flex-start; }

.case-section { padding: clamp(80px, 11vw, 160px) var(--gutter); }
.case-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.case-lead { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 40px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 500; }
.case-body { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
@media (max-width: 860px) { .case-story { grid-template-columns: 1fr; } }

.case-h2 { margin-bottom: clamp(36px, 5vw, 64px); }
.case-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.case-feature {
  border: 1.5px solid var(--ink); border-radius: 22px; padding: clamp(22px, 2.6vw, 34px);
  display: grid; gap: 12px; align-content: start; background: rgba(255,255,255,.6);
  transition: background .35s, color .35s, border-color .35s;
}
.case-feature:hover { background: var(--accent-grad); border-color: var(--accent); color: #fff; }
.case-feature:hover p, .case-feature:hover .case-feature__n { color: rgba(255,255,255,.85); }
.case-feature__n { color: var(--accent-hi); }
.case-feature h3 { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 36px); line-height: 1; text-transform: uppercase; letter-spacing: -0.02em; }
.case-feature p { color: var(--ink-2); font-size: 17px; line-height: 1.5; transition: color .35s; }
@media (max-width: 760px) { .case-features { grid-template-columns: 1fr; } }

.case-why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case-why__card { padding: clamp(22px, 2.4vw, 32px); border-radius: 22px; background: rgba(255,255,255,.7); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.case-why__n {
  font-family: var(--f-display); font-size: clamp(56px, 6vw, 90px); line-height: .85; font-weight: 700;
  color: var(--accent);
}
.case-why__card h3 { font-family: var(--f-display); font-size: clamp(22px, 2vw, 30px); line-height: 1.05; text-transform: uppercase; letter-spacing: -0.015em; }
.case-why__card p { color: var(--ink-2); font-size: 17px; line-height: 1.5; }
@media (max-width: 860px) { .case-why__grid { grid-template-columns: 1fr; } }

.case-quote { margin: clamp(48px, 6vw, 80px) 0 0; padding: clamp(28px, 4vw, 52px); border-radius: 26px; background: var(--accent-grad); color: #fff; }
.case-quote blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 38px); line-height: 1.2; letter-spacing: -0.015em; }
.case-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.case-quote figcaption .mono { display: block; color: rgba(255,255,255,.75); font-size: 11px; }
.case-quote .quote__av { background: #fff; color: var(--accent-deep); }

.case-stack__list { display: flex; flex-wrap: wrap; gap: 14px; }
.case-stack__list li {
  display: flex; align-items: center; gap: 14px; padding: 14px 26px;
  border: 1.5px solid var(--ink); border-radius: 99px; font-family: var(--f-display); font-size: clamp(20px, 2vw, 28px); text-transform: uppercase;
}

.case-cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; border-top: 1.5px solid var(--ink); }
.case-cta__title { font-family: var(--f-display); font-size: clamp(40px, 6.5vw, 110px); line-height: .9; text-transform: uppercase; letter-spacing: -0.03em; }

.case-next {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 100px) var(--gutter); background: var(--pc); color: var(--pc-fg);
}
.case-next .mono { opacity: .75; }
.case-next__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(34px, 10vw, 180px); line-height: .88; text-transform: uppercase; letter-spacing: -0.035em; transition: letter-spacing .6s var(--ease); }
.case-next:hover .case-next__name { letter-spacing: 0; }
.case-next__cat { font-size: 18px; opacity: .85; }
.case-next__icon { position: absolute; right: var(--gutter); top: 50%; width: clamp(90px, 13vw, 190px); height: auto; translate: 0 -50%; transition: rotate .6s var(--ease), scale .6s var(--ease); }
.case-next:hover .case-next__icon { rotate: -12deg; scale: 1.08; }
@media (max-width: 700px) { .case-next__icon { opacity: .35; } }

/* ============ Accessibility: skip link + visible focus ============ */
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200; padding: 10px 16px; border-radius: 99px;
  background: var(--accent-deep); color: #fff; font-weight: 700; transform: translateY(-160%); transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .case-hero :focus-visible, .menu :focus-visible { outline-color: #b9a6f7; }
.btn:focus-visible { outline-offset: 4px; border-radius: 99px; }
input:focus-visible, textarea:focus-visible { outline: none; } /* the field underline turns violet instead */
::placeholder { opacity: 1; }

/* ============ Service landing pages ============ */
.svc-hero { grid-template-areas: "top tech"; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; padding-bottom: clamp(56px, 7vw, 100px); }
/* sized by the longest word (--len, set by the build) so words like DEVELOPMENT never overflow the column */
.svc-title { --len: 9; font-size: min(calc(66vw / var(--len)), 7.2vw, 128px); line-height: .9; }
@media (max-width: 900px) { .svc-title { font-size: min(calc((100vw - 48px) / (0.75 * var(--len))), 7.2vw + 24px, 72px); } }
.svc-hero .case-tagline { max-width: 52ch; }
.svc-hero .case-tagline strong { color: var(--ink); font-weight: 700; }
.svc-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.svc-tech { grid-area: tech; align-self: end; border-top: 1px solid var(--line); padding-top: 18px; }
.svc-tech h2 { color: var(--mute); margin-bottom: 14px; }
.svc-tech ul { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tech li { padding: 8px 14px; border-radius: 99px; border: 1px solid rgba(244,246,251,.22); font-size: 15px; }
@media (max-width: 900px) { .svc-hero { grid-template-areas: "top" "tech"; grid-template-columns: minmax(0, 1fr); } }
.svc-fits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .svc-fits { grid-template-columns: 1fr; } }

.svc-work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc-card {
  display: grid; gap: 8px; align-content: start; position: relative; overflow: hidden;
  padding: clamp(22px, 2.4vw, 30px); border-radius: 22px; background: var(--pc); color: var(--pc-fg); min-height: 280px;
}
.svc-card__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid currentColor; margin-bottom: 18px; transition: rotate .5s var(--ease); }
.svc-card__icon img { width: 30px; height: 30px; }
.svc-card:hover .svc-card__icon { rotate: -12deg; }
.svc-card__cat { opacity: .75; }
.svc-card__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 2.8vw, 40px); line-height: .95; text-transform: uppercase; letter-spacing: -0.02em; }
.svc-card__line { font-size: 16px; line-height: 1.45; opacity: .9; }
.svc-card__more { margin-top: auto; padding-top: 16px; transition: letter-spacing .4s var(--ease); }
.svc-card:hover .svc-card__more { letter-spacing: .2em; }
@media (max-width: 900px) { .svc-work { grid-template-columns: 1fr; } .svc-card { min-height: 0; } }

.faq { border-top: 1.5px solid var(--ink); max-width: 980px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 2vw, 28px); line-height: 1.15;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary span { width: 22px; height: 22px; position: relative; flex: none; }
.faq__item summary span::before, .faq__item summary span::after { content: ""; position: absolute; left: 0; top: 50%; width: 22px; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.faq__item summary span::after { transform: rotate(90deg); }
.faq__item[open] summary span::after { transform: rotate(0); }
.faq__item p { padding: 0 0 26px; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }

/* footer service links (crawlable internal links to every landing page) */
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 30px; font-size: 15px; color: var(--ink-2); }
.footer__links a:hover { color: var(--accent-deep); }

/* ============ Marketing studio (/marketing-studio/) ============ */
.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; }
/* hero mirrors the home hero (same .hero / .hero__duo / .hero__title system); Ajay solo */
.hero__duo--solo { aspect-ratio: 878 / 635; }
.founder__tag--ajay { top: 58%; left: 2%; rotate: -5deg; }
.mk-trust { display: block; font-size: 15px; }
.mk-trust b { color: var(--accent-hi); }
@media (max-width: 700px) { .founder__tag--ajay { top: 62%; left: 0; } }

.mk-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mk-service {
  display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2.2vw, 30px);
  border: 1.5px solid var(--ink); border-radius: 22px; background: rgba(255,255,255,.6);
  transition: background .35s, color .35s, border-color .35s;
}
.mk-service__icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); margin-bottom: 8px; transition: rotate .5s var(--ease); }
.mk-service:hover { background: var(--accent-grad); border-color: var(--accent); color: #fff; }
.mk-service:hover .mk-service__icon { rotate: -10deg; }
.mk-service h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 1.9vw, 28px); line-height: 1; text-transform: uppercase; letter-spacing: -0.015em; }
.mk-service p { color: var(--ink-2); font-size: 16px; line-height: 1.5; transition: color .35s; }
.mk-service:hover p { color: rgba(255,255,255,.88); }
@media (max-width: 1100px) { .mk-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mk-services { grid-template-columns: 1fr; } }

.mk-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 40px); border-top: 1.5px solid var(--ink); padding-top: 32px; }
.mk-step { display: grid; gap: 10px; align-content: start; }
.mk-step__n { font-family: var(--f-display); font-weight: 700; font-size: clamp(56px, 6vw, 96px); line-height: .85; color: var(--accent); }
.mk-step h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.2vw, 34px); text-transform: uppercase; letter-spacing: -0.02em; }
.mk-step p { color: var(--ink-2); font-size: 17px; line-height: 1.5; max-width: 30ch; }
@media (max-width: 900px) { .mk-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .mk-steps { grid-template-columns: 1fr; } }

/* ============ Case study: stats band + system diagram ============ */
.case-stats {
  /* one equal column per number, so two real results don't leave a gap */
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  border-bottom: 1.5px solid var(--ink); background: var(--paper);
}
.case-stat { display: grid; gap: 8px; align-content: start; padding: clamp(28px, 4vw, 56px) var(--gutter); border-right: 1px solid var(--line); }
.case-stat:last-child { border-right: 0; }
.case-stat__n { font-family: var(--f-display); font-weight: 700; font-size: clamp(48px, 5.4vw, 100px); white-space: nowrap; line-height: .85; letter-spacing: -0.03em; color: var(--accent); }
.case-stat__l { font-size: 17px; color: var(--ink-2); max-width: 22ch; }
@media (max-width: 700px) { .case-stats { grid-auto-flow: row; } .case-stat { border-right: 0; border-bottom: 1px solid var(--line); } }
.case-diagram { margin: clamp(40px, 5vw, 72px) 0 0; }
.case-diagram img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 40px 80px -40px rgba(15, 23, 42, .55); }
.case-diagram figcaption { margin-top: 14px; color: var(--mute); text-transform: none; letter-spacing: .02em; font-weight: 500; font-size: 13px; }

/* ============ Case study: store button + phone-screen gallery ============ */
.case-store { margin-top: 26px; gap: 12px; }
.case-gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 18px;
  margin-top: clamp(40px, 5vw, 72px); overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory;
}
.case-gallery li { scroll-snap-align: start; }
.case-gallery img { display: block; width: 100%; height: auto; border-radius: 26px; box-shadow: 0 30px 60px -30px rgba(42, 15, 99, .6); }
@media (max-width: 760px) { .case-gallery { grid-auto-columns: 62%; } }
/* wide desktop screenshots: a 3-up grid instead of a phone strip */
.case-gallery--wide { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
.case-gallery--wide img { border-radius: 16px; box-shadow: 0 24px 50px -28px rgba(120, 50, 20, .45), 0 0 0 1px rgba(15, 23, 42, .06); }
@media (max-width: 760px) { .case-gallery--wide { grid-template-columns: 1fr; } }

/* service pages: intro line under a section title, and linked feature cards */
.svc-intro { max-width: 62ch; margin: -12px 0 clamp(28px, 3vw, 44px); color: var(--ink-2); font-size: clamp(17px, 1.3vw, 19px); }
.case-feature h3 a { color: inherit; text-decoration: none; }
.case-feature h3 a:hover { color: var(--accent-hi); }
.work-group__link { margin-left: auto; font-size: 12px; color: var(--accent-hi); text-decoration: none; white-space: nowrap; }
.work-group__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.case-meta__link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ============ Work page (/work/) and the home page's featured three ============ */
.work__all { margin-top: clamp(28px, 3vw, 44px); display: flex; justify-content: center; }
.work-page { padding-top: clamp(120px, 14vw, 180px); }
.work-page .big-title { margin-bottom: clamp(24px, 3vw, 40px); }
.work-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(36px, 4vw, 56px); }
.work-tab {
  padding: 10px 18px; border-radius: 99px; border: 1.5px solid var(--line); background: transparent; color: var(--ink);
  font: 600 15px/1 var(--f-body); cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.work-tab:hover { border-color: var(--ink); }
.work-tab[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.work-group[hidden] { display: none; }

/* ============ Case page additions ============ */
.case-title--headline { font-size: clamp(36px, 5.4vw, 92px); line-height: .95; }
.case-before .case-lead { max-width: 60ch; }
.case-familiar__more { margin-top: clamp(24px, 3vw, 36px); font-weight: 600; }
.case-familiar__more a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }
.case-more__all { margin-top: clamp(24px, 3vw, 36px); }
.quote__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.case-quote figcaption > span { display: grid; gap: 2px; }

.case-familiar { max-width: 46ch; font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 38px); line-height: 1.2; letter-spacing: -0.015em; }
