/* Franklyn Raymond · portfolio
   Layout: stacked rounded panels on a warm grey ground (after the reference),
   bold wide display type, quiet neutrals, and colour carried by each project. */

:root {
  --ground: #e2e1dc;
  --panel: #f1f0ec;
  --panel-2: #fafaf8;
  --surface: #ffffff;
  --ink: #141413;
  --ink-2: #74716a;
  --ink-3: #a19e96;
  --line: #e2e0da;
  --btn: #161615;
  --btn-ink: #f8f7f4;
  --focus: #3b6cff;

  --tint-lime: #e1f4c4;
  --tint-lilac: #e6e0ff;
  --tint-sky: #d9eaf7;
  --tint-peach: #ffe3cf;
  --tint-ink-lime: #2f5112;
  --tint-ink-lilac: #3d2c8c;
  --tint-ink-sky: #164a6e;
  --tint-ink-peach: #8a3a0b;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Albert Sans", "Helvetica Neue", Arial, sans-serif;

  --r-xl: clamp(24px, 3.4vw, 40px);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow: 0 1px 0 rgba(20, 20, 19, .04), 0 18px 40px -28px rgba(20, 20, 19, .35);
  --ease: cubic-bezier(.2, .75, .2, 1);
  --wrap: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0b0b0a; --panel: #161615; --panel-2: #1d1d1b; --surface: #242422;
    --ink: #f3f2ee; --ink-2: #94918a; --ink-3: #6a6862; --line: #2c2b28;
    --btn: #f3f2ee; --btn-ink: #141413; --focus: #8aa6ff;
    --tint-lime: #26341a; --tint-lilac: #262046; --tint-sky: #172b3b; --tint-peach: #3a2517;
    --tint-ink-lime: #c6ec97; --tint-ink-lilac: #c9bcff; --tint-ink-sky: #a8d3f2; --tint-ink-peach: #ffc49a;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 18px 40px -28px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0b0b0a; --panel: #161615; --panel-2: #1d1d1b; --surface: #242422;
  --ink: #f3f2ee; --ink-2: #94918a; --ink-3: #6a6862; --line: #2c2b28;
  --btn: #f3f2ee; --btn-ink: #141413; --focus: #8aa6ff;
  --tint-lime: #26341a; --tint-lilac: #262046; --tint-sky: #172b3b; --tint-peach: #3a2517;
  --tint-ink-lime: #c6ec97; --tint-ink-lilac: #c9bcff; --tint-ink-sky: #a8d3f2; --tint-ink-peach: #ffc49a;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 18px 40px -28px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 15px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--ink); color: var(--panel); }

.page {
  max-width: calc(var(--wrap) + 48px);
  margin: 0 auto;
  padding: 16px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left));
  display: grid;
  gap: 12px;
}

/* ---------- project colour (set per project in content.js) ---------- */
[data-p] { --p-bg: var(--pl-bg); --p-ink: var(--pl-ink); }
:root[data-theme="dark"] [data-p] { --p-bg: var(--pd-bg); --p-ink: var(--pd-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) [data-p] { --p-bg: var(--pd-bg); --p-ink: var(--pd-ink); } }

/* plain-HTML copy for search engines; the script replaces it with the full page */
.prerender { max-width: 70ch; margin: 0 auto; padding: 32px 8px; display: grid; gap: 12px; }
.prerender a { text-decoration: underline; }
.js .prerender { display: none; }

/* ---------- panels ---------- */
.panel {
  position: relative;
  background: var(--panel);
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  transition: background-color .4s var(--ease);
}
.panel--light { background: var(--panel-2); }
.panel::after {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .14 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
:root[data-theme="dark"] .panel::after { mix-blend-mode: screen; opacity: .18; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .panel::after { mix-blend-mode: screen; opacity: .18; } }

.inner { padding: clamp(24px, 4.2vw, 60px) clamp(18px, 4.2vw, 60px); }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
.h1 { font-size: clamp(34px, 6vw, 76px); }
.h2 { font-size: clamp(26px, 3.8vw, 48px); }
.h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.025em; line-height: 1.1; }
.soft { color: var(--ink-2); }
.lede { font-size: clamp(15.5px, 1.35vw, 18px); color: var(--ink-2); max-width: 58ch; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
p { margin: 0; }

/* ---------- buttons & chips ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--btn); color: var(--btn-ink);
  font: 600 14px/1 var(--body); white-space: nowrap;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .55);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .55); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg.arrow { transform: translate(2px, -2px); }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.btn--sm { --h: 34px; padding: 0 14px; font-size: 12.5px; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 14px; border-radius: 999px; border: 0;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  font: 600 12.5px/1 var(--body); cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s;
}
.pill:hover { transform: translateY(-1px); }
.pill svg { width: 14px; height: 14px; }

.tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px;
  font: 500 12.5px/1 var(--body); border: 1px solid currentColor; opacity: .85; white-space: nowrap;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: clamp(18px, 2.4vw, 28px) clamp(20px, 3.2vw, 40px) 0;
  position: relative; z-index: 3;
}
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.only-sm { display: none; }
.topbar__email { font-size: 13px; color: var(--ink-2); margin-right: 6px; overflow-wrap: anywhere; }
.links { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; flex-wrap: wrap; }
.links a { padding: 6px 4px; position: relative; }
.links a::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.links a:hover::after { transform: scaleX(1); transform-origin: left; }
.links .sep { color: var(--ink-3); }
.back-link { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.back-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.back-link:hover svg { transform: translateX(-3px); }

/* ---------- hero ---------- */
.hero {
  display: grid; justify-items: center; text-align: center;
  gap: 22px; padding: clamp(40px, 6.5vw, 88px) clamp(18px, 4.5vw, 56px) clamp(48px, 7vw, 96px);
}
.avatar { position: relative; width: 96px; height: 96px; }
.avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  border: 5px solid var(--surface); box-shadow: var(--shadow);
}
.avatar__tag {
  position: absolute; left: 72px; top: 14px; transform: rotate(-9deg); transform-origin: 0 50%;
  background: var(--surface); padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow);
  font: 600 13px/1 var(--body); white-space: nowrap;
}
.role {
  display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px 10px;
  font-size: clamp(14px, 1.3vw, 15.5px); color: var(--ink-2); font-weight: 500;
}
.gmark { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }
.co-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--ink); }
.role .co-link { padding: 5px 12px 5px 8px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); transition: transform .35s var(--ease); }
.role .co-link:hover { transform: translateY(-1px); }
.role .co-link .gmark { width: 20px; height: 20px; transition: transform .8s var(--ease); }
.role .co-link:hover .gmark { transform: rotate(45deg); }
.links .co-link { font-weight: 500; gap: 6px; color: inherit; }
.links .co-link .gmark { width: 15px; height: 15px; }
.lede .co-link { font-weight: 600; border-bottom: 1px solid var(--line); }
.eyebrow--mark::before { display: none; }
.eyebrow--mark .gmark { width: 16px; height: 16px; }
.case-hero__text .eyebrow .gmark { width: 16px; height: 16px; }
.case-hero__text .eyebrow:has(.gmark)::before { display: none; }
.hero .h1 { max-width: 16ch; }
.hero .h1 .w { display: inline-block; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* hero load sequence */
.js .hero .avatar img { animation: pop .9s var(--ease) both; }
.js .hero .avatar__tag { animation: swing 1.1s cubic-bezier(.3, 1.5, .4, 1) .35s both; }
.js .hero .role { animation: rise .8s var(--ease) .25s both; }
.js .hero .h1 .w { animation: word .9s var(--ease) both; animation-delay: calc(.35s + var(--i) * .07s); }
.js .hero .hero__ctas { animation: rise .8s var(--ease) .9s both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes swing { from { transform: rotate(-38deg) scale(.7); opacity: 0; } to { transform: rotate(-9deg); opacity: 1; } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes word { from { transform: translateY(.45em); opacity: 0; filter: blur(8px); } to { transform: none; opacity: 1; filter: none; } }

/* ---------- clients ---------- */
.clients { padding: clamp(28px, 4vw, 44px) 0; display: grid; gap: 22px; }
.clients__label { text-align: center; font-size: 13px; color: var(--ink-2); font-weight: 500; padding: 0 20px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: clamp(48px, 7vw, 96px); padding-right: clamp(48px, 7vw, 96px); }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; flex: none;
  filter: grayscale(1); opacity: .62; transition: filter .45s var(--ease), opacity .45s var(--ease), transform .45s var(--ease);
}
.logo:hover { filter: none; opacity: 1; transform: translateY(-2px); }
.logo img { height: calc(var(--lh, 30px) * .88); width: auto; }
.logo span { font: 700 19px/1 var(--display); font-stretch: 105%; letter-spacing: -.03em; color: var(--ink); }
:root[data-theme="dark"] .logo { filter: grayscale(1) brightness(1.8); }
:root[data-theme="dark"] .logo:hover { filter: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo { filter: grayscale(1) brightness(1.8); }
  :root:not([data-theme="light"]) .logo:hover { filter: none; }
}

/* ---------- section heads ---------- */
.head { display: grid; gap: 18px; max-width: 860px; }
.head--center { justify-items: center; text-align: center; margin: 0 auto; }
.head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }
.divider { position: relative; height: 1px; background: var(--line); margin: clamp(32px, 4vw, 48px) 0 clamp(36px, 4vw, 56px); }
.divider span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg);
  background: var(--surface); box-shadow: var(--shadow); border-radius: 999px; padding: 9px 18px;
  font: 600 13px/1 var(--body); white-space: nowrap;
}

/* ---------- work ---------- */
.filters { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.filters button {
  border: 0; background: transparent; height: 34px; padding: 0 15px; border-radius: 999px; cursor: pointer;
  font: 600 13px/1 var(--body); color: var(--ink-2); transition: background-color .3s, color .3s;
}
.filters button[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 4vw, 44px); }
.work-card {
  position: relative; display: grid; grid-template-rows: auto 1fr;
  border-radius: calc(var(--r-xl) - 8px); background: var(--p-bg); color: var(--p-ink); overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity .4s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .55); }
.work-card[hidden] { display: none; }
.work-card__visual { position: relative; aspect-ratio: 5 / 4; overflow: hidden; }
.work-card__body { display: grid; gap: 12px; padding: 4px clamp(20px, 2.2vw, 30px) clamp(22px, 2.2vw, 30px); align-content: start; }
.work-card__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.work-card__title .year { font-weight: 600; font-size: 13px; opacity: .7; }
.work-card__summary { font-size: 14.5px; opacity: .82; max-width: 52ch; }
.work-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.work-card__cta {
  position: absolute; right: 20px; top: 20px; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--p-ink); color: var(--p-bg);
  transform: scale(.7) rotate(-45deg); opacity: 0; transition: transform .5s var(--ease), opacity .4s;
}
.work-card__cta svg { width: 18px; height: 18px; }
.work-card:hover .work-card__cta, .work-card:focus-visible .work-card__cta { transform: none; opacity: 1; }
.work-card__glow { position: absolute; inset: auto -10% -40% -10%; height: 70%; background: radial-gradient(closest-side, var(--p-accent), transparent); opacity: .45; filter: blur(10px); }

/* device stacks */
.stack { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 9%; }
.phone {
  position: relative; width: 31%; aspect-ratio: 390 / 844; flex: none;
  background: #0d0d0d; padding: 1.6%; border-radius: 13% / 6%;
  box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 11% / 5%; background: #fff; }
.stack .phone { width: 27%; margin: 0 -2.5%; transform-origin: 50% 100%; transition: transform .8s var(--ease); }
.stack .phone:nth-child(1) { transform: rotate(-8deg) translateY(12%); z-index: 1; }
.stack .phone:nth-child(2) { transform: translateY(0); z-index: 2; width: 30%; }
.stack .phone:nth-child(3) { transform: rotate(8deg) translateY(12%); z-index: 1; }
.work-card:hover .stack .phone:nth-child(1) { transform: rotate(-12deg) translate(-8%, 8%); }
.work-card:hover .stack .phone:nth-child(2) { transform: translateY(-4%); }
.work-card:hover .stack .phone:nth-child(3) { transform: rotate(12deg) translate(8%, 8%); }

.browser {
  position: relative; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .06);
}
.browser__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #f1f1f1; border-bottom: 1px solid #e4e4e4; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d7d7d7; }
.browser__bar i:nth-child(1) { background: #ff6159; } .browser__bar i:nth-child(2) { background: #ffbd2e; } .browser__bar i:nth-child(3) { background: #28c941; }
.browser__bar b { flex: 1; margin: 0 10% 0 6%; height: 16px; border-radius: 6px; background: #fff; font: 500 10px/16px var(--body); color: #777; text-align: center; overflow: hidden; white-space: nowrap; }
.browser img { width: 100%; height: auto; }
.web-stack .browser { position: absolute; left: 8%; right: 14%; top: 12%; transition: transform .8s var(--ease); }
.web-stack .phone { position: absolute; width: 22%; right: 7%; bottom: -14%; z-index: 2; transition: transform .8s var(--ease); transform: rotate(4deg); }
.work-card:hover .web-stack .browser { transform: translateY(-3%); }
.work-card:hover .web-stack .phone { transform: rotate(0deg) translateY(-8%); }

/* ---------- graphic design ---------- */
.head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.masonry { columns: 4 220px; column-gap: 14px; margin-top: clamp(24px, 3.5vw, 40px); }
.design {
  position: relative; display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; cursor: zoom-in;
  break-inside: avoid; border-radius: var(--r-md); overflow: hidden; background: var(--surface); box-shadow: var(--shadow);
}
.design[hidden] { display: none; }
.design img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.design:hover img { transform: scale(1.04); }
.design__cap {
  position: absolute; inset: auto 0 0 0; display: grid; gap: 2px; padding: 28px 14px 12px; text-align: left; color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent); font-size: 12.5px;
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.design__cap b { font-size: 14px; font-weight: 600; }
.design__cap span { opacity: .75; }
.design:hover .design__cap, .design:focus-visible .design__cap { opacity: 1; transform: none; }
@media (hover: none) { .design__cap { opacity: 1; transform: none; } }

/* ---------- motion ---------- */
.panel--cinema {
  --panel: #0f0f0e; --panel-2: #0f0f0e; --surface: #1d1d1b; --ink: #f3f2ee; --ink-2: #8f8c84; --ink-3: #5f5d58; --line: #2a2926;
  --btn: #f3f2ee; --btn-ink: #121211;
  background: #0f0f0e; color: var(--ink);
}
.panel--cinema::after { mix-blend-mode: screen; opacity: .16; }
.panel--cinema .lede { color: var(--ink-2); }
.featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: clamp(24px, 3.5vw, 40px); }
.featured--solo { grid-template-columns: minmax(0, 1fr); }
.feature { margin: 0; display: grid; gap: 14px; align-content: start; }
.feature__media {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; overflow: hidden;
  aspect-ratio: var(--ratio); border-radius: var(--r-lg); background: #000;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .06);
}
.featured--solo .feature__media { max-height: 78vh; }
.feature__media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.feature__media:hover video { transform: scale(1.015); }
.feature__badge {
  position: absolute; left: 16px; top: 16px; padding: 7px 12px; border-radius: 999px;
  background: rgba(15, 15, 14, .72); color: #f3f2ee; font: 600 12px/1 var(--body); letter-spacing: .04em;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.feature__sound {
  position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px;
  border-radius: 999px; background: rgba(255, 255, 255, .94); color: #111; font: 600 13px/1 var(--body);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); transition: transform .4s var(--ease);
}
.feature__sound svg { width: 15px; height: 15px; }
.feature__media:hover .feature__sound { transform: translateY(-2px); }
.feature figcaption { display: grid; gap: 6px; }
.feature__client { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.feature h3 { margin: 0; font: 700 clamp(20px, 2vw, 26px)/1.15 var(--display); font-stretch: 108%; letter-spacing: -.025em; }
.feature p { color: var(--ink-2); font-size: 15px; max-width: 62ch; }
.featured + .reel-grid { margin-top: clamp(36px, 5vw, 56px); }
.reel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 14px; margin-top: clamp(24px, 3.5vw, 40px); }
.reel-sub { margin: 0; font: 700 17px/1.2 var(--display); font-stretch: 105%; color: var(--ink); }
.rail { margin-top: clamp(32px, 4vw, 48px); min-width: 0; }
.rail__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rail__nav { display: flex; gap: 6px; }
.rail__nav button {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow); transition: opacity .3s, transform .3s var(--ease);
}
.rail__nav button:hover:not(:disabled) { transform: translateY(-1px); }
.rail__nav button:disabled { opacity: .35; cursor: default; }
.rail__nav svg { width: 16px; height: 16px; }
.rail--static .rail__nav { display: none; }
/* one line only: scrolls sideways, never up and down */
.reel-row {
  display: flex; gap: 14px; margin-top: 14px; padding: 4px 2px 10px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; scroll-padding-inline: 2px; scrollbar-width: none;
}
.reel-row::-webkit-scrollbar { display: none; }
.reel-row > .reel { flex: 0 0 clamp(150px, 17vw, 200px); }
.reel { display: grid; gap: 10px; align-content: start; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; scroll-snap-align: start; }
.reel__thumb { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .9); }
.reel--short .reel__thumb { aspect-ratio: 9 / 16; }
.reel__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .4s; opacity: .9; }
.reel:hover .reel__thumb img { transform: scale(1.05); opacity: 1; }
.reel__play {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #111;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); transition: transform .45s var(--ease);
}
.reel__play svg { width: 18px; height: 18px; margin-left: 2px; }
.reel:hover .reel__play { transform: scale(1.12); }
.reel__title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.reel-more { flex: none; }
.lightbox__video { width: min(100%, calc((100vh - 140px) * var(--ratio))); aspect-ratio: var(--ratio); margin: auto; border-radius: 14px; overflow: hidden; background: #000; }
.lightbox__video iframe, .lightbox__video video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.more-row { display: flex; justify-content: center; margin-top: 10px; }
.more-row[hidden] { display: none; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.6vw, 36px); }
.service { display: grid; gap: 12px; align-content: start; }
.service__icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--t-bg); color: var(--t-ink); transition: transform .5s var(--ease), border-radius .5s var(--ease);
}
.service:hover .service__icon { transform: rotate(-8deg) scale(1.06); border-radius: 50%; }
.service__icon svg { width: 21px; height: 21px; }
.service h3 { margin: 4px 0 0; font: 700 17px/1.2 var(--display); font-stretch: 105%; letter-spacing: -.02em; }
.service p { color: var(--ink-2); font-size: 14px; }
.t-lime { --t-bg: var(--tint-lime); --t-ink: var(--tint-ink-lime); }
.t-lilac { --t-bg: var(--tint-lilac); --t-ink: var(--tint-ink-lilac); }
.t-sky { --t-bg: var(--tint-sky); --t-ink: var(--tint-ink-sky); }
.t-peach { --t-bg: var(--tint-peach); --t-ink: var(--tint-ink-peach); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about__photo { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--panel); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.04); transition: transform 1.2s var(--ease); }
.about__photo:hover img { transform: scale(1.03); }
.about__badge {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); color: var(--ink); border-radius: 999px; padding: 10px 16px 10px 10px; box-shadow: var(--shadow);
  font: 600 14px/1.2 var(--body);
}
.about__badge i { width: 34px; height: 34px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; color: var(--ink); font-style: normal; flex: none; }
.about__badge i .gmark { width: 22px; height: 22px; }
.about__text { display: grid; gap: 22px; }
.about__text p { font-size: clamp(15.5px, 1.3vw, 17px); color: var(--ink-2); max-width: 60ch; }
.about__text p:first-of-type { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.stat { background: var(--surface); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow); display: grid; gap: 6px; align-content: start; }
.stat b { font: 800 clamp(24px, 2.5vw, 32px)/1 var(--display); font-stretch: 110%; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }

/* ---------- tools ---------- */
.tools { display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 44px); }
.tools__group { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; align-items: start; padding-top: 24px; border-top: 1px solid var(--line); }
.tools__group h3 { margin: 8px 0 0; font: 700 16px/1.2 var(--display); font-stretch: 105%; }
.tool-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tool {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 15px 0 11px; border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow); font: 600 13.5px/1 var(--body);
  transition: transform .4s var(--ease);
}
.tool:hover { transform: translateY(-3px); }
.tool__mark { width: 19px; height: 19px; background: var(--c, var(--ink)); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 4vw, 44px); counter-reset: step; }
.step { position: relative; background: var(--surface); border-radius: var(--r-lg); padding: 20px 20px 22px; box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; min-height: 190px; }
.step__n { justify-self: start; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--t-bg); color: var(--t-ink); font: 800 13px/1 var(--display); font-variant-numeric: tabular-nums; }
.step h3 { margin: auto 0 0; padding-top: 32px; font: 700 21px/1.1 var(--display); font-stretch: 110%; letter-spacing: -.03em; }
.step p { color: var(--ink-2); font-size: 14px; }

/* ---------- contact ---------- */
.contact { display: grid; justify-items: center; text-align: center; gap: 18px; padding: clamp(48px, 6.5vw, 92px) clamp(18px, 4.5vw, 56px); }
.contact__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.contact__icon svg { width: 28px; height: 28px; }
.js .contact.is-in .contact__icon svg { animation: shake 1.2s var(--ease) .3s both; }
@keyframes shake { 0%, 100% { transform: none; } 30% { transform: rotate(-10deg); } 60% { transform: rotate(6deg); } }
.contact .h2 { max-width: 14ch; }
.contact .lede { text-align: center; }
.contact__ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.contact__mail { font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.contact__mail b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 22px clamp(18px, 3vw, 36px); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.footer .links { color: var(--ink); }
.footer__right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.to-top-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.to-top-link svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.to-top-link:hover svg { transform: translateY(-3px); }
.to-top {
  position: fixed; z-index: 40; right: max(20px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom));
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--btn); color: var(--btn-ink); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- more work (compact cards) ---------- */
.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(28px, 4vw, 44px); }
.mini-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); background: var(--p-bg); color: var(--p-ink); overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.mini-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -32px rgba(0, 0, 0, .55); }
.mini-card[hidden] { display: none; }
.mini-card__visual { position: relative; aspect-ratio: 4 / 3; padding: 16px 16px 0; overflow: hidden; }
.mini-card__body { display: grid; gap: 8px; padding: 18px 20px 20px; align-content: start; }
.mini-card__client { font-size: 12.5px; font-weight: 600; opacity: .65; }
.mini-card h3 { margin: 0; font: 700 17px/1.15 var(--display); font-stretch: 105%; letter-spacing: -.02em; }
.mini-card p { font-size: 13.5px; line-height: 1.5; opacity: .8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.mini-card__go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--p-ink); color: var(--p-bg); transition: transform .5s var(--ease); }
.mini-card__go svg { width: 15px; height: 15px; }
.mini-card:hover .mini-card__go { transform: rotate(45deg); }
.browser--scroll { height: 100%; border-radius: 10px 10px 0 0; display: flex; flex-direction: column; }
.browser__view { position: relative; flex: 1; overflow: hidden; container-type: size; }
.browser__view img { position: absolute; left: 0; top: 0; width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: left top; transition: transform 5s cubic-bezier(.45, 0, .55, 1); }
.mini-card:hover .browser__view img, .mini-card:focus-visible .browser__view img { transform: translateY(calc(-100% + 100cqh)); }
.logo-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.logo-stage__tile { width: 42%; max-width: 160px; aspect-ratio: 1; border-radius: 28%; background: #fff; display: grid; place-items: center; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .55); transition: transform .8s var(--ease); }
.logo-stage__tile img { width: 72%; height: 72%; object-fit: contain; }
.mini-card:hover .logo-stage__tile { transform: rotate(-6deg) scale(1.05); }
.case-hero__visual .logo-stage__tile { max-width: 220px; }
.web-stack--solo .browser { left: 6%; right: 6%; }
.case-hero__visual .web-stack--solo .browser { left: 0; right: 0; }
.btn--soft { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.case-hero .btn--soft { background: transparent; color: var(--p-ink); }

/* ---------- case study ---------- */
.case-hero { background: var(--p-bg); color: var(--p-ink); }
.case-hero .topbar .pill { background: color-mix(in srgb, var(--p-bg) 70%, #fff); color: var(--p-ink); }
.case-hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: end; padding: clamp(40px, 6vw, 84px) clamp(20px, 5vw, 72px) 0; }
.case-hero__text { display: grid; gap: 22px; padding-bottom: clamp(40px, 6vw, 84px); }
.case-hero__text .eyebrow { color: inherit; opacity: .75; }
.case-hero__text .lede { color: inherit; opacity: .8; }
.case-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--p-ink) 18%, transparent); }
.case-meta dt { font-size: 12px; font-weight: 600; opacity: .65; margin-bottom: 4px; }
.case-meta dd { margin: 0; font-weight: 600; font-size: 14px; line-height: 1.4; }
.case-hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.case-hero .btn { background: var(--p-ink); color: var(--p-bg); }
.case-hero__visual { position: relative; align-self: stretch; min-height: 460px; }
.case-hero__visual .stack { align-items: flex-end; padding-top: 0; }
.case-hero__visual .stack .phone { width: 33%; }
.case-hero__visual .stack .phone:nth-child(1) { transform: rotate(-7deg) translateY(22%); }
.case-hero__visual .stack .phone:nth-child(2) { width: 37%; transform: translateY(12%); }
.case-hero__visual .stack .phone:nth-child(3) { transform: rotate(7deg) translateY(22%); }
.case-hero__visual .web-stack .phone { width: 26%; bottom: -6%; }
.case-hero__visual .web-stack .browser { left: 0; right: 4%; top: 14%; }

.case-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); }
.case-body + .case-body { margin-top: clamp(36px, 5vw, 64px); padding-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.case-body h2 { position: sticky; top: 24px; }
.case-body .prose { display: grid; gap: 16px; font-size: clamp(15.5px, 1.3vw, 17px); color: var(--ink-2); max-width: 66ch; }
.case-body .prose p:first-child { color: var(--ink); }
.decisions { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: d; }
.decisions li { position: relative; padding: 18px 20px 18px 62px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-size: 14.5px; line-height: 1.55; counter-increment: d; }
.decisions li::before { content: counter(d); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--p-bg); color: var(--p-ink); font: 800 13px/1 var(--display); }
.decisions li b { font-weight: 700; }
.result { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--r-lg); background: var(--p-bg); color: var(--p-ink); font-size: clamp(15.5px, 1.3vw, 17px); }
.result svg { flex: none; width: 28px; height: 28px; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font: 600 13px/1 var(--body); }
.chips .tool__mark { width: 16px; height: 16px; }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px) clamp(12px, 1.6vw, 22px); margin-top: clamp(28px, 4vw, 44px); }
.gallery--web { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery__sub { margin-top: clamp(36px, 5vw, 56px); }
.gallery--single { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.gallery--single .browser img { aspect-ratio: 16 / 10; }
.shot { margin: 0; display: grid; gap: 12px; cursor: zoom-in; border: 0; padding: 0; background: none; text-align: left; }
.shot .phone { width: 100%; transition: transform .5s var(--ease); }
.shot .browser { transition: transform .5s var(--ease); }
.shot:hover .phone, .shot:hover .browser { transform: translateY(-6px); }
.shot .browser img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.shot figcaption, .shot .cap { font-size: 13px; color: var(--ink-2); font-weight: 500; line-height: 1.35; }

.next-case { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: clamp(28px, 4vw, 48px) clamp(20px, 5vw, 72px); background: var(--p-bg); color: var(--p-ink); border-radius: var(--r-xl); transition: transform .6s var(--ease); }
.next-case:hover { transform: translateY(-4px); }
.next-case .eyebrow { color: inherit; opacity: .7; }
.next-case .arrow-btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--p-ink); color: var(--p-bg); transition: transform .5s var(--ease); }
.next-case:hover .arrow-btn { transform: rotate(-45deg); }
.next-case .arrow-btn svg { width: 22px; height: 22px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); background: rgba(10, 10, 10, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #f3f2ee; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox[hidden] { display: none; }
.lightbox__bar { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 14px max(16px, env(safe-area-inset-left)); }
.lightbox__bar span { font-size: 14px; opacity: .8; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox__btns { display: flex; gap: 8px; flex: none; }
.lightbox button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lightbox button svg { width: 18px; height: 18px; }
.lightbox__stage { min-width: 0; min-height: 0; overflow: auto; display: flex; justify-content: center; align-items: flex-start; padding: 8px max(16px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); overscroll-behavior: contain; }
/* never wider than the screen: min-width 0 lets the image shrink inside the flex stage */
.lightbox__stage img { display: block; min-width: 0; width: auto; max-width: min(100%, 1400px); height: auto; border-radius: 14px; margin: auto; }
.lightbox__stage img.is-phone { max-width: min(100%, 430px); }
/* designs fit the screen whole, no scrolling */
.lightbox__stage img.is-fit { max-height: calc(100dvh - 130px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); object-fit: contain; }
.lightbox__video { min-width: 0; max-width: 100%; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--btn); color: var(--btn-ink); padding: 12px 18px; border-radius: 999px; font: 600 14px/1 var(--body); transition: .35s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .reel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; aspect-ratio: 1 / 1; }
  .case-hero__grid { grid-template-columns: 1fr; }
  .case-hero__text { padding-bottom: 0; }
  .case-hero__visual { min-height: 0; aspect-ratio: 5 / 4; }
  .case-body { grid-template-columns: 1fr; }
  .case-body h2 { position: static; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .featured { grid-template-columns: 1fr; }
  .feature__badge { left: 10px; top: 10px; }
  .feature__sound { right: 10px; bottom: 10px; height: 34px; font-size: 12px; }
  .work-grid { grid-template-columns: 1fr; }
  .tools__group { grid-template-columns: 1fr; gap: 12px; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .head--row { align-items: start; }
  .topbar__email { display: none; }
  .only-sm { display: inline; }
}
@media (max-width: 520px) {
  .mini-grid { grid-template-columns: 1fr; }
  .masonry { columns: 2; column-gap: 10px; }
  .design { margin-bottom: 10px; }
  .reel-grid { gap: 16px 10px; }
  .reel-row { gap: 10px; }
  .reel-row > .reel { flex-basis: 44%; }
  .reel__title { font-size: 13px; }
  .services, .process { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step h3 { padding-top: 20px; }
  .avatar { width: 84px; height: 84px; }
  .avatar__tag { left: 62px; top: 10px; font-size: 12px; padding: 7px 12px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery--web { grid-template-columns: 1fr; }
  .filters button { padding: 0 13px; }
  .next-case .arrow-btn { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
}
