/* ============================================================
   Scalify v3
   Light-first. One family (Satoshi), one accent (violet).
   Hierarchy by size and colour, not weight.
   ============================================================ */

@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/satoshi-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/satoshi-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/satoshi-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #121212;
  --paper: #ffffff;
  --violet: #6c32d8;
  --violet-deep: #5526b3;

  --text: rgba(18, 18, 18, 0.80);
  --muted: rgba(18, 18, 18, 0.55);
  --faint: rgba(18, 18, 18, 0.38);
  --line: rgba(18, 18, 18, 0.10);

  --d-text: rgba(255, 255, 255, 0.78);
  --d-muted: rgba(255, 255, 255, 0.52);
  --d-line: rgba(255, 255, 255, 0.14);

  --font: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(96px, 11vw, 150px);
  --radius: 18px;
}

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

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

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}
.light { font-weight: 300; }

h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; }

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
}

.section-note { font-size: 0.9375rem; color: var(--faint); }

strong { font-weight: 500; color: var(--ink); }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head .lede { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: scale(0.985); }

.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--violet);
  color: #fff;
  box-shadow: 0 6px 24px rgba(108, 50, 216, 0.32);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  background-size: 250% 100%;
  background-position: 130% 0;
  transition: background-position 0.6s ease;
}
.btn-primary:hover { background-color: var(--violet-deep); }
.btn-primary:hover::after { background-position: -40% 0; }

.btn-line {
  border: 1px solid rgba(18, 18, 18, 0.18);
  color: var(--ink);
}
.btn-line:hover { border-color: rgba(18, 18, 18, 0.5); }

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  padding: 15px 4px;
}
.link-quiet::after { content: '→'; transition: transform 0.18s ease; }
.link-quiet:hover::after { transform: translateX(3px); }

/* ---------- Liquid glass ---------- */
.glass {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05) 55%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 18px 48px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  backdrop-filter: blur(20px) saturate(1.7);
}
.glass::before {
  /* specular highlight that drifts, like light moving across glass */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.14) 46%, rgba(255, 255, 255, 0.03) 54%, transparent 68%);
  background-size: 260% 100%;
  animation: specular 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes specular {
  0%, 100% { background-position: 120% 0; }
  50% { background-position: -30% 0; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: padding 0.3s ease;
}
.nav.scrolled { padding-top: 10px; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 80px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.3s ease, border-color 0.3s ease, height 0.3s ease,
              box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.scrolled .nav-inner {
  height: 60px;
  padding-inline: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.38));
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  backdrop-filter: blur(20px) saturate(1.7);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 12px 40px rgba(18, 18, 18, 0.14);
}
.nav-logo img { height: 40px; width: auto; transition: filter 0.3s ease, height 0.3s ease; }
.nav.scrolled .nav-logo img { height: 34px; }

/* over the dark hero the nav runs light; in the pill it flips to ink */
.nav:not(.scrolled) .nav-logo img { filter: invert(1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9688rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: #fff; }
.nav.scrolled .nav-links a { color: var(--muted); }
.nav.scrolled .nav-links a:hover { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 11px 22px; font-size: 0.9375rem; }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav-burger span {
  width: 22px; height: 1.5px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.3s ease;
}
.nav.scrolled .nav-burger span { background: var(--ink); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* full-screen glass sheet, same card language as the rest of the page */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 8px;
  z-index: 99;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88));
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 24px 80px rgba(18, 18, 18, 0.24);
  padding: 96px 26px 22px;
  overflow: auto;
}
.nav-mobile.open {
  display: flex;
  flex-direction: column;
  animation: sheet-in 0.3s ease;
}
@keyframes sheet-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.nav-mobile a:not(.btn) {
  display: block;
  padding: 17px 2px;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-mobile .btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(660px, 96vh, 960px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 36s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 8, 16, 0.42), rgba(10, 8, 16, 0.18) 40%, rgba(10, 8, 16, 0.72) 100%),
    linear-gradient(100deg, rgba(10, 8, 16, 0.66) 20%, rgba(10, 8, 16, 0.2) 60%, rgba(10, 8, 16, 0.05));
}
.hero-content {
  position: relative;
  width: 100%;
  padding-bottom: clamp(56px, 9vh, 104px);
}
.hero h1 { color: #fff; }
.hero .lede { margin-top: 26px; color: rgba(255, 255, 255, 0.76); max-width: 42em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 38px; }

/* the hero recedes into a rounded card as you scroll (driven by --hp 0..1) */
.hero-bg, .hero-scrim {
  inset: calc(var(--hp, 0) * 22px);
  border-radius: calc(var(--hp, 0) * 30px);
  overflow: hidden;
}

.btn-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  color: #fff;
}
.btn-glass:hover { background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.14)); }

/* ---------- Case study cards ---------- */
.case-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.case-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(440px, 46vw, 560px);
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
  background: #14101e;
  isolation: isolate;
}
.case-card .bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.case-card:hover .bg { transform: scale(1.05); }
.case-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 8, 16, 0.08) 30%, rgba(10, 8, 16, 0.62) 100%);
}
.case-panel {
  margin: 14px;
  width: calc(100% - 28px);
  padding: 26px 26px 24px;
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(16, 12, 26, 0.52), rgba(16, 12, 26, 0.30));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
}
.case-panel .sector {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}
.case-panel .result {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.5rem, 2.1vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}
.case-panel .what {
  display: block;
  margin-top: 12px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.68);
}
.case-panel .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
}
.case-panel .more::after { content: '→'; transition: transform 0.18s ease; }
.case-card:hover .more::after { transform: translateX(4px); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.services-intro { position: sticky; top: 120px; }
.services-intro .lede { margin-top: 18px; }
.services-intro .btn { margin-top: 32px; }

.service-rows { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.service-row h3 { transition: color 0.15s ease; }
.service-row p { margin-top: 6px; font-size: 0.9688rem; color: var(--muted); max-width: 52ch; }
.service-row .arrow { color: var(--faint); font-size: 1.125rem; transition: transform 0.18s ease, color 0.18s ease; }
a.service-row:hover h3 { color: var(--violet); }
a.service-row:hover .arrow { transform: translateX(4px); color: var(--violet); }

/* ---------- Engagement: workshop photo card ---------- */
/* the hero's opposite: enters full bleed, settles into a rounded card as it
   scrolls up the viewport (--ep 0..1, card at rest and without JS) */
.engage {
  position: relative;
  color: var(--d-text);
}
.engage-bg, .engage-scrim {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: max(var(--gutter), (100% - var(--container)) / 2 + var(--gutter));
  right: max(var(--gutter), (100% - var(--container)) / 2 + var(--gutter));
  border-radius: 30px;
  overflow: hidden;
}
.engage-bg { z-index: -2; }
.engage-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1 + var(--ep, 1) * 0.05));
}
.engage-scrim {
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 8, 16, 0.62), rgba(10, 8, 16, 0.4) 45%, rgba(10, 8, 16, 0.68));
}
.engage h2 { color: #fff; }

/* centred CTA over the workshop photo */
.engage-cta {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding-block: clamp(24px, 5vw, 64px);
}
.engage-cta h2 { color: #fff; }
.engage-cta p {
  margin-top: 22px;
  margin-inline: auto;
  max-width: 32em;
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}
.engage-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}

/* the CTA rises in once the band is on screen */
.js .engage-cta {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js .engage.in .engage-cta { opacity: 1; transform: none; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
/* only the portrait (a direct child) gets the square crop; the signature,
   which is nested inside .who, keeps its natural wide proportions */
.team-grid > img {
  width: 100%;
  aspect-ratio: 4 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}
.team-copy h2 + p { margin-top: 26px; }
.team-copy p {
  margin-top: 16px;
  color: var(--muted);
  max-width: 48ch;
}
.team-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.team-copy .who {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9688rem;
  color: var(--muted);
}
.team-copy .who .signature { display: block; height: 56px; width: auto; margin-bottom: 8px; }

/* ---------- Footer (dark) ---------- */
.footer {
  background: #0e0b16;
  color: var(--d-text);
  padding: clamp(64px, 8vw, 96px) 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: clamp(56px, 7vw, 80px);
}
.footer-brand img { height: 36px; width: auto; margin-bottom: 20px; filter: invert(1) brightness(1.8); }
.footer-brand p { font-size: 0.9375rem; color: var(--d-muted); max-width: 30ch; }
.footer-brand address {
  font-style: normal;
  margin-top: 22px;
  font-size: 0.9375rem;
  color: var(--d-muted);
  line-height: 1.7;
}
.footer-brand address a { transition: color 0.15s ease; }
.footer-brand address a:hover { color: #fff; }

.footer h4 {
  font-size: 0.9063rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 18px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { font-size: 0.9375rem; color: var(--d-muted); transition: color 0.15s ease; }
.footer ul a:hover { color: #fff; }

.footer-legal {
  padding-top: 28px;
  border-top: 1px solid var(--d-line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.8438rem;
  color: rgba(255, 255, 255, 0.42);
}
.footer-legal .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}
.footer-legal a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-intro { position: static; }
}

@media (max-width: 1000px) {
  .case-cards { grid-template-columns: 1fr; }
  .case-card { min-height: 420px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta .btn { display: none; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  /* keep text inside the hero / engagement cards as they form */
  .hero-content { padding-inline: calc(var(--gutter) + var(--hp, 0) * 14px); }
  .engage-content { padding-inline: calc(var(--gutter) + var(--ep, 1) * 12px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Interior pages (case studies, services, about, contact, etc.)
   Same language as the homepage: light-first, one accent,
   hierarchy by size and colour.
   ============================================================ */

:root {
  --paper-tint: #f6f4fb;
  --violet-soft: rgba(108, 50, 216, 0.07);
}

/* Skip link (keyboard + screen-reader users) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---- Interior nav: always in the light pill state (no dark hero) ---- */
.nav.solid .nav-inner {
  height: 66px;
  padding-inline: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5));
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  backdrop-filter: blur(20px) saturate(1.7);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 12px 40px rgba(18, 18, 18, 0.10);
}
.nav.solid .nav-logo img { filter: none; height: 32px; }
.nav.solid .nav-links a { color: var(--muted); }
.nav.solid .nav-links a:hover { color: var(--ink); }
.nav.solid .nav-burger span { background: var(--ink); }

/* ---- Page hero (breadcrumb + H1 + lede on paper) ---- */
.page-hero {
  padding-top: calc(96px + clamp(28px, 4vw, 56px));
  padding-bottom: clamp(40px, 5vw, 64px);
}
.page-hero.tint { background: var(--paper-tint); }
.page-hero .lede { margin-top: 22px; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { max-width: 40ch; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--faint);
  margin-bottom: 26px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--violet); }
.crumbs [aria-current] { color: var(--faint); }

.updated { font-size: 0.85rem; color: var(--faint); }
.page-hero .updated { margin-top: 26px; }

/* ---- Long-form prose ---- */
.prose { max-width: 720px; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.1rem);
  margin-top: 1.9em;
  max-width: 20ch;
}
.prose h3 { font-size: 1.2rem; margin-top: 1.7em; }
.prose h2 + p, .prose h3 + p { margin-top: 0.7em; }
.prose p { color: var(--text); }
.prose .answer { color: var(--ink); font-size: 1.1875rem; line-height: 1.55; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-top: 0.5em; color: var(--text); }
.prose li::marker { color: var(--violet); }
.prose a:not(.btn) {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:not(.btn):hover { color: var(--violet-deep); }

/* ---- Founder pull quote (the one quotable line) ---- */
.pull {
  margin: clamp(40px, 6vw, 68px) 0;
  padding-left: 28px;
  border-left: 3px solid var(--violet);
}
.pull blockquote {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pull .cite { margin-top: 16px; font-size: 0.95rem; color: var(--muted); }

/* ---- Data table ---- */
.table-wrap { overflow-x: auto; margin: clamp(28px, 4vw, 44px) 0; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.97rem; min-width: 460px; }
table.data caption { text-align: left; color: var(--faint); font-size: 0.85rem; margin-bottom: 12px; }
table.data th, table.data td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data thead th { color: var(--muted); font-weight: 500; }
table.data tbody th { font-weight: 500; color: var(--ink); }
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: none; }

/* ---- At-a-glance facts (case studies) ---- */
.cs-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  margin-top: clamp(36px, 5vw, 52px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}
.cs-fact .k { font-size: 0.9rem; color: var(--faint); }
.cs-fact .v { margin-top: 5px; color: var(--ink); font-weight: 500; }

/* ---- Metric strip (static, editorial, not counters) ---- */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: clamp(36px, 5vw, 60px) 0;
}
.metric { padding: clamp(24px, 3vw, 34px) 28px; border-left: 1px solid var(--line); }
.metric:first-child { border-left: none; padding-left: 0; }
.metric .n {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.metric .n .light { font-weight: 300; }
.metric .l { margin-top: 12px; font-size: 0.95rem; color: var(--muted); max-width: 24ch; }

/* ---- Editorial figure ---- */
.figure { margin: clamp(40px, 6vw, 72px) 0; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure figcaption { margin-top: 14px; font-size: 0.9rem; color: var(--faint); }

/* ---- Two-column split (sticky heading + body), reused from services ---- */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.split-aside { position: sticky; top: 110px; }
.split-aside .lede { margin-top: 18px; }
.split-aside .btn { margin-top: 30px; }

/* ---- Steps (how an engagement / how it works) ---- */
.steps { counter-reset: step; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.step .num {
  counter-increment: step;
  font-size: 1rem;
  font-weight: 500;
  color: var(--violet);
  padding-top: 3px;
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 60ch; }

/* ---- Common questions (AEO question blocks) ---- */
.faq { border-top: 1px solid var(--line); max-width: 820px; }
.faq-item { padding: 28px 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 1.2rem; }
.faq-item p { margin-top: 10px; color: var(--muted); max-width: 68ch; }
.faq-item p + p { margin-top: 12px; }

/* ---- Related links (internal linking) ---- */
.rel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(32px, 4vw, 48px);
}
.rel a {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, background 0.16s ease;
}
.rel a:hover { border-color: rgba(18, 18, 18, 0.28); background: var(--paper-tint); }
.rel .t { font-weight: 500; color: var(--ink); }
.rel .d { margin-top: 6px; font-size: 0.92rem; color: var(--muted); }
.rel .go { margin-top: 14px; font-size: 0.9rem; font-weight: 500; color: var(--violet); }
.rel .go::after { content: ' →'; }

/* ---- Shared CTA band (calm, light) ---- */
.cta-band { padding-block: var(--section); background: var(--paper-tint); }
.cta-band .inner { max-width: 680px; margin: 0 auto; text-align: center; }
.cta-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.cta-band p {
  margin: 18px auto 0;
  max-width: 34em;
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  color: var(--muted);
}
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-detail h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-detail .block { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-detail .block:first-child { padding-top: 0; }
.contact-detail a { color: var(--violet); }
.contact-detail address { font-style: normal; color: var(--text); line-height: 1.7; }

.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form .field { display: grid; gap: 8px; }
.form label { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.form input, .form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-soft);
}
.form textarea { min-height: 150px; resize: vertical; }
.form .btn { justify-self: start; }
.form-note { font-size: 0.85rem; color: var(--faint); }

/* ---- Generic section helpers ---- */
.section.tint { background: var(--paper-tint); }
.measure { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---- Responsive (interior) ---- */
@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; }
  .split-aside { position: static; }
}
@media (max-width: 760px) {
  .metrics { grid-template-columns: 1fr; }
  .metric { border-left: none; border-top: 1px solid var(--line); padding-left: 0; }
  .metric:first-child { border-top: none; }
  .cs-facts { grid-template-columns: 1fr; }
  .rel { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---- "What we do" mega menu (desktop; mobile uses the sheet) ---- */
.nav-inner { position: relative; }
.nav-links { align-self: stretch; align-items: stretch; }
.nav-links > li { display: flex; align-items: center; }
.has-mega { position: static; }
.mega {
  position: absolute;
  top: calc(100% - 14px);
  left: 50%;
  width: min(780px, calc(100vw - 32px));
  padding-top: 26px;
  transform: translateX(-50%) translateY(-6px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 110;
}
.has-mega:hover .mega,
.has-mega.open .mega,
.has-mega:focus-within .mega {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 32px;
  padding: 24px 30px 20px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 24px 80px rgba(18, 18, 18, 0.18);
}
.mega-head {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--faint);
  padding: 4px 0 8px;
}
.nav .nav-links .mega-panel a {
  display: block;
  padding: 7px 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.nav .nav-links .mega-panel a:hover { color: var(--ink); }
.nav .nav-links .mega-panel .mega-all {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 500;
  color: var(--violet);
}
.nav .nav-links .mega-panel .mega-all::after { content: ' →'; }
.nav .nav-links .mega-panel .mega-all:hover { color: var(--violet-deep); }

/* ---- Multi-step contact form ---- */
.ms { position: relative; }
.ms-top { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.ms-count { font-size: 0.85rem; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ms-track { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.ms-fill { display: block; height: 100%; width: 33.33%; background: var(--violet); border-radius: 2px; transition: width 0.35s ease; }
.ms-step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 20px; }
.ms-step.in { animation: ms-in 0.3s ease both; }
@media (prefers-reduced-motion: reduce) { .ms-step.in { animation: none; } }
@keyframes ms-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.ms-q {
  display: block;
  width: 100%;
  padding: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 2px;
}
.ms-options { display: grid; gap: 12px; }
.ms-opt {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.ms-opt:hover { border-color: var(--violet); }
.ms-opt:focus-visible { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.ms-opt.sel { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.ms-nav { display: flex; align-items: center; gap: 18px; }
.ms-back {
  background: none;
  border: 0;
  padding: 10px 4px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
}
.ms-back:hover { color: var(--ink); }
.ms-hint { font-size: 0.9rem; color: #b3352b; }
.ms .field .invalid { border-color: #b3352b; }
.ms-done h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); font-weight: 500; margin-bottom: 10px; }
.ms-done p { color: var(--muted); max-width: 34em; }
.ms-done p + p { margin-top: 10px; }
.ms-done a { color: var(--violet); }
.ms-error { font-size: 0.95rem; color: #b3352b; }
.ms-error a { color: var(--violet); }
.ms-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ms [hidden] { display: none !important; }

/* ---- Interior photo hero (same card grammar as the homepage) ---- */
.hero-page { min-height: clamp(460px, 62vh, 700px); }
.hero-page .hero-content {
  padding-top: calc(96px + clamp(20px, 3vw, 40px));
  padding-bottom: clamp(40px, 6vh, 76px);
}
.hero-page h1 { max-width: 18ch; }
.hero .crumbs { color: rgba(255, 255, 255, 0.5); }
.hero .crumbs a { color: rgba(255, 255, 255, 0.78); }
.hero .crumbs a:hover { color: #fff; }
.hero .crumbs [aria-current] { color: rgba(255, 255, 255, 0.55); }
.hero .updated { color: rgba(255, 255, 255, 0.6); }
.facts-band { padding: clamp(28px, 4vw, 48px) 0 0; }

/* ---- Illustrated assets (code-only: glows, vignettes, flows, chips) ---- */
.has-aurora { position: relative; isolation: isolate; }
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.aurora span {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 50, 216, 0.13), transparent 65%);
  filter: blur(40px);
}
.aurora .a2 { background: radial-gradient(circle, rgba(108, 50, 216, 0.08), transparent 60%); width: 820px; height: 820px; }

.duo {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  margin-block: clamp(48px, 6vw, 72px);
}
.duo .prose { margin: 0; }

/* a small product window drawn in code, Stripe-style */
.vig { position: relative; margin: 0; }
.vig-window {
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(18, 18, 18, 0.13), 0 4px 16px rgba(18, 18, 18, 0.05);
  overflow: hidden;
}
.vig-bar {
  display: flex;
  gap: 6px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.vig-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(18, 18, 18, 0.10); }
.vig-mail {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-tint);
}
.vig-mail .k {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--violet);
  margin-bottom: 4px;
}
.vig-mail p { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
.vig-run { padding: 10px 20px 16px; display: grid; }
.vig-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  font-size: 0.95rem;
  color: var(--text);
}
.vig-row + .vig-row { border-top: 1px solid var(--line); }
.vig-row .tick {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.vig-row .tick::before { content: '✓'; }
.vig-row.wait { color: var(--muted); }
.vig-row.wait .dot {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px dashed var(--violet);
  position: relative;
}
.vig-row.wait .dot::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--violet);
  animation: vig-pulse 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .vig-row.wait .dot::after { animation: none; } }
@keyframes vig-pulse {
  0%, 100% { transform: scale(0.55); opacity: 0.45; }
  50% { transform: scale(1); opacity: 1; }
}

/* floating glass labels that overlap the window edge */
.chip {
  position: absolute;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(18, 18, 18, 0.14);
  white-space: nowrap;
}
.chip::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  margin-right: 8px;
  vertical-align: 1px;
}
.vig .chip-1 { top: -16px; right: -14px; }
.vig .chip-2 { bottom: -16px; left: -14px; }

/* steps drawn as a connected line instead of plain rows */
.steps.flow { border-top: 0; position: relative; }
.steps.flow .step { border-bottom: 0; padding: 0 0 34px 0; position: relative; grid-template-columns: 44px 1fr; }
.steps.flow .step:last-child { padding-bottom: 0; }
.steps.flow .step::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 2px;
  width: 1.5px;
  background: linear-gradient(180deg, rgba(108, 50, 216, 0.35), rgba(108, 50, 216, 0.12));
}
.steps.flow .step:last-child::before { display: none; }
.steps.flow .step .num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(108, 50, 216, 0.09);
  border: 1px solid rgba(108, 50, 216, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  padding-top: 0;
}
.steps.flow .step .num::before { content: counter(step); }

/* on tinted bands the glow sits above the tint, behind the content */
.cta-band.has-aurora .aurora { z-index: 0; }
.cta-band.has-aurora .inner { position: relative; z-index: 1; }

@media (max-width: 1000px) {
  .duo { grid-template-columns: 1fr; }
  .vig { max-width: 500px; }
  .vig .chip-1 { right: 8px; }
  .vig .chip-2 { left: 8px; }
}
