/* ==========================================================================
   Portfolio — public site styles
   Colours come from the tokens below; the accent is set per site in the
   dashboard (Settings → Appearance) and injected as --accent / --accent-ink.
   ========================================================================== */

@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #08090a;
  --bg-2: #0c0d0f;
  --surface: #101113;
  --surface-2: #17181b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #f5f6f7;
  --muted: #a3a7af;
  --faint: #71757d;

  --accent: #c8f560;
  --accent-ink: #0a0a0c;
  --accent-text: #c8f560;

  --radius: 16px;
  --radius-lg: 24px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;

  color-scheme: dark;
}

[data-theme='light'] {
  --bg: #fafaf9;
  --bg-2: #f3f3f1;
  --surface: #ffffff;
  --surface-2: #f4f4f2;
  --line: rgba(12, 13, 15, 0.09);
  --line-2: rgba(12, 13, 15, 0.17);
  --text: #0c0d0f;
  --muted: #5b5f67;
  --faint: #8a8e96;
  color-scheme: light;
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  overflow-x: clip;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

p,
h1,
h2,
h3 {
  overflow-wrap: break-word;
}

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

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

.icon {
  flex: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 560;
  transition: top 0.2s;
}
.skip:focus {
  top: 16px;
}

/* Highlighted words in headlines: write *like this* in the dashboard. */
.hero__title em,
.h2 em,
.cta__title em {
  font-style: normal;
  color: var(--accent-text);
}
/* A very light accent on a light page (or dark on dark) can't carry text, so it becomes a highlighter stroke. */
[data-headline='accent'][data-emphasis='mark'] .hero__title em,
[data-headline='accent'][data-emphasis='mark'] .h2 em,
[data-headline='accent'][data-emphasis='mark'] .cta__title em {
  margin: 0 -0.06em;
  padding: 0 0.06em;
  background: linear-gradient(to top, color-mix(in srgb, var(--accent) 82%, transparent) 0.36em, transparent 0.36em);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: inherit;
}
/* An accent that matches the text colour (white on dark) highlights by stepping back instead. */
[data-headline='accent'][data-emphasis='dim'] .hero__title em,
[data-headline='accent'][data-emphasis='dim'] .h2 em,
[data-headline='accent'][data-emphasis='dim'] .cta__title em {
  color: color-mix(in srgb, var(--text) 48%, transparent);
}
[data-headline='serif'] .hero__title em,
[data-headline='serif'] .h2 em,
[data-headline='serif'] .cta__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -0.02em;
  color: inherit;
}
[data-headline='plain'] .hero__title em,
[data-headline='plain'] .h2 em,
[data-headline='plain'] .cta__title em {
  color: inherit;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 540;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.btn--lg {
  height: 56px;
  padding: 0 30px;
  font-size: 1.0625rem;
}
.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 0.875rem;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 34px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn--ghost {
  border-color: var(--line-2);
  background: color-mix(in srgb, var(--text) 4%, transparent);
  color: var(--text);
}
.btn--ghost:hover {
  background: color-mix(in srgb, var(--text) 9%, transparent);
  border-color: color-mix(in srgb, var(--text) 26%, transparent);
}
.btn .icon {
  transition: transform 0.25s var(--ease);
}
.btn:hover .icon {
  transform: translateX(3px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.actions--start {
  justify-content: flex-start;
  margin-top: 28px;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 540;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s;
}
.textlink:hover {
  text-decoration-color: var(--accent-text);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
  font: 500 0.6875rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--accent {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
}

/* ------------------------------------------------------------------- nav */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.is-stuck,
.nav.is-open {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}
.nav__in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brandmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-size: 1.0625rem;
  font-weight: 620;
  letter-spacing: -0.03em;
}
.brandmark__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brandmark__img {
  display: block;
  height: 30px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.nav__links {
  display: flex;
  gap: 2px;
}
.nav__links a {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}
.nav__end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.nav.is-open {
  background: color-mix(in srgb, var(--bg) 96%, transparent);
}
.nav__menu {
  display: grid;
  padding: 8px var(--gutter) 20px;
}
.nav__menu[hidden] {
  display: none;
}
.nav__menu a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
  font-weight: 520;
  letter-spacing: -0.02em;
}
.nav__menu a:last-child {
  border-bottom: 0;
}

@media (max-width: 860px) {
  .nav__in {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: grid;
  }
}
@media (min-width: 861px) {
  .nav__menu {
    display: none;
  }
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(136px, 20vh, 208px) 0 clamp(52px, 7vw, 92px);
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.hero[data-bg='glow'] .hero__bg::before,
.hero[data-bg='grid'] .hero__bg::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -34%;
  width: min(1180px, 150vw);
  aspect-ratio: 1.55;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 24%, transparent), transparent);
  opacity: 0.85;
}
.hero[data-bg='grid'] .hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 62% at 50% 0%, #000 30%, transparent 78%);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}
.pill__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.pill__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70%,
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

.hero__title {
  max-width: 13.5em;
  margin: 0 auto;
  font-size: clamp(2.625rem, 7.1vw, 5.625rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.048em;
  text-wrap: balance;
}
.hero__sub {
  max-width: 34em;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.55vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: balance;
}
.hero__note {
  margin: 30px 0 0;
  color: var(--faint);
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------- showreel */

.reel {
  padding-bottom: clamp(48px, 7vw, 88px);
}
.reel .head {
  margin-bottom: clamp(24px, 3vw, 40px);
}
.reel__frame {
  position: relative;
  width: 100%;
  max-width: calc(82vh * var(--ratio));
  margin-inline: auto;
  aspect-ratio: var(--ratio);
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: clamp(16px, 2.2vw, 28px);
  background: var(--surface);
  box-shadow: 0 50px 140px -50px color-mix(in srgb, var(--accent) 38%, transparent), 0 30px 70px -30px rgba(0, 0, 0, 0.55);
}
.reel__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}
.reel__frame iframe,
.reel__frame > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.reel__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.32), transparent 42%);
}
.reel__label {
  position: absolute;
  left: clamp(12px, 2vw, 22px);
  top: clamp(12px, 2vw, 22px);
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 500 0.6875rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--empty {
  display: grid;
  place-items: center;
  background: radial-gradient(120% 90% at 30% 10%, color-mix(in srgb, var(--accent) 16%, var(--surface-2)), var(--surface));
  color: color-mix(in srgb, var(--text) 30%, transparent);
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #0a0a0c;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease), opacity 0.3s, background 0.2s;
}
.play .icon {
  margin-left: 3px;
}
.play--lg {
  width: clamp(64px, 8vw, 92px);
  height: clamp(64px, 8vw, 92px);
  margin: calc(clamp(64px, 8vw, 92px) / -2) 0 0 calc(clamp(64px, 8vw, 92px) / -2);
}
.reel__poster:hover .play {
  transform: scale(1.07);
  background: #fff;
}

/* ---------------------------------------------------------------- brands */

.brands {
  padding: clamp(4px, 1vw, 12px) 0 clamp(56px, 8vw, 104px);
}
.brands__label {
  margin: 0 0 30px;
  color: var(--faint);
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}
.brands .head {
  margin-bottom: 32px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee calc(var(--items) * 3.4s) linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.logo {
  flex: none;
  display: grid;
  place-items: center;
  height: 44px;
  padding: 0 clamp(20px, 3.2vw, 44px);
}
.logo a {
  display: grid;
  place-items: center;
}
.logo img {
  display: block;
  width: auto;
  height: 30px;
  max-width: 170px;
  object-fit: contain;
  transition: opacity 0.2s;
}
.logo__text {
  color: var(--muted);
  font-size: 1.3125rem;
  font-weight: 620;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
/* One-colour treatment so logos of every style sit together. Works best with transparent PNG / SVG files. */
.brands--mono .logo img,
.mono-logos .case__client img {
  filter: brightness(0) invert(1);
  opacity: 0.6;
}
[data-theme='light'] .brands--mono .logo img,
[data-theme='light'] .mono-logos .case__client img {
  filter: brightness(0);
  opacity: 0.62;
}
.brands--mono .logo a:hover img {
  opacity: 1;
}

/* -------------------------------------------------------------- sections */

.section {
  padding: clamp(68px, 9.5vw, 132px) 0;
}
.head {
  margin-bottom: clamp(36px, 5vw, 60px);
}
.head--center {
  text-align: center;
}
.head--center .head__text {
  max-width: 760px;
  margin-inline: auto;
}
.head--center .lede {
  margin-inline: auto;
}
.head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}
.h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.h3 {
  margin: 0 0 8px;
  font-size: 1.1875rem;
  font-weight: 560;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.lede {
  max-width: 34em;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ------------------------------------------------------------------ work */

.chips {
  display: flex;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 3%, transparent);
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  height: 34px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.chip:hover {
  color: var(--text);
}
.chip.is-on {
  background: var(--text);
  color: var(--bg);
}

.grid {
  display: grid;
  gap: clamp(10px, 1.4vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.grid + .grid {
  margin-top: clamp(10px, 1.4vw, 18px);
}
.grid--tall {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card[hidden] {
  display: none;
}
.card__btn {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: #fff;
  text-align: left;
  cursor: pointer;
  /* keeps rounded corners crisp while the image scales (Safari) */
  transform: translateZ(0);
}
.card__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  pointer-events: none;
}
.grid--tall .card__btn {
  aspect-ratio: 9 / 16;
}
.grid--wide .card__btn {
  aspect-ratio: 16 / 9;
}
.card .media {
  transition: transform 0.7s var(--ease);
}
.card__btn:hover .media {
  transform: scale(1.045);
}
.card__preview {
  opacity: 0;
  transition: opacity 0.35s;
}
.card__preview.is-on {
  opacity: 1;
}
.card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.16) 40%, transparent 62%);
}
.card__tag,
.card__time {
  position: absolute;
  top: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 500 0.6875rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card__tag {
  left: 12px;
}
.card__time {
  right: 12px;
  letter-spacing: 0.02em;
}
.card__meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 15px;
  display: grid;
  gap: 3px;
}
.card__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1rem;
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.card__client {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
}
.card .play {
  opacity: 0;
  transform: scale(0.86);
}
.card__btn:hover .play,
.card__btn:focus-visible .play {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .card .play {
    opacity: 0.92;
    transform: none;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
  }
}
.work__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 3vw, 40px);
}
.work__more[hidden] {
  display: none;
}

@media (max-width: 1000px) {
  .grid--tall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .grid--tall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--wide {
    grid-template-columns: minmax(0, 1fr);
  }
  .card__meta {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .grid--tall .card__title {
    font-size: 0.875rem;
  }
  .grid--tall .card__time {
    display: none;
  }
}

/* --------------------------------------------------------------- results */

.kpis {
  display: grid;
  grid-template-columns: repeat(var(--count), minmax(0, 1fr));
  margin: 0 0 clamp(12px, 1.6vw, 20px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.kpi {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 12px;
  padding: clamp(22px, 3vw, 38px);
  border-left: 1px solid var(--line);
}
.kpi:first-child {
  border-left: 0;
}
.kpi dd {
  margin: 0;
  font-size: clamp(2.125rem, 4.4vw, 3.375rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.kpi dt {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Cards wrap like a bento grid and always fill their row: a featured card takes
   two shares, and a card left alone on the last row stretches across. Each card
   switches to a two-column layout once it is wide enough. */
.cases {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 1.6vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.case {
  container-type: inline-size;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
  padding: clamp(22px, 2.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.case--wide {
  flex: 2 1 560px;
}
.case__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
}
.case__client {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.case__client img {
  display: block;
  width: auto;
  height: 24px;
  max-width: 150px;
  object-fit: contain;
}
.mono-logos .case__client img {
  opacity: 0.92;
}
.case__body {
  display: grid;
  flex: 1;
  gap: 24px;
  align-content: start;
}
@container (min-width: 520px) {
  .case__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(24px, 5cqi, 56px);
    align-items: end;
  }
  .case__num {
    font-size: clamp(3.25rem, 13cqi, 6rem);
  }
}
.case__num {
  margin: 0;
  font-size: clamp(2.875rem, 5.6vw, 4.5rem);
  font-weight: 560;
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.case__label {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
.case__detail {
  display: grid;
  gap: 20px;
}
.case__sum {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.case__sum strong {
  color: var(--text);
  font-weight: 540;
}
.compare {
  display: grid;
  gap: 10px;
}
.compare__label {
  margin: 0 0 2px;
  color: var(--faint);
  font: 500 0.6875rem/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare__row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.compare__row b {
  min-width: 2.5em;
  color: var(--text);
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
}
.bar i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: color-mix(in srgb, var(--text) 34%, transparent);
  transform-origin: left center;
}
.compare__row--after .bar i {
  background: var(--accent);
}
.case__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.case__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  list-style: none;
}
.case__metrics b {
  color: var(--text);
  font-weight: 560;
}

@media (max-width: 760px) {
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi:nth-child(odd) {
    border-left: 0;
  }
  .kpi:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* ---------------------------------------------------------- testimonials */

.quotes__grid {
  display: grid;
  grid-template-columns: repeat(var(--count), minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.quote {
  display: flex;
  padding: clamp(22px, 2.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.quote figure {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  margin: 0;
}
.quote blockquote {
  margin: 0;
}
.quote blockquote p {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.quote blockquote strong {
  color: var(--text);
  font-weight: 520;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface-2));
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 600;
}
.quote__who {
  display: grid;
  min-width: 0;
  line-height: 1.35;
}
.quote__who b {
  font-size: 0.9375rem;
  font-weight: 560;
}
.quote__who span {
  color: var(--faint);
  font-size: 0.8125rem;
}
@media (max-width: 980px) {
  .quotes__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .quotes__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------- cards and steps */

.features {
  display: grid;
  grid-template-columns: repeat(var(--count), minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  padding: clamp(22px, 2.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  color: var(--accent-text);
}
.features--steps .feature__icon {
  font: 500 0.8125rem/1 var(--mono);
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
@media (max-width: 980px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------------------------- text + image */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.split--solo {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}
.split--flip .split__media {
  order: -1;
}
.split__media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.prose {
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.prose > :first-child {
  margin-top: 0;
}
.prose > :last-child {
  margin-bottom: 0;
}
.prose p {
  margin: 0 0 1em;
}
.prose strong {
  color: var(--text);
  font-weight: 560;
}
.prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent-text);
  text-underline-offset: 4px;
}
.prose ul {
  margin: 0 0 1em;
  padding-left: 1.15em;
}
.prose li {
  margin: 0.35em 0;
}
.prose li::marker {
  color: var(--accent-text);
}
@media (max-width: 820px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .split--flip .split__media {
    order: 0;
  }
}

/* ------------------------------------------------------------------- faq */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}
.faq .head {
  position: sticky;
  top: 104px;
  margin: 0;
}
.qa {
  border-bottom: 1px solid var(--line);
}
.qa:first-child {
  border-top: 1px solid var(--line);
}
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 1.0625rem;
  font-weight: 520;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary .icon {
  color: var(--muted);
  transition: transform 0.3s var(--ease);
}
.qa[open] summary .icon {
  transform: rotate(45deg);
}
.qa__a {
  margin: 0;
  padding: 0 44px 24px 0;
  font-size: 1rem;
}
@media (max-width: 820px) {
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq .head {
    position: static;
  }
}

/* --------------------------------------------------------------- pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(var(--count), minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.plan--hl {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 60%);
  box-shadow: 0 40px 90px -50px color-mix(in srgb, var(--accent) 55%, transparent);
}
.plan__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  font-size: 1rem;
  font-weight: 560;
  letter-spacing: -0.015em;
}
.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 0;
}
.plan__price b {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.05em;
}
.plan__price span {
  color: var(--muted);
  font-size: 0.875rem;
}
.plan__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
.plan__list {
  display: grid;
  flex: 1;
  gap: 11px;
  align-content: start;
  margin: 0;
  padding: 20px 0 6px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  list-style: none;
}
.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.plan__list .icon {
  margin-top: 4px;
  color: var(--accent-text);
}
.plan .btn {
  margin-top: auto;
}
@media (max-width: 900px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 460px;
    margin-inline: auto;
  }
}

/* ----------------------------------------------------------------- embed */

.embed {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.embed--frame {
  border: 1px solid var(--line);
  background: var(--surface);
}
.embed iframe {
  display: block;
  width: 100%;
  height: var(--h);
  border: 0;
}

/* ------------------------------------------------------------------- cta */

.cta__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(52px, 8.5vw, 112px) clamp(20px, 5vw, 64px);
  border: 1px solid var(--line-2);
  border-radius: clamp(22px, 3vw, 36px);
  background: var(--surface);
  text-align: center;
}
.cta__glow {
  position: absolute;
  inset: auto -15% -70%;
  z-index: -1;
  height: 130%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 30%, transparent), transparent);
}
.cta__title {
  max-width: 12.5em;
  margin: 0 auto;
  font-size: clamp(2.25rem, 5.8vw, 4.5rem);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.048em;
  text-wrap: balance;
}
.cta .lede {
  margin-inline: auto;
}
.cta__mail {
  margin: 26px 0 0;
  color: var(--muted);
  font: 500 0.875rem/1.4 var(--mono);
}
.cta__mail a:hover {
  color: var(--text);
}
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cta .socials {
  margin-top: 26px;
}
.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.socials a:hover {
  border-color: var(--line-2);
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text);
}

/* ---------------------------------------------------------------- footer */

.footer {
  padding: 44px 0 30px;
  border-top: 1px solid var(--line);
}
.footer__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
}
.footer__brand p {
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 0.875rem;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}
.footer__links a {
  color: var(--muted);
  font-size: 0.9375rem;
  transition: color 0.2s;
}
.footer__links a:hover {
  color: var(--text);
}
.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.8125rem;
}

.footer__base p {
  margin: 0;
}
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.footer__top:hover {
  color: var(--text);
}

/* -------------------------------------------------------------- lightbox */

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(5, 5, 7, 0.9);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s;
}
.lb[hidden] {
  display: none;
}
.lb.is-open {
  opacity: 1;
}
.lb__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(14px, 3vw, 28px);
}
.lb__info {
  flex: 1;
  min-width: 0;
}
.lb__title,
.lb__client {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb__title {
  font-weight: 560;
  letter-spacing: -0.02em;
}
.lb__client {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
}
.lb__count {
  color: rgba(255, 255, 255, 0.55);
  font: 500 0.75rem/1 var(--mono);
  white-space: nowrap;
}
.lb__btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.lb__btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.lb__btn[hidden] {
  display: none;
}
.lb__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  min-height: 0;
  padding: 0 clamp(10px, 2vw, 24px);
}
.lb__player {
  grid-column: 2;
  justify-self: center;
  width: 100%;
  max-width: calc((100vh - 176px) * var(--ratio, 16 / 9));
  max-width: calc((100dvh - 176px) * var(--ratio, 16 / 9));
  aspect-ratio: var(--ratio, 16 / 9);
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.65);
}
.lb__player iframe,
.lb__player video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.lb__nav--prev {
  grid-column: 1;
}
.lb__nav--next {
  grid-column: 3;
}
.lb__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 24px;
  min-height: 72px;
  padding: 16px clamp(14px, 3vw, 28px) 20px;
}
.lb__text {
  max-width: 44em;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.lb__link {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}
.lb__link[hidden] {
  display: none;
}
@media (max-width: 720px) {
  .lb__stage {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    padding: 0 10px;
  }
  .lb__player {
    grid-column: 1;
    max-width: calc((100dvh - 200px) * var(--ratio, 16 / 9));
  }
  .lb__nav {
    position: absolute;
    bottom: -58px;
    z-index: 2;
  }
  .lb__nav--prev {
    right: 66px;
  }
  .lb__nav--next {
    right: 12px;
  }
  .lb__foot {
    padding-right: 128px;
  }
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
.js .reveal .bar i {
  transform: scaleX(0);
  transition: transform 1.1s var(--ease) 0.25s;
}
.js .reveal.is-in .bar i {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal,
  .js .reveal .bar i {
    opacity: 1;
    transform: none;
  }
  /* a logo strip that can't scroll becomes a simple wrapped row */
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee__track {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    row-gap: 18px;
  }
  .marquee__track [aria-hidden='true'] {
    display: none;
  }
}

/* ---- custom: left-to-right marquees + category rows ---- */
@keyframes marquee-ltr {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.marquee__track { animation-name: marquee-ltr; }
.work-row + .work-row { margin-top: clamp(28px, 4vw, 48px); }
.work-row__title {
  margin: 0 0 14px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.marquee--work { margin-inline: calc(var(--gutter, 20px) * -0.5); }
.marquee--work .marquee__track {
  gap: clamp(10px, 1.4vw, 18px);
  animation-duration: calc(var(--items) * 5s);
}
.marquee--work .card { flex: none; list-style: none; }
.marquee--work .card--tall { width: clamp(150px, 18vw, 230px); }
.marquee--work .card--wide { width: clamp(260px, 32vw, 420px); }
.marquee--work .card--tall .card__btn { aspect-ratio: 9 / 16; }
.marquee--work .card--wide .card__btn { aspect-ratio: 16 / 9; }
.marquee--work .marquee__track:has(.card__btn:focus-visible) { animation-play-state: paused; }
