/* Vippi — site styles. Display: Thunder (local). Text: Onest. Brand: teal #008AAD, yellow #FFC226. */

@font-face { font-family: "Thunder"; src: url("../fonts/Thunder-BoldLC.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Thunder"; src: url("../fonts/Thunder-ExtraBoldLC.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bone: #F1F0EC;
  --paper: #FFFFFF;
  --ink: #0F1B20;
  --ink-2: #4A5559;
  --ink-3: #7C8589;
  --line: #DEDCD5;
  --teal: #008AAD;
  --teal-deep: #003C4C;
  --teal-soft: #D5EAF0;
  --yellow: #FFC226;
  --graphite: #3B3D3F;

  --f-display: "Thunder", "Oswald", "Arial Narrow", sans-serif;
  --f-text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  --gutter: clamp(16px, 3vw, 32px);
  --max: 1320px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 17px/1.55 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
svg { width: 1em; height: 1em; flex: none; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 16px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 16px; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: transform .5s var(--ease), background-color .3s, color .3s, box-shadow .3s;
}
.btn:active { transform: scale(.97); }
.btn.is-magnetic { transition: background-color .3s, color .3s, box-shadow .3s; }
.btn-primary { --bg: var(--teal); }
.btn-primary:hover { --bg: #007998; }
.btn-light { --bg: #fff; --fg: var(--ink); }
.btn-light:hover { --bg: var(--yellow); }
.btn-yellow { --bg: var(--yellow); --fg: var(--ink); }
.btn-yellow:hover { --bg: #fff; }
.btn-ghost { --bg: rgba(255,255,255,.08); --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn-ghost:hover { --bg: rgba(255,255,255,.16); }
.btn-outline { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-outline:hover { --bg: var(--ink); --fg: #fff; }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: 15px; }

.icon-btn {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--paper); color: var(--teal);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color .3s, color .3s, transform .5s var(--ease);
}
.icon-btn svg { font-size: 20px; }
.icon-btn:hover { background: var(--teal); color: #fff; transform: rotate(-12deg); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: transform .5s var(--ease), box-shadow .3s;
}
/* the blur lives on a pseudo-element: a backdrop-filter on the header itself would trap the fixed mobile menu inside it */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bone) 96%, transparent); /* no backdrop blur: it re-blurs the page on every scrolled frame */
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: color .25s, background-color .25s;
}
.nav a:hover { color: var(--ink); background: rgba(15,27,32,.06); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

@media (max-width: 1080px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; gap: 0; margin: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bone);
    box-shadow: 0 24px 40px -24px rgba(15,27,32,.25);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .55s var(--ease);
  }
  .nav.is-open { clip-path: inset(0 0 0 0); }
  .nav a { font-family: var(--f-display); font-weight: 700; font-size: 44px; line-height: 1.1; text-transform: uppercase; color: var(--ink); padding: 6px 0; border-radius: 0; }
  .nav a:hover { background: none; color: var(--teal); }
  .nav a.is-active::after { display: none; }
  .header-actions { margin-left: auto; }
  .menu-btn {
    display: grid; place-content: center; gap: 6px;
    width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: var(--ink); cursor: pointer;
  }
  .menu-btn span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .brand img { height: 32px; }
  .header-actions .btn { display: none; }
  .icon-btn, .menu-btn { width: 42px !important; height: 42px !important; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(12px, 2vw, 28px); }
.hero-top { display: flex; justify-content: space-between; gap: 16px; font-size: clamp(15px, 1.4vw, 20px); font-weight: 500; }
.hero-top p:last-child { color: var(--teal); }
/* one line that fills the width exactly (font-size is fitted in vippi.js; the clamp is the fallback) */
.hero-word {
  margin-top: clamp(6px, 1vw, 14px);
  font: 800 clamp(54px, 10.4vw, 152px)/.84 var(--f-display);
  text-transform: uppercase; letter-spacing: -0.005em;
  color: var(--ink);
}
.hero-line { display: block; white-space: nowrap; }
.hero-word .hw { display: inline-block; overflow: hidden; vertical-align: top; padding-top: .2em; margin-top: -.2em; }
.hero-word .hw > span { display: inline-flex; align-items: center; }
.hero-word .hw:last-child > span { color: var(--teal); }
/* the last "О" is an eye from the logo */
.eye.eye-o { width: .6em; height: .6em; margin: 0 0 .1em .03em; box-shadow: inset 0 0 0 .07em var(--teal); }

.hero-panel {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: clamp(14px, 2vw, 24px);
  min-height: clamp(460px, 44vw, 620px);
  border-radius: var(--r-xl);
  background: radial-gradient(90% 120% at 70% 50%, #3d5469 0%, #32475a 45%, #263746 100%);
  color: #fff;
  display: flex; align-items: flex-end;
}
/* The WebGL canvas is a square just around the liquid form, right of centre; its edge fades into the panel,
   so the shader is not paid for across the whole panel. */
.liquid {
  position: absolute; z-index: -1; top: 0; bottom: 0; left: 70%; aspect-ratio: 1;
  transform: translateX(-50%);
  -webkit-mask-image: radial-gradient(circle closest-side, #000 86%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 86%, transparent 100%);
  contain: strict;
}
.liquid canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.liquid.is-ready canvas { opacity: 1; }
.liquid.is-lost canvas { opacity: 0; }
.hero-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,28,38,.5) 0%, rgba(16,28,38,0) 50%); pointer-events: none; }
.hero-panel-body { position: relative; padding: clamp(24px, 4vw, 56px); max-width: 640px; }
.hero-lead { font-size: clamp(20px, 2.1vw, 30px); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; max-width: 30ch; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3vw, 36px); }
.hero-hint { position: absolute; top: clamp(20px, 3vw, 36px); right: clamp(20px, 3vw, 40px); font-size: 13px; color: rgba(255,255,255,.55); }

@media (max-width: 760px) {
  /* three lines on phones; vippi.js sizes them so the longest word fills the width exactly */
  .hero-top { font-size: 15px; align-items: baseline; }
  .hero-top .wide-only { display: none; }
  .hero-line { white-space: normal; }
  .hero-word { font-size: 23vw; line-height: .86; margin-top: 10px; overflow-wrap: normal; }
  .hero-word .hw { display: block; width: max-content; max-width: 100%; }
  .hero-panel { min-height: 0; flex-direction: column; align-items: stretch; }
  .liquid { left: 50%; bottom: auto; height: 340px; }
  .hero-panel { background: linear-gradient(180deg, #3a5065 0, #32475a 220px, #263746 100%); }
  .hero-panel::after { display: none; }
  .hero-panel-body { padding-top: 300px; }
  .hero-hint { display: none; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: clamp(28px, 4vw, 56px) 0; }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 36px); padding-right: clamp(20px, 2.5vw, 36px); }
.marquee span { font: 700 clamp(48px, 6.5vw, 96px)/1 var(--f-display); text-transform: uppercase; white-space: nowrap; }
.marquee-group span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
/* the eyes are the "pp" of the Vippi logo; their pupils follow the pointer (vippi.js) */
.eye {
  position: relative; display: block; flex: none;
  width: clamp(38px, 4.4vw, 60px); aspect-ratio: 1; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 2px var(--ink);
}
.eye b {
  position: absolute; left: 50%; top: 50%;
  width: 46%; aspect-ratio: 1; margin: -23% 0 0 -23%; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6fd3ec 0 12%, var(--teal) 13% 58%, var(--ink) 60%);
  transform: translate(var(--ex, 0px), var(--ey, 0px));
  transition: transform .25s ease-out;
}

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 120px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 52px); }
.display { font: 700 clamp(56px, 8vw, 128px)/.86 var(--f-display); text-transform: uppercase; letter-spacing: -0.005em; max-width: 14ch; text-wrap: balance; }
.display-md { font-size: clamp(44px, 5.4vw, 84px); max-width: none; overflow-wrap: anywhere; }
.section-note { max-width: 36ch; color: var(--ink-2); font-size: 18px; }
.split-line { overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }

/* ---------- manifesto: words go from grey to ink as the reader scrolls (vippi.js) ---------- */
.manifesto { padding-block: clamp(40px, 6vw, 96px) clamp(8px, 2vw, 24px); }
.manifesto-text {
  font-size: clamp(28px, 4vw, 60px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em;
  max-width: 24ch; color: var(--ink); text-wrap: pretty;
}
.manifesto-text .w { color: #B9B8B1; transition: color .2s linear; }
.manifesto-text .w.is-read { color: var(--ink); }
.no-motion .manifesto-text .w { color: inherit; }

/* ---------- services bento ---------- */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "smm smm photo photo"
    "brand app photo photo"
    "web web cta cta";
}
.card {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--paper);
  padding: clamp(22px, 2.4vw, 32px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  min-height: 300px;
}
/* the service cards lean toward the pointer (vippi.js sets --rx / --ry) */
.bento { perspective: 1400px; }
.card { transform-style: preserve-3d; }
.card.is-settling { transition: transform .5s var(--ease); }
.js .bento .card.is-in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.card.is-tilting { transition: transform .08s linear; }
.card .art { transform: translateZ(36px); }
.card h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; }
.card p { color: var(--ink-2); font-size: 16px; max-width: 40ch; }
.card .art { pointer-events: none; }

.card-smm { grid-area: smm; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
.card-smm .card-text { display: grid; gap: 10px; flex: 1 1 50%; }
.art-post { position: relative; flex: 0 0 auto; width: clamp(160px, 15vw, 210px); align-self: center; }
.post {
  position: relative; z-index: 1;
  background: #fff; border-radius: 16px; padding: 10px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(15,27,32,.35);
  transform: rotate(4deg); transition: transform .7s var(--ease);
}
.post-back { position: absolute; inset: 8px -10px -8px 10px; z-index: 0; background: var(--teal-soft); transform: rotate(-5deg); box-shadow: none; }
.post-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.post-head i { width: 18px; height: 18px; border-radius: 50%; background: var(--teal); }
.post-head span { width: 60px; height: 6px; border-radius: 4px; background: var(--line); }
.post img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; width: 100%; }
.post-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; }
.post-foot svg { color: #E5484D; font-size: 18px; transition: transform .4s var(--ease); }
.card-smm:hover .post { transform: rotate(0deg) translateY(-6px); }
.card-smm:hover .post-foot svg { transform: scale(1.3); }

.card-photo { grid-area: photo; padding: 0; color: #fff; min-height: 520px; }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,60,76,0) 35%, rgba(0,40,52,.88) 100%); }
.card-photo-text { position: relative; z-index: 1; padding: clamp(22px, 2.6vw, 36px); display: grid; gap: 10px; }
.card-photo h3 { font: 700 clamp(40px, 4vw, 60px)/.92 var(--f-display); text-transform: uppercase; letter-spacing: 0; max-width: 14ch; }
.card-photo p { color: rgba(255,255,255,.82); }

.card-brand { grid-area: brand; }
.card-app { grid-area: app; }
.art-swatch { position: relative; height: 120px; margin-bottom: auto; }
.sw {
  position: absolute; left: 0; top: 0;
  width: 92px; height: 116px; border-radius: 14px;
  display: grid; place-items: end start; padding: 10px;
  font: 700 26px/1 var(--f-display); font-style: normal;
  transform-origin: 30% 120%;
  transition: transform .7s var(--ease);
}
.sw-1 { z-index: 3; background: var(--teal); color: #fff; }
.sw-2 { z-index: 2; background: var(--yellow); transform: rotate(10deg) translateX(16px); }
.sw-3 { z-index: 1; background: var(--ink); transform: rotate(20deg) translateX(30px); }
.card-brand:hover .sw-1 { transform: rotate(-6deg); }
.card-brand:hover .sw-2 { transform: rotate(14deg) translateX(50px); }
.card-brand:hover .sw-3 { transform: rotate(30deg) translateX(96px); }

.art-phone { margin-bottom: auto; }
.phone {
  width: 86px; height: 132px; padding: 16px 10px 10px;
  border-radius: 18px; box-shadow: inset 0 0 0 2.5px var(--ink);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; align-content: start;
  position: relative;
}
.phone::before { content: ""; position: absolute; top: 6px; left: 50%; width: 22px; height: 4px; margin-left: -11px; border-radius: 4px; background: var(--ink); }
.phone i { aspect-ratio: 1; border-radius: 8px; background: var(--teal-soft); transition: transform .5s var(--ease), background-color .3s; }
.phone i:nth-child(1) { background: var(--teal); }
.phone i:nth-child(4) { background: var(--yellow); }
.card-app:hover .phone i { transform: translateY(-4px); }
.card-app:hover .phone i:nth-child(2n) { transition-delay: .06s; }
.card-app:hover .phone i:nth-child(n+3) { transition-delay: .1s; }

.card-web { grid-area: web; background: var(--teal-deep); color: #fff; flex-direction: row; align-items: flex-end; gap: 24px; }
.card-web .card-text { display: grid; gap: 10px; flex: 1 1 45%; }
.card-web p { color: rgba(255,255,255,.75); }
.art-browser { flex: 0 1 52%; align-self: center; }
.browser { border-radius: 14px; background: #fff; overflow: hidden; transform: perspective(900px) rotateY(-14deg) rotateX(4deg); transition: transform .8s var(--ease); box-shadow: 0 30px 50px -20px rgba(0,0,0,.5); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #EDEFEF; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9cdce; }
.browser-bar span { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: #fff; color: var(--ink-3); font-size: 11px; }
.browser-body { display: grid; gap: 8px; padding: 16px; grid-template-columns: 1fr 1fr; }
.browser-body b { grid-column: 1; height: 9px; border-radius: 5px; background: var(--ink); width: 90%; transition: width .7s var(--ease); }
.browser-body b:nth-child(2) { width: 70%; background: var(--line); }
.browser-body b:nth-child(3) { width: 50%; height: 22px; border-radius: 999px; background: var(--teal); }
.browser-body em { grid-column: 2; grid-row: 1 / span 3; border-radius: 10px; background: var(--yellow); min-height: 70px; }
.card-web:hover .browser { transform: perspective(900px) rotateY(0) rotateX(0); }
.card-web:hover .browser-body b:nth-child(2) { width: 100%; }

.card-cta { grid-area: cta; background: var(--teal); color: #fff; justify-content: space-between; align-items: flex-start; }
.card-cta h3 { font: 700 clamp(40px, 4vw, 60px)/.92 var(--f-display); text-transform: uppercase; letter-spacing: 0; max-width: 12ch; }
.card-cta p { color: rgba(255,255,255,.85); margin-top: -14px; }

@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "smm smm" "photo photo" "brand app" "web web" "cta cta"; }
  .card-photo { min-height: 440px; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "smm" "photo" "brand" "app" "web" "cta"; }
  .card-smm, .card-web { flex-direction: column; align-items: stretch; }
  .art-post { align-self: flex-start; order: -1; margin-bottom: 8px; }
  .art-browser { order: -1; margin-bottom: 12px; }
  .card { min-height: 0; }
  .card-photo { min-height: 420px; }
}

/* ---------- about ---------- */
.about { background: var(--paper); border-radius: var(--r-xl); margin-inline: clamp(0px, 1vw, 16px); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.tabs { margin-top: clamp(28px, 3.5vw, 44px); }
.tab-list { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--bone); }
.tab-list button {
  position: relative; z-index: 1;
  border: 0; background: none; cursor: pointer;
  padding: 11px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; color: var(--ink-2);
  transition: color .35s;
}
.tab-list button[aria-selected="true"] { color: #fff; }
.tab-ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--ink); transition: transform .55s var(--ease), width .55s var(--ease); }
.tab-panel { margin-top: 24px; display: grid; gap: 14px; max-width: 58ch; color: var(--ink-2); }
.tab-panel p:first-child { color: var(--ink); font-size: 20px; line-height: 1.45; font-weight: 500; }
.about-media { position: relative; min-height: 520px; }
.about-img { position: absolute; overflow: hidden; border-radius: var(--r-lg); background: var(--bone); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img-1 { left: 0; top: 0; width: 72%; height: 78%; }
.about-img-2 { right: 0; bottom: 0; width: 52%; height: 52%; border: 8px solid var(--paper); border-radius: calc(var(--r-lg) + 8px); }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { min-height: 0; aspect-ratio: 1 / .9; }
}
@media (max-width: 480px) {
  .tab-list { display: flex; }
  .tab-list button { flex: 1; padding-inline: 10px; }
}

/* ---------- portfolio ---------- */
.works-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.works-intro { display: grid; gap: 20px; justify-items: start; padding-bottom: 8px; }
.filter { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--paper); margin-top: 8px; }
.filter button {
  border: 0; background: none; cursor: pointer;
  padding: 0 18px; line-height: 42px; border-radius: 999px;
  font-weight: 600; font-size: 15px; color: var(--ink-2);
  transition: background-color .3s, color .3s;
}
.filter button sup { font-size: 11px; font-weight: 500; margin-left: 2px; opacity: .6; }
.filter button:hover { color: var(--ink); }
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; }
/* ThreeUI Gallery host (gallery.js). The dotted paper is the component's own backdrop, in our neutrals */
.ribbon {
  position: relative; overflow: hidden; height: clamp(380px, 40vw, 560px);
  border-radius: var(--r-lg);
  background-color: #E9E8E2;
  background-image: radial-gradient(rgba(15,27,32,.14) 1px, transparent 1px);
  background-size: 28px 28px;
  cursor: grab; touch-action: pan-y; user-select: none;
}
.ribbon.is-over { cursor: pointer; }
.ribbon.is-dragging { cursor: grabbing; }
.ribbon-label {
  position: absolute; left: 16px; bottom: 16px; z-index: 1; pointer-events: none;
  display: flex; align-items: baseline; gap: 10px; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 15px;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease);
}
.ribbon-label b { font-weight: 600; }
.ribbon-label span { color: rgba(255,255,255,.6); font-size: 13px; }
.ribbon.is-over .ribbon-label { opacity: 1; transform: none; }
.ribbon.is-over .ribbon-hint { opacity: 0; }
.ribbon-nav { position: absolute; right: 16px; bottom: 16px; z-index: 1; display: flex; gap: 8px; }
.ribbon-nav button {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--paper); color: var(--ink); cursor: pointer;
  transition: background-color .25s, color .25s, transform .4s var(--ease);
}
.ribbon-nav button svg { font-size: 20px; }
.ribbon-nav button:hover { background: var(--ink); color: #fff; }
.ribbon-nav button:active { transform: scale(.92); }
.gallery__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; }
.ribbon.is-ready .gallery__canvas { opacity: 1; }
.ribbon-hint { position: absolute; left: 20px; bottom: 28px; z-index: 1; font-size: 13px; color: var(--ink-3); pointer-events: none; transition: opacity .4s; }
.ribbon.is-touched .ribbon-hint { opacity: 0; }
.work[hidden] { display: none; }
.cursor-tag {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  display: grid; place-items: center; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-size: 14px; font-weight: 600;
  opacity: 0; translate: var(--cx, 0px) var(--cy, 0px); scale: .3;
  transition: opacity .25s, scale .35s var(--ease);
}
.cursor-tag.is-on { opacity: 1; scale: 1; }
@media (max-width: 900px) { .works-head { grid-template-columns: 1fr; } .ribbon { height: 380px; } }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.work { position: relative; display: block; }
.work figure { overflow: hidden; border-radius: var(--r-md); aspect-ratio: 3 / 2; background: #e3e2dc; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work:hover img { transform: scale(1.05); }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 52px 0 2px; }
.work-meta h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.work-meta span { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.work-arrow {
  position: absolute; right: 0; bottom: -4px;
  width: 40px; height: 40px; padding: 10px; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color .3s, color .3s, transform .5s var(--ease);
}
.work:hover .work-arrow { background: var(--teal); color: #fff; transform: rotate(45deg); box-shadow: none; }
.works[data-collapsed] .work[data-more] { display: none; }
.works-progress { display: none; }
.works-more { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 52px); }
@media (max-width: 900px) { .works { grid-template-columns: 1fr 1fr; } }
/* phones: the works become a swipe row with a progress bar instead of a long column */
@media (max-width: 560px) {
  .works {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .works::-webkit-scrollbar { display: none; }
  .work { flex: 0 0 84%; scroll-snap-align: start; }
  .works-progress { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
  .works-bar { position: relative; flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
  .works-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, .1)); transition: transform .2s ease-out; }
  .works-count { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 5ch; text-align: right; }
  .works-more { display: none; }
}

/* ---------- numbers ---------- */
/* ---------- process: a route drawn by the scroll, the Vippi eye travels along it (vippi.js) ---------- */
.route { position: relative; aspect-ratio: 1000 / 520; min-height: 460px; margin-block: clamp(110px, 10vw, 150px) clamp(110px, 10vw, 140px); }
.route-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-track { fill: none; stroke: var(--line); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.route-line { fill: none; stroke: var(--teal); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.route-rail { display: none; }
.route-eye {
  position: absolute; left: 0; top: 0; z-index: 2; width: 54px; margin: -27px 0 0 -27px;
  box-shadow: inset 0 0 0 3px var(--ink), 0 10px 24px -8px rgba(15,27,32,.4);
  will-change: transform;
}
.route-eye b { transition: transform .15s linear; }
.route-steps { list-style: none; margin: 0; padding: 0; }
.step { position: absolute; z-index: 1; width: 0; height: 0; }
.step-dot {
  position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bone); box-shadow: inset 0 0 0 3px var(--line);
  transition: background-color .35s, box-shadow .35s, transform .5s var(--ease);
}
.step-card {
  position: absolute; left: 0; width: clamp(180px, 18vw, 230px); transform: translateX(-50%);
  display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--r-md);
  background: var(--paper); color: var(--ink-2);
  opacity: .45; transition: opacity .4s, transform .6s var(--ease), box-shadow .4s;
}
/* cards open away from the curve: below the low points, above the high ones, so neighbours never meet */
.step-low .step-card { top: 30px; }
.step-high .step-card { bottom: 30px; }
.step:first-child .step-card { transform: translateX(-12%); }
.step:last-child .step-card { transform: translateX(-88%); }
.step-card b { font: 700 15px/1 var(--f-text); color: var(--teal); font-variant-numeric: tabular-nums; }
.step-card h3 { font: 700 30px/.95 var(--f-display); text-transform: uppercase; color: var(--ink); }
.step-card p { font-size: 14px; line-height: 1.45; }
.step.is-reached .step-dot { background: var(--teal); box-shadow: inset 0 0 0 3px var(--teal), 0 0 0 6px rgba(0,138,173,.15); transform: scale(1.15); }
.step.is-reached .step-card { opacity: 1; box-shadow: 0 18px 40px -24px rgba(15,27,32,.35); }
.no-motion .step-card { opacity: 1; }
.no-motion .route-line { stroke-dashoffset: 0; }

@media (max-width: 900px) {
  /* a vertical rail on narrow screens: the steps are a plain list, the eye slides down the rail */
  .route { aspect-ratio: auto; min-height: 0; padding-left: 52px; margin-block: 8px 0; }
  .route-svg { display: none; }
  .route-rail { display: block; position: absolute; left: 18px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--line); }
  .route-rail i { position: absolute; inset: 0; border-radius: 3px; background: var(--teal); transform-origin: top; transform: scaleY(var(--p, 0)); }
  .route-eye { width: 40px; margin: -20px 0 0 -20px; }
  .route-steps { display: grid; gap: 14px; }
  .step { position: relative; width: auto; height: auto; left: auto !important; top: auto !important; }
  .step-dot { display: none; }
  .route-steps .step .step-card { position: relative; inset: auto; width: auto; transform: none; }
}

/* ThreeUI Warp Field host (warp-field.js) sits behind the figures; #02040a is the scene's own ground */
.speed { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); background: #02040a; color: #fff; padding: clamp(26px, 4vw, 56px); min-height: clamp(520px, 52vw, 700px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.warp { position: absolute; inset: 0; z-index: -1; contain: strict; }
.warp canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.warp.is-ready canvas { opacity: 1; }
.speed::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2,4,10,.55) 0%, rgba(2,4,10,0) 40%, rgba(2,4,10,.7) 100%); pointer-events: none; }
#numbers .display { max-width: 20ch; font-size: clamp(48px, 6.4vw, 104px); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { position: relative; display: grid; gap: 14px; padding-top: 18px; }
/* the rule above each figure draws itself in when the figure arrives */
.stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: rgba(255,255,255,.3); transform-origin: left; transform: scaleX(0); transition: transform 1.4s cubic-bezier(.7,0,.2,1) .15s; }
.stat.is-in::before, .no-motion .stat::before { transform: scaleX(1); }
.stat-num { font: 800 clamp(96px, 12vw, 190px)/.8 var(--f-display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 18px; font-weight: 500; color: rgba(255,255,255,.75); }
.stat-accent .stat-num { color: var(--yellow); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } .stat-num { font-size: 30vw; } }

/* ---------- clients ---------- */
.clients { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.clients-text p { margin-top: 20px; max-width: 44ch; color: var(--ink-2); font-size: 18px; }
.logos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.logos li { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--r-md); background: var(--paper); padding: 12%; }
.logos img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .4s, opacity .4s, transform .6s var(--ease); }
.logos li:hover img { filter: none; opacity: 1; transform: scale(1.05); }
@media (max-width: 900px) { .clients { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.contact-main { border-radius: var(--r-xl); background: var(--teal-deep); color: #fff; padding: clamp(26px, 4vw, 56px); }
.contact-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
/* the pair of eyes from the logo: they watch the pointer, then the field being typed in (vippi.js) */
.watch { display: flex; gap: 10px; flex: none; margin-top: 6px; }
.eye.eye-lg { width: clamp(52px, 5.4vw, 76px); box-shadow: none; transition: transform .18s ease-in; }
.watch.is-blink .eye-lg { transform: scaleY(.08); }
.watch.is-happy .eye-lg { background: none; border-radius: 0; overflow: hidden; }
.watch.is-happy .eye-lg b { display: none; }
.watch.is-happy .eye-lg::before { content: ""; position: absolute; inset: 22% 6% -70% 6%; border-radius: 50%; border: 7px solid #fff; }

.form { display: grid; gap: 24px; margin-top: clamp(28px, 3.5vw, 44px); }
.chips { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.75); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: block; padding: 0 18px; line-height: 44px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28);
  font-weight: 500; font-size: 16px; white-space: nowrap;
  transition: background-color .25s, color .25s, box-shadow .25s, transform .4s var(--ease);
}
.chip:hover span { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.chip input:checked + span { background: #fff; color: var(--teal-deep); box-shadow: none; }
.chip input:active + span { transform: scale(.95); }
.chip input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 3px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field span { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.75); }
.field input {
  width: 100%; height: 60px; padding: 0 0 2px; border: 0; border-radius: 0;
  border-bottom: 1.5px solid rgba(255,255,255,.3); background: none;
  color: #fff; font: 500 22px var(--f-text); font-variant-numeric: tabular-nums;
  transition: border-color .25s;
}
.field input::placeholder { color: rgba(255,255,255,.32); }
.field input:focus { outline: none; border-bottom-color: var(--yellow); }
.field input[aria-invalid="true"] { border-bottom-color: #ff9c9c; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.form-result { font-size: 15px; color: rgba(255,255,255,.75); }
.form-result.is-error { color: #ffb4b4; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.sent { margin-top: clamp(28px, 3.5vw, 44px); display: grid; gap: 14px; justify-items: start; }
.sent:focus { outline: none; }
/* the stamp lands on the confirmation (vippi.js) */
.sent { position: relative; }
.stamp {
  position: absolute; right: 0; top: -12px; width: 150px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 4px;
  border: 3px solid var(--yellow); color: var(--yellow); transform: rotate(-12deg);
  box-shadow: inset 0 0 0 6px var(--teal-deep), inset 0 0 0 7.5px var(--yellow);
}
.stamp span { font: 800 34px/.9 var(--f-display); text-transform: uppercase; }
.stamp small { font-size: 11px; letter-spacing: .02em; opacity: .85; }
@media (max-width: 640px) { .stamp { position: relative; right: auto; top: auto; width: 120px; margin-bottom: 4px; } .stamp span { font-size: 28px; } }
.sent h3 { font: 700 clamp(44px, 5vw, 72px)/.9 var(--f-display); text-transform: uppercase; color: var(--yellow); }
.sent p { font-size: 20px; max-width: 34ch; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; }
.sent .btn { margin-top: 10px; }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .watch { display: none; }
}
.contact-side { display: grid; gap: 16px; grid-template-rows: auto 1fr; }
.contact-list { border-radius: var(--r-xl); background: var(--paper); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.contact-list div { display: grid; gap: 2px; }
.contact-list dt { font-size: 14px; color: var(--ink-3); }
.contact-list dd { font-size: 18px; font-weight: 500; }
.contact-list a:hover { color: var(--teal); }
.map { border-radius: var(--r-xl); overflow: hidden; min-height: 260px; background: #e3e2dc; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 260px; border: 0; filter: grayscale(.4) contrast(1.05); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: #151515; color: #fff; margin-top: clamp(40px, 6vw, 80px); padding-top: clamp(40px, 5vw, 64px); overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a, .footer-bottom a { color: rgba(255,255,255,.7); transition: color .25s; }
.footer-nav a:hover, .footer-bottom a:hover { color: #fff; }
.footer-insta { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-insta svg { font-size: 22px; }
.footer-insta:hover { color: var(--yellow); }
/* ThreeUI Typography Vortex host (typography-vortex.js). It paints its own #151515 ground, the footer's colour */
.vortex { position: relative; height: clamp(320px, 40vw, 560px); margin-top: clamp(16px, 3vw, 32px); cursor: crosshair; }
.vortex canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 560px) { .vortex { height: 280px; } }
.vortex-hint { position: absolute; left: 0; bottom: 14px; font-size: 13px; color: rgba(255,255,255,.45); pointer-events: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: rgba(255,255,255,.55); }

/* ---------- project preview (opens from the ribbon) ---------- */
.project { border: 0; padding: 0; background: none; color: var(--ink); width: min(980px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: visible; }
.project::backdrop { background: rgba(15,27,32,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.project-inner { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; max-height: calc(100dvh - 32px); }
.project-media { background: #e3e2dc; aspect-ratio: 3 / 2; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-body { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: clamp(22px, 3vw, 36px); }
.project-kind { font-size: 14px; color: var(--ink-3); }
.project-body h3 { font: 700 clamp(40px, 4.4vw, 60px)/.92 var(--f-display); text-transform: uppercase; overflow-wrap: anywhere; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.project-step { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.project-step .icon-btn { border: 0; cursor: pointer; color: var(--ink); background: var(--bone); box-shadow: none; }
.project-step .icon-btn:hover { background: var(--ink); color: #fff; transform: none; }
.project-close {
  position: absolute; right: 14px; top: 14px; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer;
  transition: transform .4s var(--ease);
}
.project-close svg { font-size: 20px; }
.project-close:hover { transform: rotate(90deg); }
@media (max-width: 760px) {
  .project-inner { grid-template-columns: 1fr; overflow-y: auto; }
}

/* ---------- lite mode (vippi.js): no real GPU or a slow device — the heaviest scenes step aside ---------- */
.lite .warp { background: radial-gradient(60% 80% at 50% 50%, rgba(0,138,173,.35), rgba(0,138,173,0) 70%); }
.lite .vortex { display: grid; place-items: center; cursor: default; }
.lite .vortex::before {
  content: "VIPPI"; font: 800 clamp(120px, 30vw, 440px)/.8 var(--f-display);
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.22);
  /* the word fills from the left as the footer scrolls in (vippi.js sets --fill) */
  background: linear-gradient(90deg, var(--teal) var(--fill, 0%), transparent var(--fill, 0%));
  -webkit-background-clip: text; background-clip: text;
}
.lite .vortex-hint { display: none; }

/* ---------- motion: states set before JS animates them in ---------- */
.js .hero-word .hw > span { transform: translateY(105%); }
.js .hero-top, .js .hero-panel-body, .js .hero-hint { opacity: 0; }
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.js [data-reveal].is-in { transform: none; }
.js.no-motion .hero-word .hw > span, .js.no-motion [data-reveal] { transform: none; }
.js.no-motion .hero-top, .js.no-motion .hero-panel-body, .js.no-motion .hero-hint, .js.no-motion [data-reveal] { opacity: 1; }
.js.no-motion .hero-panel { clip-path: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
