/* =========================================================
   blip — styles
   Tokens → base → components → sections → motion → responsive
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --accent: #D4FF3A;            /* lime. Alternatives: #FF8AD8 pink · #7FA6FF blue · #FF8A3D orange */
  --ink: #0A0A0A;
  --paper: #FFFFFF;
  --soft: #F6F6F3;
  --muted: #4A4A4A;
  --muted-2: #5A5A5A;
  --on-dark-muted: #C9C9C9;     /* body text on the black work section */
  --on-accent-muted: #1F1F1F;   /* body text on accent panels */
  --tmpl: #F1F1EE;              /* grey "template" skeleton cards */
  --tmpl-line: #E0E0DB;

  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(80px, 10vw, 140px);
  --radius-card: 28px;
  --border: 2px solid var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-md: 5px 6px 0 var(--ink);
  --shadow-lg: 7px 9px 0 var(--ink);
  --spring: cubic-bezier(.3, 1.6, .5, 1);
  --spring-big: cubic-bezier(.3, 1.8, .5, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }      /* rings, stickers and the marquee never cause sideways scroll */
a { color: var(--ink); }
a:hover { color: #3A3A3A; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; color: var(--paper); }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }

.eyebrow {
  align-self: flex-start;
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}
.eyebrow--accent { background: var(--accent); color: var(--ink); }

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.lead { font-size: 17px; line-height: 1.6; color: var(--muted); }

.center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.center > .eyebrow { align-self: center; }

/* ---------- Blip (the character) ---------- */
.blip { width: 100%; height: 100%; overflow: visible; }
.blip path { fill: var(--ink); }
.blip ellipse { fill: #FFFFFF; }

/* eye tracking: js/main.js sets --ex / --ey on every .look */
.eyes {
  transform: translate(var(--ex, 0px), var(--ey, 0px));
  transition: transform .18s ease-out;
}
.blink {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 4.6s infinite;
  animation-delay: var(--blink-delay, 0s);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: var(--border);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s var(--spring), box-shadow .2s;
}
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 15px; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { color: var(--paper); transform: translate(-2px, -3px); box-shadow: 5px 6px 0 var(--accent), 5px 6px 0 2px var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { color: var(--ink); transform: translate(-2px, -3px); box-shadow: var(--shadow-md); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn .arr { transition: transform .2s var(--spring); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); border-radius: 12px; }
.logo:hover { color: var(--ink); }
.logo__word { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.035em; line-height: 1; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.navlink {
  position: relative;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 4px;
  border-radius: 6px;
}
.navlink:hover { color: var(--ink); }
.navlink::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px; bottom: 4px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--spring);
}
.navlink:hover::after, .navlink:focus-visible::after { transform: scaleX(1); }

/* Mobile menu (under 860px): a round toggle drops a sticker card under the header.
   js/main.js toggles .is-menu-open on .site-header. */
.nav__toggle {
  display: none;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: var(--border);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: transform .2s var(--spring), box-shadow .2s;
}
.nav__toggle:hover { transform: translate(-2px, -3px); box-shadow: var(--shadow-md); }
.nav__toggle:active { transform: translate(0, 0); box-shadow: none; }
.is-menu-open .nav__toggle { background: var(--accent); }
.nav__toggle-bars { position: relative; width: 18px; height: 10px; }
.nav__toggle-bars::before, .nav__toggle-bars::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .35s var(--spring);
}
.nav__toggle-bars::before { top: 0; }
.nav__toggle-bars::after { bottom: 0; }
.is-menu-open .nav__toggle-bars::before { transform: translateY(4px) rotate(45deg); }
.is-menu-open .nav__toggle-bars::after { transform: translateY(-4px) rotate(-45deg); }

.menu {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: var(--gutter);
  right: var(--gutter);
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
  padding: 12px;
  border: var(--border);
  border-radius: var(--radius-card);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transform-origin: top right;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(.94);
  transition: opacity .2s, transform .3s ease-in, visibility 0s .3s;
}
.is-menu-open .menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .2s, transform .45s var(--spring), visibility 0s;
}
.menu__links { margin: 0; padding: 0; list-style: none; }
.menu__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--ink);
  text-decoration: none;
}
.menu__link:hover, .menu__link:focus-visible { background: var(--accent); color: var(--ink); }
.menu__num { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--muted-2); }
.menu__arr { margin-left: auto; font-family: var(--font-body); font-size: 22px; font-weight: 600; transition: transform .2s var(--spring); }
.menu__link:hover .menu__arr { transform: translateX(4px); }
.menu__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding: 14px 4px 4px;
  border-top: var(--border);
}
.menu__foot .btn { flex: 1; }
.menu__blip { width: 52px; height: 52px; flex: none; transform: scale(.4) rotate(-16deg); transition: transform .5s var(--spring-big); }
/* links rise in one after another; the Blip pops in last */
.menu__links li, .menu__foot { opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .4s var(--spring); }
.is-menu-open :is(.menu__links li, .menu__foot) { opacity: 1; transform: none; }
.is-menu-open .menu__links li:nth-child(2) { transition-delay: .04s; }
.is-menu-open .menu__links li:nth-child(3) { transition-delay: .08s; }
.is-menu-open .menu__foot { transition-delay: .12s; }
.is-menu-open .menu__blip { transform: none; transition-delay: .2s; }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 4.5vw, 64px);
  padding-block: clamp(48px, 8vw, 96px) clamp(72px, 9vw, 112px);
}
.hero__copy { position: relative; z-index: 1; flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 7.6vw, 96px);   /* capped at 96px so it never strands "your" on its own line */
  line-height: .95;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hl {
  display: inline-block;
  background: var(--accent);
  padding: 0 .16em .04em;
  margin: .12em 0 0 .04em;   /* top margin = room for the hover hop below the line above */
  border-radius: .2em;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-3deg);
  transition: transform .45s var(--spring-big), box-shadow .3s;
}
/* letters hop in a wave on hover (js/main.js adds .is-hopping and removes it when the wave ends) */
.hl__letters > span { display: inline-block; transform-origin: 50% 100%; }
.hl.is-hopping .hl__letters > span { animation: letterHop .6s ease both; animation-delay: calc(var(--i) * 60ms); }
.hero__text { max-width: 520px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 4px; }

.hero__art { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.hero__stage { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1; }
.hero__float { position: absolute; inset: 9%; animation: float 4.2s ease-in-out infinite; }

.poke {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--spring);
}
.poke:focus-visible { outline: 3px solid var(--ink); outline-offset: 8px; }
.hero-blip { transform-origin: 50% 92%; }
.hero-blip.is-squish { animation: squish .55s var(--spring); }

.bubble {
  position: absolute;
  top: 2%;
  right: -2%;
  z-index: 2;
  padding: 10px 18px;
  background: var(--paper);
  border: var(--border);
  border-radius: 22px 22px 22px 4px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.02em;
  white-space: nowrap;
  pointer-events: none;
  transform-origin: 0% 100%;
  opacity: 0;
}
.bubble.is-visible { opacity: 1; transform: rotate(-5deg); animation: pop .45s cubic-bezier(.3, 1.7, .5, 1) both; }
.bubble.is-out { animation: popOut .2s ease-in both; }

.sticker {
  position: absolute;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  padding: 10px 18px;
  border-radius: 999px;
  border: var(--border);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transform: rotate(var(--r, -6deg));
  animation: wiggle 3.4s ease-in-out infinite;
}
.sticker--1 { --r: -8deg; top: 10%; left: -6%; background: var(--accent); }
.sticker--2 { --r: 7deg; bottom: 16%; right: -8%; background: var(--paper); animation-delay: -1.1s; animation-duration: 3.9s; }
.sticker--3 { --r: -4deg; bottom: 4%; left: 2%; background: var(--ink); color: var(--paper); animation-delay: -2.2s; animation-duration: 4.4s; }

.hero__hint {
  position: absolute;
  left: 0; right: 0; bottom: -40px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-2);
}

/* ---------- Marquee ---------- */
.marquee-wrap { overflow: hidden; padding-block: calc(1.05vw + 6px); }
.marquee-band {
  background: var(--accent);
  border-block: var(--border);
  overflow: hidden;
  padding: 18px 0;
  margin-inline: -24px;
  transform: rotate(-1.2deg);
}
.marquee { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-band:hover .marquee { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee__item { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; white-space: nowrap; }
.marquee__blip { width: 30px; height: 30px; flex: none; animation: spin 6s linear infinite; }

/* ---------- Why custom ---------- */
.why { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 88px); }
.why__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.why__copy .lead { font-size: 18px; max-width: 500px; }

.compare { border: var(--border); border-radius: 24px; overflow: hidden; margin-top: 8px; }
.compare__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: 16px; line-height: 1.4; }
.compare__row + .compare__row { border-top: var(--border); }
.compare__row--head { background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.compare__row--head .compare__cell { padding-block: 14px; }
.compare__row--head .compare__cell--blip { background: var(--accent); color: var(--ink); }
.compare__cell { padding: 16px 20px; display: flex; gap: 10px; align-items: flex-start; }
.compare__cell--no { color: var(--muted-2); }
.compare__cell--blip { font-weight: 600; border-left: var(--border); }
.icon { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon--x { stroke: #8A8A8A; stroke-width: 2.5; }
.icon--check { stroke: var(--ink); stroke-width: 3; }

.why__art { flex: 1 1 400px; min-width: 0; max-width: 560px; margin-inline: auto; }
.template-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 14px); }
.tcell {
  aspect-ratio: 1;
  border-radius: 18px;
  background: var(--tmpl);
  padding: 14%;
  display: flex;
  flex-direction: column;
  gap: 8%;
  animation: shimmer 2.4s ease-in-out infinite;
}
/* diagonal shimmer wave, top-left → bottom-right */
.tcell:nth-child(1)  { animation-delay: -1s; }
.tcell:nth-child(2),
.tcell:nth-child(5)  { animation-delay: -.8s; }
.tcell:nth-child(3),
.tcell:nth-child(9)  { animation-delay: -.6s; }
.tcell:nth-child(4),
.tcell:nth-child(7),
.tcell:nth-child(10) { animation-delay: -.4s; }
.tcell:nth-child(8),
.tcell:nth-child(11) { animation-delay: -.2s; }
.tcell i { display: block; border-radius: 4px; background: var(--tmpl-line); height: 8%; }
.tcell i:nth-child(1) { height: 42%; border-radius: 8px; }
.tcell i:nth-child(2) { width: 80%; }
.tcell i:nth-child(3) { width: 55%; }
.tcell--blip {
  position: relative;
  z-index: 1;
  background: var(--accent);
  border: var(--border);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0 0 12%;
  align-items: center;
  justify-content: flex-end;
  transform: rotate(-4deg);
  animation: none;
}
.tcell__bounce { width: 62%; aspect-ratio: 1; transform-origin: 50% 100%; animation: bounce 1.3s infinite; }
.why__caption { margin-top: 20px; text-align: center; font-size: 14px; font-weight: 500; color: var(--muted-2); }

/* ---------- Services ---------- */
.services { background: var(--soft); border-block: var(--border); }
.services__inner { display: flex; flex-direction: column; gap: 56px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head__main { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }
.section-head .lead { max-width: 360px; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card {
  min-width: 0;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-card);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .3s cubic-bezier(.3, 1.5, .5, 1), box-shadow .3s;
}
.card:hover { transform: translate(-3px, -6px); box-shadow: var(--shadow-lg); }
.card__blip { width: 96px; height: 96px; transition: transform .4s var(--spring-big); }
.card:hover .card__blip { transform: translateY(-10px) rotate(-10deg) scale(1.08); }
.card__title { margin-top: 6px; font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -.02em; }
.card__text { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- Process ---------- */
.process .h2 { max-width: 760px; }
.track { position: relative; height: 130px; margin-top: 56px; overflow-x: clip; }
.track__line { position: absolute; left: 12.5%; right: 12.5%; top: 100px; border-top: 3px dashed var(--ink); }
/* .traveler spans the whole track, so translateX(%) maps to positions on the track.
   .traveler__hop does the vertical hop + squash. Both run on the same 8s clock. */
.traveler { position: absolute; left: 0; top: 30px; width: 100%; height: 68px; pointer-events: none; animation: travelX 8s cubic-bezier(.45, 0, .55, 1) infinite; }
.traveler__hop { position: absolute; left: -34px; top: 0; width: 68px; height: 68px; transform-origin: 50% 100%; animation: travelY 8s infinite; }

/* no column gap: each column centre sits exactly at 12.5 / 37.5 / 62.5 / 87.5% */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 0; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-inline: 14px; }
.step__num {
  position: relative;
  isolation: isolate;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: var(--border);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  animation: stepPop 8s infinite;
}
.step__num::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: stepLight 8s infinite;
  animation-delay: inherit;
}
.step:nth-child(2) .step__num { animation-delay: 2s; }
.step:nth-child(3) .step__num { animation-delay: 4s; }
.step:nth-child(4) .step__num { animation-delay: 6s; }
.step__title { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.step__text { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 250px; }

/* ---------- Work ---------- */
.work { background: var(--ink); color: var(--paper); }
.work__inner { display: flex; flex-direction: column; gap: 56px; }
.work .lead { color: var(--on-dark-muted); }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.project {
  position: relative;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius-card);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform .3s cubic-bezier(.3, 1.5, .5, 1), box-shadow .3s;
}
.project:hover, .project:focus-within { transform: translate(-3px, -6px); box-shadow: 7px 9px 0 var(--accent); }
.project--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}

/* browser-window frame around the screenshot */
.project__shot { border: var(--border); border-radius: 18px; overflow: hidden; background: var(--soft); }
.project__bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--paper); border-bottom: var(--border); }
.project__bar i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink); }
.project__bar i:first-child { background: var(--accent); }
.project__screen { aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.project__screen > * { transition: scale .6s var(--spring); }
.project__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project:hover .project__screen > * { scale: 1.04; }
.project__placeholder { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .06em; color: var(--muted-2); }

.project__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 2px 10px 12px; }
.project--featured .project__body { padding-block: 12px; }
.project__kind { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.project__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -.02em; }
.project--featured .project__name { font-size: clamp(30px, 3.4vw, 48px); }
/* the name link covers the whole card, so the card is one big click target */
.project__link { color: inherit; text-decoration: none; }
.project__link:hover { color: inherit; }
.project__link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-card); }
.project__link:focus-visible { outline: none; }
.project__link:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 5px; }
.project__text { font-size: 16px; line-height: 1.6; color: var(--muted); }
.project__visit { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.project__visit .arr { display: inline-block; transition: transform .25s var(--spring); }
.project:hover .project__visit .arr { transform: translate(3px, -3px); }

/* ---------- Testimonials ---------- */
.quotes { display: flex; flex-direction: column; gap: 64px; }
.quotes__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 12px; }
.quote {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 48px clamp(24px, 3vw, 36px) 30px;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  transform: rotate(-1.2deg);
  transition: transform .35s var(--spring), box-shadow .3s;
}
.quote:nth-child(2) { transform: rotate(1.2deg); }
.quote:hover { transform: translate(-3px, -5px) rotate(0deg); box-shadow: var(--shadow-lg); }
.quote__mark {
  position: absolute;
  top: -26px; left: 28px;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  padding-top: 20px;
  border: var(--border);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  transform: rotate(-8deg);
}
.quote__text { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.3; letter-spacing: -.01em; text-wrap: pretty; }
.quote__text p { margin: 0; }
.quote__by { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote__avatar {
  flex: none;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: var(--border);
  border-radius: 50%;
  background: var(--soft);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.02em;
}
.quote__name { display: block; font-size: 16px; font-weight: 700; }
.quote__role { display: block; font-size: 14px; color: var(--muted-2); }

/* ---------- CTA ---------- */
.cta {
  --peek: clamp(320px, 42vw, 560px);      /* size of the giant Blip */
  --peek-hide: .36;                        /* share of Blip hidden below the edge; above ~.38 the eyes get clipped */
  position: relative;
  overflow: hidden;
  width: min(1320px, calc(100% - 2 * clamp(12px, 2vw, 24px)));
  margin-inline: auto;
  border: var(--border);
  border-radius: 40px;
  background: var(--accent);
}
.cta__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  /* bottom padding leaves room for the visible part of Blip plus its 40px hover rise */
  padding: clamp(72px, 9vw, 120px) var(--gutter) calc(var(--peek) * (1 - var(--peek-hide)) + 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}
.cta__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(48px, 7vw, 104px); line-height: .92; letter-spacing: -.035em; text-wrap: balance; }
.cta__text { max-width: 580px; text-wrap: pretty; font-size: 18px; line-height: 1.6; color: var(--on-accent-muted); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cta__art {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  width: var(--peek);
  aspect-ratio: 1;
  transform: translate(-50%, calc(var(--peek-hide) * 100%));
}
.cta__peek { position: absolute; inset: 0; transition: transform .6s var(--spring); }
.cta:hover .cta__peek { transform: translateY(-40px); }

/* breathing room when the CTA sits straight after the black work band (e.g. testimonials removed) */
.work + .cta { margin-top: clamp(48px, 7vw, 100px); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 40px 48px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.site-footer__word { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.035em; color: var(--ink); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; }

/* ---------- Contact popup ----------
   A native <dialog>; js/main.js opens it from every [data-contact-open] link. */
html:has(.contact[open]) { overflow: hidden; }   /* no page scroll behind the popup */
.contact {
  width: min(460px, calc(100% - 32px));
  max-height: none;
  padding: 0;
  border: var(--border);
  border-radius: var(--radius-card);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: visible;                              /* lets Blip peek over the top edge */
}
.contact[open] { animation: contactIn .45s var(--spring) both; }
.contact::backdrop { background: rgb(10 10 10 / .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.contact__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-height: calc(100dvh - 88px);                /* short landscape phones: the card scrolls, Blip stays on top */
  overflow-y: auto;
  border-radius: inherit;
  padding: 56px clamp(22px, 6vw, 36px) 32px;
  text-align: center;
}
.contact__blip { position: absolute; z-index: 1; top: -44px; left: 50%; width: 80px; height: 80px; transform: translateX(-50%) rotate(-8deg); }
.contact__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: var(--border);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s var(--spring), box-shadow .2s, background .2s;
}
.contact__close:hover { transform: translate(-2px, -3px); box-shadow: var(--shadow-sm); background: var(--accent); }
.contact__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 8vw, 48px); line-height: .95; letter-spacing: -.035em; }
.contact__text { max-width: 340px; font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.contact__email {
  max-width: 100%;
  padding: 10px 18px;
  border: var(--border);
  border-radius: 14px;
  background: var(--accent);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 4.6vw, 22px);
  letter-spacing: -.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transform: rotate(-1.5deg);
}
.contact__email:hover { color: var(--ink); }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 6px; }
.contact__actions .btn { cursor: pointer; }
.contact__alt { font-size: 14px; color: var(--muted-2); }

/* ---------- 404 page ---------- */
.nf {
  min-height: calc(100svh - 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
  padding-block: clamp(40px, 7vw, 96px);
}
/* "4 [Blip] 4": everything is sized in em of this font size, so it scales as one piece */
.nf__code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .04em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(132px, 24vw, 300px);
  line-height: .8;
  letter-spacing: -.04em;
  margin-bottom: .06em;
}
.nf__digit { display: inline-block; transform: rotate(var(--r)); animation: wiggle 3.6s ease-in-out infinite; }
.nf__digit--l { --r: -6deg; }
.nf__digit--r { --r: 5deg; animation-delay: -1.8s; }
.nf__blip { position: relative; width: .8em; height: .8em; flex: none; }
.nf__float { position: absolute; inset: 0; animation: float 4.2s ease-in-out infinite; }
.nf .bubble { top: -6%; right: -14%; line-height: 1.2; }
.nf__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 76px);
  line-height: .95;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.nf__text { max-width: 500px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.nf__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 6px; }
.nf__hint { font-size: 13px; font-weight: 500; color: var(--muted-2); }

/* =========================================================
   Motion
   ========================================================= */
@keyframes blink { 0%, 91%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.08); } 97% { transform: scaleY(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes letterHop {
  0%   { transform: translateY(0) scale(1, 1); }
  35%  { transform: translateY(-.14em) rotate(-7deg) scale(.96, 1.06); }
  65%  { transform: translateY(0) scale(1.08, .9); }
  82%  { transform: translateY(-.04em) scale(.98, 1.02); }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes squish {
  0% { transform: scale(1, 1); } 20% { transform: scale(1.18, .8); } 42% { transform: scale(.88, 1.14); }
  64% { transform: scale(1.06, .95); } 82% { transform: scale(.98, 1.02); } 100% { transform: scale(1, 1); }
}
@keyframes pop { 0% { opacity: 0; transform: scale(0) rotate(-14deg); } 30% { opacity: 1; } 100% { opacity: 1; transform: scale(1) rotate(-5deg); } }
@keyframes popOut { from { opacity: 1; transform: scale(1) rotate(-5deg); } to { opacity: 0; transform: scale(.7) rotate(-2deg); } }
@keyframes wiggle {
  0%, 100% { transform: rotate(var(--r, -6deg)) translateY(0); }
  50% { transform: rotate(calc(var(--r, -6deg) * -.4)) translateY(-6px); }
}
@keyframes contactIn { from { opacity: 0; transform: translateY(24px) scale(.92) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
/* squash on landing → stretch on take-off → ease into the apex → stretch on the way down */
@keyframes bounce {
  0%   { transform: translateY(0) scale(1.14, .86); animation-timing-function: cubic-bezier(.3, .7, .4, 1); }
  12%  { transform: translateY(-4%) scale(.94, 1.08); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  48%  { transform: translateY(-30%) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  86%  { transform: translateY(0) scale(.95, 1.06); animation-timing-function: ease-out; }
  100% { transform: translateY(0) scale(1.14, .86); }
}
/* process Blip, horizontal: stops at 12.5 / 37.5 / 62.5 / 87.5%, fades out, restarts */
@keyframes travelX {
  0%, 12%  { transform: translateX(12.5%); opacity: 1; }
  25%, 37% { transform: translateX(37.5%); }
  50%, 62% { transform: translateX(62.5%); }
  75%, 92% { transform: translateX(87.5%); opacity: 1; }
  95%      { transform: translateX(87.5%); opacity: 0; }
  97%      { transform: translateX(12.5%); opacity: 0; }
  100%     { transform: translateX(12.5%); opacity: 1; }
}
/* process Blip, vertical: crouch, hop ~46px, land with a squash */
@keyframes travelY {
  0%, 10%, 29%, 35%, 54%, 60%, 79%, 100% { transform: translateY(0) scale(1, 1); }
  12%, 37%, 62%       { transform: translateY(0) scale(1.1, .9); animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
  18.5%, 43.5%, 68.5% { transform: translateY(-46px) scale(.95, 1.06); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  25%, 50%, 75%       { transform: translateY(0) scale(1.04, .97); }
  26.5%, 51.5%, 76.5% { transform: translateY(0) scale(1.12, .88); }
}
@keyframes stepLight { 0%, 14% { opacity: 1; } 17%, 100% { opacity: 0; } }
@keyframes stepPop { 0% { transform: scale(1); } 3% { transform: scale(1.18); } 6%, 14% { transform: scale(1.1); } 17%, 100% { transform: scale(1); } }
/* reveals use the individual translate / scale / rotate properties, so they never
   fight the `transform` used by hover effects on the same element */
@keyframes rise { from { opacity: 0; translate: 0 48px; } to { opacity: 1; translate: none; } }
@keyframes popIn { from { opacity: 0; scale: .7; rotate: -8deg; } to { opacity: 1; scale: none; rotate: none; } }

/* Scroll reveal — native scroll-driven animations (Chrome, Edge, Safari 26+) */
@supports (animation-timeline: view()) {
  .reveal     { animation: rise linear both;  animation-timeline: view(); animation-range: entry 0% entry 45%; }
  .reveal-pop { animation: popIn linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  /* light stagger for items that sit side by side */
  :is(.cards, .work-grid, .quotes__grid, .steps) > .reveal:nth-child(2) { animation-range: entry 6% entry 51%; }
  :is(.cards, .work-grid, .quotes__grid, .steps) > .reveal:nth-child(3) { animation-range: entry 12% entry 57%; }
  :is(.cards, .work-grid, .quotes__grid, .steps) > .reveal:nth-child(4) { animation-range: entry 18% entry 63%; }
}
/* Fallback — js/main.js adds .io-reveal to <html> and .is-in to elements as they enter */
.io-reveal :is(.reveal, .reveal-pop) { opacity: 0; }
.io-reveal .reveal.is-in     { opacity: 1; animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.io-reveal .reveal-pop.is-in { opacity: 1; animation: popIn .7s var(--spring) both; }
.io-reveal :is(.cards, .work-grid, .quotes__grid, .steps) > .reveal:nth-child(2) { animation-delay: .08s; }
.io-reveal :is(.cards, .work-grid, .quotes__grid, .steps) > .reveal:nth-child(3) { animation-delay: .16s; }
.io-reveal :is(.cards, .work-grid, .quotes__grid, .steps) > .reveal:nth-child(4) { animation-delay: .24s; }

/* Hover tilt on the hero Blip only where a real pointer can hover (no sticky tilt after a tap) */
@media (hover: hover) {
  .poke:hover { transform: scale(1.03) rotate(-3deg); }
  .hl:hover { transform: rotate(1deg) scale(1.04); box-shadow: 7px 8px 0 var(--ink); }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav__toggle { display: grid; }
  .menu { display: block; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track { display: none; }
  .steps { margin-top: 56px; }   /* the track normally provides this space */
  .work-grid, .project--featured, .quotes__grid { grid-template-columns: minmax(0, 1fr); }
  .quotes__grid { row-gap: 48px; }
  .quote, .quote:nth-child(2) { transform: rotate(0deg); }
}
@media (max-width: 600px) {
  .sticker { display: none; }
  /* one header pill on phones: Contact us, as the dark primary */
  .nav__start { display: none; }
  .nav__contact { background: var(--ink); color: var(--paper); }
  .nav__contact:hover { color: var(--paper); box-shadow: 5px 6px 0 var(--accent), 5px 6px 0 2px var(--ink); }
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .compare__row { font-size: 14px; }
  .compare__cell { padding: 14px; }
  .cta { border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
