:root {
  --ds-body-bg: #f2f2f2;
  --ds-surface: #f2f2f2;
  --ds-surface-low: #ebebeb;
  --ds-surface-high: #e4e4e4;
  --ds-grid-dot: rgba(94, 94, 94, 0.12);
  --ds-btn-solid-bg: #1b1b1b;
  --ds-btn-solid-fg: #ffffff;
  --ds-btn-solid-hover-bg: #000000;
  --ds-tint-kinetic: rgba(0, 0, 0, 0.05);
  --ds-tint-on: rgba(27, 27, 27, 0.05);
  --ds-accent: #2644e0;
  --ds-selection-bg: var(--ds-accent);
  --ds-selection-fg: #ffffff;
}

body {
  font-family: Inter, system-ui, sans-serif;
  color: #1b1b1b;
  background-color: var(--ds-body-bg);
  background-image: radial-gradient(circle at 1px 1px, var(--ds-grid-dot) 1px, transparent 0);
  background-size: 24px 24px;
}

html.theme-transitioning body,
html.theme-transitioning header.fixed nav[aria-label='Primary'],
html.theme-transitioning #site-footer footer.site-glass-bar,
html.theme-transitioning .mono-card,
html.theme-transitioning .mono-card.sunk-card,
html.theme-transitioning .folder-shell,
html.theme-transitioning .folder-body,
html.theme-transitioning .deck-face,
html.theme-transitioning .deck-face__footer,
html.theme-transitioning .theme-toggle,
html.theme-transitioning .theme-toggle-btn,
html.theme-transitioning .project-jump-nav,
html.theme-transitioning .impact-metric-card,
html.theme-transitioning .desk-cta-btn,
html.theme-transitioning .text-on-surface,
html.theme-transitioning .text-on,
html.theme-transitioning .text-muted,
html.theme-transitioning .text-secondary,
html.theme-transitioning .text-kinetic,
html.theme-transitioning .text-accent,
html.theme-transitioning .ds-pill-btn,
html.theme-transitioning .ds-btn-primary,
html.theme-transitioning .bg-white,
html.theme-transitioning .bg-surface,
html.theme-transitioning .bg-kinetic,
html.theme-transitioning .bg-on-surface,
html.theme-transitioning .collab-drawing-canvas-wrap,
html.theme-transitioning .collab-drawing-tool,
html.theme-transitioning .collab-drawing-revert,
html.theme-transitioning .vector-sticker,
html.theme-transitioning .sticker-stack-picker .vector-sticker,
html.theme-transitioning .sticker-stack-layer .vector-sticker {
  transition:
    background-color 260ms ease,
    border-color 260ms ease,
    color 260ms ease,
    box-shadow 260ms ease !important;
}

::selection {
  background-color: var(--ds-selection-bg);
  color: var(--ds-selection-fg);
}

::-moz-selection {
  background-color: var(--ds-selection-bg);
  color: var(--ds-selection-fg);
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Match optical size to rendered size so large icons stay outlined, not blobby */
.material-symbols-outlined.text-2xl,
.material-symbols-outlined[class*='text-2xl'] {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 32;
}

.material-symbols-outlined.text-3xl,
.material-symbols-outlined.text-4xl,
.material-symbols-outlined.text-5xl,
.material-symbols-outlined[class*='text-3xl'],
.material-symbols-outlined[class*='text-4xl'],
.material-symbols-outlined[class*='text-5xl'],
.material-symbols-outlined.petsmart-pillar-icon,
.pharm-decision-icon .material-symbols-outlined,
.solution-mockup__placeholder .material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.font-vt323 {
  font-family: 'VT323', monospace;
}

.ds-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--ds-body-bg);
  color: #1b1b1b;
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.2);
}

.ds-link {
  border-bottom: 2px solid #000000;
  color: #1b1b1b;
  transition: color 0.2s ease;
}

.ds-link:hover {
  color: #000000;
}

.ds-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: #000000;
  color: #ffffff;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ds-pill-btn:hover {
  transform: translateY(-1px);
  background: #1b1b1b;
}

/* Filled primary actions (matches desk-cta-btn--primary) */
.ds-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: var(--ds-btn-solid-bg);
  color: var(--ds-btn-solid-fg);
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ds-btn-primary:hover {
  background-color: var(--ds-btn-solid-hover-bg);
  color: var(--ds-btn-solid-fg);
}

.ds-label {
  font-family: 'VT323', monospace;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  line-height: 1;
}

.ds-label-sm {
  font-size: 0.875rem;
}

.ds-label-md {
  font-size: 1rem;
}

.ds-label-lg {
  font-size: 1.125rem;
}

.ds-label-muted {
  color: #5e5e5e;
}

.ds-label-strong {
  color: #1b1b1b;
}

.reveal-on-scroll,
.reveal-item,
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-revealed,
.reveal-item.is-visible,
.reveal.is-revealed,
.reveal.is-visible,
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-item,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Floating jump nav for project / case study pages */
body.has-project-jump-nav {
  --site-chrome-max: 80rem;
  --jump-nav-inset: 1rem;
  --jump-nav-width: 11rem;
  --jump-nav-gap: 1rem;
  --jump-nav-offset: var(--jump-nav-inset);
}

@media (min-width: 640px) {
  body.has-project-jump-nav {
    --jump-nav-inset: 1.5rem;
  }
}

@media (min-width: 1024px) {
  body.has-project-jump-nav {
    --jump-nav-inset: 2rem;
    --chrome-edge-inline: max(
      var(--jump-nav-inset),
      calc((100vw - min(100vw, var(--site-chrome-max))) / 2)
    );
    --chrome-padding-inline: 2rem;
    --chrome-content-left: calc(var(--chrome-edge-inline) + var(--chrome-padding-inline));
    --jump-nav-offset: max(
      var(--jump-nav-inset),
      calc(var(--chrome-content-left) - var(--jump-nav-width) - var(--jump-nav-gap))
    );
  }
}

.project-jump-nav {
  pointer-events: auto;
  position: fixed;
  left: var(--jump-nav-offset, 1rem);
  top: 7rem;
  z-index: 40;
  display: none;
  max-height: min(72vh, calc(100vh - 7.5rem));
  width: 11rem;
  flex-direction: column;
  gap: 0.125rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.18);
}

@media (min-width: 1024px) {
  .project-jump-nav {
    display: flex;
  }
}

.project-jump-nav__label {
  font-family: VT323, monospace;
  padding: 0.125rem 0.5rem 0.25rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #5e5e5e;
}

.project-jump-nav__link,
#project-jump-nav .side-nav-link {
  display: block;
  border-radius: 0.5rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #5e5e5e;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.project-jump-nav__link:hover,
#project-jump-nav .side-nav-link:hover {
  background: rgba(27, 27, 27, 0.06);
  color: #1b1b1b;
}

.project-jump-nav__link.is-active,
.project-jump-nav__link.active,
#project-jump-nav .side-nav-link.is-active,
#project-jump-nav .side-nav-link.active {
  background: rgba(27, 27, 27, 0.06);
  color: #1b1b1b;
  font-weight: 600;
}

@media (min-width: 1024px) {
  body.has-project-jump-nav .project-jump-nav-main {
    box-sizing: border-box;
    width: auto;
    max-width: none;
    margin-left: calc(var(--jump-nav-offset) + var(--jump-nav-width) + var(--jump-nav-gap));
    margin-right: calc(var(--chrome-edge-inline) + var(--chrome-padding-inline));
    padding-left: 0;
  }
}

.project-scroll-top {
  position: fixed;
  right: 1.5rem;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: none;
  border-radius: 999px;
  background: #1b1b1b;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.project-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.project-scroll-top:hover {
  background: #2644e0;
}

.project-scroll-top .material-symbols-outlined {
  font-size: 1.625rem;
  line-height: 1;
}

@media (min-width: 1024px) {
  .project-scroll-top {
    display: none !important;
  }
}

/* Site-wide custom cursor (enabled via site-cursor.js) */
html.has-site-cursor,
html.has-site-cursor body {
  cursor: none !important;
}

html.has-site-cursor input,
html.has-site-cursor textarea,
html.has-site-cursor select,
html.has-site-cursor [contenteditable='true'] {
  cursor: text !important;
}

.site-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.site-cursor.is-hidden {
  opacity: 0;
}

.site-cursor__ring {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  margin: -0.625rem 0 0 -0.625rem;
  border: 1px solid rgba(27, 27, 27, 0.35);
  border-radius: 9999px;
  background: transparent;
  opacity: 0.7;
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
  will-change: transform;
}

.site-cursor__dot {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 9999px;
  background: #1b1b1b;
  will-change: transform;
}

.site-cursor.is-pointer .site-cursor__ring {
  opacity: 0.9;
  border-color: rgba(27, 27, 27, 0.55);
  background: rgba(27, 27, 27, 0.04);
}

.site-cursor.is-grabbing .site-cursor__ring {
  opacity: 1;
  border-color: rgba(27, 27, 27, 0.7);
  background: rgba(27, 27, 27, 0.06);
}

html[data-theme='dark'] .site-cursor__dot {
  background: #f0f0f0;
}

html[data-theme='dark'] .site-cursor__ring {
  border-color: rgba(240, 240, 240, 0.35);
}

html[data-theme='dark'] .site-cursor.is-pointer .site-cursor__ring {
  border-color: rgba(240, 240, 240, 0.55);
  background: rgba(240, 240, 240, 0.06);
}

html[data-theme='dark'] .site-cursor.is-grabbing .site-cursor__ring {
  border-color: rgba(240, 240, 240, 0.7);
  background: rgba(240, 240, 240, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .site-cursor__ring,
  .site-cursor__dot {
    transition: none;
  }
}

/* Before/after comparison slider labels */
.comparison-label.label-after {
  background-color: var(--ds-accent, #2644e0);
  color: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 2px 10px rgba(38, 68, 224, 0.28);
}

.comparison-label.label-before {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Impact metric cards — shared across case study pages */
.impact-metrics-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .impact-metrics-grid--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-metrics-grid--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .impact-metrics-grid--cols-2-lg-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .impact-metrics-grid--cols-2-lg-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.impact-metrics-grid--narrow {
  max-width: 48rem;
}

/* Tighter metrics row (e.g. pharmacy launch targets with long suffixes) */
.impact-metrics-grid--dense .impact-metric-card {
  padding: 1.75rem 1.5rem;
}

.impact-metrics-grid--dense .impact-metric-card__value {
  font-size: 1.875rem;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .impact-metrics-grid--dense .impact-metric-card__value {
    font-size: 2.25rem;
  }
}

.impact-metrics-grid--dense .impact-metric-counter {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  max-width: 100%;
  white-space: nowrap;
  gap: 0.15em;
}

.impact-metrics-grid--dense .impact-metric-counter__unit {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #5e5e5e;
  white-space: nowrap;
}

.impact-metric-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #ebebeb;
  color: #1b1b1b;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.impact-metric-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.impact-metric-card > * {
  position: relative;
  z-index: 1;
}

.impact-metric-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.impact-metric-card--compact {
  padding: 1.25rem;
}

.impact-metric-card--span-2-sm {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .impact-metric-card--span-full-sm-1 {
    grid-column: 1 / -1;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .impact-metric-card--span-2-sm {
    grid-column: span 2;
  }
}

@media (min-width: 640px) {
  .impact-metric-card--span-full-sm-1 {
    grid-column: span 1;
  }
}

.impact-metric-card__eyebrow {
  font-family: VT323, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5e5e5e;
  margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
  .impact-metric-card__eyebrow {
    font-size: 0.75rem;
  }
}

.impact-metric-card__title {
  font-family: VT323, monospace;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #5e5e5e;
  margin-bottom: 0.5rem;
}

.impact-metric-card__value-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.impact-metric-card__trend {
  font-size: 1.875rem;
  line-height: 1;
}

.impact-metric-card__value {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: #1b1b1b;
}

@media (min-width: 640px) {
  .impact-metric-card__value {
    font-size: 2.5rem;
  }
}

.impact-metric-card--compact .impact-metric-card__value {
  font-size: 1.5rem;
}

@media (min-width: 640px) {
  .impact-metric-card--compact .impact-metric-card__value {
    font-size: 1.875rem;
  }
}

.impact-metric-card__caption {
  margin-top: 0.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5e5e5e;
}

@media (min-width: 640px) {
  .impact-metric-card__caption {
    font-size: 0.75rem;
  }
}

.impact-metric-card__desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #5e5e5e;
}

@media (prefers-reduced-motion: reduce) {
  .impact-metric-card {
    transition: none;
  }

  .impact-metric-card:hover {
    transform: none;
  }
}

/* Site-wide light / dark theme */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  color: #5e5e5e;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.theme-toggle-btn .material-symbols-outlined {
  font-size: 1.125rem;
  line-height: 1;
}

.theme-toggle-btn.active {
  background: #111111;
  color: #ffffff;
}

.site-theme-toggle-slot {
  display: flex;
  justify-content: flex-end;
}

/* Site chrome width — matches home desk / max-w-7xl content column */
.site-chrome-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .site-chrome-inner {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .site-chrome-inner {
    padding-inline: 2rem;
  }
}

/* Shared site chrome — logo + theme toggle alignment on every page */
.site-brand-logo {
  justify-self: start;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .site-brand-logo {
    font-size: 1.5rem;
  }
}

header.fixed > .site-chrome-inner > .site-brand-logo {
  grid-column: 1;
  grid-row: 1;
}

header.fixed > .site-chrome-inner > nav[aria-label='Primary'] {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

header.fixed > .site-chrome-inner > .site-header-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

/* Home: logo left, theme / menu right — no center nav pill */
header.fixed > .site-chrome-inner.site-header-grid--home {
  grid-template-columns: minmax(0, 1fr) auto;
}

header.fixed > .site-chrome-inner.site-header-grid--home > .site-brand-logo {
  grid-column: 1;
}

header.fixed > .site-chrome-inner.site-header-grid--home > .site-header-actions {
  grid-column: 2;
  justify-self: end;
}

/* Case study section eyebrows (WHAT_IS_VETSTER, FEATURE_PARITY, etc.) */
.case-study-eyebrow {
  font-family: VT323, monospace;
  color: #5e5e5e;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .case-study-eyebrow {
    font-size: 1.125rem;
  }
}

html[data-theme='dark'] .case-study-eyebrow {
  color: rgba(255, 255, 255, 0.65);
}

/* Case study hero meta row (Role, Year, etc.) */
.case-study-meta-row {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

@media (min-width: 640px) {
  .case-study-meta-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 1rem 1.5rem;
  }
}

html[data-theme='dark'] .case-study-meta-row {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

html[data-theme='dark'] .case-study-meta-row .font-mono-label,
html[data-theme='dark'] .case-study-meta-row .text-kinetic {
  color: #2644e0 !important;
}

html[data-theme='dark'] .case-study-meta-row .text-on,
html[data-theme='dark'] .case-study-meta-row .font-medium {
  color: #f0f0f0 !important;
}

/* Shared frosted glass — primary nav pill + site footer */
header.fixed nav[aria-label='Primary'],
#site-footer footer.site-glass-bar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.68)) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

header.fixed nav[aria-label='Primary'] {
  box-shadow:
    0 10px 28px rgba(17, 24, 39, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}

#site-footer footer.site-glass-bar {
  box-shadow:
    0 -10px 28px rgba(17, 24, 39, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}

.site-nav-pill-indicator {
  background: rgba(27, 27, 27, 0.06);
}

/* Mobile fullscreen nav */
.site-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.site-mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(27, 27, 27, 0.12);
  border-radius: 999px;
  background: rgba(235, 235, 235, 1);
  color: rgba(27, 27, 27, 1);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.site-mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.95);
}

.site-mobile-menu-icon {
  position: relative;
  display: block;
  width: 1.125rem;
  height: 0.875rem;
}

.site-mobile-menu-icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    top 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-mobile-menu-icon span:nth-child(1) {
  top: 0;
}

.site-mobile-menu-icon span:nth-child(2) {
  top: 50%;
  margin-top: -1px;
}

.site-mobile-menu-icon span:nth-child(3) {
  bottom: 0;
}

.site-mobile-menu-btn.is-open .site-mobile-menu-icon span:nth-child(1) {
  top: 50%;
  margin-top: -1px;
  transform: rotate(45deg);
}

.site-mobile-menu-btn.is-open .site-mobile-menu-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}

.site-mobile-menu-btn.is-open .site-mobile-menu-icon span:nth-child(3) {
  bottom: auto;
  top: 50%;
  margin-top: -1px;
  transform: rotate(-45deg);
}

.site-mobile-nav-panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

.site-mobile-nav-panel.is-open {
  pointer-events: auto;
}

.site-mobile-nav-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 27, 27, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-mobile-nav-panel.is-open .site-mobile-nav-panel__backdrop {
  opacity: 1;
}

.site-mobile-nav-panel__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding:
    max(1.25rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(245, 245, 245, 0.98) 100%);
  transform: translateX(104%);
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.site-mobile-nav-panel.is-open .site-mobile-nav-panel__inner {
  transform: translateX(0);
}

.site-mobile-nav-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.site-mobile-nav-panel__logo {
  flex-shrink: 0;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(-0.65rem);
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-mobile-nav-panel.is-open .site-mobile-nav-panel__logo {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.14s;
}

.site-mobile-nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(27, 27, 27, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: rgba(27, 27, 27, 1);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.88) rotate(-90deg);
  transition:
    opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.2s ease;
}

.site-mobile-nav-panel.is-open .site-mobile-nav-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition-delay: 0.18s;
}

.site-mobile-nav-close:hover {
  background: #ffffff;
  transform: scale(1.04) rotate(0deg);
}

.site-mobile-nav-panel__nav {
  flex: 1;
  display: flex;
  align-items: center;
}

.site-mobile-nav-list {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-mobile-nav-link {
  display: block;
  padding: 0.85rem 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(2rem, 9vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: rgba(94, 94, 94, 1);
  text-decoration: none;
  opacity: 0;
  transform: translateX(1.5rem);
  transition:
    color 0.2s ease,
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0s;
}

.site-mobile-nav-panel.is-open .site-mobile-nav-link {
  opacity: 1;
  transform: translateX(0);
  transition-delay: calc(0.05s * var(--nav-i, 0) + 0.2s);
}

.site-mobile-nav-link--current,
.site-mobile-nav-link[aria-current='page'] {
  color: rgba(27, 27, 27, 1);
}

.site-mobile-nav-link:hover {
  color: #2644e0;
}

.site-mobile-nav-panel__footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(27, 27, 27, 0.08);
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-mobile-nav-panel.is-open .site-mobile-nav-panel__footer {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.34s;
}

.site-mobile-nav-panel__theme-label {
  margin: 0 0 0.75rem;
}

.site-mobile-nav-theme-slot .theme-toggle {
  display: inline-flex;
}

html.site-mobile-nav-open {
  overflow: hidden;
}

html.site-mobile-nav-open body {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 1023px) {
  header.fixed nav[aria-label='Primary'] {
    display: none !important;
  }

  /* Nav is removed from grid flow when hidden; use 2 columns so logo + menu align left/right */
  header.fixed > .site-chrome-inner.site-header-grid--mobile-ready {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  header.fixed > .site-chrome-inner.site-header-grid--mobile-ready > .site-brand-logo {
    grid-column: 1;
  }

  header.fixed > .site-chrome-inner.site-header-grid--mobile-ready .site-header-actions {
    grid-column: 2;
    justify-self: end;
  }

  .site-mobile-menu-btn {
    display: inline-flex;
  }

  .site-header-actions #site-theme-toggle .theme-toggle {
    display: none;
  }
}

@media (min-width: 1024px) {
  .site-mobile-nav-panel {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-mobile-nav-panel__backdrop,
  .site-mobile-nav-panel__inner,
  .site-mobile-nav-panel__logo,
  .site-mobile-nav-close,
  .site-mobile-nav-link,
  .site-mobile-nav-panel__footer,
  .site-mobile-menu-icon span {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .site-mobile-nav-panel__inner,
  .site-mobile-nav-link,
  .site-mobile-nav-panel__logo,
  .site-mobile-nav-panel__footer {
    transform: none !important;
  }

  .site-mobile-nav-panel.is-open .site-mobile-nav-link,
  .site-mobile-nav-panel.is-open .site-mobile-nav-panel__logo,
  .site-mobile-nav-panel.is-open .site-mobile-nav-close,
  .site-mobile-nav-panel.is-open .site-mobile-nav-panel__footer {
    opacity: 1;
  }
}

html[data-theme='dark'] .site-mobile-menu-btn,
html[data-theme='dark'] .site-mobile-nav-close {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(26, 26, 26, 0.92);
  color: #f0f0f0;
}

html[data-theme='dark'] .site-mobile-nav-panel__inner {
  background: linear-gradient(165deg, rgba(15, 15, 15, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
}

html[data-theme='dark'] .site-mobile-nav-panel__backdrop {
  background: rgba(0, 0, 0, 0.55);
}

html[data-theme='dark'] .site-mobile-nav-link {
  color: #a3a3a3;
}

html[data-theme='dark'] .site-mobile-nav-link--current,
html[data-theme='dark'] .site-mobile-nav-link[aria-current='page'] {
  color: #f0f0f0;
}

html[data-theme='dark'] .site-mobile-nav-panel__footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

html[data-theme='dark'] {
  color-scheme: dark;
  --ds-body-bg: #0f0f0f;
  --ds-grid-dot: rgba(255, 255, 255, 0.06);
  --ds-btn-solid-bg: #f0f0f0;
  --ds-btn-solid-fg: #111111;
  --ds-btn-solid-hover-bg: #ffffff;
  --ds-tint-kinetic: rgba(255, 255, 255, 0.08);
  --ds-tint-on: rgba(255, 255, 255, 0.06);
  --ds-selection-bg: var(--ds-accent);
  --ds-selection-fg: #ffffff;
}

html[data-theme='dark'] body {
  color: #f0f0f0 !important;
  background-color: #0f0f0f !important;
  background-image: radial-gradient(circle at 1px 1px, var(--ds-grid-dot) 1px, transparent 0) !important;
}

html[data-theme='dark'] .mono-card,
html[data-theme='dark'] .mono-card.sunk-card {
  background: #1a1a1a;
  color: #f0f0f0;
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme='dark'] .deck-face {
  background: #1a1a1a;
  color: #f0f0f0;
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme='dark'] .deck-face__footer {
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme='dark'] .folder-shell,
html[data-theme='dark'] .folder-body {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme='dark'] .text-on-surface,
html[data-theme='dark'] .text-on {
  color: #f0f0f0 !important;
}

html[data-theme='dark'] .text-muted,
html[data-theme='dark'] .text-secondary,
html[data-theme='dark'] .text-outline,
html[data-theme='dark'] .ds-label-muted,
html[data-theme='dark'] .collab-drawing-count,
html[data-theme='dark'] .collab-drawing-revert {
  color: #a3a3a3 !important;
}

html[data-theme='dark'] .text-kinetic {
  color: #f5f5f5 !important;
}

html[data-theme='dark'] .text-accent {
  color: #2644e0 !important;
}

html[data-theme='dark'] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(26, 26, 26, 0.88);
}

html[data-theme='dark'] .theme-toggle-btn {
  color: #a3a3a3;
}

html[data-theme='dark'] .theme-toggle-btn.active {
  background: #f0f0f0;
  color: #111111;
}

html[data-theme='dark'] header.fixed nav,
html[data-theme='dark'] #site-footer footer.site-glass-bar {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.84), rgba(26, 26, 26, 0.72)) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

html[data-theme='dark'] header.fixed nav {
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html[data-theme='dark'] #site-footer footer.site-glass-bar {
  box-shadow:
    0 -12px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html[data-theme='dark'] .site-nav-pill-indicator {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme='dark'] .project-jump-nav {
  background: rgba(26, 26, 26, 0.92);
}

html[data-theme='dark'] .project-jump-nav__label,
html[data-theme='dark'] .project-jump-nav__link,
html[data-theme='dark'] #project-jump-nav .side-nav-link {
  color: #a3a3a3;
}

html[data-theme='dark'] .project-jump-nav__link:hover,
html[data-theme='dark'] #project-jump-nav .side-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f0f0f0;
}

html[data-theme='dark'] .project-jump-nav__link.is-active,
html[data-theme='dark'] .project-jump-nav__link.active,
html[data-theme='dark'] #project-jump-nav .side-nav-link.is-active,
html[data-theme='dark'] #project-jump-nav .side-nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #f0f0f0;
}

html[data-theme='dark'] .project-scroll-top {
  background: #f0f0f0;
  color: #111111;
}

html[data-theme='dark'] .project-scroll-top:hover {
  background: #2644e0;
  color: #ffffff;
}

html[data-theme='dark'] .bg-white {
  background-color: #1a1a1a !important;
}

html[data-theme='dark'] .bg-white\/60 {
  background-color: rgba(26, 26, 26, 0.88) !important;
}

html[data-theme='dark'] .bg-white\/70 {
  background-color: rgba(26, 26, 26, 0.92) !important;
}

html[data-theme='dark'] .bg-surface {
  background-color: #0f0f0f !important;
}

html[data-theme='dark'] .bg-kinetic {
  background-color: #f0f0f0 !important;
}

/* bg-kinetic + text-white inverts in dark — fix illegible white-on-white */
html[data-theme='dark'] .bg-kinetic.text-white,
html[data-theme='dark'] .text-white.bg-kinetic,
html[data-theme='dark'] a.bg-kinetic,
html[data-theme='dark'] button.bg-kinetic {
  color: var(--ds-btn-solid-fg) !important;
}

html[data-theme='dark'] .bg-kinetic.text-white:hover,
html[data-theme='dark'] .text-white.bg-kinetic:hover,
html[data-theme='dark'] a.bg-kinetic:hover,
html[data-theme='dark'] button.bg-kinetic:hover,
html[data-theme='dark'] .text-white.hover\:bg-on:hover,
html[data-theme='dark'] .text-white.hover\:bg-kinetic:hover {
  background-color: var(--ds-btn-solid-hover-bg) !important;
  color: var(--ds-btn-solid-fg) !important;
}

html[data-theme='dark'] .bg-kinetic\/5 {
  background-color: var(--ds-tint-kinetic) !important;
}

html[data-theme='dark'] .bg-kinetic\/10 {
  background-color: rgba(38, 68, 224, 0.16) !important;
}

html[data-theme='dark'] .bg-kinetic\/35 {
  background-color: rgba(255, 255, 255, 0.35) !important;
}

html[data-theme='dark'] .bg-on\/5 {
  background-color: var(--ds-tint-on) !important;
}

html[data-theme='dark'] .bg-on-surface {
  background-color: #1a1a1a !important;
}

html[data-theme='dark'] .bg-on {
  background-color: #1a1a1a !important;
}

html[data-theme='dark'] .bg-black\/5 {
  background-color: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme='dark'] .bg-black\/10 {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme='dark'] .bg-black\/20 {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

html[data-theme='dark'] .hover\:bg-black\/35:hover {
  background-color: rgba(255, 255, 255, 0.35) !important;
}

html[data-theme='dark'] .ds-pill-btn {
  background: var(--ds-btn-solid-bg);
  color: var(--ds-btn-solid-fg);
}

html[data-theme='dark'] .ds-pill-btn:hover {
  background: var(--ds-btn-solid-hover-bg);
}

html[data-theme='dark'] .border-outline\/20,
html[data-theme='dark'] .border-outline\/30,
html[data-theme='dark'] .border-outline\/60 {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-theme='dark'] .bg-outline\/30 {
  background-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-theme='dark'] .bg-outline\/70 {
  background-color: rgba(255, 255, 255, 0.24) !important;
}

html[data-theme='dark'] .ring-black\/10 {
  --tw-ring-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme='dark'] .border-black\/5,
html[data-theme='dark'] .border-black\/10 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme='dark'] .desk-cta-btn--primary {
  background: #f0f0f0;
  color: #111111;
}

html[data-theme='dark'] .desk-cta-btn--primary:hover,
html[data-theme='dark'] .group:hover .desk-cta-btn--primary {
  background: #ffffff;
}

html[data-theme='dark'] .desk-cta-btn--ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: #1a1a1a;
  color: #f0f0f0;
}

html[data-theme='dark'] .desk-cta-btn--ghost:hover {
  border-color: #f0f0f0;
  background: #f0f0f0;
  color: #111111;
}

html[data-theme='dark'] .clock-dot {
  background: #222222;
}

html[data-theme='dark'] .clock-dot.on {
  background: #f0f0f0;
}

html[data-theme='dark'] .collab-drawing {
  --collab-canvas-bg: #242424;
  --collab-grid-line: rgba(255, 255, 255, 0.06);
}

html[data-theme='dark'] .collab-drawing-canvas-wrap,
html[data-theme='dark'] .collab-drawing-tool,
html[data-theme='dark'] .collab-drawing-revert {
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme='dark'] .collab-drawing-color.is-active {
  border-color: #f0f0f0;
  box-shadow: 0 0 0 2px #1a1a1a, 0 0 0 3px rgba(0, 0, 0, 0.55);
}

html[data-theme='dark'] .collab-drawing-sep {
  color: #666666;
}

html[data-theme='dark'] .impact-metric-card {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme='dark'] .impact-metric-card::after {
  background: rgba(0, 0, 0, 0.22);
}

html[data-theme='dark'] .impact-metric-card__title,
html[data-theme='dark'] .impact-metric-card__caption,
html[data-theme='dark'] .impact-metric-card__desc,
html[data-theme='dark'] .impact-metric-card__eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme='dark'] .impact-metrics-grid--dense .impact-metric-counter__unit {
  color: #a3a3a3;
}

html[data-theme='dark'] .impact-metric-card__value {
  color: #f0f0f0;
}

html[data-theme='dark'] nav.fixed.bottom-0.border-t {
  background: rgba(15, 15, 15, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

@keyframes site-studio-info-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.15);
  }
}

.site-studio-info {
  border-top-color: #c4c4c4;
}

html[data-theme='dark'] .site-studio-info {
  border-top-color: #1a1a1a;
}

.site-studio-info__pulse {
  animation: site-studio-info-pulse 1.8s ease-in-out infinite;
}

#site-studio-info {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

/* In-dev case study password gate */
html.project-gate-locked body {
  visibility: hidden;
}

/* Custom cursor is on hidden body — use native cursors on the gate overlay */
html.project-gate-locked.has-site-cursor,
html.project-gate-locked.has-site-cursor body {
  cursor: auto !important;
}

html.project-gate-locked.has-site-cursor .project-gate-overlay,
html.project-gate-locked.has-site-cursor .project-gate-overlay * {
  cursor: auto !important;
}

html.project-gate-locked.has-site-cursor .ds-input {
  cursor: text !important;
}

html.project-gate-locked.has-site-cursor .project-gate-card .ds-btn-primary,
html.project-gate-locked.has-site-cursor .project-gate-back {
  cursor: pointer !important;
}

html.project-gate-locked .site-cursor {
  display: none !important;
  opacity: 0 !important;
}

.project-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(242, 242, 242, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.project-gate-card {
  width: min(100%, 24rem);
  padding: 1.75rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 18px 48px -24px rgba(0, 0, 0, 0.28);
}

.project-gate-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-gate-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: #1b1b1b;
}

.project-gate-form {
  margin-top: 1rem;
}

.project-gate-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5e5e5e;
}

.project-gate-error {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: #b42318;
}

.project-gate-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 1rem;
}

.project-gate-card .ds-btn-primary {
  box-sizing: border-box;
  width: 100%;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  border: none;
  cursor: pointer;
  box-shadow: none;
}

.project-gate-back {
  text-align: center;
  font-size: 0.875rem;
  text-decoration: none;
}

.project-gate-back:hover {
  color: #2644e0;
}

html[data-theme='dark'] .project-gate-overlay {
  background: rgba(27, 27, 27, 0.9);
}

html[data-theme='dark'] .project-gate-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: #242424;
}

html[data-theme='dark'] .project-gate-title {
  color: #f2f2f2;
}

