/* ==========================================================
   VELOCITY LABS — design system
   paper #F7F6F4 · ink #161616 · blue #0A84FF
   Space Grotesk (display) · Inter (body) · IBM Plex Mono (labels)
   ========================================================== */

:root {
  --paper: #F7F6F4;
  --ink: #161616;
  --blue: #0A84FF;
  --blue-dark: #0668c9;
  --gray: #6b6b6b;
  --hairline: #E5E2DC;
  --hairline-dark: #2a2a2a;

  --lavender: #CDABFE;
  --lavender-tint: #EBE0FE;
  --coral: #FE7141;
  --coral-tint: #FFD9CB;
  --sage: #D1DDD3;
  --sage-ink: #5E7D68;
  --blue-tint: #DCEBFC;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --pad-x: clamp(20px, 5vw, 72px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- primitives ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow--light { color: #7fbfff; }

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  padding: 13px 26px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--blue); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }
.btn--ghost { color: var(--ink); border: 1px solid #d5d1c9; background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { padding: 17px 34px; font-size: 16px; }

.link { color: var(--blue); text-decoration: none; }
.link:hover { text-decoration: underline; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.5vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.section-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ---------- scroll reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__letter { animation: none !important; opacity: 1 !important; transform: none !important; }
  .brand-pixel { animation: none !important; }
  .mobnav { animation: none !important; }
  .marquee__track { animation: none !important; }
  main { animation: none !important; }
  .preloader { display: none !important; }
  .hero-band--wait .hero-band__cells img,
  .hero-band--wait .btile { opacity: 1 !important; }
  html { scroll-behavior: auto; }
}

/* ---------- preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--paper);
  display: none;
  overflow: hidden;
  transition: opacity 0.65s ease;
}
.intro-pending .preloader,
.preloader--done { display: block; }
.preloader--done { opacity: 0; pointer-events: none; }

.preloader__bg,
.preloader__bgwrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

/* stacked swap layers — artwork crossfades between pre-decoded images */
.pswap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.pswap.is-on { opacity: 1; }

/* slow zoom on the backdrop so the board never sits frozen */
.preloader--live .preloader__bgwrap { animation: preloaderDrift 4.2s linear forwards; }
@keyframes preloaderDrift {
  from { transform: scale(1.04); }
  to { transform: scale(1.15); }
}

.ptile {
  position: absolute;
  margin: 0;
  background: #fff;
  border: 2px solid #fff;
  /* glide between board arrangements — stateofaidesign's tween */
  transition:
    top 0.6s cubic-bezier(0.44, 0, 0.37, 1),
    left 0.6s cubic-bezier(0.44, 0, 0.37, 1),
    width 0.6s cubic-bezier(0.44, 0, 0.37, 1),
    height 0.6s cubic-bezier(0.44, 0, 0.37, 1);
}
.ptile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ptile figcaption {
  z-index: 2;
  transition: opacity 0.4s ease;
  position: absolute;
  bottom: -2px;
  left: -2px;
  background: #fff;
  color: #4d4c48;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  white-space: nowrap;
}
.ptile--chip-right figcaption { left: auto; right: -2px; }
.ptile--1 { top: 9vh; left: 7vw; width: 24vw; height: 36vh; }
.ptile--2 { top: 56vh; left: 13vw; width: 17vw; height: 28vh; }
.ptile--3 { top: 10vh; right: 9vw; width: 13vw; height: 22vh; }
.ptile--4 { top: 47vh; right: 15vw; width: 19vw; height: 34vh; }
.ptile--5 { top: 74vh; left: 38vw; width: 18vw; height: 34vh; }
.ptile--6 { top: -6vh; left: 53vw; width: 15vw; height: 26vh; }

.preloader__cover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(280px, 38vw, 600px);
  height: clamp(280px, 38vw, 600px);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(18px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    width 0.6s cubic-bezier(0.44, 0, 0.37, 1),
    height 0.6s cubic-bezier(0.44, 0, 0.37, 1);
}
.preloader__cover--wide {
  width: clamp(320px, 48vw, 740px);
  height: clamp(230px, 30vw, 480px);
}
.preloader__cover--slim {
  width: clamp(250px, 30vw, 480px);
  height: clamp(300px, 42vw, 640px);
}
.preloader__cover-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.preloader__cover-name sup { font-size: 0.38em; font-weight: 500; }
.preloader__cover-year {
  align-self: flex-end;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 60px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.preloader__count {
  position: absolute;
  bottom: 20px;
  left: var(--pad-x);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  font-variant-numeric: tabular-nums;
}
.preloader__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.45);
}
.preloader__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--blue);
}

@media (max-width: 760px) {
  .ptile--5, .ptile--6 { display: none; }
  .ptile--1 { width: 38vw; height: 26vh; }
  .ptile--2 { width: 30vw; height: 20vh; top: 62vh; }
  .ptile--3 { width: 24vw; height: 16vh; }
  .ptile--4 { width: 32vw; height: 24vh; top: 56vh; }
  .preloader__cover { width: min(74vw, 340px); height: min(74vw, 340px); }
}

/* morph: tiles fly into the hero band while everything else fades */
.preloader--morph { display: block; background: transparent; }
.preloader--morph .preloader__bgwrap,
.preloader--morph .preloader__count,
.preloader--morph .preloader__bar {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.preloader--morph .preloader__cover {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
}
.preloader--morph .ptile {
  transition:
    top 0.95s var(--ease-out), left 0.95s var(--ease-out),
    width 0.95s var(--ease-out), height 0.95s var(--ease-out),
    border-color 0.6s ease, background-color 0.6s ease;
}
.ptile--flat { border-color: transparent; background-color: transparent; }
.ptile--flat figcaption,
.ptile--chipoff figcaption { opacity: 0; }

.intro-pending body,
.intro-morph body { overflow: hidden; }
.intro-pending .hero__letter,
.intro-pending .brand-pixel { animation-play-state: paused; }

/* ---------- page transitions ---------- */

main { animation: pageIn 0.6s var(--ease-out); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.page-leave main {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.26s ease, transform 0.26s ease;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--pad-x);
  background: rgba(247, 246, 244, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  transition: padding 0.4s var(--ease-out), box-shadow 0.4s;
}
.nav--scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: 0 10px 30px rgba(22, 22, 22, 0.07);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.nav__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-pixel {
  width: 9px;
  height: 9px;
  background: var(--blue);
  flex: none;
  animation: pixelIn 0.5s var(--ease-out) 0.2s both;
}

@keyframes pixelIn {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

.nav__links {
  display: flex;
  gap: 28px;
}
.nav__links a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gray);
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--ink); }

.nav__right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav__status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gray);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2fbf71;
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- mobile menu ---------- */

.nav__burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  flex: none;
  background: none;
  border: 1px solid #d5d1c9;
  border-radius: 50%;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out);
}
.nav--open .nav__burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav--open .nav__burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobnav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  padding: 6px var(--pad-x) 22px;
  background: rgba(247, 246, 244, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 24px 40px rgba(22, 22, 22, 0.08);
}
.mobnav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  transition: color 0.2s;
}
.mobnav a:first-child { border-top: 0; }
.mobnav a.is-active,
.mobnav__cta { color: var(--blue); }

@media (max-width: 760px) {
  .nav__burger { display: flex; }
  .nav--open .mobnav {
    display: flex;
    animation: mobnavIn 0.4s var(--ease-out);
  }
}
@media (max-width: 480px) {
  .nav { gap: 12px; }
  .nav__right { gap: 10px; }
  .nav .btn--ink { padding: 11px 18px; font-size: 13px; }
}
@keyframes mobnavIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(48px, 8vh, 96px) var(--pad-x) clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--hairline);
}

/* full-bleed collage band under the nav — the opener settles into this */
.hero-band {
  position: relative;
  height: clamp(220px, 36vh, 400px);
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.hero-band__cells {
  display: flex;
  height: 100%;
}
.hero-band__cells img {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}
.btile {
  position: absolute;
  margin: 0;
  background: #fff;
  border: 2px solid #fff;
  box-shadow: 0 14px 40px rgba(22, 22, 22, 0.16);
  transition: opacity 0.3s ease;
}
.btile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.btile figcaption {
  position: absolute;
  bottom: -2px;
  left: -2px;
  background: #fff;
  color: #4d4c48;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  white-space: nowrap;
}
.btile--1 { top: 12%; left: 26vw; width: 13vw; height: 62%; }
.btile--2 { top: 26%; right: 11vw; width: 15vw; height: 58%; }
.btile--2 figcaption { left: auto; right: -2px; }
.hero-band--wait .hero-band__cells img,
.hero-band--wait .btile { opacity: 0; }

@media (max-width: 760px) {
  .hero-band { height: clamp(180px, 28vh, 260px); }
  .hero-band__cells img:nth-child(4),
  .hero-band__cells img:nth-child(5) { display: none; }
  .btile--1 { left: 10vw; width: 26vw; }
  .btile--2 { right: 7vw; width: 28vw; }
}

.hero__eyebrow { margin-bottom: 12px; }

.hero__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 16.5vw, 250px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  display: flex;
  justify-content: space-between;
  user-select: none;
}

.hero__letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em) rotate(2deg);
  animation: letterIn 0.9s var(--ease-out) forwards;
  animation-delay: calc(0.08s * var(--i) + 0.2s);
  transition: color 0.25s;
}
.hero__letter:nth-child(4n+1):hover { color: var(--blue); }
.hero__letter:nth-child(4n+2):hover { color: var(--coral); }
.hero__letter:nth-child(4n+3):hover { color: var(--lavender); }
.hero__letter:nth-child(4n):hover { color: var(--sage-ink); }

@keyframes letterIn {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.hero__base {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 52px);
}
.hero__tagline {
  max-width: 460px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--gray);
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: clamp(36px, 5vw, 64px);
}
.stat {
  border-radius: 18px;
  padding: clamp(16px, 2vw, 24px) clamp(16px, 2vw, 22px);
  transition: transform 0.4s var(--ease-out);
}
.stat:hover { transform: translateY(-4px); }
.stat:nth-child(1) { background: var(--lavender-tint); }
.stat:nth-child(2) { background: var(--coral-tint); }
.stat:nth-child(3) { background: var(--sage); }
.stat:nth-child(4) { background: var(--blue-tint); }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4d4c48;
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  padding: clamp(18px, 2.4vw, 30px) 0;
  user-select: none;
}
.marquee__track {
  display: flex;
  gap: clamp(28px, 4vw, 56px);
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}
.marquee__item {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 44px);
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink);
}
.marquee__item svg { flex: none; }
@keyframes marqueeScroll {
  to { transform: translateX(calc(-50% - clamp(14px, 2vw, 28px))); }
}

/* ---------- intro ---------- */

.intro {
  padding: clamp(64px, 10vw, 140px) var(--pad-x);
  max-width: 1100px;
}
.intro .eyebrow { margin-bottom: 20px; }
.intro__claim {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.intro__claim em {
  font-style: normal;
  color: var(--blue);
}
.intro__note {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: clamp(32px, 4vw, 56px);
  max-width: 560px;
}
.intro__avatar {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro__quote { font-size: 16.5px; color: var(--ink); }
.intro__who {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gray);
}

/* ---------- work ---------- */

.work {
  padding: clamp(56px, 8vw, 110px) var(--pad-x);
  border-top: 1px solid var(--hairline);
}

.work-card {
  position: relative;
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  padding: clamp(20px, 3vw, 34px) 0;
  border-top: 1px solid var(--hairline);
  cursor: pointer;
  transition: padding-left 0.45s var(--ease-out);
}
.work-card:last-child { border-bottom: 1px solid var(--hairline); }
.work-card:hover { padding-left: 14px; }

.work-card__visual {
  flex: none;
  width: clamp(120px, 18vw, 220px);
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out);
}
.work-card:hover .work-card__visual { transform: scale(1.04) rotate(-1.2deg); }
.work-card__visual--a { background: var(--ink); }
.work-card__visual--b { background: var(--lavender); }
.work-card__visual--c { background: var(--blue); }
.work-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card__body { min-width: 0; }
.work-card__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}
.work-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(21px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  transition: color 0.25s;
}
.work-card:hover .work-card__title { color: var(--blue); }
.work-card__desc {
  margin-top: 8px;
  max-width: 520px;
  font-size: 14.5px;
  color: var(--gray);
}
.work-card__stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.work-card__stats span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--ink);
}
.work-card__stats span:nth-child(3n+1) { background: var(--lavender-tint); }
.work-card__stats span:nth-child(3n+2) { background: var(--coral-tint); }
.work-card__stats span:nth-child(3n) { background: var(--sage); }

.work-card__arrow {
  margin-left: auto;
  flex: none;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--ink);
  opacity: 0.25;
  transform: translate(-6px, 6px);
  transition: opacity 0.3s, transform 0.45s var(--ease-out), color 0.3s;
}
.work-card:hover .work-card__arrow {
  opacity: 1;
  color: var(--blue);
  transform: translate(0, 0);
}

/* ---------- case study (dark panel) ---------- */

.case {
  padding: 0 var(--pad-x);
  margin: clamp(40px, 6vw, 80px) 0;
}
.case__inner {
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 80px);
}
.case__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(28px, 4vw, 48px);
}
.case__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-bottom: 14px;
}
.case__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.case__results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--hairline-dark);
}
.case-stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.case-stat:nth-child(2) .case-stat__num { color: var(--lavender); }
.case-stat:nth-child(3) .case-stat__num { color: var(--coral); }
.case-stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.case__disclaimer {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #6f6f6f;
}

/* ---------- services ---------- */

.services {
  padding: clamp(56px, 8vw, 110px) var(--pad-x);
}

.service { border-top: 1px solid var(--hairline); }
.service:last-child { border-bottom: 1px solid var(--hairline); }

.service__row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(20px, 2.6vw, 30px) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: padding-left 0.4s var(--ease-out);
}
.service__row:hover { padding-left: 12px; }

.service__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray);
  transition: color 0.25s;
}
.service__row:hover .service__num,
.service[data-open] .service__num { color: var(--blue); }

.service__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.service__toggle {
  margin-left: auto;
  flex: none;
  position: relative;
  width: 34px; height: 34px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  transition: background 0.3s, border-color 0.3s, transform 0.45s var(--ease-out);
}
.service__toggle::before,
.service__toggle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--ink);
  transition: background 0.3s;
}
.service__toggle::before {
  width: 12px; height: 1.5px;
  transform: translate(-50%, -50%);
}
.service__toggle::after {
  width: 1.5px; height: 12px;
  transform: translate(-50%, -50%);
}
.service[data-open] .service__toggle {
  background: var(--blue);
  border-color: var(--blue);
  transform: rotate(135deg);
}
.service[data-open] .service__toggle::before,
.service[data-open] .service__toggle::after { background: #fff; }

.service__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.55s var(--ease-out);
}
.service__panel p {
  max-width: 620px;
  color: var(--gray);
  font-size: 15.5px;
  padding-bottom: 8px;
}
.service__proof {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0 28px;
}
.service__proof span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--ink);
}
.service__proof span:nth-child(3n+1) { background: var(--sage); }
.service__proof span:nth-child(3n+2) { background: var(--lavender-tint); }
.service__proof span:nth-child(3n) { background: var(--coral-tint); }

/* ---------- cta ---------- */

.cta {
  margin: clamp(40px, 6vw, 80px) var(--pad-x);
  background: var(--ink);
  border-radius: 24px;
  padding: clamp(56px, 8vw, 110px) clamp(24px, 5vw, 80px);
  text-align: center;
  color: var(--paper);
}
.cta__mark {
  width: 14px;
  height: 14px;
  background: var(--blue);
  margin: 0 auto 24px;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.cta__sub {
  max-width: 480px;
  margin: 18px auto 0;
  color: #a5a5a5;
  font-size: 16px;
}
.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}
.cta__mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: #8a8a8a;
}

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(32px, 4vw, 48px) var(--pad-x) 28px;
  margin-top: clamp(40px, 6vw, 80px);
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline-dark);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}
.footer__links { display: flex; gap: 24px; }
.footer__links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a8a;
  text-decoration: none;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--paper); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 13px;
  color: #8a8a8a;
}
.footer__mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* ---------- page hero (subpages) ---------- */

.page-hero {
  padding: clamp(48px, 7vw, 96px) var(--pad-x) clamp(32px, 5vw, 64px);
  border-bottom: 1px solid var(--hairline);
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 9vw, 130px);
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.page-hero__sub {
  margin-top: 20px;
  max-width: 540px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--gray);
}

/* ---------- process (about) ---------- */

.process {
  padding: clamp(56px, 8vw, 110px) var(--pad-x);
}
.process__row {
  display: flex;
  align-items: baseline;
  gap: clamp(18px, 3vw, 40px);
  flex-wrap: wrap;
  padding: clamp(20px, 2.6vw, 30px) 0;
  border-top: 1px solid var(--hairline);
}
.process__row:last-child { border-bottom: 1px solid var(--hairline); }
.process__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue);
}
.process__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  min-width: clamp(160px, 24vw, 300px);
}
.process__desc {
  flex: 1;
  min-width: 240px;
  max-width: 560px;
  color: var(--gray);
  font-size: 15.5px;
}

/* ---------- contact form ---------- */

.form-section {
  padding: clamp(40px, 6vw, 80px) var(--pad-x) clamp(56px, 8vw, 100px);
  max-width: 920px;
}
.form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field > label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: #fff;
  color: var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--blue-tint); }
.form__actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.form__note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gray);
}

/* ---------- generic pill row ---------- */

.pillrow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pillrow span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--ink);
}
.pillrow span:nth-child(3n+1) { background: var(--lavender-tint); }
.pillrow span:nth-child(3n+2) { background: var(--coral-tint); }
.pillrow span:nth-child(3n) { background: var(--sage); }

/* ---------- featured case study (projects) ---------- */

.study {
  padding: clamp(56px, 8vw, 110px) var(--pad-x);
  border-top: 1px solid var(--hairline);
}
.study__head { max-width: 820px; }
.study__head .eyebrow { margin-bottom: 14px; }
.study__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5.5vw, 72px);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.study__sub {
  margin-top: 16px;
  max-width: 560px;
  font-size: clamp(15.5px, 1.5vw, 18px);
  color: var(--gray);
}
.study__meta { margin-top: 20px; }
.study__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: clamp(28px, 4vw, 44px);
}
.study__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(32px, 4vw, 52px);
}
.study__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 12px;
}
.study__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.study__links {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: clamp(20px, 2.6vw, 30px);
}
.study__links .study__label { margin-bottom: 16px; }

/* local ranking grids — each cell is a map-pack position on the metro grid */
.rankmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: clamp(32px, 4vw, 52px);
}
.rankmap__panel {
  margin: 0;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: clamp(18px, 2.4vw, 28px);
}
.rankmap__tag {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}
.rankmap__panel:last-child .rankmap__tag span:first-child { color: var(--blue); }
.rankmap__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 16px;
}
.rc {
  aspect-ratio: 1;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: clamp(8.5px, 1.05vw, 11px);
  font-weight: 500;
  color: #fff;
}
.rc--r { background: #E0553B; }
.rc--y { background: #E5A23C; }
.rc--g { background: #3E7C4F; }
.rankmap__cap {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--gray);
}
.rankmap__legend {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--gray);
}
.rankmap__legend span { display: flex; align-items: center; gap: 7px; }
.rc-key {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
}
.rc-key--r { background: #E0553B; }
.rc-key--y { background: #E5A23C; }
.rc-key--g { background: #3E7C4F; }
.rankmap__note { margin-left: auto; }

/* profile interactions trend (ink panel + svg) */
.trend {
  margin-top: 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 40px);
}
.trend__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.trend__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.trend__big {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.trend__sum {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: #a5a5a5;
  text-align: right;
}
.trend svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: clamp(16px, 2vw, 28px);
}
.t-grid { stroke: #2a2a2a; stroke-width: 1; }
.t-grid--base { stroke: #3a3a3a; }
.t-axis {
  fill: #8a8a8a;
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.t-area { fill: rgba(10, 132, 255, 0.16); }
.t-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.t-dot { fill: var(--blue); stroke: var(--ink); stroke-width: 2.5; }
.t-dot--start { fill: #fff; }
.t-note {
  fill: #cfcfcf;
  font-family: var(--font-mono);
  font-size: 11px;
}
.trend__foot {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline-dark);
  font-size: 14.5px;
  color: #a5a5a5;
}
.trend__foot strong { color: var(--paper); font-weight: 600; }

/* ---------- services page ---------- */

.svc-list { padding: clamp(40px, 6vw, 80px) var(--pad-x) 0; }

.svc {
  display: grid;
  grid-template-columns: minmax(220px, 34%) 1fr;
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(28px, 4vw, 52px) 0;
  border-top: 1px solid var(--hairline);
}
.svc:first-child { border-top: 0; }
.svc:last-child { border-bottom: 1px solid var(--hairline); }

.svc__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue);
}
.svc__name {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.svc__move {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
}
.svc__desc {
  max-width: 580px;
  font-size: 16px;
  color: var(--gray);
}
.svc__list {
  list-style: none;
  margin-top: 18px;
  max-width: 620px;
}
.svc__list li {
  display: flex;
  gap: 13px;
  padding: 11px 0;
  border-top: 1px solid var(--hairline);
  font-size: 14.5px;
}
.svc__list li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  background: var(--blue);
}
.svc .pillrow { margin-top: 18px; }
.svc__proof-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.engage { padding: clamp(56px, 8vw, 110px) var(--pad-x) 0; }
.engage__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.eng {
  border-radius: 18px;
  padding: clamp(22px, 2.6vw, 32px) clamp(20px, 2.4vw, 28px);
  transition: transform 0.4s var(--ease-out);
}
.eng:hover { transform: translateY(-4px); }
.eng:nth-child(1) { background: var(--blue-tint); }
.eng:nth-child(2) { background: var(--lavender-tint); }
.eng:nth-child(3) { background: var(--coral-tint); }
.eng__mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4d4c48;
}
.eng__name {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.02em;
}
.eng__desc {
  margin-top: 10px;
  font-size: 14.5px;
  color: #4d4c48;
}

/* ---------- values (about) ---------- */

.values { padding: clamp(56px, 8vw, 110px) var(--pad-x) 0; }
.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.value {
  border-radius: 18px;
  padding: clamp(22px, 2.6vw, 32px) clamp(20px, 2.4vw, 28px);
  transition: transform 0.4s var(--ease-out);
}
.value:hover { transform: translateY(-4px); }
.value:nth-child(1) { background: var(--lavender-tint); }
.value:nth-child(2) { background: var(--coral-tint); }
.value:nth-child(3) { background: var(--sage); }
.value:nth-child(4) { background: var(--blue-tint); }
.value__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: -0.02em;
}
.value__desc {
  margin-top: 10px;
  font-size: 14.5px;
  color: #4d4c48;
}

.intro--tight { padding-top: clamp(48px, 7vw, 100px); padding-bottom: clamp(48px, 7vw, 100px); }
.intro__link { margin-top: 24px; font-family: var(--font-mono); font-size: 13px; }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .nav__links, .nav__status { display: none; }
  .hero__wordmark { letter-spacing: -0.03em; }
  .work-card { flex-wrap: wrap; }
  .work-card__visual { width: 100%; aspect-ratio: 16 / 7; }
  .work-card__arrow { position: absolute; top: 28px; right: 4px; }
  .svc { grid-template-columns: 1fr; gap: 18px; }
  .trend__sum { text-align: left; }
  .rankmap__note { margin-left: 0; width: 100%; }
}
