/* =========================================================
   Tanzeem — Portfolio
   Tokens come straight from the Figma variables
   ========================================================= */
@font-face { font-family: "Bungee"; src: url("../fonts/bungee-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #fbfbf9;
  --ink: #141414;
  --ink-soft: #3c3c37;
  --muted: #55554f;
  --line: #e2e2dc;
  --white: #ffffff;
  --gray: #7f7f7f;

  --cyan: #36c5f0;
  --yellow: #edb02d;
  --pink: #e21c5a;
  --green: #3dbe7a;
  --brown: #4a2a22;

  --mint: #9fe3b4;
  --butter: #ffe58a;
  --sky: #a8e4f7;

  --f-display: "Bungee", system-ui, sans-serif;
  --f-script: "Caveat", cursive;
  --f-sans: "Geist", system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;

  --container: 1072px;
  --gutter: 64px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
::selection { background: var(--cyan); color: var(--ink); }

/* ---------- Type scale (Figma text styles) ---------- */
.display-l { font: 400 88px/84px var(--f-display); text-align: center; }
.display-m { font: 400 56px/56px var(--f-display); }
.h1 { font: 500 48px/1.18 var(--f-sans); letter-spacing: -0.48px; }
.h3 { font: 600 24px/1.25 var(--f-sans); letter-spacing: -0.12px; }
.body-m { font: 400 17px/1.55 var(--f-sans); }
.body-s { font: 400 15px/1.5 var(--f-sans); }
.mono { font: 600 12px/1.3 var(--f-mono); letter-spacing: .48px; text-transform: uppercase; }
.mono-s { font: 600 11px/1.3 var(--f-mono); letter-spacing: .44px; text-transform: uppercase; }
.script { font-family: var(--f-script); font-weight: 700; line-height: 1.1; }
.script--l { font-size: 30px; }
.script--m { font-size: 24px; }
.script--s { font-size: 18px; font-weight: 400; }
.muted { color: var(--muted); }
.soft { color: var(--ink-soft); }
.tilt { display: inline-block; transform: rotate(var(--r, 0deg)); }

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 1000; cursor: pointer;
  display: grid; place-items: center; background: var(--paper);
}
.loader__panels { position: absolute; inset: 0; display: flex; pointer-events: none; }
.loader__panel { flex: 1; background: var(--c); transform: translateY(101%); }
.loader__inner { position: relative; width: min(560px, 86vw); display: flex; flex-direction: column; align-items: center; text-align: center; }
.loader__logo { margin: 0 auto 22px; transform: scale(0); }
.loader__word { display: flex; justify-content: center; overflow: hidden; padding-bottom: 6px; font: 400 clamp(56px, 12vw, 110px)/1 var(--f-display); }
.loader__word span { display: inline-block; transform: translateY(110%); }
.loader__meta {
  width: 100%; margin-top: 26px; display: flex; justify-content: space-between; align-items: baseline;
  font: 600 12px/1.3 var(--f-mono); letter-spacing: .48px; text-transform: uppercase; color: var(--muted);
}
.loader__meta b { font: 400 28px/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.loader__bar { width: 100%; margin-top: 12px; height: 10px; border: 2px solid var(--ink); background: var(--white); box-shadow: 3px 3px 0 var(--ink); overflow: hidden; }
.loader__bar i {
  display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan) 0 25%, var(--yellow) 25% 50%, var(--pink) 50% 75%, var(--green) 75% 100%);
}
.loader__skip { margin-top: 16px; font: 600 11px/1.3 var(--f-mono); letter-spacing: .44px; text-transform: uppercase; color: var(--muted); opacity: .7; }

/* =========================================================
   CURSOR
   ========================================================= */
/* Figma-style multiplayer tag that trails the real cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 900; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor__dot { position: absolute; left: 14px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transition: transform .35s var(--ease-out); }
.cursor__tag { position: absolute; left: 22px; top: 24px; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--white); font: 600 11px/1.2 var(--f-mono); letter-spacing: .44px; text-transform: uppercase; white-space: nowrap; transition: opacity .25s, transform .35s var(--ease-out); }
.cursor__view {
  position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font: 400 13px/1 var(--f-display); text-transform: uppercase;
  opacity: 0; transform: scale(.3); transition: opacity .25s, transform .4s var(--ease-out);
}
.cursor.is-view .cursor__view { opacity: 1; transform: scale(1); }
.cursor.is-view .cursor__dot, .cursor.is-view .cursor__tag { opacity: 0; transform: scale(.4); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* =========================================================
   BACKGROUND
   ========================================================= */
.bg { position: absolute; inset: 0 0 auto 0; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.bg__grid {
  position: absolute; inset: 0;
  left: 50%; width: 1201px; transform: translateX(-50%);
  background-image:
    linear-gradient(to right, rgba(20,20,20,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20,20,20,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.bg__guide { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(20,20,20,.12); }
.bg__guide--l { left: calc(50% - 536px); }
.bg__guide--r { left: calc(50% + 535px); }
.glow {
  position: absolute;
  left: calc(50% - 600px + var(--x) - var(--s) * var(--in));
  top: calc(var(--y) - var(--s) * var(--in));
  width: calc(var(--s) * (1 + 2 * var(--in)));
  height: calc(var(--s) * (1 + 2 * var(--in)));
  max-width: none;
  will-change: transform;
}

main, .nav { position: relative; z-index: 1; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font: 400 14px/1.2 var(--f-display); text-transform: uppercase; white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s;
  will-change: transform;
}
.btn--talk { background: var(--white); border: 2px solid var(--ink); padding: 9px 16px; box-shadow: 4px 4px 0 var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); padding: 12px 18px 12px 12px; }
.btn--light { background: var(--white); border: 1px solid var(--ink); padding: 12px 18px; box-shadow: 3px 3px 0 var(--ink); }
.btn--pink { background: var(--pink); color: var(--white); border: 1px solid var(--ink); padding: 14px 22px; box-shadow: 4px 4px 0 var(--ink); }
.btn__icon { display: grid; place-items: center; width: 24px; height: 24px; background: var(--cyan); color: var(--ink); transition: transform .4s var(--ease-back); }
.btn--dark:hover .btn__icon { transform: translateY(3px); }
.btn--talk:hover, .btn--light:hover, .btn--pink:hover { box-shadow: 6px 6px 0 var(--ink); }
.btn--talk:active, .btn--light:active, .btn--pink:active { box-shadow: 0 0 0 var(--ink); }
.btn--dark:hover { background: #000; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(251,251,249,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: transform .5s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { position: relative; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: 10px; padding-right: 20px; font: 400 16px/1.2 var(--f-display); }
.nav__logo img { transition: transform .6s var(--ease-back); }
.nav__logo:hover img { transform: rotate(-14deg) scale(1.08); }
.nav__links { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 6px; }
.nav__links a { position: relative; z-index: 1; padding: 7px 12px; font: 600 12px/1.3 var(--f-mono); letter-spacing: .48px; text-transform: uppercase; }
.nav__pill { position: absolute; z-index: 0; top: 0; left: 0; height: 100%; background: var(--cyan); transition: transform .45s var(--ease-out), width .45s var(--ease-out); }
.nav__burger { display: none; width: 40px; height: 40px; border: 2px solid var(--ink); background: var(--white); box-shadow: 3px 3px 0 var(--ink); position: relative; }
.nav__burger i { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: .35s var(--ease-out); }
.nav__burger i:first-child { top: 14px; } .nav__burger i:last-child { top: 21px; }
.nav.is-open .nav__burger i:first-child { top: 17px; transform: rotate(45deg); }
.nav.is-open .nav__burger i:last-child { top: 17px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 180px var(--gutter) 80px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__eyebrow { padding-bottom: 4px; }
.hero__name-wrap { position: relative; width: 746.25px; height: 171px; margin-top: 5px; transform: translateX(-32px); }
.hero__name { position: absolute; inset: 0; border: 1px solid var(--cyan); padding: 18px 28px; display: flex; justify-content: center; }
.hero__title { font: 400 140px/133px var(--f-display); white-space: nowrap; display: flex; overflow: hidden; padding: 0 2px; }
.hero__title .char { display: inline-block; will-change: transform; transition: color .3s; }
.hero__title .char:hover { color: var(--pink); }
.handle { position: absolute; width: 12px; height: 12px; background: var(--white); border: 1px solid var(--cyan); }
.handle--tl { left: -6px; top: -6px; } .handle--tr { right: -6px; top: -6px; }
.handle--bl { left: -6px; bottom: -6px; } .handle--br { right: -6px; bottom: -6px; }

.sticky, .badge { position: absolute; white-space: nowrap; transform: rotate(var(--r)); will-change: transform; }
.sticky { font: 500 13px/1.3 var(--f-sans); padding: 7px 14px; box-shadow: 0 2px 3px rgba(0,0,0,.08); }
.sticky--mint { background: var(--mint); left: -16px; top: -34px; }
.sticky--butter { background: var(--butter); left: 622px; top: -27px; }
.badge { font: 400 14px/1.2 var(--f-display); text-transform: uppercase; padding: 8px 16px; border: 1px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); }
.badge--pink { background: var(--pink); color: var(--white); left: 730px; top: 98px; }
.badge--yellow { background: var(--yellow); left: -108px; top: 178px; }

.hero__status { display: flex; align-items: center; gap: 8px; padding-top: 22px; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 4px; background: var(--cyan); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--cyan); animation: pulse 1.8s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }

.hero__copy { padding-top: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero__role { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; font: 500 20px/1.3 var(--f-sans); color: var(--muted); }
.hero__highlights { display: flex; align-items: center; gap: 14px; padding-top: 6px; }
.hl {
  display: inline-block; font: 500 48px/1.18 var(--f-sans); letter-spacing: -0.48px;
  padding: 2px 16px 4px; border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(var(--r));
  transition: transform .5s var(--ease-back), box-shadow .3s;
}
.hl:hover { transform: rotate(0deg) scale(1.04); box-shadow: 7px 7px 0 var(--ink); }
.hl--cyan { background: var(--cyan); }
.hl--yellow { background: var(--yellow); }
.hero__sub { width: min(520px, 100%); padding-top: 16px; }
.hero__ctas { display: flex; gap: 12px; justify-content: center; padding-top: 32px; }
.hero__based { padding-top: 20px; }

.line-mask { display: inline-block; overflow: hidden; vertical-align: bottom; }
.line-mask > span { display: inline-block; }

/* divider */
.divider { height: 90px; position: relative; overflow: hidden; }
.divider img { position: absolute; left: 0; top: 19.3px; width: 100%; height: 63.2px; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: 120px var(--gutter); display: flex; flex-direction: column; align-items: center; }
.whatsup { position: relative; margin-top: 10px; padding: 4px 10px; background: var(--white); border: 1px solid var(--ink); font: 400 20px/1.5 var(--f-sans); }
.whatsup i { position: absolute; width: 6px; height: 6px; background: var(--ink); }
.whatsup i:first-of-type { left: -4px; top: -4px; } .whatsup i:last-of-type { right: -4px; bottom: -4px; }
.about__row { width: 100%; max-width: var(--container); padding-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.polaroid {
  flex: 0 0 170px; height: 210px; background: var(--white); padding: 10px 10px 32px;
  box-shadow: 0 6px 10px rgba(0,0,0,.12); transform: rotate(var(--r));
  transition: box-shadow .4s;
}
.polaroid:hover { box-shadow: 0 16px 28px rgba(0,0,0,.16); }
.polaroid__img { width: 130px; height: 140px; overflow: hidden; position: relative; }
.polaroid__img img { position: absolute; width: 120.51%; height: 111.9%; left: -6.06%; top: -3.67%; max-width: none; object-fit: cover; }
.polaroid__img--setup img { width: 126.86%; height: 117.8%; left: -25.46%; top: -4.57%; }
.polaroid figcaption { text-align: center; padding-top: 6px; }
.about__heading { flex: 0 1 720px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.about__line { display: flex; align-items: center; gap: 10px; overflow: hidden; white-space: nowrap; }
.about__line > span { display: inline-block; }
.shape { flex: none; width: 38.39px; height: 38.39px; display: inline-block; }
.shape--cyan { background: var(--cyan); }
.shape--yellow { background: var(--yellow); }
.shape--pink { background: var(--pink); }
.shape--round { border-radius: 50%; }

.chips { padding-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 11px; }
.chips__row { display: flex; gap: 16px; justify-content: center; }
.chips__row:first-child { transform: translateX(-12px); }
.chip { display: inline-flex; font: 500 20px/1.3 var(--f-sans); transition: transform .4s var(--ease-back); }
.chip:hover { transform: translateY(-4px) rotate(-1.5deg); }
.chip b { font-weight: 500; padding: 6px 12px; }
.chip i { width: 36px; background: var(--ink); display: grid; place-items: center; }
.chip s { display: block; width: 12px; height: 12px; background: var(--c); transition: transform .6s var(--ease-back); }
.chip--yellow { --c: var(--yellow); } .chip--yellow b { background: var(--yellow); }
.chip--green { --c: var(--green); } .chip--green b { background: var(--green); }
.chip--pink { --c: var(--pink); } .chip--pink b { background: var(--pink); color: var(--white); }
.chip--cyan { --c: var(--cyan); } .chip--cyan b { background: var(--cyan); }
.chip .circle { border-radius: 6px; }
.chip .pill { width: 14px; height: 8px; border-radius: 5.3px; }
.chip .diamond { transform: rotate(45deg); }
.about__text { padding-top: 56px; display: grid; grid-template-columns: 410px 410px; gap: 20px 40px; color: var(--ink-soft); }

/* =========================================================
   SECTION HEAD
   ========================================================= */
.section-head { display: flex; flex-direction: column; align-items: center; }
.section-head .display-l { padding-top: 4px; }
.split-char { display: inline-block; will-change: transform; }
.split-wrap { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: 0 var(--gutter) 140px; }
.services__grid { max-width: var(--container); margin: 48px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  background: var(--white); border: 1px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  min-height: 270px; padding: 24px; display: flex; flex-direction: column; gap: 40px;
  transition: translate .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.card:hover { translate: -4px -4px; box-shadow: 9px 9px 0 var(--ink); }
.card__top { display: flex; justify-content: space-between; align-items: center; }
.num { background: var(--ink); color: var(--white); padding: 4px 8px; font: 400 14px/1.2 var(--f-display); }
.card__sq { width: 22px; height: 22px; background: var(--c); transition: transform .7s var(--ease-back), border-radius .5s; }
.card:hover .card__sq { transform: rotate(135deg) scale(1.25); border-radius: 50%; }
.card h3 { margin-bottom: 8px; }
.card p { max-width: 297px; }

/* =========================================================
   WORKS
   ========================================================= */
.works { padding: 0 var(--gutter) 140px; }
.note { margin-top: 30px; width: 292px; background: var(--butter); padding: 10px 16px; text-align: center; font: 400 14px/1.4 var(--f-sans); box-shadow: 0 2px 3px rgba(0,0,0,.08); }
.works__list { max-width: var(--container); margin: 64px auto 0; display: flex; flex-direction: column; gap: 56px; }
.project { color: var(--fg); }
.project__tab { display: flex; }
.project__tab--center { justify-content: center; }
.project__tab--right { justify-content: flex-end; }
.project__tab span { background: var(--bg); padding: 10px 56px 8px; border-radius: 8px 8px 0 0; font: 600 11px/1.3 var(--f-mono); letter-spacing: .44px; }
.project__body { position: relative; display: grid; grid-template-columns: 1fr 500px; gap: 24px; padding: 24px; background: var(--bg); cursor: none; }
@media (hover: none) { .project__body { cursor: pointer; } }
.project__info { padding: 8px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.project__info > div:first-child { display: flex; flex-direction: column; gap: 10px; }
.project__kicker { display: flex; align-items: center; gap: 8px; }
.project__kicker i { width: 6px; height: 6px; border-radius: 3px; background: currentColor; }
.project__name { white-space: nowrap; }
.project__link { padding-top: 8px; }
.project__link span:last-child { display: inline-block; transition: transform .4s var(--ease-back); }
.project__body:hover .project__link span:last-child { transform: translate(3px, -3px) rotate(45deg); }
.project__tags { display: flex; gap: 8px; }
.project__tags span { background: var(--chip-bg); color: var(--chip-fg); padding: 9px 10px 6px; font: 600 11px/1.3 var(--f-mono); letter-spacing: .44px; }
.project__media { position: relative; height: 375.5px; border: 1px solid currentColor; }
.corner { position: absolute; width: 7px; height: 7px; background: currentColor; z-index: 2; transition: transform .4s var(--ease-out); }
.corner.tl { left: -4px; top: -4px; } .corner.tr { right: -4px; top: -4px; }
.corner.bl { left: -4px; bottom: -4px; } .corner.br { right: -4px; bottom: -4px; }
.project__body:hover .corner.tl { transform: translate(-4px, -4px); }
.project__body:hover .corner.tr { transform: translate(4px, -4px); }
.project__body:hover .corner.bl { transform: translate(-4px, 4px); }
.project__body:hover .corner.br { transform: translate(4px, 4px); }
.project__slot { position: absolute; inset: 6px; background: var(--gray); overflow: hidden; }
.project__slot img { position: absolute; left: 0; top: -1.25px; width: 100%; height: calc(100% + 2.5px); object-fit: cover; transform: scale(1.12); transition: transform 1.1s var(--ease-out); will-change: transform; }
.project__body:hover .project__slot img { transform: scale(1.18); }
.project__file { position: absolute; right: 7px; top: 14px; z-index: 2; background: var(--white); color: var(--ink); padding: 4px 8px; font: 600 10px/1.3 var(--f-mono); letter-spacing: .4px; }
.works__more { display: flex; justify-content: center; padding-top: 56px; }

/* =========================================================
   PROCESS
   ========================================================= */
.process { padding: 0 var(--gutter) 140px; }
.process__grid { position: relative; max-width: var(--container); margin: 48px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-bottom: 30px; }
.process__line { position: absolute; left: 60px; top: 153px; width: 952px; border-top: 2px dashed var(--ink); transform-origin: left; z-index: 0; }
.step {
  position: relative; z-index: 1; height: 288px; padding: 32px; border: 2.5px solid var(--ink); border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; justify-content: space-between;
  transform: rotate(var(--r)); transition: translate .5s var(--ease-back), box-shadow .3s;
}
.step:hover { translate: 0 -8px; box-shadow: 10px 10px 0 var(--ink); }
.step--butter { background: var(--butter); }
.step--mint { background: var(--mint); }
.step--sky { background: var(--sky); }
.step__top { display: flex; justify-content: space-between; align-items: center; }
.step__icon { width: 44px; height: 44px; border-radius: 999px; background: var(--ink); color: var(--white); display: grid; place-items: center; font: 600 20px/1 var(--f-sans); transition: transform .6s var(--ease-back); }
.step:hover .step__icon { transform: rotate(-45deg) scale(1.1); }
.step--sky:hover .step__icon { transform: scale(1.15); }
.step .mono-s { margin-bottom: 8px; }
.step .h3 { margin-bottom: 8px; }
.tape { position: absolute; left: 50%; top: -18px; width: 88px; height: 26px; margin-left: -44px; background: rgba(255,255,255,.92); border: 1px solid var(--ink); transform: rotate(var(--tr)); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: 0 var(--gutter) 40px; }
.contact__row { max-width: var(--container); margin: 0 auto; display: flex; gap: 96px; align-items: center; justify-content: center; }
.mascot-wrap { flex: 0 0 220px; height: 220px; }
.mascot { position: relative; width: 220px; height: 220px; transform: rotate(6deg); }
.mascot > * { position: absolute; }
.mascot__shadow { left: 22px; top: 22px; width: 196px; height: 196px; border-radius: 40px; background: var(--ink); }
.mascot__body { left: 8px; top: 8px; width: 196px; height: 196px; border-radius: 40px; border: 3px solid var(--ink); background: linear-gradient(180deg, #6bd999, #33ad6b); }
.mascot__shine { left: 36px; top: 24px; width: 120px; height: 14px; border-radius: 8px; background: var(--white); }
.mascot__antenna { left: 104px; top: -16px; width: 4px; height: 26px; background: var(--ink); transform-origin: bottom center; }
.mascot__ball { left: 95px; top: -34px; }
.mascot__eye--l { left: 62px; top: 66px; } .mascot__eye--r { left: 122px; top: 66px; }
.mascot__pupil { width: 22px; height: 28px; will-change: transform; }
.mascot__pupil--l { left: 74px; top: 80px; } .mascot__pupil--r { left: 134px; top: 80px; }
.mascot__pupil img { position: absolute; left: 0; top: 0; }
.mascot__pupil .mascot__hi { left: 10px; top: 4px; }
.mascot__cheek--l { left: 40px; top: 124px; } .mascot__cheek--r { left: 154px; top: 124px; }
.mascot__smile { left: 86px; top: 108px; width: 40px; height: 40px; }
.mascot__smile img { position: absolute; left: 1.2px; top: 25.35px; width: 37.6px; height: 14.65px; }
.mascot__bubble { left: 152px; top: -14px; transform: rotate(10deg); background: var(--cyan); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); padding: 8px 14px; font: 400 15px/normal var(--f-display); white-space: nowrap; }
.sparkle--1 { left: -22px; top: 40px; } .sparkle--2 { left: 214px; top: 150px; } .sparkle--3 { left: -8px; top: 176px; }
.contact__info { flex: 0 1 520px; display: flex; flex-direction: column; gap: 16px; }
.contact__info .display-l { text-align: left; white-space: nowrap; }
.contact__links { padding-top: 6px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ulink { font: 500 20px/1.3 var(--f-sans); background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 2px no-repeat; transition: background-size .45s var(--ease-out); }
.ulink:hover { background-size: 100% 2px; }
.contact__social { display: flex; gap: 8px; }
.tag-link { background: var(--ink); color: var(--white); padding: 7px 12px; font: 600 12px/1.3 var(--f-mono); letter-spacing: .48px; transition: background .25s, color .25s, transform .3s var(--ease-back); }
.tag-link:hover { background: var(--cyan); color: var(--ink); transform: translateY(-3px); }

.mega-wrap { max-width: var(--container); margin: 0 auto; padding: 96px 16px; display: flex; justify-content: center; }
.mega {
  display: flex; align-items: center; gap: 14px; padding: 12px;
  background: var(--cyan); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s;
}
.mega:hover { transform: translate(-4px, -4px); box-shadow: 10px 10px 0 var(--ink); background: var(--yellow); }
.mega__box { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: var(--pink); border: 2px solid var(--ink); color: var(--white); font: 400 20px/1.5 var(--f-sans); transition: transform .5s var(--ease-back); }
.mega:hover .mega__box:last-child { transform: translateX(6px) rotate(-10deg); }
.mega:hover .mega__box:first-child { transform: rotate(-12deg) scale(1.08); }
.mega__text { width: 560px; overflow: hidden; font: 400 56px/56px var(--f-display); white-space: nowrap; }
.mega__track { display: inline-flex; }
.mega__track span { padding-right: 0; }
.mega__track span + span { display: none; }
.mega:hover .mega__track { animation: marquee 2.2s linear infinite; }
.mega:hover .mega__track span + span { display: inline; padding-left: 48px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 24px)); } }

.footer { max-width: var(--container); margin: 0 auto; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; }
.footer__top { transition: color .2s; }
.footer__top:hover { color: var(--ink); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .hero__name-wrap { transform: translateX(0) scale(.86); transform-origin: center top; margin-bottom: -24px; }
  .about__row { flex-wrap: wrap; justify-content: center; gap: 28px; }
  .about__heading { order: -1; flex-basis: 100%; }
  .project__body { grid-template-columns: 1fr 1fr; }
  .process__line { display: none; }
  .contact__row { gap: 56px; }
}

@media (max-width: 860px) {
  .nav__links, .nav .btn--talk { display: none; }
  .nav__burger { display: block; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: fixed; left: 0; right: 0; top: 61px; transform: none;
    background: var(--paper); border-bottom: 2px solid var(--ink); padding: 16px var(--gutter) 24px; gap: 4px;
  }
  .nav.is-open .nav__links a { font-size: 16px; padding: 12px; }
  .nav.is-open .nav__pill { display: none; }

  .hero { padding-top: 140px; }
  .hero__name-wrap { width: 100%; max-width: 560px; height: auto; transform: none; margin: 40px 0 0; }
  .hero__name { position: relative; padding: 14px 10px; }
  .hero__title { font-size: clamp(54px, 15vw, 104px); line-height: .95; }
  .sticky--mint { left: -6px; top: -32px; }
  .sticky--butter { left: auto; right: -6px; top: -28px; }
  .badge--pink { left: auto; right: -12px; top: auto; bottom: -22px; }
  .badge--yellow { left: -10px; top: auto; bottom: -26px; }
  .hero__status { padding-top: 40px; }
  .hero__copy { padding-top: 48px; }
  .h1, .hl { font-size: clamp(30px, 7.4vw, 48px); }
  .hero__highlights { gap: 10px; flex-wrap: wrap; justify-content: center; }
  .hero__line { white-space: normal; }

  .display-l { font-size: clamp(48px, 13vw, 88px); line-height: .96; }
  .display-m { font-size: 44px; line-height: 44px; }
  .about__line { white-space: normal; justify-content: center; flex-wrap: wrap; }
  .about__heading { gap: 2px; }
  .shape { width: 26px; height: 26px; }
  .chips__row { flex-wrap: wrap; }
  .chips__row:first-child { transform: none; }
  .chip { font-size: 17px; }
  .about__text { grid-template-columns: 1fr; max-width: 520px; }

  .services__grid { grid-template-columns: 1fr; }
  .card { min-height: 220px; }

  .project__body { grid-template-columns: 1fr; padding: 16px; }
  .project__media { height: auto; aspect-ratio: 500 / 375.5; order: -1; }
  .project__tab span { padding: 10px 24px 8px; }
  .project__name { white-space: normal; }

  .process__grid { grid-template-columns: 1fr; gap: 44px; max-width: 420px; }
  .step { height: auto; min-height: 250px; gap: 32px; }

  .contact__row { flex-direction: column; gap: 56px; text-align: left; }
  .contact__info { width: 100%; }
  .contact__info .display-l { white-space: normal; }
  .mega-wrap { padding: 72px 0; }
  .mega { width: 100%; justify-content: space-between; }
  .mega__text { width: auto; flex: 1; font-size: clamp(24px, 7.4vw, 56px); line-height: 1.02; white-space: normal; text-align: center; }
  .mega:hover .mega__track { animation: none; }
  .mega:hover .mega__track span + span { display: none; }
  .footer { flex-direction: column; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .hero__ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 300px; }
  .hero__ctas .btn { justify-content: center; }
  .polaroid { flex-basis: 140px; height: 180px; padding: 8px 8px 28px; }
  .polaroid__img { width: 124px; height: 120px; }
  .mega__box { width: 36px; height: 36px; }
  .mascot-wrap { transform: scale(.85); }
}

/* Reduced motion: keep it calm */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   FIGMA-STYLE POINTER on stickers
   ========================================================= */
.pointer { position: absolute; width: 18px; height: 18px; color: var(--ink); background: currentColor; clip-path: polygon(0 0, 100% 45%, 52% 55%, 38% 100%); filter: drop-shadow(1px 1px 0 var(--ink)); pointer-events: none; }
.sticky .pointer, .badge .pointer { right: -14px; bottom: -14px; transform: rotate(180deg); }
.sticky--mint .pointer { color: var(--green); right: auto; left: -14px; bottom: auto; top: -12px; transform: none; }
.sticky--butter .pointer { color: var(--yellow); }
.badge--pink .pointer { color: var(--pink); right: auto; bottom: auto; left: -16px; top: -14px; transform: none; }
.badge--yellow .pointer { color: var(--yellow); }

/* =========================================================
   INNER PAGES (contact / 404)
   ========================================================= */
.hero--page { position: relative; padding-bottom: 40px; }
.hero__intro { width: min(540px, 100%); padding-top: 26px; }
.footer--page { padding: 24px var(--gutter) 40px; max-width: calc(var(--container) + 2 * var(--gutter)); }
.h2 { font: 600 28px/1.25 var(--f-sans); letter-spacing: -0.28px; }
.tag { display: inline-block; padding: 8px 12px; font: 600 11px/1 var(--f-mono); letter-spacing: .44px; }
.tag--cyan { background: var(--cyan); }

/* form + info */
.brief { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) 100px; display: grid; grid-template-columns: 640px 1fr; gap: 32px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.form-card__head { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 10px; border: 0; min-width: 0; }
.field__label { font: 600 11px/1.2 var(--f-mono); letter-spacing: .44px; text-transform: uppercase; padding: 0; }
legend.field__label { margin-bottom: 10px; }
.input {
  width: 100%; height: 48px; padding: 0 16px; background: var(--white); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 0; font: 400 15px/1.4 var(--f-sans);
  transition: box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
.input::placeholder { color: #999994; }
.input:focus { outline: none; box-shadow: 4px 4px 0 var(--cyan); transform: translate(-2px, -2px); }
.input--area { height: 140px; padding: 14px 16px; resize: vertical; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick__chip {
  padding: 9px 14px; border: 1.5px solid var(--ink); background: var(--white);
  font: 500 14px/1.2 var(--f-sans); color: var(--ink);
  transition: background .2s, box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
.pick__chip:hover { transform: translateY(-2px); }
.pick__chip[aria-pressed="true"] { box-shadow: 3px 3px 0 var(--ink); }
.pick__chip--cyan[aria-pressed="true"] { background: var(--cyan); }
.pick__chip--yellow[aria-pressed="true"] { background: var(--yellow); }
.pick__chip:focus-visible, .faq__q:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.form-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-submit .btn { cursor: pointer; }
.form__status { min-height: 1.2em; font: 500 14px/1.4 var(--f-sans); }
.form__status.is-error { color: var(--pink); }
.form__status.is-ok { color: #1f8a52; }

.info { display: flex; flex-direction: column; gap: 20px; }
.info__list { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--white);
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
a.info-card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }
.info-card--cyan { background: var(--cyan); }
.info-card__icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: var(--c); border: 2px solid var(--ink); font: 500 20px/1 var(--f-sans); }
.info-card > span:last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.info-card b { font: 500 19px/1.3 var(--f-sans); overflow-wrap: anywhere; }
.info-card small { font: 400 14px/1.5 var(--f-sans); color: var(--muted); }
.info-card--cyan small { color: var(--ink-soft); }
.info__social { display: flex; flex-direction: column; gap: 12px; }
.psst { align-self: flex-start; margin: 8px 0 0 12px; width: 340px; max-width: 100%; padding: 18px 20px; background: #ffe68d; box-shadow: 0 2px 6px rgba(0,0,0,.08); transform: rotate(3deg); font: 700 26px/1.1 var(--f-script); }

/* FAQ */
.faq { padding: 0 var(--gutter) 100px; }
.faq__list { max-width: 860px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 16px; }
.faq__item { background: var(--white); border: 1px solid var(--ink); transition: box-shadow .35s var(--ease-out); }
.faq__item.is-open { box-shadow: 5px 5px 0 var(--ink); }
.faq__q { width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 24px; text-align: left; cursor: pointer; }
.faq__title { flex: 1; font: 600 20px/1.25 var(--f-sans); }
.faq__toggle { position: relative; flex: none; width: 30px; height: 30px; border: 1.5px solid var(--ink); background: var(--yellow); transition: background .25s, transform .4s var(--ease-out); }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; margin: -.8px 0 0 -5px; background: var(--ink); transition: transform .35s var(--ease-out); }
.faq__toggle::after { transform: rotate(90deg); }
.faq__item.is-open .faq__toggle { background: var(--cyan); }
.faq__item.is-open .faq__toggle::after { transform: rotate(0deg); }
.faq__q:hover .faq__toggle { transform: rotate(90deg); }
.faq__a { height: 0; overflow: hidden; transition: height .4s var(--ease-out); }
.faq__a p { padding: 0 24px 22px; }

/* 404 */
.hero--404 { padding-top: 170px; }
.hero__name-wrap--404 { height: 208px; }
.hero__title--404 { font-size: 180px; line-height: 170px; }
.badge--lost { left: -102px; top: 200px; }
.hero__highlights--404 { padding-top: 64px; gap: 14px; }
.hero--404 .hero__sub { padding-top: 22px; }
.quick { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding-top: 28px; }
.quick__link { background: var(--white); border: 1px solid var(--ink); padding: 7px 12px; font: 600 12px/1.2 var(--f-mono); letter-spacing: .48px; transition: background .2s, transform .25s var(--ease-out); }
.quick__link:hover { background: var(--cyan); transform: translateY(-2px); }
.mascot-wrap--404 { position: absolute; left: calc(50% + 318px); top: 419px; }
.mascot--sad { transform: rotate(8deg); }
.mascot--sad .mascot__smile { left: 90px; top: 126px; transform: rotate(180deg); }
.mascot--sad .mascot__bubble { left: 150px; top: -14px; }

@media (max-width: 1100px) {
  .brief { grid-template-columns: 1fr; max-width: 720px; }
  .mascot-wrap--404 { position: relative; left: auto; top: auto; margin-top: 64px; }
}
@media (max-width: 860px) {
  .hero__name-wrap--404 { height: auto; }
  .hero__title--404 { font-size: clamp(96px, 30vw, 180px); line-height: .95; }
  .badge--lost { left: -10px; top: auto; bottom: -26px; }
  .hero__highlights--404 { padding-top: 56px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .faq__q { padding: 18px 16px; gap: 12px; }
  .faq__title { font-size: 17px; }
  .faq__a p { padding: 0 16px 18px; }
  .psst { width: calc(100% - 28px); font-size: 22px; }
  .pointer { display: none; }
  .cursor { display: none; }
  .footer--page { flex-direction: column; }
}

/* little icon tiles keep moving (alive, but slow) */
.chip .sq { animation: spin 6s linear infinite; }
.chip .circle { animation: breathe 2.4s ease-in-out infinite; }
.chip .pill { animation: wobble 2.8s ease-in-out infinite; }
.chip .diamond { animation: spin45 5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin45 { from { transform: rotate(45deg); } to { transform: rotate(405deg); } }
@keyframes breathe { 50% { transform: scale(.65); } }
@keyframes wobble { 25% { transform: rotate(-18deg) scaleX(1.2); } 75% { transform: rotate(18deg) scaleX(.8); } }
.chip:hover s { animation-duration: 1s; }

/* =========================================================
   PREMIUM HOVER LAYER
   Every button: a colour fill sweeps in from the left, the hard
   shadow grows, the icon nudges. Leaving sweeps it out to the right.
   (transforms on .btn itself are left free for the magnetic effect)
   ========================================================= */
.btn { isolation: isolate; overflow: hidden; --sweep: var(--yellow); --sweep-ink: var(--ink); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sweep);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .5s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left center; }
.btn:hover { color: var(--sweep-ink); }
.btn--dark { --sweep: var(--cyan); }
.btn--dark:hover { background: var(--ink); }
.btn--dark:hover .btn__icon { background: var(--ink); color: var(--white); transform: rotate(-90deg) scale(1.05); }
.btn--dark .btn__icon { transition: transform .45s var(--ease-back), background .3s, color .3s; }
.btn--light, .btn--talk { --sweep: var(--yellow); }
.btn--pink { --sweep: var(--ink); --sweep-ink: var(--white); }
.btn--talk:hover, .btn--light:hover, .btn--pink:hover { box-shadow: 7px 7px 0 var(--ink); }
.btn--dark { box-shadow: 0 0 0 var(--ink); transition: box-shadow .3s var(--ease-out), color .3s; }
.btn--dark:hover { box-shadow: 5px 5px 0 var(--pink); }
.btn:active { box-shadow: 0 0 0 var(--ink) !important; }
/* the label rides above the sweep */
.btn { transition: box-shadow .3s var(--ease-out), color .3s .05s, background .3s; }

/* small link-chips get a mini version */
.tag-link, .quick__link { position: relative; isolation: isolate; overflow: hidden; }
.tag-link::before, .quick__link::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cyan);
  transform: translateY(101%); transition: transform .35s var(--ease-out);
}
.tag-link:hover::before, .quick__link:hover::before { transform: translateY(0); }
.tag-link:hover { background: var(--ink); color: var(--ink); }
.quick__link:hover { background: var(--white); }
.pick__chip { position: relative; }
.pick__chip:hover { box-shadow: 3px 3px 0 var(--ink); }

/* nav links: underline that draws from the left */
.nav__links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-active::after { display: none; }

/* =========================================================
   SECTION EFFECTS
   ========================================================= */
/* scroll progress (top) — in the brand stripes */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan) 0 25%, var(--yellow) 25% 50%, var(--pink) 50% 75%, var(--green) 75% 100%); }

/* back to top pill */
.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 55; width: 48px; height: 48px;
  display: grid; place-items: center; background: var(--white); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font: 600 18px/1 var(--f-sans); cursor: pointer;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease-out), box-shadow .25s, background .25s;
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--yellow); box-shadow: 5px 5px 0 var(--ink); }
.totop:hover span { animation: bob .6s var(--ease-out); }
@keyframes bob { 40% { transform: translateY(-5px); } }

/* hero: the grid lights up softly around the mouse */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .5s;
  background-image:
    linear-gradient(to right, rgba(54,197,240,.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(54,197,240,.35) 1px, transparent 1px);
  background-size: 40px 40px; background-position: calc(50% - 600px) 0;
  -webkit-mask-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 70%);
          mask-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 70%);
}
.hero.is-lit::before { opacity: 1; }
main { position: relative; z-index: 1; }

/* service cards: cursor spotlight + colour wash from the corner square */
.card { position: relative; overflow: hidden; isolation: isolate; }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c, var(--cyan)) 22%, transparent), transparent 70%);
}
.card:hover::before { opacity: 1; }
.card:has(.card__sq[style*="--yellow"]) { --c: var(--yellow); }
.card:has(.card__sq[style*="--green"]) { --c: var(--green); }
.card:has(.card__sq[style*="--pink"]) { --c: var(--pink); }
.card:has(.card__sq[style*="--cyan"]) { --c: var(--cyan); }
.card::after {
  content: "→"; position: absolute; right: 24px; bottom: 20px; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1.5px solid var(--ink); background: var(--c, var(--cyan)); font: 600 20px/1 var(--f-sans);
  opacity: 0; transform: translate(-10px, 10px) rotate(-45deg); transition: opacity .3s, transform .45s var(--ease-back);
}
.card:hover::after { opacity: 1; transform: none; }
.card h3 { transition: transform .4s var(--ease-out); }
.card:hover h3 { transform: translateX(6px); }

/* projects: whole block lifts with a hard shadow, tag slides */
.project__body { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.project:hover .project__body { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--ink); }
.project__tab span { transition: padding .45s var(--ease-out); }
.project:hover .project__tab span { padding-left: 72px; padding-right: 72px; }
.project__tags span { transition: transform .35s var(--ease-back); }
.project:hover .project__tags span:nth-child(1) { transform: rotate(-4deg) translateY(-3px); }
.project:hover .project__tags span:nth-child(2) { transform: rotate(3deg) translateY(-3px); }

/* process: tape peels a bit, number pops */
.tape { transition: transform .45s var(--ease-back); }
.step:hover .tape { transform: rotate(calc(var(--tr) * -2)) translateY(-4px); }
.step .display-m { display: inline-block; transition: transform .45s var(--ease-back); }
.step:hover .display-m { transform: scale(1.12) rotate(-4deg); }

/* about: shapes spin, highlights wiggle */
.shape { transition: transform .6s var(--ease-back), border-radius .4s; }
.about__line:hover .shape { transform: rotate(180deg) scale(1.15); }
.whatsup { transition: transform .4s var(--ease-back); }
.whatsup:hover { transform: rotate(-3deg) scale(1.06); }

/* contact: mascot reacts, info icons tilt, faq hover */
.mascot { cursor: pointer; }
.info-card__icon { transition: transform .45s var(--ease-back); }
.info-card:hover .info-card__icon { transform: rotate(-10deg) scale(1.1); }
.faq__item:not(.is-open):hover { box-shadow: 3px 3px 0 var(--ink); }
.faq__item:not(.is-open):hover .faq__title { color: var(--ink-soft); }
.footer__top:hover { color: var(--ink); }

@media (hover: none) {
  .card::after { display: none; }
  .project:hover .project__body { transform: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .hero::before { display: none; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-submit .btn[disabled] { opacity: .7; cursor: progress; }

/* =========================================================
   MULTIPLAYER CURSOR TAGS (services + process)
   ========================================================= */
.ctag { position: absolute; z-index: 3; display: inline-flex; pointer-events: none; will-change: transform; }
.ctag .pointer { position: relative; left: 0; top: 0; right: auto; bottom: auto; transform: none; color: var(--c); width: 18px; height: 18px; flex: none; }
.ctag b { margin: 14px 0 0 -4px; padding: 4px 9px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--c); box-shadow: 2px 2px 0 var(--ink); font: 600 11px/1.2 var(--f-mono); letter-spacing: .44px; text-transform: uppercase; white-space: nowrap; }
.card .ctag { right: 90px; bottom: 70px; }
.step .ctag { right: 70px; top: 120px; }

/* =========================================================
   WORKS — sticky stacking deck (desktop)
   ========================================================= */
@media (min-width: 861px) {
  .works__list { gap: 0; }
  .project { position: sticky; top: 76px; padding-bottom: 64px; transform-origin: 50% 0; }
  .project:last-child { padding-bottom: 0; }
}

/* process line sits behind cards while they fly in */
.process { overflow-x: clip; }
@media (max-width: 860px) {
  .ctag b { font-size: 10px; padding: 3px 7px; }
  .card .ctag { right: 24px; bottom: 24px; }
  .step .ctag { right: 28px; top: 96px; }
  .works__list { gap: 0; }
  .project { position: sticky; top: 64px; padding-bottom: 40px; transform-origin: 50% 0; }
  .project:last-child { padding-bottom: 0; }
}

/* =========================================================
   MOBILE FIXES (audit 22 Oct)
   ========================================================= */
/* nothing may ever make the page wider than the screen
   (cards waiting off-screen for their slide-in used to stretch it) */
html, body { overflow-x: clip; max-width: 100%; }
main, section, .works__list { overflow-x: clip; }
.nav__burger { z-index: 2; cursor: pointer; touch-action: manipulation; }

@media (max-width: 860px) {
  /* ---- hero stickers: tidy corners, never over the name ---- */
  .hero__name-wrap { margin: 48px 0 34px; }
  .hero__name { padding: 12px 8px; }
  .sticky { font-size: 12px; padding: 6px 10px; }
  .badge { font-size: 12px; padding: 7px 12px; }
  .sticky--mint { left: 4px; right: auto; top: -36px; }
  .sticky--butter { left: auto; right: 4px; top: -34px; }
  .badge--yellow, .badge--lost { left: 4px; right: auto; top: auto; bottom: -44px; }
  .badge--pink { left: auto; right: 4px; top: auto; bottom: -42px; }
  .hero__status { padding-top: 40px; }
  .hero--404 .hero__name-wrap { margin-bottom: 40px; }

  /* ---- works deck: each stuck card peeks out 10px under the next one ---- */
  .project { top: calc(60px + var(--i, 0) * 10px); }

  /* ---- services tags sit in the empty top row, not on the text ---- */
  .card .ctag { right: 52px; top: 18px; bottom: auto; }

  /* ---- back-to-top smaller ---- */
  .totop { width: 40px; height: 40px; right: 12px; bottom: 12px; font-size: 16px; }

  /* ---- open menu ---- */
  .nav.is-open .nav__links { box-shadow: 0 8px 0 rgba(20,20,20,.06); }
  .nav.is-open .nav__links a { border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links a:last-child { border-bottom: 0; }
  .nav.is-open .nav__links a::after { display: none; }
}

@media (max-width: 480px) {
  /* "look sharp & convert" stays on one line */
  .hero__highlights { flex-wrap: nowrap; gap: 8px; }
  .hero__highlights .hl, .hero__highlights .h1 { font-size: 7.2vw; }
  .hl { padding: 2px 10px 4px; border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); }
  .hero__line { font-size: 7.6vw; }
  .about__heading.h1 { font-size: 7vw; }
}
