/* =========================================================
   Digital AQM — brand & growth studio
   Handwritten CSS. No framework, no build step.
   ========================================================= */

/* ── tokens ──────────────────────────────────────────────── */
:root {
  --accent:      #d6ff3f;
  --accent-2:    #7c5cff;
  --accent-3:    #ff6b4a;

  --bg:          #0a0a0b;
  --bg-2:        #0f0f11;
  --surface:     rgba(255, 255, 255, .035);
  --surface-2:   rgba(255, 255, 255, .06);
  --line:        rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);
  --ink:         #f4f4f5;
  --ink-2:       rgba(244, 244, 245, .62);
  --ink-3:       rgba(244, 244, 245, .38);
  --on-accent:   #0a0a0b;

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap:  1240px;
  --pad:   clamp(1.25rem, 5vw, 3.5rem);
  --gap:   clamp(1rem, 2.2vw, 1.75rem);
  --radius: 20px;

  --ease:  cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

[data-theme="light"] {
  --accent:      #1f1f22;
  --accent-2:    #5b3df5;
  --accent-3:    #ff5b34;

  --bg:          #f2f1ee;
  --bg-2:        #e9e8e4;
  --surface:     rgba(10, 10, 11, .028);
  --surface-2:   rgba(10, 10, 11, .055);
  --line:        rgba(10, 10, 11, .12);
  --line-strong: rgba(10, 10, 11, .24);
  --ink:         #101012;
  /* darker than the dark-theme equivalents: the same alpha over a light
     ground gives far less contrast, and these now carry the default view */
  --ink-2:       rgba(16, 16, 18, .76);
  --ink-3:       rgba(16, 16, 18, .61);
  --on-accent:   #f7f7f5;
}

/* ── reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.6;
  letter-spacing: -.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .5s var(--ease), color .5s var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  background: var(--accent); color: var(--on-accent);
  padding: .7rem 1.1rem; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ── loader ──────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg);
  display: grid; place-content: center; gap: 1.75rem;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader__inner {
  display: flex; align-items: baseline; gap: .9rem;
  font-family: var(--font-display);
}
.loader__mark {
  font-size: clamp(2.5rem, 9vw, 4.5rem); font-weight: 700; letter-spacing: -.05em;
}
.loader__count { font-size: 1rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.loader__bar { width: min(280px, 60vw); height: 2px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--accent); }

/* ── ambient ─────────────────────────────────────────────── */
/* Decorative fixed layers are clipped to the viewport on purpose: a fixed
   element that sticks out past the right edge still enlarges the document's
   scrollable area in Chrome, which lets the whole page swipe sideways. The
   animated layer lives on a child so it can overshoot inside the clip. */
.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  overflow: hidden;
}
.grain::after {
  content: ''; position: absolute; inset: -50%;
  opacity: .16; mix-blend-mode: overlay;
  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'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(6) infinite;
}

.ambient {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-2%, 4%); }
  80% { transform: translate(5%, 2%); }
}

.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .35; pointer-events: none;
  transition: transform .8s var(--ease);
}
.orb--a {
  width: 48vw; height: 48vw; top: -14vw; right: -12vw;
  background: radial-gradient(circle at 40% 40%, var(--accent-2), transparent 68%);
}
.orb--b {
  width: 42vw; height: 42vw; top: 58vh; left: -14vw;
  background: radial-gradient(circle at 60% 50%, var(--accent), transparent 66%);
  opacity: .22;
}
[data-theme="light"] .orb { opacity: .30; }
[data-theme="light"] .grain::after { mix-blend-mode: multiply; opacity: .09; }

/* ── cursor ──────────────────────────────────────────────── */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 250; pointer-events: none;
  width: 11px; height: 11px; border-radius: 999px;
  background: var(--accent);
  display: grid; place-items: center;
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease), height .35s var(--ease),
              background .3s var(--ease), opacity .3s;
  mix-blend-mode: difference;
  opacity: 0;
}
.cursor.on { opacity: 1; }
.cursor span {
  font-family: var(--font-display);
  font-size: .68rem; font-weight: 600; letter-spacing: .02em;
  color: var(--on-accent); opacity: 0; white-space: nowrap;
  transition: opacity .25s var(--ease);
}
.cursor.hot { width: 88px; height: 88px; mix-blend-mode: normal; }
.cursor.hot span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ── nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s, padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
  padding-block: .75rem;
}
.nav.hide { transform: translateY(-110%); }
.nav { transition-property: background, backdrop-filter, border-color, padding, transform; }

.nav__logo {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 500;
  letter-spacing: -.03em; font-size: 1.06rem;
}
.nav__logo b { font-weight: 700; }
.nav__dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent);
  animation: ping 2.8s var(--ease) infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70%  { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__links > a {
  font-size: .93rem; color: var(--ink-2); position: relative;
  transition: color .3s var(--ease);
}
.nav__links > a:not(.nav__cta)::after {
  content: ''; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__links > a:hover { color: var(--ink); }
.nav__links > a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  background: var(--accent); color: var(--on-accent) !important;
  padding: .55rem 1.05rem; border-radius: 999px; font-weight: 600;
  display: inline-flex; align-items: center; gap: .45rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.nav__cta i { font-style: normal; transition: transform .35s var(--ease); }
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.nav__cta:hover i { transform: translateX(3px); }

.nav__tools { display: flex; align-items: center; gap: .75rem; }

.theme-toggle {
  width: 46px; height: 26px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  position: relative; flex: none;
}
.theme-toggle__thumb {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  transition: transform .4s var(--ease);
}
[data-theme="light"] .theme-toggle__thumb { transform: translateX(20px); }

.burger { display: none; width: 34px; height: 26px; position: relative; }
.burger i {
  position: absolute; left: 4px; right: 4px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .4s var(--ease), opacity .3s;
}
.burger i:first-child { top: 8px; }
.burger i:last-child  { bottom: 8px; }
.burger[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* ── shared type ─────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: flex-start; gap: .5rem;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3);
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  flex: none; margin-top: .42em;          /* sits on the first line when the label wraps */
  animation: ping 2.4s var(--ease) infinite;
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  font-weight: 600; line-height: 1.02; letter-spacing: -.04em;
  margin-top: .9rem;
}
.sec-sub {
  color: var(--ink-2); max-width: 52ch; margin-top: 1.1rem;
  font-size: clamp(1rem, .95rem + .25vw, 1.13rem);
}
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section { padding-block: clamp(5rem, 12vw, 9.5rem); position: relative; scroll-margin-top: 5rem; }
.sec-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.sec-head--row {
  display: flex; flex-wrap: wrap; gap: 2rem;
  align-items: flex-end; justify-content: space-between;
}
.sec-head--row .sec-sub { max-width: 34ch; }

/* ── buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .97rem;
  border: 1px solid transparent; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, color .4s, background .4s;
  will-change: transform;
}
.btn i { font-style: normal; transition: transform .4s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--accent-2), var(--accent-3));
  opacity: 0; transition: opacity .45s var(--ease); z-index: -1;
}
.btn--primary:hover { color: #fff; }
.btn--primary:hover::before { opacity: 1; }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn--block { width: 100%; }

/* ── hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: 8rem 4rem;
  position: relative; overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 80%);
  opacity: .5;
}
.hero__inner { width: 100%; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11.5vw, 9.5rem);
  font-weight: 600; line-height: .92; letter-spacing: -.055em;
  margin: 1.4rem 0 0;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span {
  display: block;
  transform: translateY(105%);
  animation: riseIn 1.05s var(--ease) forwards;
}
.hero__title .line:nth-child(1) > span { animation-delay: .15s; }
.hero__title .line:nth-child(2) > span { animation-delay: .27s; }
.hero__title .line:nth-child(3) > span { animation-delay: .39s; }
@keyframes riseIn { to { transform: translateY(0); } }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 2rem clamp(2rem, 6vw, 5rem);
  align-items: flex-end; justify-content: space-between;
  margin-top: clamp(2rem, 4vw, 3.2rem);
}
.hero__lede { color: var(--ink-2); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--gap);
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding-top: 1.9rem; border-top: 1px solid var(--line);
}
.hero__reassure {
  flex-basis: 100%;
  font-size: .88rem; color: var(--ink-3); margin-top: .3rem;
}
.hero__clients {
  margin-top: 1.6rem;
  font-size: .86rem; color: var(--ink-3); line-height: 1.7;
}
.hero__clients span {
  display: block;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); opacity: .75; margin-bottom: .35rem;
}

.stat b {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.9rem); font-weight: 600;
  letter-spacing: -.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: .85rem; color: var(--ink-3); }

/* pinned to the viewport, not the hero box — the hero is taller than the
   fold once the stat row is in, so an absolute cue would sit on top of it */
.scroll-cue {
  position: fixed; bottom: 1.8rem; left: 50%; translate: -50% 0; z-index: 110;
  display: flex; align-items: center; gap: .6rem;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3);
  transition: opacity .45s var(--ease);
}
.scroll-cue.gone { opacity: 0; }
.scroll-cue span {
  width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent);
  animation: cue 2s var(--ease-in-out) infinite;
}
@keyframes cue { 0%,100% { opacity: .25; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ── interior page header ────────────────────────────────── */
.page-head { padding-block: clamp(8rem, 16vw, 12rem) clamp(2.5rem, 6vw, 4rem); }
.crumbs {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 1.6rem;
}
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--accent); }
.crumbs span:last-child { color: var(--ink-2); }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  font-weight: 600; line-height: .98; letter-spacing: -.05em;
}
.page-lede {
  color: var(--ink-2); max-width: 56ch; margin-top: 1.6rem;
  font-size: clamp(1rem, .95rem + .25vw, 1.13rem);
}

/* ── marquee ─────────────────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 1.15rem;
  overflow: hidden; white-space: nowrap;
  background: var(--surface);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 2.4rem;
  animation: slide 34s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.7rem); font-weight: 500;
  letter-spacing: -.02em;
}
.marquee__track i { color: var(--accent); font-style: normal; font-size: .8em; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ── cards ───────────────────────────────────────────────── */
.cards {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
/* With a card count that leaves one stranded on the final row of a three-up
   grid, let it run the full width so the row reads as deliberate. */
@media (min-width: 940px) {
  .cards > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}
.card {
  position: relative; isolation: isolate;
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s, background .5s;
}
.card::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              color-mix(in srgb, var(--accent) 14%, transparent), transparent 62%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.card:hover::after { opacity: 1; }
.card__num {
  font-family: var(--font-display); font-size: .8rem;
  color: var(--ink-3); letter-spacing: .1em;
}
.card h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -.03em;
  margin: .9rem 0 .6rem;
}
.card p { color: var(--ink-2); font-size: .97rem; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.3rem; }
.tags li {
  font-size: .76rem; letter-spacing: .02em;
  padding: .3rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-3);
}
.card--accent {
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--accent) 20%, transparent),
    color-mix(in srgb, var(--accent-2) 16%, transparent));
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
}
.card--accent p { color: var(--ink); opacity: .82; }

/* ── long-form body copy (service + policy pages) ────────── */
.prose { max-width: 68ch; }
.prose p { color: var(--ink-2); margin-bottom: 1.15rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="light"] .prose a { color: var(--accent-2); }
.prose h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: -.03em;
  margin: 2.6rem 0 .9rem;
}
.prose h2:first-child { margin-top: 0; }

/* cards that link somewhere */
a.card { display: block; text-decoration: none; }
.card__go {
  display: inline-block; margin-top: 1.3rem;
  font-family: var(--font-display); font-size: .87rem; font-weight: 600;
  color: var(--accent);
  transition: transform .35s var(--ease);
}
[data-theme="light"] .card__go { color: var(--accent-2); }
a.card:hover .card__go { transform: translateX(4px); }

/* proof strip on service pages */
.proof {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
  padding-top: 2rem; border-top: 1px solid var(--line);
}
.proof b {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600;
  letter-spacing: -.04em; line-height: 1; margin-bottom: .4rem;
  color: var(--accent);
}
[data-theme="light"] .proof b { color: var(--accent-2); }
.proof span { font-size: .8rem; color: var(--ink-3); }

/* ── work ────────────────────────────────────────────────── */
.section--work { background: var(--bg-2); }
.work {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.work__item {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
  display: flex; flex-direction: column;
  transition: transform .55s var(--ease), border-color .55s;
}
.work__item:hover { transform: translateY(-8px); border-color: var(--line-strong); }

/* headline case studies run the full width, thumb beside the copy */
.work__item--wide { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .work__item--wide {
    display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    align-items: stretch;
  }
  .work__item--wide .work__thumb { aspect-ratio: auto; height: 100%; min-height: 300px; }
}

.work__thumb {
  aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  display: grid; place-items: end start; padding: 1.1rem;
}
.work__thumb::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 34px 34px; opacity: .6;
}
.work__thumb::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.35), transparent 55%);
  mix-blend-mode: overlay;
  transition: transform .8s var(--ease);
}
.work__item:hover .work__thumb::after { transform: scale(1.15) rotate(4deg); }
.work__thumb--1 { background: linear-gradient(135deg, #ff9d4d, #c2410c 55%, #431407); }
.work__thumb--2 { background: linear-gradient(135deg, #7c5cff, #3b1fa8 55%, #12082f); }
.work__thumb--3 { background: linear-gradient(135deg, #3ddc97, #0f766e 55%, #052e2b); }
.work__thumb--4 { background: linear-gradient(135deg, #d6ff3f, #65a30d 55%, #1a2e05); }
.work__thumb--5 { background: linear-gradient(135deg, #7dd3fc, #0369a1 55%, #082f49); }
.work__thumb--6 { background: linear-gradient(135deg, #f9a8d4, #be185d 55%, #4c0519); }
.work__thumb--7 { background: linear-gradient(135deg, #fca5a5, #dc2626 55%, #450a0a); }
.work__badge {
  position: relative; z-index: 1;
  font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(10,10,11,.55); color: #fff; backdrop-filter: blur(8px);
  padding: .4rem .8rem; border-radius: 999px;
}

.work__body {
  padding: clamp(1.3rem, 2.4vw, 1.9rem);
  display: flex; flex-direction: column; flex: 1;
}
.work__title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.work__title h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -.03em;
}
.work__title span {
  font-size: .78rem; color: var(--ink-3);
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.work__body > p { color: var(--ink-2); font-size: .97rem; margin-top: .55rem; }
.work__metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem 1rem;
  margin-top: auto; padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.work__metrics > div { padding-top: .1rem; }
.work__metrics b {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.75vw, 1.4rem); font-weight: 600; letter-spacing: -.03em;
  color: var(--accent); line-height: 1.15;
}
[data-theme="light"] .work__metrics b { color: var(--accent-2); }
.work__metrics span { font-size: .76rem; color: var(--ink-3); }

/* the notes under the metrics — the "why", in the client's own framing */
.work__notes {
  display: grid; gap: 1.1rem;
  margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line);
}
.work__item--wide .work__notes { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.work__notes dt {
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: .4rem;
}
.work__notes dd { font-size: .91rem; color: var(--ink-2); line-height: 1.55; }

/* ── roles ───────────────────────────────────────────────── */
.roles { border-top: 1px solid var(--line); }
.role {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: .6rem clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.4rem, 2.6vw, 2rem) clamp(0rem, 1.5vw, 1.2rem);
  border-bottom: 1px solid var(--line);
  transition: background .45s var(--ease), padding-left .45s var(--ease);
}
.role:hover { background: var(--surface-2); padding-left: clamp(.8rem, 2.5vw, 2rem); }
.role__head h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.03em;
}
.role__meta { font-size: .82rem; color: var(--ink-3); display: block; margin-top: .3rem; }
.role p { color: var(--ink-2); font-size: .97rem; }

/* ── stack ───────────────────────────────────────────────── */
.stack {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));  /* → 3 × 2 on desktop */
}
.stack__col {
  padding: clamp(1.3rem, 2.4vw, 1.8rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .45s, transform .45s var(--ease);
}
.stack__col:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.stack__col h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.05rem; letter-spacing: -.02em; margin-bottom: 1rem;
  padding-bottom: .8rem; border-bottom: 1px solid var(--line);
}
.stack__col ul { display: flex; flex-wrap: wrap; gap: .4rem; }
.stack__col li {
  font-size: .8rem; padding: .32rem .72rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-2);
}

/* ── process ─────────────────────────────────────────────── */
.process {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  align-items: start;
}
.process__sticky { position: sticky; top: 8rem; }
.process__sticky .btn { margin-top: 2rem; }

.steps { display: grid; gap: 1rem; }
.step {
  display: flex; gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  transition: transform .5s var(--ease), background .5s, border-color .5s;
}
.step:hover { transform: translateX(8px); background: var(--surface-2); border-color: var(--line-strong); }
.step__n {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  line-height: 1; flex: none;
}
.step h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -.03em; margin-bottom: .45rem;
}
.step p { color: var(--ink-2); font-size: .97rem; }

/* ── about ───────────────────────────────────────────────── */
.section--about { background: var(--bg-2); }
.about {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  align-items: center;
}
.about__visual { position: relative; }
.about__portrait {
  position: relative;
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 55%),
    linear-gradient(150deg, var(--accent-2), #150c37 70%);
  display: grid; place-items: center;
  border: 1px solid var(--line);
  overflow: hidden;
}
/* The photo, when there is one. Needs z-index 1 to cover the initials: that
   span has mix-blend-mode, which paints it in the same layer as positioned
   siblings, so DOM order alone would leave it showing through the photo.
   The name chip sits at z-index 2 and stays on top of both. */
.about__portrait img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;   /* bias toward the face */
}
.about__portrait span {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 8vw, 5.5rem); letter-spacing: -.06em;
  color: rgba(255,255,255,.9);
  mix-blend-mode: overlay;
}
.about__chip {
  position: absolute; z-index: 2;   /* stays above the portrait photo */
  left: clamp(.75rem, 3vw, 1.6rem); bottom: clamp(-1.2rem, -2vw, -1rem);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); border-radius: 14px;
  padding: .85rem 1.15rem;
}
.about__chip b { display: block; font-family: var(--font-display); letter-spacing: -.02em; }
.about__chip span { font-size: .8rem; color: var(--ink-3); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.chips li {
  font-size: .82rem; padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  transition: border-color .35s, color .35s, transform .35s var(--ease);
}
.chips li:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }

/* ── faq ─────────────────────────────────────────────────── */
.faq-wrap { max-width: 900px; }
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem .25rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem); letter-spacing: -.02em;
  transition: color .3s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '+'; flex: none;
  font-size: 1.4rem; line-height: 1; color: var(--ink-3);
  transition: transform .4s var(--ease), color .3s;
}
.qa[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.qa summary:hover { color: var(--accent); }
[data-theme="light"] .qa summary:hover,
[data-theme="light"] .qa[open] summary::after { color: var(--accent-2); }
.qa__body { padding: 0 .25rem 1.5rem; }
.qa__body p { color: var(--ink-2); font-size: .99rem; max-width: 68ch; }

/* ── cta / form ──────────────────────────────────────────── */
.section--cta { background: var(--bg-2); }
.cta {
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: start;
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 600; line-height: .98; letter-spacing: -.05em; margin-top: .9rem;
}
.cta__assure { margin-top: 1.6rem; display: grid; gap: .55rem; }
.cta__assure li {
  position: relative; padding-left: 1.5rem;
  font-size: .93rem; color: var(--ink-2);
}
.cta__assure li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}
[data-theme="light"] .cta__assure li::before { color: var(--accent-2); }

.cta__direct { margin-top: 2.5rem; }
.cta__mail {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.5rem); letter-spacing: -.03em;
  border-bottom: 1px solid var(--line-strong); padding-bottom: .2rem;
  transition: color .35s, border-color .35s;
}
.cta__mail:hover { color: var(--accent); border-color: var(--accent); }

.contact-list { margin-top: 2rem; display: grid; gap: .1rem; }
.contact-list li {
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem;
  justify-content: space-between; align-items: baseline;
  padding: .85rem 0; border-top: 1px solid var(--line);
}
.contact-list span {
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3);
}
.contact-list a, .contact-list b { font-size: .97rem; font-weight: 400; }
.contact-list a { transition: color .3s; }
.contact-list a:hover { color: var(--accent); }

.form {
  display: grid; gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: transparent;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 1.35rem .95rem .6rem;
  transition: border-color .35s, background .35s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface-2);
}
.field > label {
  position: absolute; left: .95rem; top: 1rem;
  font-size: .95rem; color: var(--ink-3); pointer-events: none;
  transition: transform .28s var(--ease), font-size .28s var(--ease), color .28s;
  transform-origin: left top;
}
.field > label em { font-style: normal; opacity: .7; }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-.72rem) scale(.78);
  color: var(--ink-2);
}
.field.invalid input, .field.invalid textarea { border-color: var(--accent-3); }

.field--pills { border: 0; }
.field--pills legend {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: .7rem;
}
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pills label { cursor: pointer; }
/* Must be size-constrained: these sit inside .field, so `.field input`
   above hands them width:100%, and absolute positioning then pushes each
   one a full form-width to the right — enough to make the whole page
   scroll sideways on mobile. */
.pills input {
  position: absolute; opacity: 0; pointer-events: none;
  width: 1px; height: 1px; margin: 0;
}
.pills span {
  display: inline-block;
  padding: .5rem .95rem; border-radius: 999px;
  border: 1px solid var(--line); font-size: .87rem; color: var(--ink-2);
  transition: all .3s var(--ease);
}
.pills input:checked + span {
  background: var(--accent); color: var(--on-accent);
  border-color: var(--accent); font-weight: 600;
}
.pills input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* spam trap — off-screen rather than display:none, which some bots skip */
.honeypot {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

.form__note { font-size: .87rem; color: var(--ink-3); min-height: 1.2em; text-align: center; }
.form__note a { text-decoration: underline; text-underline-offset: 3px; }

/* the routes offered when no form service is wired up (or one fails) */
.form__routes {
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: center; margin-top: .8rem;
}
.route {
  font-family: var(--font-display); font-size: .85rem; font-weight: 600;
  padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink);
  text-decoration: none; cursor: pointer;
  transition: background .3s var(--ease), border-color .3s, transform .3s var(--ease);
}
/* beats the `.form__note a` underline above on specificity */
.form__note .route { text-decoration: none; }
.route:hover { background: var(--surface-2); border-color: var(--ink-3); transform: translateY(-2px); }
.route--go { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.route--go:hover { background: var(--accent); filter: brightness(1.08); }
.form button[type="submit"]:disabled { opacity: .65; cursor: wait; }
.form__note.ok { color: var(--accent); }
[data-theme="light"] .form__note.ok { color: var(--accent-2); }
.form__note.err { color: var(--accent-3); }

/* ── footer ──────────────────────────────────────────────── */
.footer { padding-block: clamp(3.5rem, 8vw, 6rem) 2rem; border-top: 1px solid var(--line); }
.footer__top {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  color: var(--ink-2); font-size: .95rem;
}
.footer__label {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: .7rem;
}
.footer__top a { transition: color .3s; }
.footer__top a:hover { color: var(--accent); }

.footer__mark {
  font-family: var(--font-display); font-weight: 700;
  /* sized to fit on one line even in the fallback face, which is wider than
     Space Grotesk; overflow:hidden is the belt-and-braces so a nowrap
     wordmark can never widen the document and let the page swipe sideways */
  font-size: clamp(1.6rem, 9.6vw, 8.4rem); line-height: .95; letter-spacing: -.055em;
  white-space: nowrap; overflow: hidden;
  text-align: center; margin-block: clamp(2.5rem, 7vw, 4.5rem) 2rem;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  user-select: none;
}
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--ink-3);
}
.footer__up { transition: color .3s; }
.footer__up:hover { color: var(--accent); }

/* ── reveal ──────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .process, .about, .cta { grid-template-columns: 1fr; }
  .process__sticky { position: static; }
  .about__visual { max-width: 420px; }
}

@media (max-width: 900px) {
  .work { grid-template-columns: 1fr; }
  .role { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .burger { display: block; }
  .nav__links {
    position: fixed; inset: 0 0 auto 0;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.4rem; height: 100svh;
    padding: 6rem var(--pad) 3rem;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(20px);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .6s var(--ease);
  }
  .nav__links.open { clip-path: inset(0 0 0 0); }
  .nav__links > a { font-family: var(--font-display); font-size: 2rem; letter-spacing: -.04em; color: var(--ink); }
  .nav__cta { font-size: 1.1rem; padding: .8rem 1.4rem; }

  .hero__stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.8rem; }
  .hero { min-height: auto; padding-block: 7.5rem 4rem; }
  .scroll-cue { display: none; }
  .work__metrics { gap: 1rem .6rem; }
}

@media (max-width: 420px) {
  .work__title { flex-direction: column; gap: .2rem; }
  .work__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── motion / print ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  .grain { display: none; }
}

@media print {
  .nav, .loader, .grain, .orb, .cursor, .marquee, .scroll-cue { display: none !important; }
  body { background: #fff; color: #000; }
}
