/* ==========================================================================
   Fiyaz Zaman: Portfolio
   Design system: ink-black canvas, warm paper type, one electric-violet accent
   pulled from the SMF logo reveal. Inter Tight (display/UI), Instrument Serif
   (italic accents), JetBrains Mono (labels).
   ========================================================================== */

:root {
  --ink: #0a0a0b;
  --ink-2: #111113;
  --ink-3: #18181b;
  --line: rgba(237, 234, 228, 0.09);
  --line-2: rgba(237, 234, 228, 0.16);
  --paper: #edeae4;
  --paper-2: #c9c5bd;
  --mute: #8a8680;
  --accent: #b46bff;
  --accent-2: #e2c6ff;
  --accent-glow: rgba(180, 107, 255, 0.35);
  --ok: #57e08b;

  --f-sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1480px;
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 76px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* film grain */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--paper); color: var(--ink); border-radius: 8px; }
.skip:focus { top: 12px; }

/* ----------------------------------------------------------------- type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); }
.eyebrow--plain::before { display: none; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.accent { color: var(--accent); }
.h-display {
  font-size: clamp(3.1rem, 9.4vw, 10.5rem);
  line-height: 0.9; letter-spacing: -0.055em; font-weight: 600; margin: 0;
}
.h-1 { font-size: clamp(2.5rem, 6vw, 6.2rem); line-height: 0.95; letter-spacing: -0.045em; font-weight: 600; margin: 0; }
.h-2 { font-size: clamp(1.9rem, 3.6vw, 3.4rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; margin: 0; }
.h-3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; margin: 0; }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.55; color: var(--paper-2); max-width: 58ch; }
.muted { color: var(--mute); }

/* ----------------------------------------------------------------- buttons */
.btn {
  --b-bg: var(--paper); --b-fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg);
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  overflow: hidden; isolation: isolate;
  transition: transform 0.5s var(--ease), color 0.4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); border-radius: inherit;
  transform: translateY(101%); transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn .arrow { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { color: var(--ink); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 14px; }

.link-u { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.link-u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-2);
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-2);
  white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(87, 224, 139, 0.6); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(87, 224, 139, 0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(87, 224, 139, 0); } }

/* ----------------------------------------------------------------- preloader */
.loader {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center;
  background: var(--ink);
  transition: clip-path 1s var(--ease-in-out) 0.1s, visibility 0s linear 1.2s;
  clip-path: inset(0 0 0 0);
}
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.loader__mark { width: 64px; opacity: 0; transform: translateY(14px) scale(0.92); animation: loaderIn 0.9s var(--ease) 0.1s forwards; filter: drop-shadow(0 0 24px var(--accent-glow)); }
.loader__bar { width: 140px; height: 1px; background: var(--line-2); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--paper); transform-origin: left; transform: scaleX(0); animation: loaderBar 1.1s var(--ease-in-out) 0.2s forwards; }
.loader__count { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--mute); }
@keyframes loaderIn { to { opacity: 1; transform: none; } }
@keyframes loaderBar { to { transform: scaleX(1); } }
.is-loaded .loader { clip-path: inset(0 0 100% 0); visibility: hidden; }

/* ----------------------------------------------------------------- nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: var(--nav-h);
  transition: transform 0.6s var(--ease), background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10, 10, 11, 0.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 4px; align-items: center; list-style: none; margin: 0; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(17, 17, 19, 0.55); }
.nav__links a { display: block; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--paper-2); transition: color 0.3s, background 0.3s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--paper); background: rgba(237, 234, 228, 0.07); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.nav__toggle span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--paper); transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.nav__toggle span:nth-child(1) { top: 19px; } .nav__toggle span:nth-child(2) { top: 26px; }
.is-menu .nav__toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.is-menu .nav__toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 85; background: var(--ink);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease-in-out); visibility: hidden;
}
.is-menu .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { overflow: hidden; border-bottom: 1px solid var(--line); }
.menu li a { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; font-size: clamp(2rem, 9vw, 3.4rem); font-weight: 600; letter-spacing: -0.04em; transform: translateY(100%); transition: transform 0.8s var(--ease); }
.menu li a small { font-family: var(--f-mono); font-size: 12px; color: var(--mute); letter-spacing: 0.1em; }
.is-menu .menu li a { transform: none; }
.is-menu .menu li:nth-child(2) a { transition-delay: 0.05s; } .is-menu .menu li:nth-child(3) a { transition-delay: 0.1s; }
.is-menu .menu li:nth-child(4) a { transition-delay: 0.15s; } .is-menu .menu li:nth-child(5) a { transition-delay: 0.2s; }
.is-menu .menu li:nth-child(6) a { transition-delay: 0.25s; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--paper-2); font-size: 15px; }

/* ----------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; padding-top: calc(var(--nav-h) + clamp(28px, 6vh, 72px)); padding-bottom: 0; display: flex; flex-direction: column; overflow: hidden; }
.hero__glow { position: absolute; z-index: 0; width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px; right: -18vw; top: -10vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(180, 107, 255, 0.18), rgba(180, 107, 255, 0.04) 55%, transparent 72%); pointer-events: none; filter: blur(10px); }
.hero__grid { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(24px, 4vw, 64px); align-items: end; }
.hero__top { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(22px, 4vh, 40px); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.is-loaded .hero h1 .line > span { transform: none; }
.is-loaded .hero h1 .line:nth-child(2) > span { transition-delay: 0.08s; }
.is-loaded .hero h1 .line:nth-child(3) > span { transition-delay: 0.16s; }
.hero h1 .serif { font-size: 1.04em; letter-spacing: -0.03em; padding-right: 0.06em; }
.hero__sub { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; margin-top: clamp(26px, 4vh, 44px); max-width: 760px; }
.hero__sub .lede { margin: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__roles { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); line-height: 2; padding-top: 6px; white-space: nowrap; }
.hero__roles b { display: block; font-weight: 500; color: var(--paper); }

.hero__portrait { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; min-height: 420px; }
.hero__portrait figure { margin: 0; position: relative; width: 100%; max-width: 480px; }
.hero__portrait img.portrait {
  width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(56% 56% at 52% 48%, #000 52%, transparent 97%);
  mask-image: radial-gradient(56% 56% at 52% 48%, #000 52%, transparent 97%);
  mix-blend-mode: lighten;
  filter: contrast(1.06) saturate(0.9) brightness(1.04);
  opacity: 0; transform: scale(1.04); transition: opacity 1.6s var(--ease) 0.3s, transform 2.2s var(--ease) 0.3s;
}
.is-loaded .hero__portrait img.portrait { opacity: 1; transform: none; }
.hero__mono { position: absolute; z-index: -1; width: 64%; left: 18%; top: 4%; opacity: 0.06; }
.badge {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px; border-radius: 16px;
  background: rgba(24, 24, 27, 0.66); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  font-size: 13px; line-height: 1.25;
  opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.is-loaded .badge { opacity: 1; transform: none; }
.badge b { display: block; font-size: 14px; }
.badge span { color: var(--mute); }
.badge i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; flex: none; }
.badge--a { left: -6%; top: 30%; transition-delay: 0.9s; }
.badge--a i { background: #14a800; color: #fff; }
.badge i svg { width: 21px; height: 21px; }
.badge--b i svg { width: 30px; height: 30px; }
.badge--b { right: -4%; top: 52%; transition-delay: 1.05s; }
.badge--b i { background: #1dbf73; color: #fff; }
.badge--c { left: 4%; bottom: 14%; transition-delay: 1.2s; }
.badge--d { right: -2%; top: 14%; transition-delay: 0.98s; }
.badge--d i { background: #fff; color: #1f6fae; }
.badge--c i { background: var(--paper); color: var(--ink); }

.hero__foot { position: relative; z-index: 2; margin-top: clamp(28px, 5vh, 56px); border-top: 1px solid var(--line); }
.hero__meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue span { width: 1px; height: 26px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--paper); animation: cue 1.8s var(--ease-in-out) infinite; }
@keyframes cue { to { top: 110%; } }

/* ----------------------------------------------------------------- marquee */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 0; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-size: clamp(1.4rem, 2.6vw, 2.4rem); font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; color: var(--paper-2); }
.marquee__item .serif { color: var(--paper); }
.marquee__item svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------- sections */
.section { position: relative; padding-block: clamp(72px, 10vw, 150px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--tight + .section { padding-top: clamp(40px, 5vw, 72px); }
.section__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px 40px; margin-bottom: clamp(40px, 6vw, 80px); }
.section__head .eyebrow { margin-bottom: 22px; }
.section__head p { margin: 0; }
.section__head > .btn { justify-self: start; }
.section__num { font-family: var(--f-mono); font-size: 12px; color: var(--mute); letter-spacing: 0.12em; }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
/* a cover that wipes away; clip-path on the target itself would hide it from IntersectionObserver */
[data-reveal="clip"] { opacity: 1; transform: none; }
[data-reveal="clip"]::before { content: ""; position: absolute; inset: -1px; z-index: 5; background: var(--ink); transform-origin: top; transition: transform 1.3s var(--ease-in-out); transition-delay: calc(var(--d, 0) * 1ms); pointer-events: none; }
[data-reveal="clip"].is-in::before { transform: scaleY(0); }

/* ----------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 30px 22px 6px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 22px; }
.stat:last-child { border-right: 0; }
.stat__n { font-size: clamp(2.4rem, 4.2vw, 4.2rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; display: flex; align-items: flex-start; gap: 2px; }
.stat__n sup { font-size: 0.42em; color: var(--accent); top: 0; line-height: 1.4; }
.stat__l { margin-top: 12px; font-size: 14px; color: var(--mute); line-height: 1.4; }

/* ----------------------------------------------------------------- case studies */
.cases { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.case { position: relative; grid-column: span 6; display: flex; flex-direction: column; gap: 18px; }
.case--wide { grid-column: span 12; }
.case__media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--ink-3); aspect-ratio: 4 / 3;
  transform: translateZ(0);
}
.case--wide .case__media { aspect-ratio: 21 / 9; }
.case__media > img, .case__media .collage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.case:hover .case__media > img, .case:hover .case__media .collage { transform: scale(1.035); }
.case__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 11, 0.55), transparent 45%); pointer-events: none; }
.collage { display: grid; gap: 10px; padding: 10px; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.collage--kp { grid-template-columns: 1.15fr 0.8fr 0.8fr 0.8fr; background: #1a120c; }
.case__tags { position: absolute; z-index: 2; left: 18px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.case__tags span { padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 500; background: rgba(10, 10, 11, 0.62); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.case__info { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.case__title { display: flex; align-items: baseline; gap: 14px; }
.case__title small { font-family: var(--f-mono); font-size: 12px; color: var(--mute); }
.case__desc { margin: 6px 0 0; color: var(--mute); font-size: 15px; max-width: 52ch; }
.case__go { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background 0.5s var(--ease), color 0.5s, transform 0.5s var(--ease), border-color 0.5s; }
.case__go svg { width: 18px; height: 18px; }
.case:hover .case__go { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: rotate(45deg); }
.case > a.case__link { position: absolute; inset: 0; z-index: 3; border-radius: var(--radius); }

/* ----------------------------------------------------------------- brand books */
.books { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); }
.book { display: flex; flex-direction: column; gap: 16px; }
.book__media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1.414 / 1; background: var(--ink-3); border: 1px solid var(--line); }
.book__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.7s var(--ease), transform 1.4s var(--ease); }
.book__alt { opacity: 0; transform: scale(1.04); }
.book:hover .book__alt, .book:focus-visible .book__alt { opacity: 1; transform: none; }
.book:hover .book__media img:first-child { transform: scale(1.03); }
.book__info { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.book__info p { margin: 6px 0 0; color: var(--mute); font-size: 15px; }
.book__pages { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; transition: background 0.4s, color 0.4s, border-color 0.4s; }
.book__pages svg { width: 14px; height: 14px; }
.book:hover .book__pages { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ----------------------------------------------------------------- print strip */
.strip { display: grid; gap: 14px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.strip__track { display: flex; gap: 14px; width: max-content; animation: marquee 110s linear infinite; }
.strip__row--rev .strip__track { animation-direction: reverse; animation-duration: 130s; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip .tile { flex: none; width: clamp(240px, 26vw, 400px); aspect-ratio: 3 / 2; background: var(--ink-3); }

/* ----------------------------------------------------------------- id card + designcrowd stats */
.idcard { display: grid; gap: 18px; }
.idcard__img { display: block; border-radius: 12px; overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); transition: transform 0.6s var(--ease); }
.idcard__img:hover { transform: translateY(-3px) rotate(-0.4deg); }
.idcard__img img { width: 100%; }
.idcard__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dcstats { display: grid; gap: 18px; }
.dcstats h5 { margin: 0; font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.dcstats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.dcstats__grid div { background: var(--ink-2); padding: 16px 14px; }
.dcstats__grid b { display: block; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.dcstats__grid span { font-size: 12.5px; color: var(--mute); }
.dcstats > a { justify-self: start; font-size: 14px; color: var(--paper-2); }

/* ----------------------------------------------------------------- logofolio */
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-2); gap: 4px; flex-wrap: wrap; }
.tab { height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--paper-2); transition: background 0.35s, color 0.35s; display: inline-flex; align-items: center; gap: 8px; }
.tab sup { font-family: var(--f-mono); font-size: 10px; color: var(--mute); top: -0.1em; }
.tab:hover { color: var(--paper); }
.tab.is-active { background: var(--paper); color: var(--ink); }
.tab.is-active sup { color: rgba(10, 10, 11, 0.55); }

.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.2vw, 16px); }
.logo-grid--sq { grid-template-columns: repeat(5, 1fr); }
.tile {
  position: relative; display: block; width: 100%; overflow: hidden; border-radius: 14px; background: #fff;
  aspect-ratio: var(--ar, 4 / 3); cursor: zoom-in;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.logo-grid .tile { aspect-ratio: 4 / 3; }
.logo-grid--sq .tile { aspect-ratio: 1; }
.tile:hover img { transform: scale(1.045); }
.tile__cap {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 10px; background: rgba(10, 10, 11, 0.82); color: var(--paper);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 500; line-height: 1.25; text-align: left;
  opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.tile__cap em { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; transform: none; }
.more-row { display: flex; justify-content: center; margin-top: 36px; }

/* ----------------------------------------------------------------- web */
.web-list { display: grid; gap: clamp(18px, 2vw, 28px); grid-template-columns: repeat(12, 1fr); }
.web { grid-column: span 6; display: flex; flex-direction: column; gap: 16px; }
.web--wide { grid-column: span 12; }
.browser { position: relative; border-radius: 14px; overflow: hidden; background: var(--ink-3); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.browser__bar { height: 34px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #141416; }
.browser__dots { display: flex; gap: 6px; } .browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: #2c2c30; }
.browser__url { flex: 1; max-width: 340px; margin-inline: auto; height: 20px; border-radius: 6px; background: #1e1e21; font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.browser__view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.web--wide .browser__view { aspect-ratio: 16 / 8; }
.browser__view img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.4s var(--ease); }
.web:hover .browser__view img { transform: scale(1.03); }
.browser--mock { background: #e9eeee; border: 0; }
.browser--mock .browser__view { aspect-ratio: 4 / 3; }
.browser--mock img { object-fit: cover; }
.web__info { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.web__info p { margin: 6px 0 0; color: var(--mute); font-size: 15px; max-width: 54ch; }
.web__visit { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; transition: background 0.4s, color 0.4s, border-color 0.4s; }
.web__visit:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.web__visit svg { width: 14px; height: 14px; }
.concepts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.concepts .tile { --ar: 4 / 3; background: #e6ecec; }

/* ----------------------------------------------------------------- services */
.services { border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 90px 1.1fr 1.4fr 56px; gap: 24px; align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line); position: relative; }
.svc::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: linear-gradient(90deg, rgba(180, 107, 255, 0.07), transparent 70%); opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none; }
.svc:hover::before { opacity: 1; }
.svc__n { font-family: var(--f-mono); font-size: 12px; color: var(--mute); padding-top: 10px; }
.svc__t { transition: transform 0.6s var(--ease); }
.svc:hover .svc__t { transform: translateX(8px); }
.svc__d { color: var(--paper-2); margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--paper-2); }
.svc__icon { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent); }
.svc__icon svg { width: 20px; height: 20px; }

/* ----------------------------------------------------------------- archive / masonry */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--paper-2); display: inline-flex; align-items: center; gap: 8px; transition: background 0.35s, color 0.35s, border-color 0.35s; }
.chip-btn sup { font-family: var(--f-mono); font-size: 10px; color: var(--mute); top: -0.1em; }
.chip-btn:hover { color: var(--paper); border-color: var(--paper-2); }
.chip-btn.is-active { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip-btn.is-active sup { color: rgba(10, 10, 11, 0.55); }
.masonry { columns: 4 260px; column-gap: 14px; }
.masonry .tile { margin-bottom: 14px; break-inside: avoid; background: var(--ink-3); }
.masonry .tile img { height: auto; }
.masonry .tile { aspect-ratio: auto; }
.masonry .tile img { aspect-ratio: var(--ar); object-fit: cover; }
.masonry .tile.is-out { display: none; }

/* ----------------------------------------------------------------- process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { position: relative; padding: 28px 26px 30px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.step__n { font-size: 5.2rem; line-height: 0.8; font-weight: 600; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px var(--line-2); transition: -webkit-text-stroke-color 0.5s; }
.step:hover .step__n { -webkit-text-stroke-color: var(--accent); }
.step p { margin: 10px 0 0; color: var(--mute); font-size: 15px; }

/* ----------------------------------------------------------------- about */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__media { position: relative; display: grid; gap: 14px; align-content: start; }
.reel { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel__label { position: absolute; left: 14px; top: 14px; }
.card { border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); padding: 24px; }
.verified { display: flex; gap: 16px; align-items: center; }
.verified__seal { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(87, 224, 139, 0.1); color: var(--ok); border: 1px solid rgba(87, 224, 139, 0.3); }
.verified__seal svg { width: 24px; height: 24px; }
.verified b { display: block; font-size: 15px; }
.verified span { font-size: 13.5px; color: var(--mute); }
.about__bio p { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.5; color: var(--paper-2); margin: 0 0 1em; letter-spacing: -0.015em; }
.about__bio p strong { color: var(--paper); font-weight: 500; }
.timeline { margin-top: 48px; border-top: 1px solid var(--line); }
.tl { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.tl__when { font-family: var(--f-mono); font-size: 12px; color: var(--mute); letter-spacing: 0.06em; padding-top: 4px; }
.tl h4 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.tl h4 span { color: var(--mute); font-weight: 400; }
.tl p { margin: 6px 0 0; color: var(--mute); font-size: 15px; }
.tl ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.tl li { font-size: 15px; color: var(--paper-2); padding-left: 18px; position: relative; }
.tl li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 1px; background: var(--accent); }
.kit { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 40px; }
.kit h5 { margin: 0 0 12px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }

/* ----------------------------------------------------------------- platforms */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plat { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 24px; min-height: 220px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; transition: border-color 0.5s, transform 0.6s var(--ease); }
.plat:hover { border-color: var(--line-2); transform: translateY(-4px); }
.plat::after { content: ""; position: absolute; right: -40%; top: -60%; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--glow, rgba(180, 107, 255, 0.22)), transparent); opacity: 0; transition: opacity 0.6s; }
.plat:hover::after { opacity: 1; }
.plat__top { display: flex; justify-content: space-between; align-items: flex-start; }
.plat__logo { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.plat__icon { width: 26px; height: 26px; flex: none; }
.plat__go { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform 0.5s var(--ease), background 0.4s, color 0.4s; }
.plat__go svg { width: 15px; height: 15px; }
.plat:hover .plat__go { transform: rotate(45deg); background: var(--paper); color: var(--ink); }
.plat b { display: block; font-size: 15px; font-weight: 600; }
.plat span { font-size: 14px; color: var(--mute); }

/* ----------------------------------------------------------------- contact */
.contact { position: relative; overflow: hidden; }
.contact__glow { position: absolute; left: 50%; bottom: -40vw; width: 110vw; height: 80vw; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(180, 107, 255, 0.2), transparent 70%); pointer-events: none; }
.contact__big { font-size: clamp(3.2rem, 11vw, 12rem); line-height: 0.88; letter-spacing: -0.06em; font-weight: 600; margin: 0; }
.contact__big a { display: inline-flex; align-items: center; gap: 0.12em; transition: color 0.5s; }
.contact__big a:hover { color: var(--accent); }
.contact__big svg { width: 0.62em; height: 0.62em; transition: transform 0.6s var(--ease); }
.contact__big a:hover svg { transform: rotate(45deg); }
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); margin-top: clamp(48px, 7vw, 96px); }
.contact__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact__list li { border-bottom: 1px solid var(--line); }
.contact__list a, .contact__list div { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 16px; padding: 18px 0; }
.contact__list small { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.contact__list span { font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 500; overflow-wrap: anywhere; }
.contact__list svg { width: 16px; height: 16px; color: var(--mute); transition: transform 0.5s var(--ease), color 0.4s; }
.contact__list a:hover svg { transform: rotate(45deg); color: var(--paper); }
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 26px 18px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(17, 17, 19, 0.7);
  color: var(--paper); font: inherit; font-size: 16px; transition: border-color 0.3s, background 0.3s; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field label { position: absolute; left: 18px; top: 9px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); pointer-events: none; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--ink-2); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8680' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 44px; }
.field select option { background: var(--ink-2); }
.form__note { font-size: 13px; color: var(--mute); margin: 0; }
.budget { display: flex; flex-wrap: wrap; gap: 8px; }
.budget input { position: absolute; opacity: 0; pointer-events: none; }
.budget label { cursor: pointer; }
.budget input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.budget span { display: inline-flex; height: 38px; align-items: center; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--paper-2); transition: all 0.3s; }
.budget input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ----------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 28px; position: relative; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h6 { margin: 0 0 14px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--paper-2); }
.footer ul a:hover { color: var(--paper); }
.footer__brand img { height: 40px; width: auto; margin-bottom: 18px; }
.footer__brand p { margin: 0; color: var(--mute); font-size: 15px; max-width: 34ch; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.footer__word { margin-top: 40px; font-size: clamp(4rem, 17.5vw, 19rem); line-height: 0.8; letter-spacing: -0.07em; font-weight: 600; color: transparent; -webkit-text-stroke: 1px var(--line-2); white-space: nowrap; user-select: none; text-align: center; overflow: hidden; }
.to-top { display: inline-flex; align-items: center; gap: 8px; }

/* ----------------------------------------------------------------- lightbox */
.lb { position: fixed; inset: 0; z-index: 140; display: grid; grid-template-rows: auto 1fr auto; background: rgba(6, 6, 7, 0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s; }
.lb.is-open { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease); }
.lb__top, .lb__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--gutter); }
.lb__count { font-family: var(--f-mono); font-size: 12px; color: var(--mute); letter-spacing: 0.1em; }
.lb__stage { position: relative; display: grid; place-items: center; padding: 0 clamp(8px, 7vw, 110px); min-height: 0; }
.lb__stage img { max-width: 100%; max-height: calc(100svh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9); transition: opacity 0.3s; }
.lb__stage img.is-loading { opacity: 0.35; }
.lb__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; background: rgba(17, 17, 19, 0.7); transition: background 0.3s, color 0.3s; }
.lb__btn:hover { background: var(--paper); color: var(--ink); }
.lb__btn svg { width: 18px; height: 18px; }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb__prev { left: clamp(8px, 2vw, 32px); } .lb__next { right: clamp(8px, 2vw, 32px); }
.lb__title { font-weight: 600; font-size: 16px; }
.lb__client { font-size: 13.5px; color: var(--mute); }

/* ----------------------------------------------------------------- cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 130; pointer-events: none; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; transform: translate3d(-200px, -200px, 0) scale(0); transition: transform 0.45s var(--ease) , opacity 0.3s; will-change: transform; mix-blend-mode: normal; }
.cursor.is-on { transition: opacity 0.3s; }

/* ----------------------------------------------------------------- case study pages */
.cs-hero { padding-top: calc(var(--nav-h) + clamp(48px, 9vh, 110px)); }
.cs-back { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--paper-2); margin-bottom: 40px; }
.cs-back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(40px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); }
.cs-meta h6 { margin: 0 0 8px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.cs-meta p { margin: 0; font-size: 15px; color: var(--paper-2); }
.cs-cover { margin-top: clamp(40px, 6vw, 80px); border-radius: var(--radius); overflow: hidden; background: var(--ink-3); }
.cs-cover img { width: 100%; }
.cs-block { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 6vw, 96px); padding-block: clamp(64px, 9vw, 130px) clamp(32px, 4vw, 56px); }
.cs-block p { margin: 0 0 1em; color: var(--paper-2); font-size: clamp(1.05rem, 1.35vw, 1.25rem); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.2vw, 16px); }
.gallery .tile { background: var(--ink-3); aspect-ratio: auto; }
.gallery .tile img { aspect-ratio: var(--ar); height: auto; object-fit: cover; }
.g-12 { grid-column: span 12; } .g-8 { grid-column: span 8; } .g-6 { grid-column: span 6; } .g-4 { grid-column: span 4; } .g-3 { grid-column: span 3; }
.gallery--dark .tile { background: #000; }
.next-case { display: block; border-top: 1px solid var(--line); padding-block: clamp(64px, 10vw, 140px); }
.next-case small { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.next-case .h-display { display: flex; align-items: center; gap: 0.2em; margin-top: 18px; transition: color 0.5s; }
.next-case:hover .h-display { color: var(--accent); }
.next-case svg { width: 0.5em; height: 0.5em; transition: transform 0.6s var(--ease); flex: none; }
.next-case:hover svg { transform: rotate(45deg); }

/* ----------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .stat:nth-child(4) { padding-left: 0; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-grid--sq { grid-template-columns: repeat(4, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .platforms { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-template-columns: 60px 1fr 1.3fr; }
  .svc__icon { display: none; }
}
@media (max-width: 980px) {
  :root { --nav-h: 68px; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__right .btn { display: none; }
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .hero__portrait { min-height: 0; max-width: 460px; justify-self: center; width: 100%; margin-top: 12px; }
  .badge--a { left: 0; } .badge--b { right: 0; }
  .about { grid-template-columns: 1fr; }
  .about__media { position: relative; top: 0; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .cs-block { grid-template-columns: 1fr; }
  .cs-meta { grid-template-columns: repeat(2, 1fr); }
  .concepts { grid-template-columns: repeat(2, 1fr); }
  .section__head { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .books { grid-template-columns: 1fr; }
  .book__info { flex-direction: column; }
  .dcstats__grid { grid-template-columns: repeat(2, 1fr); }
  .case, .case--wide { grid-column: span 12; }
  .case__media, .case--wide .case__media { aspect-ratio: 4 / 3; }
  .collage--kp { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .collage--kp img:first-child { grid-row: span 2; }
  .collage--kp img:last-child { display: none; }
  .web, .web--wide { grid-column: span 12; }
  .web--wide .browser__view { aspect-ratio: 16 / 10; }
  .web__info { flex-direction: column; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat + .stat { padding: 22px 14px 4px 0; border-right: 0; }
  .stat:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat:nth-child(4) { padding-left: 14px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid--sq { grid-template-columns: repeat(2, 1fr); }
  .tile__cap { opacity: 1; transform: none; font-size: 12px; padding: 7px 9px; left: 6px; right: 6px; bottom: 6px; }
  .tile__cap em { display: none; }
  .svc { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .svc__n { padding-top: 0; }
  .process { grid-template-columns: 1fr; }
  .step { min-height: 0; gap: 40px; }
  .platforms { grid-template-columns: 1fr; }
  .plat { min-height: 0; }
  .hero__sub { grid-template-columns: 1fr; gap: 16px; }
  .hero__roles { white-space: normal; }
  .hero__meta .hide-sm { display: none; }
  .badge { font-size: 12px; padding: 8px 12px 8px 8px; }
  .badge b { font-size: 12.5px; }
  .badge i { width: 30px; height: 30px; font-size: 11px; }
  .badge--c { display: none; }
  .badge--d { top: 6%; }
  .tl { grid-template-columns: 1fr; gap: 6px; }
  .kit { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .contact__list a, .contact__list div { grid-template-columns: 1fr auto; }
  .contact__list small { grid-column: 1 / -1; }
  .footer__top { grid-template-columns: 1fr; }
  .g-8, .g-6, .g-4 { grid-column: span 12; }
  .g-3 { grid-column: span 6; }
  .cs-meta { grid-template-columns: 1fr; }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .masonry .tile { margin-bottom: 10px; }
  .lb__stage { padding: 0 8px; }
  .lb__prev, .lb__next { top: auto; bottom: -62px; transform: none; }
  .lb__prev { left: auto; right: calc(var(--gutter) + 58px); }
  .lb__next { right: var(--gutter); }
  .lb__bottom { padding-right: calc(var(--gutter) + 120px); }
}

@media (hover: none) { .cursor { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  [data-reveal="clip"]::before { display: none; }
  .strip { overflow-x: auto; }
  .strip__track { animation: none; }
  body::after { animation: none; }
}
