/* ==========================================================
   James Dabalus — Portfolio
   ========================================================== */

:root {
  --bg: #0b0b0f;
  --bg-2: #111118;
  --surface: #15151d;
  --surface-2: #1c1c26;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eeedf5;
  --muted: #8f8da0;
  --accent: #c8ff4d;
  --accent-ink: #0b0b0f;
  --violet: #8b7bff;

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--gutter);
  transition: transform 1.1s var(--ease-in-out);
}
.preloader__top { display: flex; justify-content: space-between; color: var(--muted); }
.preloader__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.preloader__word {
  font-size: clamp(20px, 3vw, 34px);
  max-width: 14ch;
  line-height: 1.1;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}
.preloader__word em { color: var(--accent); }
.preloader__count {
  font-size: clamp(72px, 16vw, 220px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.preloader__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; }
.preloader__bar span {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: var(--accent);
  transition: width 0.15s linear;
}
body.is-loaded .preloader { transform: translateY(-100%); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.cursor__dot,
.cursor__ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  translate: -50% -50%;
  will-change: transform;
}
.cursor__dot { width: 6px; height: 6px; background: var(--accent); }
.cursor__ring {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
    background 0.35s, border-color 0.35s;
}
.cursor__label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  opacity: 0;
  transition: opacity 0.2s;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; border-color: var(--accent); background: rgba(200, 255, 77, 0.08); }
.cursor.is-label .cursor__ring { width: 84px; height: 84px; background: var(--accent); border-color: var(--accent); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-hidden { opacity: 0; }

@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
}

/* ---------- Progress + grain ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--violet), var(--accent));
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll, 0));
  z-index: 60;
}
.grain {
  position: fixed;
  inset: -50%;
  z-index: 80;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 4%); }
  40% { transform: translate(4%, -6%); }
  60% { transform: translate(-3%, 7%); }
  80% { transform: translate(6%, -2%); }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
  z-index: -1;
}
.btn:hover::before { transform: none; }
.btn__arrow { font-style: normal; transition: transform 0.4s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { color: var(--accent-ink); }
.btn--small { padding: 11px 20px; font-size: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px var(--gutter);
  transition: transform 0.5s var(--ease-out), background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}
.nav.is-scrolled {
  background: rgba(11, 11, 15, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: flex; align-items: center; gap: 12px; font-weight: 600; margin-right: auto; }
.nav__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  transition: transform 0.6s var(--ease-out);
}
.nav__logo:hover .nav__mark { transform: rotate(-12deg) scale(1.06); }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.3s, background 0.3s;
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; z-index: 2; }
.nav__burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
body.menu-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
body.menu-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--bg-2);
  display: flex;
  align-items: flex-end;
  padding: 100px var(--gutter) 48px;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path 0.8s var(--ease-in-out);
  visibility: hidden;
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.menu nav { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.menu a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: clamp(38px, 11vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s, transform 0.6s var(--ease-out), color 0.3s;
}
.menu a .mono { color: var(--accent); }
.menu a:hover { color: var(--accent); }
body.menu-open .menu a { opacity: 1; transform: none; }
body.menu-open .menu a:nth-child(1) { transition-delay: 0.25s; }
body.menu-open .menu a:nth-child(2) { transition-delay: 0.3s; }
body.menu-open .menu a:nth-child(3) { transition-delay: 0.35s; }
body.menu-open .menu a:nth-child(4) { transition-delay: 0.4s; }
body.menu-open .menu a:nth-child(5) { transition-delay: 0.45s; }
body.menu-open .menu a:nth-child(6) { transition-delay: 0.5s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--gutter) 28px;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  right: -20vmax;
  top: -25vmax;
  background: radial-gradient(closest-side, rgba(139, 123, 255, 0.28), transparent 70%);
  filter: blur(20px);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero__glow::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 60%;
  left: -30%;
  top: 70%;
  background: radial-gradient(closest-side, rgba(200, 255, 77, 0.16), transparent 70%);
}
@keyframes drift {
  to { transform: translate(-8vmax, 6vmax) scale(1.1); }
}
.hero__inner { position: relative; max-width: var(--max); width: 100%; margin: 0 auto; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(11, 11, 15, 0.5);
  backdrop-filter: blur(6px);
  margin-bottom: 28px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(200, 255, 77, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(200, 255, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 255, 77, 0); }
}
.hero__title {
  font-size: clamp(64px, 15.5vw, 240px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.055em;
  pointer-events: none;
}
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line--indent { padding-left: clamp(0px, 12vw, 220px); display: flex; align-items: center; gap: 0.15em; }
.hero__amp {
  font-family: var(--f-display);
  font-style: normal;
  font-size: 0.32em;
  color: var(--accent);
  display: inline-block;
  animation: spin 12s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }

.char {
  display: inline-block;
  transform: translateY(105%) rotate(6deg);
  transform-origin: 0 100%;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(0.35s + var(--i) * 0.045s);
}
body.is-loaded .hero .char { transform: none; }

.hero__roles {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: clamp(18px, 2.2vw, 26px);
  flex-wrap: wrap;
}
.hero__roles-pre { color: var(--muted); }
.roles { position: relative; display: inline-grid; overflow: hidden; height: 1.4em; }
.role {
  grid-area: 1 / 1;
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--accent);
  font-size: 1.25em;
  line-height: 1.1;
  white-space: nowrap;
  transform: translateY(110%);
  transition: transform 0.7s var(--ease-out);
}
.role.is-active { transform: none; }
.role.is-leaving { transform: translateY(-110%); }

.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero__lead { max-width: 44ch; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); }
.hero__lead strong { color: var(--text); font-weight: 500; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__meta {
  position: relative;
  max-width: var(--max);
  width: 100%;
  margin: 56px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  flex-wrap: wrap;
}
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero__scroll-line { position: relative; width: 48px; height: 1px; background: var(--line-2); overflow: hidden; }
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: scrollLine 2s var(--ease-in-out) infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
body.is-loaded .reveal-up { opacity: 1; transform: none; }

/* ---------- Marquee ---------- */
.marquee {
  padding: 28px 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
}
.marquee__row { display: flex; overflow: hidden; user-select: none; }
.marquee__row + .marquee__row { margin-top: 10px; }
.marquee__track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 32px;
  padding-right: 32px;
  animation: marquee 38s linear infinite;
}
.marquee__row--reverse .marquee__track { animation-direction: reverse; animation-duration: 44s; }
.marquee__track span {
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.marquee__row--reverse .marquee__track span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
}
.marquee__track b { color: var(--accent); font-size: 22px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(96px, 14vw, 180px) var(--gutter) 0;
}
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }
.label { color: var(--accent); display: inline-block; margin-bottom: 18px; }
.section__title {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  max-width: 14ch;
}
.section__title em { color: var(--muted); }

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about__text {
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.word { color: rgba(238, 237, 245, 0.16); transition: color 0.3s; }
.word.is-lit { color: var(--text); }
.word.is-hl.is-lit { color: var(--accent); }
.about__side { color: var(--muted); display: flex; flex-direction: column; gap: 28px; padding-top: 10px; }
.motto {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}
.motto em { color: var(--accent); }
.motto cite { display: block; margin-top: 12px; font-style: normal; color: var(--muted); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line);
}
.stat { padding: 32px 24px 0 0; display: flex; flex-direction: column; gap: 8px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__num {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label { color: var(--muted); font-size: 15px; max-width: 22ch; }

/* ---------- Expertise cards ---------- */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  grid-column: span 2;
  padding: 28px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  isolation: isolate;
  transition: border-color 0.4s, opacity 1s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(200, 255, 77, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(200, 255, 77, 0.3); }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: background 0.4s, transform 0.6s var(--ease-out);
}
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.4s; }
.card:hover .card__icon { background: var(--accent); transform: rotate(-8deg) scale(1.05); }
.card:hover .card__icon svg { stroke: var(--accent-ink); }
.card__idx { color: var(--muted); }
.card h3 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.03em; }
.card p { color: var(--muted); max-width: 44ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.chips li {
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chips li:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.card--feature {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(139, 123, 255, 0.18), transparent 60%),
    var(--surface);
}

/* ---------- Companies & clients ---------- */
.clients__group + .clients__group { margin-top: 40px; }
.clients__label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 14px;
}
.clients__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.clients__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.client {
  --tile: #f3f1ea;
  --ink: #26262e;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 170px;
  border-radius: 20px;
  background: var(--tile);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s), translate 0.5s var(--ease-out), box-shadow 0.5s;
}
.client::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(200, 255, 77, 0.35), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.client:hover { translate: 0 -6px; box-shadow: 0 24px 40px -24px rgba(200, 255, 77, 0.35); }
.client:hover::before { opacity: 1; }
.client__logo {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 26px 26px 6px;
}
.client__logo img,
.client__svg {
  max-width: 82%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.72;
  transition: filter 0.5s, opacity 0.5s, scale 0.6s var(--ease-out);
}
.client__logo .client__img--sm { max-height: 50px; }
.client__logo .client__img--tall { max-height: 92px; opacity: 0.85; }
.client--jpg .client__logo img { mix-blend-mode: multiply; }
.client:hover .client__logo img,
.client:hover .client__svg { filter: none; opacity: 1; scale: 1.06; }
.client__svg { width: 54px; height: 54px; }
.client__svg--upwork { fill: #14a800; }
.client__word {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #5a5966;
  transition: color 0.5s, scale 0.6s var(--ease-out);
}
.client__word b { font-weight: 300; }
.client__word small {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 6px;
}
.client__word--serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 36px; letter-spacing: -0.01em; }
.client:hover .client__word { color: var(--ink); scale: 1.06; }
.client__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px 14px;
  font-size: 13px;
}
.client__meta b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client__meta .mono { font-size: 10px; color: #77757f; white-space: nowrap; }

.clients__grid > li:has(.client--feature) { grid-column: span 2; }
.client--feature {
  --tile: #17171f;
  --ink: var(--text);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 112, 30, 0.22), transparent 60%),
    var(--tile);
}
.client--feature .client__logo img { max-height: 92px; }
.client--feature .client__meta .mono { color: var(--accent); }
.client--feature::before { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 112, 30, 0.25), transparent 60%); }

/* ---------- Toolkit logo wall ---------- */
.section__head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.section__aside { max-width: 40ch; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 14px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.filter sup { font-family: var(--f-mono); font-size: 10px; margin-left: 2px; opacity: 0.7; }
.filter:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; }
.tool {
  --brand: var(--text);
  position: relative;
  aspect-ratio: 1 / 0.92;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 8px;
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  transition: border-color 0.35s, translate 0.5s var(--ease-out), scale 0.5s var(--ease-out), filter 0.5s;
}
.tools.is-in .tool { opacity: 1; animation: toolIn 0.8s var(--ease-out) both; animation-delay: calc(var(--i) * 16ms); }
@keyframes toolIn {
  from { opacity: 0; transform: translateY(26px) scale(0.92); }
  to { opacity: 1; transform: none; }
}
.tool::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 68%);
  opacity: 0;
  transition: opacity 0.4s;
}
.tool svg { width: 34px; height: 34px; fill: #6f6d7e; transition: fill 0.35s, scale 0.5s var(--ease-out); }
.tool__name { font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.2; transition: color 0.35s; }
.tool__mono {
  display: grid;
  place-items: center;
  width: 38px;
  height: 34px;
  border-radius: 9px;
  border: 1.5px solid #6f6d7e;
  color: #8f8da0;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.03em;
  transition: color 0.35s, border-color 0.35s, background 0.35s, scale 0.5s var(--ease-out);
}

.tool:hover,
.tools[data-active]:not([data-active="all"]) .tool.is-match { border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.tool:hover { translate: 0 -4px; }
.tool:hover::before,
.tools[data-active]:not([data-active="all"]) .tool.is-match::before { opacity: 1; }
.tool:hover svg,
.tools[data-active]:not([data-active="all"]) .tool.is-match svg { fill: var(--brand); }
.tool:hover svg { scale: 1.12; }
.tool:hover .tool__name,
.tools[data-active]:not([data-active="all"]) .tool.is-match .tool__name { color: var(--text); }
.tool--text:hover .tool__mono,
.tools[data-active]:not([data-active="all"]) .tool--text.is-match .tool__mono { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.tool--text:hover .tool__mono { scale: 1.08; }
.tools[data-active]:not([data-active="all"]) .tool:not(.is-match) { filter: opacity(0.14) grayscale(1); scale: 0.94; }

/* ---------- Timeline ---------- */
.timeline { position: relative; --progress: 0; }
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(220px + 28px);
  width: 1px;
  background: var(--line);
}
.timeline::after {
  background: linear-gradient(var(--accent), var(--violet));
  transform-origin: top;
  transform: scaleY(var(--progress));
}
.tl {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding: 0 0 56px;
}
.tl::before {
  content: "";
  position: absolute;
  left: calc(220px + 28px);
  top: 8px;
  width: 13px;
  height: 13px;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-2);
  z-index: 1;
  transition: border-color 0.5s, background 0.5s, box-shadow 0.5s;
}
.tl.is-active::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px rgba(200, 255, 77, 0.15); }
.tl__when { color: var(--muted); padding-top: 4px; text-align: right; }
.tl__body h3 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.tl__org { color: var(--muted); margin: 8px 0 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(200, 255, 77, 0.12);
  color: var(--accent);
}
.tl__body ul { display: grid; gap: 8px; }
.tl__body li { position: relative; padding-left: 20px; color: #c9c7d6; }
.tl__body li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-size: 14px; top: 2px; }
.tl--compact h3 { font-size: clamp(20px, 2vw, 24px); }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project {
  --hue: 78;
  --rx: 0deg;
  --ry: 0deg;
  display: flex;
  flex-direction: column;
  gap: 18px;
  perspective: 1000px;
}
.project__visual {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 20% 10%, hsl(var(--hue) 90% 60% / 0.55), transparent 60%),
    radial-gradient(80% 60% at 90% 100%, hsl(calc(var(--hue) + 60) 80% 55% / 0.45), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out), border-color 0.4s;
  display: grid;
  place-items: center;
}
.project:hover .project__visual { border-color: var(--line-2); }
.project__big {
  position: absolute;
  bottom: -0.18em;
  left: -0.04em;
  font-size: clamp(120px, 14vw, 200px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  transform: translateZ(20px);
  transition: color 0.5s;
}
.project:hover .project__big { color: rgba(255, 255, 255, 0.16); }
.browser {
  position: relative;
  width: 78%;
  border-radius: 12px;
  background: rgba(11, 11, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  transform: translateZ(60px) translateY(8px);
  transition: transform 0.7s var(--ease-out);
  z-index: 1;
}
.project:hover .browser { transform: translateZ(80px) translateY(-6px) scale(1.03); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.browser__bar i:first-child { background: hsl(var(--hue) 90% 62%); }
.browser__bar span { margin-left: 8px; font-size: 10px; color: var(--muted); text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser__body { padding: 14px; display: grid; gap: 10px; }
.sk { height: 22px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); position: relative; overflow: hidden; }
.sk::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.sk--hero { height: 90px; background: linear-gradient(135deg, hsl(var(--hue) 90% 60% / 0.35), rgba(255, 255, 255, 0.05)); }
.sk--tall { height: 120px; background: linear-gradient(160deg, hsl(var(--hue) 90% 60% / 0.35), rgba(255, 255, 255, 0.05)); }
.sk--short { width: 55%; }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sk-row .sk { height: 48px; }
.sk-row--split { grid-template-columns: 1.1fr 1fr; }
.sk-col { display: grid; gap: 8px; align-content: start; }
.sk-col .sk { height: 22px; }
.sk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sk-grid .sk { height: 46px; }
.sk-grid .sk:first-child { background: hsl(var(--hue) 90% 60% / 0.3); }

.project__info { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 14px; row-gap: 2px; }
.project__num { color: var(--accent); grid-row: span 2; align-self: start; padding-top: 8px; }
.project__info h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.03em; }
.project__meta { color: var(--muted); grid-column: 2; }
.project__go {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: background 0.4s, color 0.4s, transform 0.5s var(--ease-out), border-color 0.4s;
}
.project:hover .project__go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(45deg); }
.project__info h3 .pill { vertical-align: middle; margin-left: 6px; position: relative; top: -2px; }
.project__desc { grid-column: 2 / -1; margin-top: 12px; color: var(--muted); max-width: 68ch; }

/* Featured project */
.project--featured { grid-column: 1 / -1; }
.project--featured .project__visual { aspect-ratio: 2 / 1; }
.project--featured .browser { width: min(64%, 900px); }

/* Hope Pro Care mockup: a miniature of the real site */
.browser--light {
  --h-ink: #1d3326;
  --h-green: #5b9a4e;
  --h-peach: #f0a77f;
  --h-cream: #f7f5f0;
  container-type: inline-size;
  background: var(--h-cream);
  border-color: rgba(255, 255, 255, 0.4);
  overflow: hidden;
}
.browser--light .browser__bar { background: #ecebe5; border-bottom-color: rgba(0, 0, 0, 0.06); }
.browser--light .browser__bar i { background: rgba(0, 0, 0, 0.14); }
.browser--light .browser__bar i:first-child { background: var(--h-peach); }
.browser--light .browser__bar span { color: #6f6d66; }
.hope {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  column-gap: 5cqw;
  row-gap: 3.5cqw;
  padding: 2.4cqw 4.5cqw 4.5cqw;
  color: var(--h-ink);
  font-family: var(--f-display);
}
.hope__nav { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 2cqw; }
.hope__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8cqw;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 2.6cqw;
  color: var(--h-green);
}
.hope__logo b {
  width: 2.8cqw;
  height: 2.8cqw;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #8cc27a, var(--h-green) 40%, var(--h-peach) 60%, #f6cdb4 85%, #8cc27a);
}
.hope__pills { display: flex; gap: 0.4cqw; padding: 0.4cqw; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05); }
.hope__pills i { font-style: normal; font-size: 1.15cqw; padding: 0.6cqw 1.4cqw; border-radius: 99px; color: #555; }
.hope__pills i.is-on { background: var(--h-ink); color: #fff; }
.hope__btn {
  display: inline-block;
  font-size: 1.2cqw;
  font-weight: 600;
  padding: 1cqw 1.8cqw;
  border-radius: 99px;
  background: var(--h-ink);
  color: #fff;
  white-space: nowrap;
}
.hope__btn--ghost { background: #fff; color: var(--h-ink); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.hope__copy { display: flex; flex-direction: column; justify-content: center; gap: 1.8cqw; }
.hope__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8cqw;
  font-family: var(--f-mono);
  font-size: 1.05cqw;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h-green);
}
.hope__eyebrow::before { content: ""; width: 0.8cqw; height: 0.8cqw; border-radius: 50%; background: var(--h-peach); }
.hope__h { font-size: 5.2cqw; font-weight: 500; line-height: 1.02; letter-spacing: -0.035em; }
.hope__h em { color: var(--h-green); }
.hope__p { display: grid; gap: 0.8cqw; }
.hope__p i { height: 0.9cqw; border-radius: 99px; background: rgba(29, 51, 38, 0.12); }
.hope__p i:nth-child(2) { width: 92%; }
.hope__p i:nth-child(3) { width: 64%; }
.hope__ctas { display: flex; gap: 1cqw; flex-wrap: wrap; }
.hope__img {
  position: relative;
  aspect-ratio: 1 / 0.9;
  border-radius: 2.4cqw;
  overflow: hidden;
  background:
    radial-gradient(55% 45% at 28% 22%, rgba(255, 228, 190, 0.9), transparent 70%),
    radial-gradient(40% 40% at 85% 30%, rgba(140, 194, 122, 0.55), transparent 70%),
    linear-gradient(165deg, #d2ab84 0%, #9a7a5a 45%, #4b5e45 100%);
}
.hope__person { position: absolute; left: 50%; bottom: 0; width: 74%; height: 82%; translate: -50% 0; }
.hope__person::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6%;
  width: 36%;
  aspect-ratio: 1 / 1.18;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(70% 70% at 45% 40%, #f1d0b4, #d7a986);
  box-shadow: 0 -0.9cqw 0 0.5cqw #d9d4cc;
}
.hope__person::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52%;
  border-radius: 48% 48% 0 0 / 70% 70% 0 0;
  background: linear-gradient(180deg, #78b2ae, #4c8986);
}
.hope__chip {
  position: absolute;
  top: 5%;
  left: 5%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.8cqw;
  padding: 1cqw 1.4cqw;
  border-radius: 1.2cqw;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.1cqw;
  font-weight: 600;
  white-space: nowrap;
}
.hope__chip b { width: 0.9cqw; height: 0.9cqw; border-radius: 50%; background: var(--h-green); }
.hope__seal {
  position: absolute;
  top: 4%;
  right: 5%;
  z-index: 1;
  width: 7cqw;
  height: 7cqw;
  border-radius: 50%;
  border: 0.35cqw dashed rgba(255, 255, 255, 0.9);
  background: radial-gradient(circle, #fff 0 38%, transparent 40%), conic-gradient(var(--h-green), var(--h-peach), var(--h-green));
  animation: spin 14s linear infinite;
}

/* ---------- Education ---------- */
.edu { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.edu__item { padding: 32px 32px 32px 0; display: flex; flex-direction: column; gap: 10px; }
.edu__item + .edu__item { padding-left: 32px; border-left: 1px solid var(--line); }
.edu__when { color: var(--accent); }
.edu__item h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.edu__item p { color: var(--muted); }
.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.cert {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s, opacity 1s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s);
}
.cert::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(139, 123, 255, 0.16), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}
.cert:hover::before { opacity: 1; }
.cert:hover { border-color: rgba(139, 123, 255, 0.4); }
.cert__badge {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 20px;
  background: linear-gradient(135deg, var(--violet), #5b4bd6);
}
.cert h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.cert p { color: var(--muted); margin-top: 4px; }

/* ---------- Contact ---------- */
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(120px, 16vw, 220px) var(--gutter) clamp(80px, 10vw, 120px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact__title {
  font-size: clamp(54px, 12vw, 190px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.9;
}
.contact__title em { color: var(--accent); }
.contact__title .char { transition-delay: calc(var(--i) * 0.03s); }
.contact__title.is-in .char { transform: none; }
.contact__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
  flex-wrap: wrap;
  justify-content: center;
}
.contact__email {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  transition: border-color 0.3s, background 0.3s;
  max-width: 100%;
}
.contact__email:hover { border-color: var(--accent); background: rgba(200, 255, 77, 0.06); }
.contact__email-text { font-size: clamp(16px, 2vw, 22px); font-weight: 500; overflow-wrap: anywhere; }
.contact__email-hint { color: var(--muted); font-size: 10px; margin-top: 2px; }
.socials { display: flex; gap: 10px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s;
}
.socials a i { font-style: normal; transition: transform 0.4s var(--ease-out); }
.socials a svg { width: 16px; height: 16px; fill: #14a800; }
.socials .socials__upwork { color: var(--text); border-color: rgba(20, 168, 0, 0.45); }
.socials .socials__upwork:hover { border-color: #14a800; background: rgba(20, 168, 0, 0.08); }
.socials a:hover { color: var(--text); border-color: var(--line-2); }
.socials a:hover i { transform: translate(2px, -2px); color: var(--accent); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer__top:hover { color: var(--accent); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  translate: -50% 0;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  z-index: 95;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
  pointer-events: none;
}
.toast.is-show { transform: none; opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card { grid-column: span 1; }
  .clients__grid { grid-template-columns: 1fr 1fr; }
  .projects { grid-template-columns: 1fr 1fr; }
  .projects .project:first-child,
  .projects .project:last-child { grid-column: span 2; }
  .projects .project:first-child .project__visual,
  .projects .project:last-child .project__visual { aspect-ratio: 16 / 9; }
  .project--featured .browser { width: 82%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat { padding-bottom: 32px; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .nav__links, .nav > .btn { display: none; }
  .nav__burger { display: block; }
  .about__grid { grid-template-columns: 1fr; }
  .timeline::before, .timeline::after { left: 6px; }
  .tl { grid-template-columns: 1fr; gap: 8px; padding-left: 36px; }
  .tl::before { left: 6px; top: 4px; }
  .tl__when { text-align: left; }
  .edu, .certs { grid-template-columns: 1fr; }
  .edu__item + .edu__item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards, .projects { grid-template-columns: 1fr; }
  .card--feature, .projects .project:first-child, .projects .project:last-child { grid-column: span 1; }
  .projects .project__visual,
  .projects .project:first-child .project__visual,
  .projects .project:last-child .project__visual { aspect-ratio: 4 / 3.4; }
  .project--featured .browser { width: 90%; }
  .project__desc { grid-column: 1 / -1; }
  .hero__foot { margin-top: 32px; }
  .hero__cta .btn { flex: 1; justify-content: center; }
  .hero__meta { font-size: 11px; }
  .hero__clock { display: none; }
  .stat__label { font-size: 13px; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
  .card { padding: 22px; }
  .tools { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
  .tool { gap: 10px; border-radius: 14px; }
  .clients__grid { gap: 8px; }
  .client { min-height: 132px; border-radius: 16px; }
  .client__logo { padding: 18px 16px 4px; }
  .client__logo img, .client__svg { max-height: 46px; }
  .client__logo .client__img--tall { max-height: 64px; }
  .client__meta { flex-direction: column; gap: 2px; padding: 10px 12px 12px; font-size: 12px; }
  .client__word { font-size: 22px; }
  .client__word--serif { font-size: 28px; }
  .tool svg { width: 28px; height: 28px; }
  .tool__name { font-size: 11.5px; }
  .filter { padding: 8px 13px; font-size: 13px; }
  .footer { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .grain { display: none; }
}
