/* Bluepaca — "Signal": a brand-blue board where one signal runs from the first idea to the send button. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blue: #61c7ec;
  --blue-deep: #58b6d8;
  --blue-soft: #9adff5;
  --ink: #0a0a0a;
  --ink-2: #191919;
  --ink-3: #262626;
  --white: #ffffff;

  --trace-on-blue: rgba(255, 255, 255, 0.55);
  --trace-on-ink: rgba(97, 199, 236, 0.38);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(20px, 5vw, 80px);
  --max: 1440px;
  --header-h: 76px;

  --fs-display: clamp(3rem, 1rem + 6.6vw, 7.6rem);
  --fs-h2: clamp(2.3rem, 1.2rem + 4.2vw, 5.4rem);
  --fs-h3: clamp(1.6rem, 1.1rem + 2vw, 2.8rem);
  --fs-lead: clamp(1.15rem, 1rem + 0.55vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  color-scheme: light;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: var(--ink) var(--blue);
  background: var(--blue);
}
body {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 420;
  color: var(--ink);
  background: var(--blue);
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html.lang-pending body {
  visibility: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
input,
textarea {
  font-size: max(16px, 1rem);
}
:where(a, button, [role="button"], label) {
  touch-action: manipulation;
}
::selection {
  background: var(--ink);
  color: var(--blue);
}
.ink ::selection {
  background: var(--blue);
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.ink :focus-visible {
  outline-color: var(--blue);
}
p,
li {
  text-wrap: pretty;
}
h1,
h2,
h3 {
  text-wrap: balance;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 12px 16px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
}

.blue {
  background: var(--blue);
  color: var(--ink);
}
.ink {
  background: var(--ink);
  color: var(--white);
}

/* ---------- type ---------- */
.display {
  font-size: var(--fs-display);
  font-weight: 880;
  font-stretch: 118%;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.h2 {
  font-size: var(--fs-h2);
  font-weight: 860;
  font-stretch: 115%;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.h3 {
  font-size: var(--fs-h3);
  font-weight: 820;
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -0.025em;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.45;
  font-weight: 450;
  max-width: 36ch;
}
.ink .lead,
.ink .muted {
  color: #cfeefb;
}
.muted {
  color: #0b3b4c;
}

/* line-by-line reveal for display text */
.lines > span {
  display: block;
  overflow: hidden;
  overflow: visible clip;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.lines > span > span {
  display: block;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 28px;
  background: var(--bg);
  color: var(--fg);
  border: 2px solid var(--ink);
  font-weight: 760;
  font-stretch: 108%;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition:
    transform 160ms var(--ease-out),
    background-color 180ms ease,
    color 180ms ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn .arrow {
  transition: transform 220ms var(--ease-out);
}
.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
}
.ink .btn {
  --bg: var(--blue);
  --fg: var(--ink);
  border-color: var(--blue);
}
.ink .btn--ghost {
  --bg: transparent;
  --fg: var(--blue);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover .arrow {
    transform: translateX(4px);
  }
  .btn--ghost:hover {
    --bg: var(--ink);
    --fg: var(--white);
  }
  .ink .btn--ghost:hover {
    --bg: var(--blue);
    --fg: var(--ink);
  }
}

/* lead trace that feeds the primary button */
.btn-feed {
  position: relative;
  display: inline-flex;
}
.btn-feed .feed {
  position: absolute;
  right: 100%;
  top: 50%;
  width: min(30vw, 240px);
  height: 2px;
  margin-top: -1px;
  pointer-events: none;
  overflow: visible;
}
.feed line {
  stroke: var(--trace-on-blue);
  stroke-width: 2;
}
.feed .feed-pulse {
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 0.18 2;
  stroke-dashoffset: 0.18;
}
.btn-feed.pulse .feed-pulse {
  animation: feed-run 720ms var(--ease-in-out) forwards;
}
@keyframes feed-run {
  from {
    stroke-dashoffset: 0.18;
  }
  to {
    stroke-dashoffset: -1;
  }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--blue);
  transition: box-shadow 200ms ease;
}
.site-header.scrolled {
  box-shadow: 0 1px 0 var(--ink);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 880;
  font-stretch: 116%;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  margin-right: auto;
}
.brand svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  transition: transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .brand:hover svg {
    transform: rotate(-8deg);
  }
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  position: relative;
  padding: 10px 14px;
  font-weight: 680;
  font-stretch: 106%;
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.nav a[aria-current="page"]::after,
.nav a.is-current::after {
  transform: scaleX(1);
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover::after {
    transform: scaleX(1);
  }
}
.lang {
  display: inline-flex;
  border: 2px solid var(--ink);
  padding: 2px;
  gap: 2px;
}
.lang button {
  border: 0;
  background: transparent;
  padding: 6px 9px;
  font-weight: 760;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--blue);
}
.header-cta {
  min-height: 46px;
  padding: 0 20px;
  font-size: 0.975rem;
}
.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2.5px;
  background: var(--ink);
  transition: transform 220ms var(--ease-out);
}
.burger span:first-child {
  top: 17px;
}
.burger span:last-child {
  bottom: 17px;
}
.burger[aria-expanded="true"] span:first-child {
  transform: translateY(5px) rotate(45deg);
}
.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

/* mobile menu sheet */
.sheet {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 49;
  background: var(--ink);
  color: var(--white);
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition:
    clip-path 260ms var(--ease-drawer),
    visibility 0s linear 260ms;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sheet.open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition:
    clip-path 380ms var(--ease-drawer),
    visibility 0s;
}
.sheet a.big {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(2.2rem, 10vw, 3.4rem);
  font-weight: 860;
  font-stretch: 116%;
  letter-spacing: -0.035em;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-3);
  opacity: 0;
  transform: translateY(14px);
}
.sheet.open a.big {
  opacity: 1;
  transform: none;
  transition:
    opacity 260ms ease,
    transform 380ms var(--ease-out);
  transition-delay: calc(var(--i) * 45ms + 80ms);
}
.sheet .sheet-foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding-top: 24px;
}
.sheet .btn {
  --bg: var(--blue);
  --fg: var(--ink);
  border-color: var(--blue);
}
.sheet .lang {
  border-color: var(--blue);
}
.sheet .lang button {
  color: var(--blue);
}
.sheet .lang button[aria-pressed="true"] {
  background: var(--blue);
  color: var(--ink);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  border-bottom: 2px solid var(--ink);
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-traces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.trace {
  fill: none;
  stroke: var(--trace-on-blue);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.trace-pulse {
  fill: none;
  stroke: var(--white);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 0.06 2;
  stroke-dashoffset: 0.06;
}
.via {
  fill: var(--blue);
  stroke: var(--white);
  stroke-width: 2;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 24px;
  padding-block: clamp(40px, 8vh, 96px);
}
.hero h1 {
  margin-bottom: clamp(24px, 4vh, 40px);
}
.hero .lead {
  max-width: 34ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 5vh, 44px);
}
.hero-alpaca {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  bottom: 0;
  height: min(86%, 760px);
  width: auto;
  aspect-ratio: 882 / 1191;
  z-index: -1;
  cursor: pointer;
}
.alpaca-path {
  fill: var(--ink);
  stroke: var(--ink);
  stroke-width: 30;
}

/* ---------- bus (scroll signal) ---------- */
.has-bus {
  position: relative;
}
.bus {
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(calc(var(--gutter) / 2), calc((100% - var(--max)) / 2 + var(--gutter) / 2));
  width: 2px;
  pointer-events: none;
}
.bus .line,
.bus .lit {
  position: absolute;
  inset: 0;
}
.bus .line {
  background: var(--trace-on-blue);
}
.bus .lit {
  background: var(--white);
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}
.ink .bus .line {
  background: var(--trace-on-ink);
}
.ink .bus .lit {
  background: var(--blue);
}
.node {
  position: relative;
}
.node::before,
.node::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
/* branch from the bus into the heading */
.node::before {
  top: 0.5em;
  right: calc(100% + 14px);
  width: calc(var(--gutter) / 2 - 14px);
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease-out);
}
/* via on the bus */
.node::after {
  top: calc(0.5em - 6px);
  left: calc(var(--gutter) / -2 - 6px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--blue);
  transition: background-color 200ms ease;
}
.ink .node::before {
  background: var(--blue);
}
.ink .node::after {
  border-color: var(--blue);
  background: var(--ink);
}
.node.lit::before {
  transform: scaleX(1);
}
.node.lit::after {
  background: var(--white);
}
.ink .node.lit::after {
  background: var(--blue);
}

/* ---------- sections ---------- */
.section {
  padding-block: clamp(88px, 13vw, 180px);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.section-head .lead {
  grid-column: 1 / -1;
  margin-top: 20px;
}

/* services */
.services {
  border-top: 2px solid var(--ink);
}
.service {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto;
  gap: clamp(16px, 3vw, 48px);
  align-items: start;
  padding-block: clamp(28px, 4vw, 48px);
  border-bottom: 2px solid var(--ink);
  text-decoration: none;
}
.service h3 {
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.service p {
  max-width: 46ch;
}
.service .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}
.tags li {
  font-size: var(--fs-small);
  font-weight: 640;
  padding: 4px 10px;
  border: 1.5px solid currentColor;
  white-space: nowrap;
}
.service .go {
  width: 56px;
  height: 56px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    transform 160ms var(--ease-out);
}
.service .go svg {
  width: 22px;
  height: 22px;
  transition: transform 260ms var(--ease-out);
}
.service .branch {
  position: absolute;
  left: calc(var(--gutter) / -2 + 1px);
  top: 50%;
  width: calc(var(--gutter) / 2 - 1px);
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease-out);
}
.service:active .go {
  transform: scale(0.94);
}
@media (hover: hover) and (pointer: fine) {
  .service:hover .go {
    background: var(--ink);
    color: var(--blue);
  }
  .service:hover .go svg {
    transform: translateX(3px) rotate(-45deg);
  }
  .service:hover .branch {
    transform: scaleX(1);
  }
}
.extras {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(20px, 4vw, 64px);
}
.extras h3 {
  font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem);
  font-weight: 820;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.extras ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
}
.extras li {
  padding: 18px 18px 18px 0;
  border-right: 2px solid var(--ink);
  padding-left: 18px;
}
.extras li:first-child {
  padding-left: 0;
}
.extras li:last-child {
  border-right: 0;
}
.extras b {
  display: block;
  font-weight: 780;
  font-stretch: 108%;
  margin-bottom: 4px;
}

/* work showcase (home) */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(16px, 2.4vw, 32px);
}
.work-item {
  grid-column: span 6;
  text-decoration: none;
  display: block;
}
.work-item.w-left.w-big {
  grid-column: 1 / span 7;
}
.work-item.w-right.w-small {
  grid-column: 8 / span 5;
  margin-top: clamp(40px, 10vw, 140px);
}
.work-item.w-left.w-small {
  grid-column: 1 / span 5;
  margin-top: clamp(40px, 10vw, 140px);
}
.work-item.w-right.w-big {
  grid-column: 6 / span 7;
}
.work-item.w-full {
  grid-column: 1 / -1;
}
.work-item.w-full .shot {
  aspect-ratio: 21 / 9;
}
.shot {
  position: relative;
  background: var(--ink-2);
  border: 1.5px solid var(--ink-3);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 700ms var(--ease-out);
}
.shot .bar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 26px;
  background: var(--ink-2);
  border-bottom: 1.5px solid var(--ink-3);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 12px;
  z-index: 1;
}
.shot .bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-3);
}
.shot .bar i:first-child {
  background: var(--blue);
}
.shot.framed img {
  padding-top: 26px;
}
.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 18px;
}
.work-meta h3 {
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.4rem);
  font-weight: 840;
  font-stretch: 114%;
  letter-spacing: -0.03em;
  line-height: 1;
}
.work-meta span {
  color: var(--blue);
  font-weight: 640;
  font-size: var(--fs-small);
  white-space: nowrap;
}
.work-item p {
  color: #bfe9f9;
  margin-top: 8px;
  max-width: 48ch;
}
@media (hover: hover) and (pointer: fine) {
  .work-item:hover .shot img {
    transform: scale(1.03);
  }
}

/* reveal on scroll (content stays visible without JS) */
.js .reveal {
  clip-path: inset(0 0 100% 0);
  transform: translateY(24px);
  transition:
    clip-path 900ms var(--ease-out),
    transform 900ms var(--ease-out);
}
.js .reveal.in {
  clip-path: inset(0 0 0 0);
  transform: none;
}
.js .fade {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 600ms ease,
    transform 700ms var(--ease-out);
}
.js .fade.in {
  opacity: 1;
  transform: none;
}

/* process */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--trace-on-blue);
}
.steps .progress {
  position: absolute;
  top: 27px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
}
.step {
  position: relative;
}
.step .dot {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 860;
  font-stretch: 112%;
  font-size: 1.15rem;
  margin-bottom: 28px;
  transition:
    background-color 260ms ease,
    color 260ms ease;
}
.step.lit .dot {
  background: var(--ink);
  color: var(--blue);
}
.step h3 {
  font-size: clamp(1.3rem, 1rem + 0.9vw, 1.8rem);
  font-weight: 820;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.step p {
  max-width: 30ch;
}

/* studio */
.studio {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.studio blockquote {
  font-size: clamp(1.8rem, 1rem + 2.8vw, 3.6rem);
  font-weight: 820;
  font-stretch: 112%;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--blue);
  margin-bottom: 32px;
}
.studio p {
  color: #cfeefb;
  max-width: 52ch;
}
.studio p + p {
  margin-top: 16px;
}
.herd {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  border-bottom: 2px solid var(--blue);
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  background: none;
  padding: 0;
  width: 100%;
}
.herd .alpaca-body {
  width: 58%;
  align-self: end;
  margin-bottom: 0;
  fill: var(--blue);
  transform-origin: 50% 100%;
  transition: transform 460ms var(--ease-out);
}
/* the alpaca leans in when you point at it: the cue that it can be clicked */
@media (hover: hover) and (pointer: fine) {
  .herd:hover .alpaca-body {
    transform: rotate(-8deg) translateY(-8px);
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .herd:hover .alpaca-body {
    animation: nod 1100ms var(--ease-in-out) 460ms infinite;
  }
}
@keyframes nod {
  0%,
  100% {
    transform: rotate(-8deg) translateY(-8px);
  }
  45% {
    transform: rotate(-2deg) translateY(-3px);
  }
}
.herd:focus-visible .alpaca-body {
  transform: rotate(-6deg) translateY(-6px);
}
.herd .mini {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12%;
  margin: -8% 0 0 -6%;
  align-self: auto;
  fill: var(--blue);
  pointer-events: none;
  opacity: 0;
}
.herd:active .alpaca-body {
  transform: rotate(-3deg) scale(0.96);
  transition-duration: 140ms;
}

/* contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.direct {
  margin-top: 36px;
  display: grid;
  gap: 18px;
}
.direct a {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  width: fit-content;
}
.direct small {
  font-size: var(--fs-small);
  font-weight: 640;
  color: #0b3b4c;
}
.direct strong {
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.7rem);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--ink);
  overflow-wrap: anywhere;
}
.form {
  display: grid;
  gap: 22px;
}
.form fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
.form legend,
.form label > span {
  display: block;
  font-weight: 720;
  margin-bottom: 10px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips label {
  position: relative;
}
.chips input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.chips span {
  display: inline-block;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  font-weight: 680;
  -webkit-user-select: none;
  user-select: none;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    transform 140ms var(--ease-out);
}
.chips input:checked + span {
  background: var(--ink);
  color: var(--blue);
}
.chips input:focus-visible + span {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.chips label:active span {
  transform: scale(0.96);
}
.field input,
.field textarea {
  width: 100%;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 14px 16px;
  line-height: 1.4;
  outline: none;
  transition: box-shadow 160ms ease;
}
.field textarea {
  min-height: 170px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  box-shadow: 0 0 0 3px var(--ink);
}
.field input::placeholder,
.field textarea::placeholder {
  color: #5b6b72;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #8a1c12;
  box-shadow: 0 0 0 3px #8a1c12;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.form-foot small {
  max-width: 40ch;
  color: #0b3b4c;
}
.status {
  min-height: 1.5em;
  font-weight: 720;
}
.status[data-state="error"] {
  color: #6e1209;
}
/* spam trap: off-screen for people and screen readers, bots still fill it */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* footer */
.site-footer {
  padding-block: 56px calc(40px + env(safe-area-inset-bottom));
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}
.site-footer .brand {
  color: var(--blue);
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  padding: 0;
}
.foot-links a {
  text-decoration: none;
  font-weight: 600;
  color: #cfeefb;
}
@media (hover: hover) and (pointer: fine) {
  .foot-links a:hover {
    color: var(--blue);
  }
}
.copy {
  grid-column: 1 / -1;
  color: #8fd8f2;
  font-size: var(--fs-small);
  border-top: 1px solid var(--ink-3);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- work page ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(64px, 12vw, 160px) clamp(56px, 8vw, 110px);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}
.filters button {
  border: 2px solid var(--ink);
  background: transparent;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    transform 140ms var(--ease-out);
}
.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--blue);
}
.filters button:active {
  transform: scale(0.96);
}
.case {
  padding-block: clamp(72px, 10vw, 140px);
}
.case[hidden] {
  display: none;
}
.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.case:nth-of-type(even) .case-grid {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.case:nth-of-type(even) .case-copy {
  order: 2;
}
.case {
  position: relative;
  overflow: hidden;
}
.case h2 {
  margin-bottom: 14px;
}
.case-type {
  font-weight: 700;
  font-stretch: 108%;
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.ink .case-type {
  color: var(--blue);
}
.case-copy > p {
  max-width: 46ch;
}
.features {
  list-style: none;
  padding: 0;
  margin-top: 28px;
  border-top: 2px solid currentColor;
}
.features li {
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  position: relative;
}
.features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.case .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin-top: 24px;
}
.case-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.case-note {
  font-size: var(--fs-small);
  font-weight: 560;
}
.blue .case-note {
  color: #0b3b4c;
}
.ink .case-note {
  color: #8fd8f2;
}
.stage {
  position: relative;
  padding-bottom: 12%;
}
.stage .shot {
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}
.blue .stage .shot {
  border-color: var(--ink);
  border-width: 2px;
}
.phone {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: 27%;
  aspect-ratio: 390 / 844;
  border: 6px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.6);
}
.ink .phone {
  border-color: #2b2b2b;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.stage .second {
  position: absolute;
  left: -4%;
  bottom: -2%;
  width: 46%;
  aspect-ratio: 16 / 10;
}

.status-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: var(--blue);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  z-index: 2;
}
.illu-label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  z-index: 2;
}

.cta-band {
  padding-block: clamp(72px, 10vw, 140px);
  text-align: left;
}
#cases:has(> .case.blue:last-child) + .cta-band {
  border-top: 2px solid var(--ink);
}
.cta-band .h2 {
  max-width: 14ch;
  margin-bottom: 36px;
}

/* ---------- legal ---------- */
.legal {
  padding-block: clamp(56px, 8vw, 120px);
}
.legal .h2 {
  margin-bottom: 40px;
}
.legal-body {
  max-width: 72ch;
}
.legal-note {
  font-size: var(--fs-small);
  font-weight: 600;
  color: #0b3b4c;
  margin-bottom: 28px;
}
.legal-body h2 {
  font-size: 1.6rem;
  font-weight: 820;
  font-stretch: 110%;
  letter-spacing: -0.02em;
  margin: 48px 0 12px;
}
.legal-body h3 {
  font-size: 1.2rem;
  font-weight: 780;
  margin: 28px 0 8px;
}
.legal-body h4 {
  font-size: 1.05rem;
  font-weight: 760;
  margin: 20px 0 6px;
}
.legal-body p,
.legal-body ul {
  margin-bottom: 12px;
}
.legal-body a {
  overflow-wrap: anywhere;
}

/* ---------- 404 ---------- */
.lost {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px var(--gutter);
}

/* ---------- view transitions between pages ---------- */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: vt-out 220ms var(--ease-out) both;
}
::view-transition-new(root) {
  animation: vt-in 420ms var(--ease-out) both;
}
@keyframes vt-out {
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}
@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}


/* section traces: the board continues into each band */
.has-bus,
.section {
  position: relative;
}
.sec-traces {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.sec-traces.tr {
  top: 0;
  right: 0;
  width: min(50vw, 720px);
  height: auto;
  aspect-ratio: 720 / 260;
}
.sec-traces.bl {
  bottom: 0;
  left: 0;
  width: min(50vw, 720px);
  height: auto;
  aspect-ratio: 720 / 220;
}
.section > .wrap,
.case > .wrap {
  z-index: 1;
}
.ink .trace {
  stroke: var(--trace-on-ink);
}
.ink .trace-pulse {
  stroke: var(--blue);
}
.ink .via {
  fill: var(--ink);
  stroke: var(--blue);
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav,
  .site-header .lang,
  .header-cta {
    display: none;
  }
  .burger {
    display: block;
  }
  .service {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .service > div:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .service .go {
    grid-column: 2;
    grid-row: 1;
  }
  .extras {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }
  .steps::before,
  .steps .progress {
    display: none;
  }
  .contact,
  .studio,
  .case-grid,
  .case:nth-of-type(even) .case-grid {
    grid-template-columns: 1fr;
  }
  .case:nth-of-type(even) .case-copy {
    order: 0;
  }
}
@media (max-width: 760px) {
  :root {
    --header-h: 68px;
  }
  .node::before,
  .service .branch,
  .sec-traces {
    display: none;
  }
  .node::after {
    width: 11px;
    height: 11px;
    top: calc(0.5em - 5px);
    left: calc(var(--gutter) / -2 - 4.5px);
  }
  .work-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .hero {
    flex-direction: column;
    align-items: stretch;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    padding-bottom: 32px;
  }
  .hero-alpaca {
    position: relative;
    right: auto;
    align-self: flex-end;
    height: auto;
    width: 54vw;
    margin-right: 6vw;
    margin-top: auto;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .btn-feed {
    flex: 1 1 100%;
  }
  .btn-feed .btn {
    width: 100%;
  }
  .btn-feed .feed {
    width: calc(var(--gutter) / 2);
  }
  .hero .btn-feed .feed {
    display: none;
  }
  .extras ul {
    grid-template-columns: 1fr;
  }
  .extras li,
  .extras li:first-child {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-grid .work-item,
  .work-grid .work-item.w-left,
  .work-grid .work-item.w-right {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .work-item.w-full .shot {
    aspect-ratio: 16 / 10;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
  .section-head {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal,
  .js .fade {
    clip-path: none;
    transform: none;
    transition: opacity 300ms ease;
  }
  .js .reveal:not(.in),
  .js .fade:not(.in) {
    opacity: 0;
  }
  .sheet,
  .sheet.open {
    transition: visibility 0s, opacity 200ms ease;
    clip-path: none;
  }
  .sheet:not(.open) {
    opacity: 0;
  }
  .sheet a.big {
    opacity: 1;
    transform: none;
  }
  .bus .lit {
    transition: none;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 1ms;
  }
}
