:root {
  --primary-500: #7c5cff;
  --primary-600: #6644e0;
  --primary-700: #5236b8;

  --neutral-0: #ffffff;
  --neutral-900: #12161f;

  --bg: #ffffff;
  --bg-muted: #f6f7f9;
  --bg-dark: #0b0e14;
  --panel-dark: #0e1220;

  --text: #12161f;
  --text-soft: #3d4554;
  --text-mute: #6b7686;
  --text-inv: #f2f4f8;

  --border: #dde1e8;
  --border-strong: #9aa3b2;

  --accent: #b49cff;
  --action: #7c5cff;
  --action-hover: #6644e0;
  --focus-ring: rgb(124 92 255 / 0.45);

  --font-display: "Cabinet Grotesk", system-ui, sans-serif;
  --font-sans: "Cabinet Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Cabinet Grotesk", ui-monospace, system-ui, sans-serif;

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

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-2xl: 32px; --r-full: 9999px;

  --shadow-md: 0 8px 24px rgb(10 14 20 / 0.10);
  --shadow-lg: 0 16px 48px rgb(10 14 20 / 0.16);

  --fast: 120ms; --base: 200ms; --slow: 320ms; --reveal: 600ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --expo: cubic-bezier(0.16, 1, 0.3, 1);

  --shell: 87.5rem;
}

@font-face {
  font-family: "Cabinet Grotesk";
  src: url("../fonts/CabinetGrotesk-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; filter: grayscale(1); transition: filter var(--slow) var(--ease); }

a { color: var(--action); }
a:hover { color: var(--action-hover); }

h1, h2, h3, p, figure, blockquote { margin: 0; }

:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); border-radius: var(--r-sm); }

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

/* Type scale */
.display-xl { font-family: var(--font-display); font-size: clamp(3rem, 6.5vw, 5.5rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.display-lg { font-family: var(--font-display); font-size: clamp(2.5rem, 4.5vw, 4rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
.display-md { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.h-sm { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.h-xs { font-family: var(--font-sans); font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.lead { font-size: 1.125rem; line-height: 1.6; }
.body-sm { font-size: 0.875rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0;
}
.eyebrow--accent { color: var(--accent); }

/* Layout */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.layer { position: relative; z-index: 1; }

.section { padding-block: clamp(56px, 8vw, 112px); }
.section--case { padding-block: clamp(56px, 8vw, 104px); }
.section--light { background: var(--bg); }
.section--muted { background: var(--bg-muted); }

/* Thesis section — bottom-aligned right rail + faint light backdrop */
.thesis { position: relative; overflow: hidden; }
.thesis > .shell { position: relative; z-index: 1; }
.thesis__art {
  position: absolute;
  top: 0;
  right: 0;
  width: min(50%, 640px);
  height: 100%;
  background: url("https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&w=1200&q=70") center / cover no-repeat;
  opacity: 0.07;
  filter: grayscale(1);
  -webkit-mask-image: linear-gradient(to left, black 10%, transparent 92%);
  mask-image: linear-gradient(to left, black 10%, transparent 92%);
  pointer-events: none;
}

.section--dark {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text-inv);
}
.grid-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 30%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 30%, black 30%, transparent 100%);
  pointer-events: none;
}
.grid-backdrop--hero {
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 40%, transparent 100%);
}
.glow {
  position: absolute;
  border-radius: var(--r-full);
  filter: blur(40px);
  pointer-events: none;
  background: radial-gradient(circle, rgb(124 92 255 / 0.24), transparent 65%);
}
.glow--float { animation: float 9s ease-in-out infinite alternate; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(32px, 5vw, 80px); }
.prose-stack { display: flex; flex-direction: column; gap: var(--sp-5); max-width: 72ch; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--sp-5); align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); align-items: stretch; }
.grid-2x2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); align-items: stretch; }
@media (max-width: 900px) { .grid-2x2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2x2 { grid-template-columns: 1fr; } }
.engage-copy { display: flex; flex-direction: column; gap: var(--sp-5); align-items: flex-start; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }
.align-center { align-items: center; }
.align-start { align-items: start; }
.align-stretch { align-items: stretch; }
.contact-aside { display: flex; flex-direction: column; }
.contact-aside .framed { flex: 1; min-height: 340px; }
.contact-aside .framed img { height: 100%; }
.align-end { align-items: end; }

/* small utilities */
.text-soft { color: var(--text-soft); }
.text-mute { color: var(--text-mute); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.mb-10 { margin-bottom: var(--sp-10); }
.stack--wide { gap: clamp(48px, 7vw, 88px); }
.case-left { display: flex; flex-direction: column; height: 100%; }
.case-left > .eyebrow { margin-top: auto; }
.case-right { display: flex; flex-direction: column; height: 100%; }
.case-right > .rule-list { margin-top: auto; }
.stack > * + * { margin-top: var(--sp-5); }

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--base) var(--ease), border-color var(--base) var(--ease), backdrop-filter var(--base) var(--ease);
}
.nav.is-stuck {
  background: rgb(11 14 20 / 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: rgb(255 255 255 / 0.08);
}
.nav__inner { display: flex; align-items: center; gap: var(--sp-6); min-height: 72px; padding-block: 8px; flex-wrap: wrap; }
.site-logo { height: 22px; width: auto; filter: none; }
.nav__links { display: flex; gap: var(--sp-5); flex: 1; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(242 244 248 / 0.7);
  text-decoration: none;
  padding: 8px 2px;
  transition: color var(--fast) var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: #fff; }
.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.lang span { color: #fff; }
.lang .sep { color: rgb(242 244 248 / 0.3); }
.lang a { color: rgb(242 244 248 / 0.6); text-decoration: none; transition: color var(--fast) var(--ease); }
.lang a:hover { color: #fff; }

/* Mobile dropdown */
.nav__toggle { display: none; }
.nav__collapse { display: contents; }
@media (max-width: 820px) {
  .nav__inner { flex-wrap: nowrap; gap: var(--sp-4); }
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto; padding: 0;
    background: none; border: 0; cursor: pointer;
  }
  .nav__toggle span {
    display: block; width: 22px; height: 2px; margin: 0 auto; background: #fff; border-radius: 2px;
    transition: transform var(--base) var(--ease), opacity var(--fast) var(--ease);
  }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__collapse {
    position: absolute; top: 100%; left: 0; right: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-5);
    padding: var(--sp-6) var(--sp-6) var(--sp-8);
    background: rgb(11 14 20 / 0.97); backdrop-filter: blur(12px);
    border-top: 1px solid rgb(255 255 255 / 0.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--base) var(--ease), transform var(--base) var(--ease), visibility var(--base);
  }
  .nav.is-open .nav__collapse { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__collapse .nav__links { flex-direction: column; align-items: flex-start; gap: var(--sp-4); flex: none; }
  .nav__collapse .nav__link { font-size: 1.125rem; }
  .nav__collapse .lang { justify-content: flex-start; }
  .nav__collapse .btn { align-self: flex-start; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn--sm { height: 36px; padding-inline: 16px; font-size: 0.875rem; }
.btn--lg { height: 52px; padding-inline: 28px; font-size: 1.0625rem; }
.btn--primary { background: var(--action); color: #fff; }
.btn--primary:hover { background: var(--action-hover); color: #fff; }
.btn--accent { background: var(--accent); color: var(--neutral-900); }
.btn--accent:hover { background: #a389f6; color: var(--neutral-900); }

/* Badges */
.tags { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding-inline: 10px;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge--outline { border: 1px solid var(--border-strong); color: var(--text-soft); }
.badge--year { background: var(--bg-dark); color: #fff; font-weight: 700; }
.badge--neutral { background: var(--bg-muted); color: var(--text-soft); }
.section--muted .badge--neutral { background: rgb(11 14 20 / 0.08); color: var(--text); }
.badge--primary { background: rgb(124 92 255 / 0.12); color: var(--action); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--bg-dark); color: var(--text-inv); padding: calc(72px + clamp(40px, 7vw, 96px)) 0 clamp(48px, 7vw, 96px); }
.hero--tall { padding-block: calc(72px + clamp(48px, 8vw, 112px)) clamp(56px, 8vw, 112px); }
.hero__inner { position: relative; }
.hero__eyebrow { margin-bottom: var(--sp-6); animation: fade-up var(--reveal) var(--expo) both; }
.hero__title { margin: 0; }
.hero__title--fr { font-size: clamp(2.25rem, 4.3vw, 3.6rem); line-height: 1.05; }
.hero__lead { color: rgb(242 244 248 / 0.72); margin-top: var(--sp-6); max-width: 56ch; animation: fade-up var(--reveal) var(--expo) 160ms both; }
.hero__sub { color: rgb(242 244 248 / 0.55); margin: var(--sp-4) 0 var(--sp-10); max-width: 56ch; animation: fade-up var(--reveal) var(--expo) 240ms both; }
.hero__cta { animation: fade-up var(--reveal) var(--expo) 320ms both; }

/* line-by-line headline reveal */
.rise { display: block; overflow: hidden; }
.rise > span { display: inline-block; animation: rise 800ms var(--expo) both; }

/* Instrument panel that frames the animated SVGs */
.panel {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: var(--shadow-lg);
  background: radial-gradient(ellipse at 55% 35%, rgb(124 92 255 / 0.13), transparent 70%), var(--panel-dark);
  padding: clamp(16px, 3vw, 30px);
  animation: fade-up var(--reveal) var(--expo) 400ms both;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.6;
}
.panel > svg { position: relative; display: block; }

/* Marquee */
.marquee { overflow: hidden; background: var(--bg-dark); border-top: 1px solid rgb(255 255 255 / 0.08); padding-block: var(--sp-8); }
.marquee__track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: rgb(180 156 255 / 0.4);
  padding-right: var(--sp-10);
}

/* Rule lists (hover-slide rows) */
.rule-list { display: grid; }
.rule-row {
  display: flex;
  gap: var(--sp-6);
  align-items: baseline;
  padding-block: var(--sp-6);
  border-top: 1px solid var(--border);
  transition: transform var(--base) var(--ease);
}
.rule-row:last-child { border-bottom: 1px solid var(--border); }
.rule-row:hover { transform: translateX(10px); }
.dot { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--accent); flex: none; align-self: center; }

.rule-list--dark .rule-row { border-top-color: rgb(255 255 255 / 0.12); }
.rule-list--dark .rule-row:last-child { border-bottom-color: rgb(255 255 255 / 0.12); }

/* index number cards (full-lifecycle) */
.num-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
@media (max-width: 900px) { .num-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .num-cards { grid-template-columns: 1fr; } }
.num-card {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  min-height: 230px;
  display: flex;
  flex-direction: column;
  transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease), border-color var(--base) var(--ease);
}
.num-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgb(124 92 255 / 0.4); }
.num-card__ghost {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-6);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  color: rgb(124 92 255 / 0.16);
}
.num-card p { margin-top: auto; max-width: 34ch; }

/* small numbered cards (in-practice / engagement formats) */
.mini-card {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease);
}
.mini-card--light { background: var(--bg); color: #333333; }
.mini-card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.index-num { font-family: var(--font-mono); font-size: 1.125rem; letter-spacing: 0.06em; color: var(--accent); }

/* Editorial oversized rows (how we work) */
.big-rows { display: grid; }
.big-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-8);
  border-top: 1px solid var(--border);
  padding: clamp(24px, 4vw, 44px) var(--sp-4);
  border-radius: var(--r-lg);
  transition: background var(--base) var(--ease), padding-left var(--base) var(--ease);
}
.big-row:last-child { border-bottom: 1px solid var(--border); }
.big-row:hover { background: var(--accent); padding-left: var(--sp-10); }
.big-row .arrow { font-family: var(--font-mono); font-size: clamp(24px, 3vw, 40px); flex: none; }

/* Tilted framed image */
.tilt-wrap { position: relative; padding: var(--sp-8) var(--sp-8) 0 0; }
.tilt-wrap__panel { position: absolute; top: 0; right: 0; width: 72%; height: 82%; background: #efeaff; border-radius: var(--r-2xl); animation: float 10s ease-in-out infinite alternate; }
.tilt-wrap__img {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform var(--slow) var(--ease);
}
.tilt-wrap__img:hover { transform: rotate(0deg); }

.framed { border-radius: var(--r-2xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.framed--dark { border-color: rgb(255 255 255 / 0.12); box-shadow: none; }
.zoom { animation: slow-zoom 28s linear infinite alternate; height: 100%; object-fit: cover; }

/* Testimonials */
.quote-block { position: relative; }
.quote-mark {
  position: absolute;
  top: -0.34em;
  left: -0.06em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(140px, 20vw, 280px);
  line-height: 1;
  color: rgb(124 92 255 / 0.12);
  pointer-events: none;
  z-index: 0;
}
.quote-viewport { position: relative; z-index: 1; overflow: hidden; }
.quote-track { display: flex; transition: transform 700ms var(--expo); }
.quote-slide { flex: 0 0 100%; min-width: 0; padding-top: var(--sp-4); }
.quote-slide blockquote { max-width: 20ch; color: var(--text-inv); }
.quote-cite { display: flex; align-items: center; gap: var(--sp-4); margin-top: clamp(24px, 4vw, 44px); }
.quote-cite .tick { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--accent); flex: none; }
.quote-meta { margin-bottom: clamp(32px, 5vw, 56px); }
.quote-controls { margin-top: clamp(40px, 5vw, 64px); }
.dots { display: flex; gap: 3px; align-items: stretch; }
.dots button {
  flex: 1; height: 3px; border: none; padding: 0;
  border-radius: 0;
  background: rgb(242 244 248 / 0.25);
  cursor: pointer;
  transition: width var(--base) var(--ease), background var(--base) var(--ease);
}
.dots button.is-active { background: var(--accent); }
.arrows { display: flex; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-6); }
.arrows button {
  border-radius: 0;
  font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  border: none;
  background: none;
  color: rgb(242 244 248 / 0.6);
  cursor: pointer;
  transition: color var(--fast) var(--ease);
}
.arrows button:hover { background: none; color: #fff; }

/* CTA */
.cta { position: relative; overflow: hidden; background: var(--bg-muted); padding-block: clamp(56px, 9vw, 128px); }
.cta__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 15% 50%, black 20%, transparent 90%);
  mask-image: radial-gradient(ellipse 60% 80% at 15% 50%, black 20%, transparent 90%);
  opacity: 0.5;
}
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-10); }

/* Sector cards */
.sector-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  height: 100%;
  transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease);
}
.sector-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sector-card__head { display: flex; align-items: center; justify-content: space-between; }
.sector-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: rgb(124 92 255 / 0.1);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}

/* Services rows */
.service-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(24px, 4vw, 64px); align-items: end; border-top: 1px solid var(--border); padding-top: clamp(32px, 5vw, 56px); }
.service-tick { width: 40px; height: 3px; background: var(--accent); margin-bottom: var(--sp-5); }
.service-img { margin-top: var(--sp-6); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.service-img img { width: 100%; height: 38vh; min-height: 280px; object-fit: cover; transition: transform var(--slow) var(--ease); }
.service-img img:hover { transform: scale(1.04); }

/* Dark cards (field of work, engagement) */
.dark-card {
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: transform var(--base) var(--ease), border-color var(--base) var(--ease), background var(--base) var(--ease);
}
.dark-card:hover { transform: translateY(-3px); border-color: rgb(180 156 255 / 0.5); background: rgb(124 92 255 / 0.08); }

/* Result rows (case studies) */
.result-row { display: flex; gap: var(--sp-4); padding-block: var(--sp-4); border-top: 1px solid var(--border); }
.result-row:last-child { border-bottom: 1px solid var(--border); }
.result-row .mark { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--action); }

/* Case study cards */
.case-media img { width: 100%; height: 280px; object-fit: cover; }

/* Contact */
.form-card {
  display: grid;
  gap: var(--sp-6);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 48px);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--sp-6); }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--text); }
.field input, .field textarea {
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.field input:hover, .field textarea:hover { border-color: var(--border-strong); }
.field input:focus, .field textarea:focus { border-color: var(--action); box-shadow: 0 0 0 3px var(--focus-ring); outline: none; }
.form-status { margin-top: var(--sp-5); padding: 12px 16px; border-radius: var(--r-md); background: rgb(229 72 77 / 0.1); border: 1px solid rgb(229 72 77 / 0.35); color: #E5484D; font-size: 0.9375rem; }
.contact-list { display: grid; }
.contact-list p {
  margin: 0;
  padding-block: var(--sp-5);
  border-top: 1px solid var(--border);
  color: var(--text);
  transition: transform var(--base) var(--ease);
}
.contact-list p:last-child { border-bottom: 1px solid var(--border); }
.contact-list p:hover { transform: translateX(10px); }
.contact-list a { color: inherit; text-decoration: none; }

/* Legal / privacy body */
.prose { max-width: 820px; }
.prose > p { color: var(--text-soft); margin-bottom: var(--sp-6); }
.legal-block { padding-block: clamp(28px, 4vw, 44px); border-top: 1px solid var(--border); }
.legal-block__head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.legal-block__head .tick { width: 28px; height: 2px; background: var(--accent); flex: none; }
.legal-block p { color: var(--text-soft); margin-bottom: var(--sp-4); }
.legal-block ul { margin: var(--sp-2) 0 var(--sp-4); padding: 0; list-style: none; display: grid; gap: var(--sp-3); }
.legal-block li { display: flex; gap: var(--sp-4); align-items: baseline; color: var(--text-soft); }
.legal-block li::before { content: ""; width: 6px; height: 6px; border-radius: var(--r-full); background: var(--accent); flex: none; transform: translateY(6px); }

/* Footer */
.footer { position: relative; overflow: hidden; background: var(--bg-dark); color: var(--text-inv); padding: clamp(56px, 8vw, 104px) 0 var(--sp-10); }
.footer .grid-backdrop { -webkit-mask-image: radial-gradient(ellipse 70% 90% at 20% 0%, black 30%, transparent 100%); mask-image: radial-gradient(ellipse 70% 90% at 20% 0%, black 30%, transparent 100%); }
.footer__top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(40px, 6vw, 80px); align-items: end; }
.footer__logo { height: 34px; width: auto; filter: none; }
.footer__tag { margin: var(--sp-6) 0 var(--sp-8); max-width: 32ch; color: rgb(242 244 248 / 0.85); }
.footer__links { display: flex; flex-direction: column; gap: var(--sp-4); align-items: flex-start; }
.footer__links a {
  font-size: 0.9375rem;
  color: rgb(242 244 248 / 0.85);
  text-decoration: none;
  transition: color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.footer__links a:hover { color: #fff; transform: translateX(4px); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; align-items: center; margin-top: clamp(48px, 7vw, 80px); padding-top: var(--sp-6); border-top: 1px solid rgb(255 255 255 / 0.1); }
.footer__bottom p { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: rgb(242 244 248 / 0.6); }
.footer__bottom a { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: rgb(242 244 248 / 0.72); text-decoration: none; transition: color var(--fast) var(--ease); }
.footer__bottom a:hover { color: #fff; }

/* Scroll reveal — only hide when JS is active (see inline .js flag) so no-JS users still see content */
.js [data-reveal] { opacity: 0; transform: translateY(20px); }
.reveal-ready [data-reveal] { transition: opacity 700ms var(--expo), transform 700ms var(--expo); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes float { from { transform: translateY(0) scale(1); } to { transform: translateY(-16px) scale(1.05); } }
@keyframes slow-zoom { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.65; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes grow { to { transform: scaleY(1); } }
@keyframes dot-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

.svg-line { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.1s var(--expo) forwards; }
.svg-ping { transform-box: fill-box; transform-origin: center; animation: ping 2.8s ease-out infinite; }
.svg-bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); animation: grow 0.9s var(--expo) forwards; }
