:root {
  --brand: #22a601;
  --brand-rgb: 34 166 1;
  --brand-hover: #1c8801;
  --brand-hover-rgb: 28 136 1;
  --brand-dark: #0a2e00;
  --brand-dark-rgb: 10 46 0;
  --brand-forest: #146401;
  --brand-forest-rgb: 20 100 1;
  --ink: #090c0f;
  --sand: #f3f1ee;
  --mist: #fafafa;
  --muted: #545454;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font: Inter, system-ui, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --shadow-sm: 0 1px 3px 0 rgb(9 12 15 / 0.05), 0 1px 2px -1px rgb(9 12 15 / 0.05);
  --shadow-md: 0 1px 3px 0 rgb(9 12 15 / 0.07), 0 2px 4px -1px rgb(9 12 15 / 0.06);
  --shadow-lg: 0 1px 3px 0 rgb(9 12 15 / 0.08), 0 4px 6px -1px rgb(9 12 15 / 0.07);
  --shadow-xl: 0 1px 3px 0 rgb(9 12 15 / 0.08), 0 8px 10px -1px rgb(9 12 15 / 0.08);
  --shadow-brand: 0 1px 3px 0 rgb(var(--brand-rgb) / 0.18), 0 8px 18px -6px rgb(var(--brand-rgb) / 0.32);
  --grid-strength: 0.07;
  --grid-line: rgb(9 12 15 / var(--grid-strength));
  --grid-line-light: rgb(255 255 255 / var(--grid-strength));
  --grid-line-active: var(--grid-line);
  --grid-size: 24px;
  /* Type scale — one ladder for the whole site. Every step is a clamp so it
     reflows without breakpoints. Do not introduce new sizes in page markup. */
  --text-eyebrow: clamp(0.6875rem, 0.62rem + 0.28vw, 0.8125rem);
  --text-small: clamp(0.75rem, 0.7rem + 0.28vw, 0.875rem);
  --text-body: clamp(0.9rem, 0.84rem + 0.32vw, 1.0625rem);
  --text-lead: clamp(0.98rem, 0.9rem + 0.42vw, 1.25rem);
  --text-h3: clamp(1.05rem, 0.96rem + 0.48vw, 1.375rem);
  --text-h2: clamp(1.28rem, 1.05rem + 1.2vw, 2.5rem);
  --text-h1: clamp(1.5rem, 1.2rem + 1.7vw, 3rem);
  --text-display: clamp(1.85rem, 1.05rem + 3.6vw, 4.85rem);
  --text-stat: clamp(1.35rem, 1rem + 1.8vw, 3rem);

  /* Spacing scale — sections use --space-section, everything inside a section
     steps through block/stack/tight so vertical rhythm stays consistent. */
  --space-section: clamp(3rem, 7vw, 8rem);
  --space-block: clamp(1.75rem, 3.4vw, 3.5rem);
  --space-stack: 1.5rem;
  --space-tight: 0.75rem;

  --radius-card: 1.75rem;
  --radius-media: 1.25rem;
  --radius-control: 999px;

  /* Reserved space so fixed floating buttons never sit on top of content */
  --fab-size: 3.1rem;
  --fab-gap: 1.35rem;
  --fab-safe: calc(var(--fab-size) + var(--fab-gap) * 2);

  --surface-page: #ffffff;
  --surface-1: #ffffff;
  --surface-2: #ffffff;
  --tint-a: var(--sand);
  --tint-b: var(--mist);
  --text-1: var(--ink);
  --text-2: var(--muted);
  --text-soft: var(--muted);
  --border-1: rgb(9 12 15 / 0.10);
  --glass: rgb(255 255 255 / 0.72);
  --glass-border: rgb(9 12 15 / 0.12);
  --glass-text: var(--text-1);
  --star: #e4b84a;
}

html.theme-dark {
  --surface-page: var(--ink);
  --surface-1: #12161a;
  --surface-2: #171c21;
  --tint-a: #0d1114;
  --tint-b: #0b0f12;
  --text-1: #eceae6;
  --text-2: rgb(255 255 255 / 0.64);
  --text-soft: rgb(255 255 255 / 0.64);
  --grid-line-active: var(--grid-line-light);
  --border-1: rgb(255 255 255 / 0.10);
  --glass: rgb(9 12 15 / 0.58);
  --glass-border: rgb(255 255 255 / 0.12);
  --glass-text: var(--text-1);
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: none;
  color-scheme: dark;
  background: var(--surface-page);
}

html {
  scroll-behavior: smooth;
  background: var(--surface-page);
}

body {
  background-color: var(--surface-page);
  background-image: var(--site-pattern, none);
  background-repeat: repeat;
  color: var(--text-1);
  font-family: var(--font);
  font-size: var(--text-body);
  font-feature-settings: "ss01" on, "cv11" on;
  overflow-wrap: break-word;
}

.site-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line-active) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-active) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  -webkit-mask-image: radial-gradient(80% 68% at 50% 18%, #000 48%, transparent 100%);
  mask-image: radial-gradient(80% 68% at 50% 18%, #000 48%, transparent 100%);
}

main {
  position: relative;
  z-index: 1;
}

::selection {
  background: var(--brand);
  color: #fff;
}

[x-cloak] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.font-display,
.font-nav,
.font-sans {
  font-family: var(--font);
}

.font-display {
  letter-spacing: -0.03em;
}

.heading-1 {
  font-family: var(--font);
  font-size: var(--text-h1);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.hero-title {
  font-family: var(--font);
  font-size: var(--text-display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  max-width: min(32ch, 92%);
  margin-inline: auto;
  color: var(--brand);
}

/* Standard section furniture. Pair an eyebrow + heading-2 + lead at the top of
   any section so every page opens the same way. */
.eyebrow {
  display: block;
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-lead {
  margin-top: var(--space-tight);
  max-width: 58ch;
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--text-2);
}

.text-soft {
  color: var(--text-soft);
}

.section-head {
  margin-bottom: var(--space-block);
}

.hero-typed {
  color: var(--brand);
}

/* Serif italic accent word — the contrast against Inter is what reads as editorial */
.accent-serif,
.hero-typed {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Headline gradient fill: full strength at the top-left, easing to ~68% toward the
   bottom-right. Built on currentColor so the same rule works on light and dark
   sections without needing a separate modifier class. */
.hero-title,
.heading-1,
.heading-2,
.text-gradient {
  background-image: linear-gradient(
    to bottom right,
    currentColor 0%,
    currentColor 42%,
    color-mix(in srgb, currentColor 68%, transparent) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* The accent word carries its own colour, so it opts out of the clipped gradient */
.hl,
.accent-serif,
.hero-typed {
  -webkit-text-fill-color: currentColor;
  background-image: none;
}

/* On dark sections the brand green needs lifting to stay legible */
.text-white .hl,
.text-white .accent-serif,
.text-white .hero-typed,
.page-hero .hl,
.page-hero .accent-serif {
  color: var(--brand);
}

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero-title,
  .heading-1,
  .heading-2,
  .text-gradient {
    -webkit-text-fill-color: currentColor;
  }
}

/* Masked grid backdrop — depth without drop shadows */
.grid-backdrop {
  position: relative;
  isolation: isolate;
}

.grid-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  -webkit-mask-image: radial-gradient(60% 50% at 50% 0, #000 70%, transparent 100%);
  mask-image: radial-gradient(60% 50% at 50% 0, #000 70%, transparent 100%);
}

.grid-backdrop-light::before {
  background-image:
    linear-gradient(to right, var(--grid-line-light) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-light) 1px, transparent 1px);
}

/* Hero photo / video layer — opacity comes from Studio (Background opacity). */
.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: var(--hero-media-opacity, 1);
}

.hero-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero grid overlay — only used over video/image so type stays readable */
.hero-scrim {
  pointer-events: none;
  background: none;
}

.hero-has-media .hero-scrim {
  background: linear-gradient(
    180deg,
    rgb(9 12 15 / calc(0.16 + (1 - var(--hero-media-opacity, 1)) * 0.42)) 0%,
    rgb(9 12 15 / calc(0.28 + (1 - var(--hero-media-opacity, 1)) * 0.48)) 55%,
    rgb(9 12 15 / calc(0.36 + (1 - var(--hero-media-opacity, 1)) * 0.52)) 100%
  );
}

.hero-has-media {
  color: #fff;
}

.hero-has-media .hero-title {
  color: var(--brand);
}

.hero-lede {
  color: var(--text-soft);
  font-size: var(--text-lead);
  line-height: 1.55;
}

.hero-has-media .hero-lede {
  color: rgb(255 255 255 / 0.9);
}

.hero-grid {
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line-light) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-light) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  -webkit-mask-image: radial-gradient(65% 55% at 50% 22%, #000 55%, transparent 100%);
  mask-image: radial-gradient(65% 55% at 50% 22%, #000 55%, transparent 100%);
}

/* Reassurance cue row under the hero buttons */
.hero-cues {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.hero-has-media .hero-cues {
  color: rgb(255 255 255 / 0.62);
}

.hero-cues li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-cues svg {
  width: 0.9375rem;
  height: 0.9375rem;
  flex-shrink: 0;
  color: var(--brand);
}

.hero-has-media .hero-cues svg {
  color: color-mix(in srgb, var(--brand) 62%, #ffffff);
}

/* Home hero CTAs stay on one row; padding and type scale down with the viewport. */
.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.28rem, 1.4vw, 1rem);
  width: 100%;
  max-width: 100%;
}

.hero-actions .btn {
  flex: 0 0 auto;
  min-height: clamp(2rem, 4.2vw + 1.15rem, 3rem);
  padding: clamp(0.28rem, 0.7vw + 0.12rem, 0.75rem) clamp(0.38rem, 1.35vw + 0.1rem, 1.75rem);
  font-size: clamp(0.625rem, 0.38rem + 1.1vw, 0.9375rem);
  gap: clamp(0.18rem, 0.65vw, 0.55rem);
}

.hero-actions .btn svg {
  width: clamp(0.65rem, 0.42rem + 0.9vw, 1.125rem);
  height: clamp(0.65rem, 0.42rem + 0.9vw, 1.125rem);
}

@media (min-width: 640px) {
  .hero-cues {
    font-size: 0.875rem;
  }
}

/* Scroll reveal: 20px lift + fade, staggered by children.
   Scoped to .js-reveal (set by an inline head script) so content is never
   left hidden when JavaScript is unavailable or motion is reduced. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  animation: reveal-failsafe 0.01s linear 1.5s forwards;
}

.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes reveal-failsafe {
  to {
    opacity: 1;
    transform: none;
  }
}

.heading-2 {
  font-family: var(--font);
  font-size: var(--text-h2);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.heading-3 {
  font-family: var(--font);
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.stat-value {
  font-family: var(--font);
  font-size: var(--text-stat);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section {
  padding-block: var(--space-section);
}

main > .section + .section,
main > .partner-logos,
main > .partner-logos + .section,
main > .page-hero + .section {
  border-top: 1px solid var(--border-1);
}

.section-focus {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: 5.5rem;
  padding-block: max(7.5rem, var(--space-section));
}

.split-story {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.split-story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.section-more {
  display: flex;
  justify-content: flex-start;
  margin-top: var(--space-stack, 1.75rem);
}

.split-story-media {
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--tint-a);
  box-shadow: var(--shadow-xl);
}

.split-story-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.split-story-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.split-story-fact {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: var(--surface-1);
  border: 1px solid var(--border-1);
}

.split-story-fact strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 650;
}

.split-story-fact span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--text-2);
}

@media (min-width: 1024px) {
  .split-story {
    grid-template-columns: 1fr 1fr;
    gap: 3.25rem;
    align-items: center;
  }

  .split-story-media {
    min-height: 0;
  }

  .split-story-media img {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
  }
}

.card {
  border-radius: var(--radius-card);
  background: var(--surface-1);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

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

@media (min-width: 1024px) {
  .card {
    padding: 2rem;
  }
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* Frosted glass — blur lives on ::before so the pill does not clip the Company menu */
.glass-nav,
.glass-menu,
.site-drawer,
.site-footer,
.footer-cta {
  isolation: isolate;
  overflow: visible;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--glass-text);
}

.glass-nav,
.glass-menu,
.footer-cta {
  position: relative;
}

.glass-nav::before,
.glass-menu::before,
.site-drawer::before,
.site-footer::before,
.footer-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: none;
}

.glass-nav {
  box-shadow: 0 10px 40px rgb(9 12 15 / 0.08);
}

/* Light mode: fill the pill and the strip behind it so the page
   grid and scrolling headings cannot read through the header.
   Dark glass stays as-is. */
html:not(.theme-dark) header.fixed::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 0.92) 0%,
    rgb(255 255 255 / 0.62) 72%,
    rgb(255 255 255 / 0) 100%
  );
}

html:not(.theme-dark) header.fixed > .glass-nav {
  z-index: 1;
}

html:not(.theme-dark) .glass-nav,
html:not(.theme-dark) .glass-menu,
html:not(.theme-dark) .site-drawer {
  background: rgb(255 255 255 / 0.98);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
}

html:not(.theme-dark) .glass-nav {
  box-shadow:
    0 1px 0 rgb(255 255 255) inset,
    0 10px 32px rgb(9 12 15 / 0.07);
}

html:not(.theme-dark) .glass-nav::before,
html:not(.theme-dark) .glass-menu::before,
html:not(.theme-dark) .site-drawer::before {
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
}

.logo-on-light {
  display: none;
}

.logo-on-dark {
  display: block;
}

html.theme-light .logo-on-light {
  display: block;
}

html.theme-light .logo-on-dark {
  display: none;
}

html.theme-dark .logo-on-light {
  display: none;
}

html.theme-dark .logo-on-dark {
  display: block;
}

.site-logo {
  height: 2.5rem;
  width: auto;
  max-width: min(220px, 68vw);
  object-fit: contain;
}

.footer-logo {
  height: 3.25rem;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.nav-drop {
  position: relative;
}

.nav-drop-panel {
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 0.75rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 0.16s var(--ease),
    transform 0.16s var(--ease),
    visibility 0.16s;
  z-index: 20;
}

.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.menu-overlay.is-open {
  display: block;
}

.menu-overlay .site-drawer {
  transform: translateX(110%);
  transition: transform 0.3s var(--ease);
}

.menu-overlay.is-open .site-drawer {
  transform: translateX(0);
}

.drawer-group summary {
  list-style: none;
  cursor: pointer;
}

.drawer-group summary::-webkit-details-marker {
  display: none;
}

.drawer-group[open] .drawer-caret {
  transform: rotate(180deg);
}

.nav-link {
  color: var(--glass-text);
  opacity: 0.82;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand);
  opacity: 1;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  color: var(--glass-text);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--glass-text);
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: color-mix(in srgb, var(--glass-text) 8%, transparent);
  outline: none;
}

.theme-toggle .icon-moon {
  display: none;
}

html.theme-dark .theme-toggle .icon-sun {
  display: none;
}

html.theme-dark .theme-toggle .icon-moon {
  display: block;
}

html.theme-light .theme-toggle .icon-sun {
  display: block;
}

html.theme-light .theme-toggle .icon-moon {
  display: none;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.drawer-brand {
  min-width: 0;
}

.drawer-logo {
  height: 2.5rem;
  width: auto;
  max-width: min(13.5rem, 58vw);
  object-fit: contain;
}

@media (min-width: 640px) {
  .site-logo {
    height: 3.25rem;
    max-width: 280px;
  }

  .header-actions {
    gap: 0.5rem;
  }
  .footer-logo {
    height: 3.75rem;
    max-width: 320px;
  }
}

@media (min-width: 1024px) {
  .site-logo {
    height: 3.5rem;
    max-width: 300px;
  }
}

/* Highlight word used in titles — serif italic against Inter is the editorial contrast */
.hl {
  color: var(--brand);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Slide-fill buttons — hover colour sits behind the label so text stays readable */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  max-width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-control);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 0% 100%;
  box-shadow: var(--shadow-sm);
  transition:
    color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease),
    background-size 0.45s var(--ease),
    background-position 0.45s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-fill {
  box-shadow: var(--shadow-brand);
}

.btn-fill:hover,
.btn-fill:focus-visible {
  box-shadow: var(--shadow-brand), var(--shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn:hover,
  .btn:focus-visible,
  .btn:active {
    transform: none;
  }
}

.btn svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .btn {
    gap: 0.5rem;
    min-height: 2.875rem;
    padding: 0.6875rem 1.5rem;
    font-size: 0.9375rem;
  }

  .btn svg {
    width: 1.0625rem;
    height: 1.0625rem;
  }
}

@media (min-width: 1024px) {
  .btn {
    gap: 0.55rem;
    min-height: 3rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
  }

  .btn svg {
    width: 1.125rem;
    height: 1.125rem;
  }
}

/* Header CTA must stay compact on small screens; global .btn sizing is too large. */
.btn.header-cta {
  display: none;
}

.btn.header-cta-drawer {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .btn.header-cta {
    display: inline-flex;
    min-height: 2.25rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .btn.header-cta {
    min-height: 3rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
  }
}

.btn.w-full,
.btn.justify-center {
  flex-shrink: 1;
}

.btn:hover,
.btn:focus-visible {
  background-position: left center;
  background-size: 100% 100%;
}

.btn-fill {
  background-color: var(--brand);
  background-image: linear-gradient(#fff, #fff);
  color: #fff;
  border: 1px solid var(--brand);
}

.btn-fill:hover,
.btn-fill:focus-visible {
  color: var(--brand);
}

.btn-ghost {
  background-color: transparent;
  background-image: linear-gradient(var(--text-1), var(--text-1));
  color: var(--text-1);
  border: 1px solid color-mix(in srgb, var(--text-1) 42%, transparent);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--surface-page);
  border-color: var(--text-1);
}

.hero-has-media .btn-ghost {
  background-image: linear-gradient(#fff, #fff);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

.hero-has-media .btn-ghost:hover,
.hero-has-media .btn-ghost:focus-visible {
  color: var(--brand);
  border-color: #fff;
}

.btn-outline {
  background-color: transparent;
  background-image: linear-gradient(var(--brand), var(--brand));
  color: var(--brand-dark);
  border: 1px solid var(--ink);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  color: #fff;
  border-color: var(--brand);
}

.btn-light {
  background-color: #fff;
  background-image: linear-gradient(var(--brand), var(--brand));
  color: var(--ink);
  border: 1px solid #fff;
}

.btn-light:hover,
.btn-light:focus-visible {
  color: #fff;
}

/* Logo marquee */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 4.2rem;
  animation: marquee 28s linear infinite;
  align-items: center;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 4.2rem;
}

.marquee:hover .marquee-track,
.proof-marquee:hover .proof-track {
  animation-play-state: paused;
}

.hero-logos {
  min-height: 4.75rem;
}

.partner-logos {
  min-height: 4.75rem;
}

.hero-logos-scrim {
  padding: 1.1rem 0 1.25rem;
  background: linear-gradient(to top, rgba(9, 12, 15, 0.72) 0%, rgba(9, 12, 15, 0.28) 62%, transparent 100%);
}

.hero-logos img {
  height: 2rem;
  width: auto;
}

@media (min-width: 640px) {
  .hero-logos img {
    height: 2.5rem;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.9s var(--ease) forwards;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  animation: slide-in 0.9s var(--ease) forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slide-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hero type cursor */
.typed-caret {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 4px;
  background: var(--brand);
  vertical-align: -0.08em;
  animation: blink 0.9s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Sticky service stack */
.service-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-card {
  display: grid;
  gap: 1.15rem;
  padding: 1.35rem;
  border-radius: var(--radius-card);
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  box-shadow: 0 18px 50px rgba(9, 12, 15, 0.08);
}

.service-card-media {
  min-height: 0;
}

.service-card-img {
  display: block;
  width: 100%;
  height: 18rem;
  object-fit: cover;
  border-radius: var(--radius-media);
}

.service-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0.75rem 1.15rem;
}

@media (min-width: 1024px) {
  .service-card {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    padding: 1.75rem;
    align-items: stretch;
  }

  .service-card-img {
    height: 100%;
    min-height: 22rem;
  }

  .service-card-copy {
    padding: 1.5rem 1.25rem;
  }
}

@media (min-width: 768px) {
  .service-stack {
    gap: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .service-card {
    --stack-top: clamp(5.75rem, calc(50svh - 15rem), 11rem);
    position: sticky;
    top: calc(var(--stack-top) + (var(--stack-i, 0) * 0.75rem));
    z-index: calc(10 + var(--stack-i, 0));
  }
}

/* Project cards */
.project-card {
  min-height: 420px;
  background-size: cover;
  background-position: center;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 12, 15, 0.08) 18%, rgba(9, 12, 15, 0.72) 100%);
}

.project-glass {
  border-radius: 1.15rem;
  background: rgb(9 12 15 / 0.58);
  border: 1px solid rgb(255 255 255 / 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.2rem 1.3rem 1.05rem;
  color: #fff;
}

.project-glass .heading-3,
.project-glass span {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background-image: none;
}

.project-glass p {
  color: rgb(255 255 255 / 0.88);
  -webkit-text-fill-color: rgb(255 255 255 / 0.88);
}

html.theme-light .project-glass .heading-3,
html.theme-light .project-glass span,
html.theme-dark .project-glass .heading-3,
html.theme-dark .project-glass span {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

/* Proof marquee */
.proof-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.proof-track {
  display: flex;
  width: max-content;
  gap: 1.25rem;
  animation: marquee 48s linear infinite;
}

.proof-group {
  display: flex;
  gap: 1.25rem;
}

.proof-card {
  flex: 0 0 min(calc(100vw - 2.5rem), 22rem);
  border-radius: 2rem;
  background: var(--surface-1);
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(9, 12, 15, 0.06);
  border: 1px solid var(--border-1);
}

@media (min-width: 768px) {
  .proof-card {
    flex-basis: min(36rem, calc(50vw - 3rem));
  }
}

@media (min-width: 1280px) {
  .proof-card {
    flex-basis: 34rem;
  }
}

/* Footer CTA — same frosted glass as header and footer */
.footer-cta {
  border-radius: var(--radius-card);
}

.footer-cta-copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  text-align: center;
}

.footer-cta-copy .section-lead {
  margin-inline: auto;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: #fff;
  color: var(--brand);
}

.contact-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.contact-row svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--brand);
}

.glass-menu {
  min-width: 220px;
  padding: 0.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgb(9 12 15 / 0.12);
}

.glass-menu a {
  display: block;
  min-height: 2.75rem;
  border-radius: 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  color: var(--glass-text);
  opacity: 0.88;
}

.glass-menu a:hover,
.glass-menu a.is-active {
  background: color-mix(in srgb, var(--glass-text) 6%, transparent);
  color: var(--brand);
  opacity: 1;
}

.drawer-backdrop {
  background: color-mix(in srgb, var(--ink) 42%, transparent);
}

.site-drawer {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  height: auto;
  max-height: calc(100% - 1.5rem);
  border-radius: 1.75rem;
  overflow-y: auto;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 0.75rem;
  border-radius: 0.75rem;
  color: var(--glass-text);
  text-align: left;
  background: transparent;
  border: 0;
}

.drawer-link:hover,
.drawer-link.is-active {
  background: color-mix(in srgb, var(--glass-text) 6%, transparent);
  color: var(--brand);
}

.drawer-sub {
  margin: 0 0 0.25rem 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--glass-border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.6vw, 1.25rem);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  border-radius: var(--radius-media);
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-tablist {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  margin: 0 -0.15rem var(--space-block);
  padding: 0 0.15rem 0.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-tablist::-webkit-scrollbar {
  display: none;
}

.gallery-tab {
  flex: 0 0 auto;
  min-height: 2.25rem;
  padding: 0.32rem 0.78rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: var(--text-small);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
}

.gallery-tab.is-active {
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
}

.gallery-panel[hidden] {
  display: none;
}

.gallery-panel + .gallery-panel {
  margin-top: var(--space-block);
}

[data-gallery-tabs][data-gallery-filter="all"] .gallery-solo-head {
  display: none;
}

[data-gallery-tabs]:not([data-gallery-filter="all"]) .gallery-all-head {
  display: none;
}

.gallery-empty {
  margin: 0;
  color: var(--text-2);
  font-size: var(--text-small);
  line-height: 1.55;
}

.pub-band {
  background: color-mix(in srgb, var(--brand) 7%, var(--surface-page));
}

.media-queue {
  --media-queue-gap: clamp(0.75rem, 2vw, 1.25rem);
  --media-queue-peek: clamp(2.5rem, 8vw, 4.75rem);
  --media-queue-tile: min(17.5rem, 78vw);
  --media-queue-tile-solo: min(22rem, 100%);
}

.media-queue-scroller {
  display: flex;
  gap: var(--media-queue-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.15rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.2rem;
}

.media-queue-scroller::-webkit-scrollbar {
  display: none;
}

.media-queue-scroller > * {
  flex: 0 0 auto;
  width: var(--media-queue-tile);
  min-width: 0;
  scroll-snap-align: start;
}

.media-queue-scroller:has(> :only-child) > * {
  width: var(--media-queue-tile-solo);
}

@media (min-width: 1024px) {
  .media-queue-scroller > * {
    width: calc((100% - (2 * var(--media-queue-gap)) - var(--media-queue-peek)) / 3);
  }

  .media-queue-scroller:has(> :only-child) > * {
    width: calc((100% - (2 * var(--media-queue-gap)) - var(--media-queue-peek)) / 3);
  }
}

.media-queue[data-queue-kind="videos"] .pub-video-card {
  padding: 0 0 0.9rem;
  gap: 0.55rem;
}

.media-queue[data-queue-kind="videos"] .pub-card-title,
.media-queue[data-queue-kind="videos"] .pub-card-copy,
.media-queue[data-queue-kind="videos"] .pub-video-fallback {
  padding-inline: 0.9rem;
}

.media-queue[data-queue-kind="documents"] .pub-card {
  padding: 1rem 1rem 1.15rem;
  gap: 0.85rem;
}

.media-queue[data-queue-kind="documents"] .pub-card-preview {
  border-radius: var(--radius-media);
}

.media-queue[data-queue-kind="documents"] .pub-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.media-queue[data-queue-kind="documents"] .pub-card-icon {
  flex-shrink: 0;
  margin: 0;
}

.media-queue[data-queue-kind="documents"] .pub-card-title {
  margin: 0.15rem 0 0;
  min-width: 0;
  flex: 1;
}

.media-queue[data-queue-kind="documents"] .pub-card-copy {
  margin-top: 0;
}

.media-queue[data-queue-kind="documents"] .pub-card-foot {
  padding-top: 0.35rem;
}

.pub-card-preview {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: color-mix(in srgb, var(--text-1) 6%, var(--surface-2));
  border-radius: var(--radius-media) var(--radius-media) 0 0;
}

.pub-card-preview iframe,
.pub-card-preview img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.pub-card-preview img {
  object-fit: cover;
}

.media-queue-toolbar {
  display: none;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.media-queue.is-scrollable .media-queue-toolbar {
  display: flex;
}

.media-queue-toolbar .swiper-nav:disabled {
  opacity: 0.38;
  pointer-events: none;
}

.pub-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1.1rem, 3vw, 1.75rem);
}

.pub-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  color: var(--brand);
}

.pub-card-icon-mark {
  display: block;
  width: 2.75rem;
  height: 3.3rem;
}

.pub-card-icon-sheet {
  fill: var(--brand);
}

.pub-card-icon-flap {
  fill: color-mix(in srgb, var(--surface-1) 22%, var(--brand));
}

.pub-card-icon-label {
  fill: var(--surface-1);
  font-family: Inter, system-ui, sans-serif;
  font-size: 8.2px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pub-card-title {
  margin: 1rem 0 0;
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-1);
  overflow-wrap: anywhere;
}

.pub-card-copy {
  margin: 0.75rem 0 0;
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--text-2);
}

.pub-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-top: auto;
  padding-top: 1.1rem;
}

.pub-card-meta {
  margin: 0;
  font-size: clamp(0.65rem, 0.6rem + 0.2vw, 0.72rem);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.pub-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin: 0;
}

.pub-card-open,
.pub-card-download {
  font-size: var(--text-small);
  font-weight: 650;
  color: var(--brand);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.pub-card-open:hover,
.pub-card-download:hover {
  text-decoration: underline;
}

.pub-video-card {
  display: grid;
  gap: 0.85rem;
  padding: clamp(0.85rem, 2.4vw, 1.5rem);
}

.pub-video,
.pub-video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-media);
  background: #000;
}

.pub-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

button.pub-video-tile {
  position: relative;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
}

.pub-video-tile img,
.pub-video-plate,
.pub-video-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-video-plate {
  background:
    radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--brand) 28%, transparent), transparent 55%),
    #111;
}

.pub-video-preview {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.pub-video-tile.is-previewing .pub-video-preview {
  opacity: 1;
}

.pub-video-watch {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 1;
  pointer-events: none;
}

.pub-video-watch-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.85rem;
  padding: 0.2rem 0.65rem 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  animation: pub-video-watch-pulse 1.8s ease-in-out infinite;
}

.pub-video-tile:hover .pub-video-watch-mark,
.pub-video-tile:focus-visible .pub-video-watch-mark {
  transform: scale(1.04);
}

@keyframes pub-video-watch-pulse {
  0%,
  100% {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent);
  }
  50% {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 0 8px color-mix(in srgb, var(--brand) 0%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pub-video-watch-mark {
    animation: none;
  }

  .pub-video-preview {
    transition: none;
  }
}

.pub-video-fallback {
  margin: 0;
  padding: 1rem;
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--text-2);
}

.offer-project {
  display: grid;
  gap: var(--space-tight);
}

.offer-project h3 {
  margin: 0;
}

.meta-rows {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.meta-rows div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgb(9 12 15 / 0.08);
}

.meta-rows dt {
  font-size: var(--text-small);
  font-weight: 650;
  color: var(--muted);
}

.meta-rows dd {
  margin: 0;
}

.contact-panel {
  display: grid;
  gap: var(--space-stack);
}

.contact-panel a {
  color: inherit;
}

.map-embed {
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--tint-a);
  min-height: 12rem;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 12rem;
  border: 0;
}

.equal-cards {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

.equal-cards > * {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.item-icon {
  color: var(--brand);
}

.stat-board {
  display: grid;
  gap: 1.25rem;
}

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

@media (min-width: 1024px) {
  .stat-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.stat-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.stat-card .stat-value {
  min-height: 2.6em;
  display: flex;
  align-items: flex-end;
  line-height: 1;
}

.project-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--space-block);
}

.capability-grid {
  display: grid;
  gap: 1.25rem;
}

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

@media (min-width: 1024px) {
  .capability-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.capability-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.capability-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--brand) 18%, var(--surface-1));
  color: var(--brand);
}

.insight-cover {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-media);
  background: var(--surface-2);
}

.insight-cover-hero {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 32rem;
  object-fit: cover;
  border-radius: var(--radius-card);
  background: var(--surface-2);
}

.insight-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.insight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: var(--text-small);
  color: var(--muted);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-block);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-1);
  background: var(--surface-1);
  color: var(--text-1);
  text-decoration: none;
}

.filter-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.legal-note {
  margin-top: var(--space-stack);
  font-size: var(--text-small);
  color: var(--text-2);
}

.page-hero .heading-1 {
  max-width: min(100%, 20ch);
  color: var(--brand);
}

@media (min-width: 768px) {
  .page-hero .heading-1 {
    max-width: 32ch;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding:
    max(0.6rem, env(safe-area-inset-top, 0px))
    max(0.6rem, env(safe-area-inset-right, 0px))
    max(0.6rem, env(safe-area-inset-bottom, 0px))
    max(0.6rem, env(safe-area-inset-left, 0px));
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 12, 15, 0.88);
}

.lightbox-frame {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 72rem);
  max-height: calc(100dvh - 1.2rem);
}

.lightbox-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78dvh, calc(100dvh - 5.25rem));
  object-fit: contain;
  border-radius: var(--radius-media);
  background: #000;
  touch-action: pan-y;
}

.lightbox-video-frame {
  width: min(100%, 72rem);
  max-width: 100%;
  max-height: calc(100dvh - 1.2rem);
}

.lightbox-video-frame .lightbox-video,
.lightbox-video-frame .lightbox-video-embed {
  display: none;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #000;
  border: 0;
  border-radius: var(--radius-media);
}

.lightbox-video-frame.is-file .lightbox-video,
.lightbox-video-frame.is-embed .lightbox-video-embed {
  display: block;
}

.lightbox-nav,
.lightbox-close {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 0;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
}

.lightbox-close {
  top: 0.4rem;
  right: 0.4rem;
}

.lightbox-prev {
  left: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 639px) {
  .lightbox-frame img {
    max-height: calc(100dvh - 6.25rem);
    border-radius: 0.85rem;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 0.55rem;
    transform: none;
  }
}

.home-strip {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-1);
  background: var(--surface-1);
  color: var(--text-1);
  text-decoration: none;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.home-strip:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border-1));
}

.home-strip-thumb {
  display: block;
  height: 10rem;
  border-radius: var(--radius-media);
  background-size: cover;
  background-position: center;
}

.home-strip-copy {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.home-strip-copy p {
  color: var(--text-soft);
}

/* Forms */
.field {
  width: 100%;
  border: 1px solid var(--border-1);
  border-radius: 1.1rem;
  background: var(--surface-1);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  color: var(--text-1);
  outline: none;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.field:focus {
  background: var(--surface-1);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 28%, transparent);
}

.field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Swiper */
.projects-swiper .swiper-slide {
  height: auto;
}

.swiper-nav {
  width: 3.25rem;
  min-width: 44px;
  height: 3.25rem;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-1);
  background: var(--surface-1);
  color: var(--text-1);
  display: grid;
  place-items: center;
}

.swiper-nav:hover {
  background: var(--text-1);
  color: var(--surface-page);
}

/* Back to top */
#to-top {
  position: fixed;
  left: var(--fab-gap);
  right: auto;
  bottom: calc(var(--fab-gap) + env(safe-area-inset-bottom, 0px));
  width: var(--fab-size);
  height: var(--fab-size);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.contact-fab {
  position: fixed;
  right: var(--fab-gap);
  bottom: calc(var(--fab-gap) + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.contact-fab-toggle {
  width: var(--fab-size);
  height: var(--fab-size);
  border-radius: 999px;
  border: 0;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(9, 12, 15, 0.22);
}

.contact-fab-toggle:hover,
.contact-fab-toggle:focus-visible {
  background: var(--brand-dark);
}

.contact-fab-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.contact-fab-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(9, 12, 15, 0.16);
}

.contact-fab-action:hover,
.contact-fab-action:focus-visible {
  color: var(--brand);
}

#to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

#to-top:hover {
  background: var(--brand-dark);
}

/* Footer — the last row must clear the fixed floating buttons on every screen,
   otherwise the copyright and legal links sit underneath them. */
.site-footer {
  position: relative;
  z-index: 1;
  margin-inline: clamp(0.7rem, 2vw, 1.5rem);
  border-radius: 1.75rem 1.75rem 0 0;
  padding-bottom: var(--fab-safe);
  border-bottom: 0;
}

.footer-blurb,
.footer-links,
.footer-link {
  color: var(--text-soft);
}

.footer-link:hover {
  color: var(--text-1);
}

.footer-grid {
  display: grid;
  gap: var(--space-block);
  grid-template-columns: 1fr;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-blurb {
  margin-inline: auto;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer .contact-row {
  justify-content: center;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    text-align: left;
  }
  .footer-brand {
    grid-column: 1 / -1;
    align-items: flex-start;
  }
  .footer-blurb {
    margin-inline: 0;
  }
  .footer-links {
    align-items: flex-start;
  }
  .site-footer .contact-row {
    justify-content: flex-start;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 4fr 2fr 3fr 3fr;
    gap: 2.5rem;
  }
  .footer-brand {
    grid-column: auto;
  }
}

.footer-heading {
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-tight);
  margin-top: var(--space-block);
  padding-top: 1.5rem;
  padding-left: 0;
  padding-right: 0;
  border-top: 1px solid var(--border-1);
  font-size: var(--text-small);
  color: var(--text-soft);
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-left: 0;
  }
}

/* Grain overlay — very light, keeps the page from looking flat */
.grain::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Compact inner-page header — extra top space so the fixed nav can breathe */
.page-hero {
  position: relative;
  padding: 7.5rem 0 2.25rem;
  background: transparent;
}

@media (min-width: 768px) {
  .page-hero {
    padding-top: 9rem;
  }

  .page-crumbs {
    margin-bottom: 1.35rem;
  }
}

@media (min-width: 1024px) {
  .page-hero {
    padding-top: 10rem;
  }
}

.page-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: var(--hero-media-opacity, 1);
}

.page-hero-has-media {
  overflow: hidden;
  padding-bottom: 3rem;
}

.page-hero-has-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(9 12 15 / calc(0.16 + (1 - var(--hero-media-opacity, 1)) * 0.42)),
    rgb(9 12 15 / calc(0.28 + (1 - var(--hero-media-opacity, 1)) * 0.48))
  );
  pointer-events: none;
}

.page-hero-has-media .container {
  position: relative;
  z-index: 1;
}

.page-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 1rem;
  font-size: var(--text-small);
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

.page-crumbs a {
  color: var(--text-soft);
  text-decoration: none;
}

.page-crumbs a:hover {
  color: var(--brand);
}

.page-crumbs [aria-current="page"] {
  color: var(--text-1);
}

.page-crumbs-sep {
  opacity: 0.45;
}

#enquiry {
  scroll-margin-top: 6.5rem;
}

.quote-panel {
  background: #fff;
  border-radius: 1.25rem;
  color: var(--ink);
  color-scheme: light;
}

/* Dark theme — Tailwind utilities still win without these overrides */
html.theme-dark .bg-white,
html.theme-dark .bg-sand,
html.theme-dark .bg-mist {
  background-color: transparent !important;
}

html.theme-dark .text-ink,
html.theme-dark .text-ink\/85,
html.theme-dark .text-ink\/80 {
  color: var(--text-1) !important;
}

html.theme-dark .text-muted,
html.theme-dark .section-lead,
html.theme-dark .insight-meta,
html.theme-dark .legal-note,
html.theme-dark .pub-card-meta {
  color: var(--text-2) !important;
}

html.theme-dark .text-brand-dark,
html.theme-dark .text-brand-dark\/80 {
  color: rgb(255 255 255 / 0.74) !important;
}

html.theme-dark .card,
html.theme-dark .service-card,
html.theme-dark .stat-card,
html.theme-dark .capability-card,
html.theme-dark .proof-card,
html.theme-dark .review-card,
html.theme-dark .faq-item,
html.theme-dark .home-strip,
html.theme-dark .calc-result {
  background-color: var(--surface-1) !important;
  box-shadow: none !important;
  border-color: var(--border-1);
}

html.theme-dark .service-card {
  background-color: var(--surface-2) !important;
}

html.theme-dark .card:hover,
html.theme-dark .service-card:hover {
  box-shadow: none !important;
}

html.theme-dark .field {
  background: var(--surface-1);
  border-color: var(--border-1);
  color: var(--text-1);
}

html.theme-dark .field:focus {
  background: var(--surface-1);
}

html.theme-dark .field::placeholder {
  color: rgb(255 255 255 / 0.42);
}

html.theme-dark .field-label {
  color: rgb(255 255 255 / 0.8);
}

html.theme-dark .btn-outline {
  color: #fff;
  border-color: rgb(255 255 255 / 0.35);
  background-image: linear-gradient(var(--brand), var(--brand));
}

html.theme-dark .btn-outline:hover,
html.theme-dark .btn-outline:focus-visible {
  color: #fff;
  border-color: var(--brand);
}

html.theme-dark .partner-logos {
  background: transparent !important;
}

html.theme-dark .split-story-media {
  background: var(--surface-1);
  box-shadow: none;
}

html.theme-dark .capability-mark {
  background: color-mix(in srgb, var(--brand) 22%, transparent);
  color: color-mix(in srgb, var(--brand) 55%, #ffffff);
}

html.theme-dark .filter-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

html.theme-dark label.border-transparent,
html.theme-dark .choice-tile {
  background-color: var(--surface-1) !important;
}

html.theme-dark .shadow-lift {
  box-shadow: none;
}

html.theme-dark .quote-panel,
html.theme-dark .quote-panel .text-ink,
html.theme-dark .quote-panel .heading-2,
html.theme-dark .quote-panel .heading-3,
html.theme-dark .quote-panel .field-label {
  color: var(--ink) !important;
}

html.theme-dark .quote-panel .text-muted,
html.theme-dark .quote-panel .text-brand-dark,
html.theme-dark .quote-panel .text-brand-dark\/80 {
  color: var(--muted) !important;
}

html.theme-dark .quote-panel .hl,
html.theme-dark .quote-panel .accent-serif {
  color: var(--brand);
}

html.theme-dark .quote-panel .field {
  background: #fff;
  border-color: #cfcfc9;
  color: var(--ink);
}

html.theme-dark .quote-panel .form-error {
  background: #fef2f2;
  color: #991b1b;
}

html.theme-dark .thanks-panel {
  background: var(--surface-1);
  color: var(--text-1);
}

html.theme-dark .form-error {
  background: color-mix(in srgb, #7f1d1d 55%, var(--surface-1));
  color: #fecaca;
}

html.theme-dark .row-remove {
  background: color-mix(in srgb, #7f1d1d 45%, var(--surface-1));
  color: #fecaca;
}

/* Plain surface — decorative photos/tints off, independent of theme */
html.surface-plain .grain::after,
html.surface-plain .home-strip-thumb {
  display: none;
}

html.surface-plain .bg-white,
html.surface-plain .bg-sand,
html.surface-plain .bg-mist {
  background-color: transparent !important;
}

.calc-result {
  border-radius: 1.6rem;
  background: var(--surface-2);
  color: var(--text-1);
  border: 1px solid var(--border-1);
  padding: 2rem;
}

.calc-result .text-soft,
.calc-stat dt {
  color: var(--text-soft);
}

.calc-stat {
  border-radius: 1rem;
  background: color-mix(in srgb, var(--text-1) 6%, var(--surface-2));
  padding: 1rem;
}

/* Reviews */
.review-marquee {
  margin-top: 2.5rem;
}

.review-marquee .marquee-track,
.review-marquee .marquee-group {
  align-items: stretch;
  gap: 1.25rem;
}

.review-marquee .marquee-track {
  animation-duration: 48s;
}

.review-marquee .review-card {
  flex: 0 0 min(calc(100vw - 2.5rem), 22rem);
  min-height: 16rem;
}

.review-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.review-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

.review-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
  color: var(--star);
}

.review-star {
  width: 0.95rem;
  height: 0.95rem;
}

.review-star:not(.is-filled) {
  color: rgb(148 148 148 / 0.45);
}

.review-quote {
  flex: 1;
  margin: 0;
  color: var(--text-1);
  line-height: 1.65;
}

.review-person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.review-avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: hsl(var(--avatar-h, 140) 32% 28%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.review-name {
  margin: 0;
  font-weight: 600;
  color: var(--text-1);
}

.review-role {
  margin: 0.15rem 0 0;
  font-size: var(--text-small);
  color: var(--text-2);
}

/* Questions */
.faq-grid {
  display: grid;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.faq-item {
  border: 1px solid var(--border-1);
  border-radius: 1.15rem;
  background: var(--surface-1);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--brand);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.2rem;
  font-weight: 600;
  color: var(--text-1);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.faq-mark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  border: 1px solid var(--border-1);
  color: var(--text-2);
}

.faq-item[open] .faq-mark {
  border-radius: 999px;
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.faq-item .faq-x {
  display: none;
}

.faq-item[open] .faq-plus {
  display: none;
}

.faq-item[open] .faq-x {
  display: block;
}

.faq-answer {
  margin: 0;
  padding: 0 1.2rem 1.2rem;
  color: var(--text-2);
  line-height: 1.65;
}

.calc-frame {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface-1);
  padding: 0.75rem;
  border: 1px solid var(--border-1);
}

.form-error {
  margin-bottom: 1rem;
  border-radius: 1.25rem;
  background: #fef2f2;
  color: #991b1b;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.row-remove {
  margin-bottom: 0.25rem;
  display: grid;
  height: 2.75rem;
  width: 100%;
  place-items: center;
  border-radius: 1.1rem;
  background: #fef2f2;
  color: #dc2626;
  border: 0;
  cursor: pointer;
}

.choice-tile {
  cursor: pointer;
  border-radius: 1.2rem;
  border: 2px solid var(--border-1);
  padding: 1.25rem;
  background: var(--surface-1);
}

.choice-tile.is-on {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, var(--surface-1));
}

.thanks-panel {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 20rem;
  border-radius: 1.5rem;
  background: var(--surface-1);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--text-1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .marquee-track,
  .proof-track,
  .reveal,
  .reveal-left,
  .typed-caret,
  .btn {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
  .marquee-group[aria-hidden="true"],
  .proof-group[aria-hidden="true"] {
    display: none;
  }
  .service-card {
    position: static !important;
    top: auto !important;
  }
  .site-drawer {
    transition: none !important;
  }
  .lightbox,
  .contact-fab-panel,
  .contact-fab-toggle,
  .contact-fab-action,
  #to-top {
    transition: none !important;
  }
}

.enquiry-form {
  position: relative;
}
