/* ------------------------------------------------------------------
   Najma Mogul, YouTube Specialist. Tokens are documented in DESIGN.md.
   One centred column at every width: hero first, then sticky category
   tabs, then the work grid.
------------------------------------------------------------------ */

:root {
  /* hex fallbacks first; OKLCH overrides below for browsers that support it */
  --bg: #fcfbfa;
  --bg-raised: #f3ece8;
  --bg-sunken: #eadfd9;
  --fg: #4a3532;
  --fg-muted: #6b4e4c;
  --fg-subtle: #8c7478;
  --fg-faint: #c4b3b3;
  --line: #eadfd9;
  --line-strong: #e6a188;

  --accent: #d07a55;
  --accent-strong: #b8643f;
  --salmon: #e6a188;
  --mauve: #7a6067;
  --sky: #d6f4fa;
  --white: #fefdfd;
  --online: #3ec96a;

  --wash-1: rgb(208 122 85 / 0.06);
  --wash-2: rgb(208 122 85 / 0.10);
  --wash-3: rgb(208 122 85 / 0.16);

  --font: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-24: 96px;

  --radius-tile: 12px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-drift: cubic-bezier(0.45, 0, 0.55, 1);
  --dur-fast: 150ms;
  --dur-base: 300ms;
  --dur-slow: 600ms;

  /* hero measure and side padding; the work grid ignores --page-w and runs nearly edge to edge */
  --page-w: 1360px;
  --pad: var(--s-12);
  --gutter: 12px;
  --grid-margin: var(--gutter);

  color-scheme: light;
}

@supports (color: oklch(0.5 0.1 200)) {
  :root {
    --bg: oklch(0.988 0.004 50);
    --bg-raised: oklch(0.95 0.012 45);
    --bg-sunken: oklch(0.91 0.02 45);
    --fg: oklch(0.34 0.045 25);
    --fg-muted: oklch(0.44 0.045 20);
    --fg-subtle: oklch(0.56 0.03 355);
    --fg-faint: oklch(0.77 0.02 10);
    --line: oklch(0.91 0.02 45);
    --line-strong: oklch(0.76 0.09 40);
    --accent: oklch(0.65 0.13 40);
    --accent-strong: oklch(0.56 0.13 40);
    --salmon: oklch(0.76 0.09 40);
    --mauve: oklch(0.50 0.03 350);
    --sky: oklch(0.95 0.03 215);
    --white: oklch(0.995 0.002 50);
    --online: oklch(0.75 0.19 148);
  }
}

/* ---------- Reset ---------- */

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }

h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; }

button { font: inherit; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--s-4); top: -100px;
  padding: var(--s-2) var(--s-4); background: var(--accent); color: var(--white);
  border-radius: var(--radius-pill); z-index: 100; text-decoration: none;
}
.skip:focus { top: var(--s-4); }

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

/* ---------- Hero panel: fills the first screen ---------- */

.panel {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: var(--s-8) var(--pad) var(--s-12);
  overflow: hidden;
}
.panel > * { position: relative; z-index: 1; }
.panel__top,
.hero { width: min(100%, var(--page-w)); margin-inline: auto; }
.hero { margin-block: auto; }

/* Background artwork: the supplied hero background as vector (Adobe-traced SVG, white ground removed),
   split into left and right strips (34% of its width each) by viewBox. Full hero height with aspect
   kept, one strip hugging each edge. Decorative, behind everything. */
.shapes {
  position: absolute;
  inset: 0;
  z-index: 0 !important;
  pointer-events: none;
  overflow: hidden;
  /* dissolve into the page over the last stretch of the hero so there's no hard edge into the work section */
  mask-image: linear-gradient(to bottom, #000 40%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 92%);
}
.shapes img {
  position: absolute;
  top: 0;
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  user-select: none;
}
.shapes__l { left: 0; animation: drift 16s var(--ease-drift) infinite; }
.shapes__r { right: 0; animation: drift 19s var(--ease-drift) infinite reverse; }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -12px, 0); }
}

.panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 40px;
}

/* The NM mark (assets/nm-logo.png, transparent) */
.logo {
  display: inline-flex;
  align-items: center;
  height: 40px;
  text-decoration: none;
}
.logo img { height: 100%; width: auto; display: block; }

.panel__actions { display: flex; align-items: center; gap: var(--s-3); }
.socials { display: flex; gap: var(--s-2); }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 0.8125rem; }
.btn__arrow { margin-left: 8px; margin-right: -2px; flex: none; transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--mauve);
  background: transparent;
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.social svg { width: 16px; height: 16px; }
.social:hover { color: var(--accent); background: var(--wash-2); }
.social svg { width: 18px; height: 18px; }
.social.is-placeholder { cursor: default; color: var(--fg-faint); }
.social.is-placeholder:hover { color: var(--fg-faint); background: transparent; }

/* Hero: centred block, vertically centred in whatever space is left */
.hero {
  margin: auto;
  padding: var(--s-16) 0;
  width: 100%;
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
}
.identity__avatar-wrap {
  position: relative;
  flex: none;
  width: 104px; height: 104px;
  border-radius: 50%;
  background: var(--bg-sunken);
  box-shadow: 0 0 0 4px var(--white), 0 12px 32px -12px rgb(74 53 50 / 0.35);
}
.identity__avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.identity__avatar[hidden] { display: none; }
/* Presence dot, grey for now; takes the accent colour once there is one */
.identity__presence {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 3px var(--white);
}
/* Slow expanding ring, the way messaging apps show "online" */
.identity__presence::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--online);
  opacity: 0;
  animation: pulse 2200ms var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.4); opacity: 0.55; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
.identity__text { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.identity__name {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--fg-subtle);
}
.services__item + .services__item::before {
  content: "\00B7";
  margin: 0 7px;
  opacity: 0.8;
}

.headline {
  margin-top: var(--s-10);
  font-size: clamp(2rem, 0.9rem + 2.9vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg);
}
/* Exactly two lines: each line is one block and never wraps. Sizes above are tuned so the longer line fits at every width. */
.headline__line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  padding-bottom: 0.25em;
  margin-bottom: -0.25em;
}
.headline__text { display: block; }
.headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  animation: word-in 900ms var(--ease-soft) forwards;
  animation-delay: calc(180ms + var(--w, 0) * 70ms);
}
.headline strong { font-weight: 700; letter-spacing: -0.03em; }
/* second line sits a step smaller, as on the banner */
.headline__line--sub { font-size: 0.8em; margin-top: 0.1em; }

.bio {
  opacity: 0;
  animation: rise-soft 1300ms var(--ease-soft) forwards;
  animation-delay: 760ms;
  margin-top: var(--s-6);
  max-width: 36rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  text-wrap: balance;
  color: var(--fg-muted);
}

.cta-line {
  margin-top: var(--s-10);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg);
}
.cta-line__part + .cta-line__part::before { content: " "; }

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover { background: var(--accent-strong); transform: translateY(-1px); box-shadow: 0 12px 28px -12px rgb(208 122 85 / 0.7); }
.btn--primary:active { transform: translateY(0); box-shadow: none; }
.btn--soft {
  background: var(--white);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--soft:hover { background: var(--wash-1); }
.btn--soft:active { background: var(--wash-2); }

/* Trusted by: label + a single-line looping marquee of glass pills, faded at both ends */
.trusted {
  margin-top: var(--s-16);
  /* wider than the hero measure so the loop has room; centred by the hero's flex alignment */
  width: min(calc(100vw - 2 * var(--pad)), 72rem);
  max-width: none;
}
.trusted__label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--fg-subtle);
  margin-bottom: var(--s-5);
}
.marquee {
  --marquee-gap: var(--s-3);
  --marquee-fade: 88px;
  overflow: hidden;
  padding-block: 2px;
  mask-image: linear-gradient(to right, transparent, #000 var(--marquee-fade), #000 calc(100% - var(--marquee-fade)), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--marquee-fade), #000 calc(100% - var(--marquee-fade)), transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--marquee-gap);
  width: max-content;
  padding-right: var(--marquee-gap);
  will-change: transform;
}

/* Glass pill, after the reference: near-white, hairline outline, no drop shadow, avatar filling
   most of the height, @handle in a medium weight, blue verified badge on the right. */
.pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 54px;
  padding: 0 12px 0 5px;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow:
    inset 0 0 0 1px rgb(74 53 50 / 0.10),
    inset 0 1px 0 rgb(255 255 255 / 0.9);
  color: var(--fg);
  white-space: nowrap;
}
.pill__avatar {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-sunken), var(--bg-raised));
  color: var(--mauve);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pill__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pill__name {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-muted);
}
.pill__badge {
  flex: none;
  display: grid;
  place-items: center;
  color: #4d8ee6;
  margin-left: -3px;
}
.pill__badge svg { display: block; }

/* ---------- Work ---------- */

.work {
  width: 100%;
  padding: 0 var(--grid-margin) var(--s-10);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.tabs-wrap {
  position: sticky;
  top: 0;
  z-index: 5;
  padding-block: var(--s-5);
  margin-bottom: var(--s-6);
  background: var(--bg);
}
/* tiles fade out as they slide under the bar */
.tabs-wrap::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: 72px;
  background: linear-gradient(to bottom,
    var(--bg) 0%,
    color-mix(in srgb, var(--bg) 85%, transparent) 30%,
    color-mix(in srgb, var(--bg) 45%, transparent) 60%,
    transparent 100%);
  pointer-events: none;
}
.tabs {
  display: flex;
  justify-content: safe center;
  gap: var(--s-2);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px; /* keeps the pill outlines from clipping at the scroll edge */
}
.tabs::-webkit-scrollbar { display: none; }
/* Category pills: same glass as the client pills; the selected one fills with the sky blue */
.tab {
  flex: 0 0 auto;
  border: 0;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow:
    inset 0 0 0 1px rgb(74 53 50 / 0.10),
    inset 0 1px 0 rgb(255 255 255 / 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.tab:hover { background: rgb(255 255 255 / 0.95); color: var(--fg); }
.tab[aria-selected="true"] {
  background: var(--sky);
  color: var(--fg);
  font-weight: 600;
  box-shadow:
    inset 0 0 0 1px rgb(74 53 50 / 0.06),
    inset 0 1px 0 rgb(255 255 255 / 0.7);
}
.tab:focus-visible { outline-offset: 3px; }
.tabs__indicator { display: none; }

/* Scroll reveal for the tab bar, "View more" and footer (script adds .is-in the first time they appear) */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease-soft), transform 800ms var(--ease-soft);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.tabs-wrap[data-reveal] { transform: none; } /* sticky bar only fades, so it never shifts under the finger */

/* Grid ------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-8) var(--gutter);
  transition: opacity var(--dur-fast) var(--ease-in);
}
.grid.is-leaving { opacity: 0; }

.grid__item {
  min-width: 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-soft), transform 900ms var(--ease-soft);
}
.grid__item.is-in { opacity: 1; transform: none; }
/* the caption lands a beat after the thumbnail */
.grid__item .tile__caption {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms var(--ease-soft) 180ms, transform 700ms var(--ease-soft) 180ms;
}
.grid__item.is-in .tile__caption { opacity: 1; transform: none; }

.grid__more {
  display: flex;
  width: max-content;
  margin: var(--s-8) auto 0;
  border: 0;
  cursor: pointer;
}
.grid__more[hidden] { display: none; }

.grid__empty {
  color: var(--fg-subtle);
  padding: var(--s-16) 0;
  text-align: center;
}

/* ---------- Footer ---------- */

.footer {
  width: 100%;
  margin-top: var(--s-16);
  padding: var(--s-10) var(--pad) var(--s-8);
  border-top: 1px solid var(--line);
  background: var(--white);
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
}
.footer__identity {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.footer__logo { height: 44px; width: auto; display: block; }
.footer__name {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.footer__role {
  margin-top: 3px;
  font-size: 0.875rem;
  color: var(--fg-subtle);
}
.footer__actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.footer .colophon { margin-top: var(--s-8); text-align: left; }

.colophon {
  margin-top: var(--s-16);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--fg-faint);
}

/* Tile: 16:9 frame (thumbnail or grey placeholder) with the caption underneath ---------- */

.tile {
  position: relative;
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}
.tile--linked { cursor: pointer; }

.tile__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-tile);
  overflow: hidden;
  background: var(--bg-raised);
  isolation: isolate;
  transform: translateZ(0);
}
/* hairline bezel so frames read as objects against the page */
.tile__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(74 53 50 / 0.06);
  pointer-events: none;
  z-index: 2;
}
.tile__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-sunken);
  transform: scale(1);
  transition: transform var(--dur-slow) var(--ease-out);
}
/* faint ratio mark in the centre so an empty block still reads as "a piece of work goes here" */
.tile__index {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  text-transform: uppercase;
}

.tile__meta {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  display: flex;
  align-items: center;
  gap: var(--s-2);
  z-index: 1;
}
.tile__pill {
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  color: var(--accent-strong);
  background: var(--white);
}
.tile--linked .tile__pill {
  color: #f6f6f7;
  border-color: rgb(246 246 247 / 0.55);
  background: rgb(12 12 16 / 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Caption under the frame: title, then client */
.tile__caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--s-3) var(--s-1) 0;
}
.tile__title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--fg);
  transition: color var(--dur-base) var(--ease-out);
}
.tile__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--s-3);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--fg-subtle);
}
.tile__client { display: block; }

@media (hover: hover) {
  .tile--linked:hover .tile__media,
  .tile--linked:focus-visible .tile__media { transform: scale(1.04); }
  .tile--linked:hover .tile__title { color: var(--accent-strong); }
}
.tile--linked:focus-visible { outline: none; }
.tile--linked:focus-visible .tile__frame { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ---------- Entrance motion ---------- */

.reveal {
  animation: rise 700ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes word-in {
  from { opacity: 0; transform: translateY(0.55em); }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rise-soft {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Short desktop viewports ---------- */

@media (min-width: 1024px) and (max-height: 800px) {
  .hero { padding: var(--s-8) 0; }
  .headline { margin-top: var(--s-8); }
  .trusted { margin-top: var(--s-12); }
}

/* ---------- Tablet ---------- */

@media (max-width: 1023px) {
  :root { --pad: var(--s-6); }

  .panel { padding-top: var(--s-6); }
  .logo { height: 34px; }
  .shapes__l { left: -8vw; }
  .shapes__r { right: -8vw; }
  .hero { padding: var(--s-12) 0; }

  .tabs-wrap {
    margin: 0 calc(-1 * var(--grid-margin)) var(--s-4);
    padding: var(--s-4) var(--pad);
  }
  .tabs-wrap::after { height: 56px; }

  .colophon { margin-top: var(--s-10); }
}

/* ---------- Phone ---------- */

@media (max-width: 639px) {
  .panel { min-height: 0; }
  .hero { padding: var(--s-10) 0 var(--s-4); }
  .identity__avatar-wrap { width: 88px; height: 88px; }
  .shapes { opacity: 0.75; }
  .shapes__l { left: -34vw; }
  .shapes__r { right: -34vw; }
  .trusted { width: 100vw; }
  .marquee { --marquee-fade: 48px; }
  .pill { height: 46px; gap: 9px; padding: 0 10px 0 4px; }
  .pill__avatar { width: 38px; height: 38px; }
  .pill__name { font-size: 0.875rem; }
  .pill__badge svg { width: 17px; height: 17px; }
  .headline {
    margin-top: var(--s-8);
    font-size: clamp(1.28rem, 6.4vw, 2rem);
    letter-spacing: -0.03em;
  }
  .bio { font-size: 0.9375rem; }
  .cta-line__part { display: block; line-height: 1.4; }
  .cta-line__part + .cta-line__part::before { content: none; }
  .trusted { margin-top: var(--s-12); }

  :root { --grid-margin: var(--s-2); }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .footer { padding: var(--s-8) var(--s-5) var(--s-6); }
  .footer__row { flex-direction: column; align-items: flex-start; gap: var(--s-5); }
  .footer__actions { width: 100%; justify-content: space-between; }
  .tile__frame { border-radius: 10px; }
  .tile__caption { padding-inline: var(--s-2); }
}

@media (max-width: 479px) {
  :root { --pad: var(--s-5); }
  .actions .btn { flex: 0 1 auto; min-width: 9rem; }
  .tile__caption { left: var(--s-4); right: var(--s-4); bottom: var(--s-3); }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .identity__presence::after { display: none; }
  .marquee__track { transform: none !important; }
  .shapes__l, .shapes__r { animation: none; }
  [data-reveal], .grid__item, .grid__item .tile__caption, .headline .word { opacity: 1; transform: none; animation: none; }
  .tile--linked:hover .tile__media,
  .tile--linked:focus-visible .tile__media { transform: none; }
}
