/* ═══════════════════════════════════════════════════
   VERVE OFFICE — Design System
   Pure CSS, no build step. ABC Favorit + warm neutrals.
   ═══════════════════════════════════════════════════ */

/* ─── ABC Favorit Font ─── */
/* Place .woff2 files in /fonts/ */
@font-face {
  font-family: "ABC Favorit";
  src: url("../fonts/ABCFavorit-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ABC Favorit";
  src: url("../fonts/ABCFavorit-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ABC Favorit";
  src: url("../fonts/ABCFavorit-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ABC Favorit";
  src: url("../fonts/ABCFavorit-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── Design Tokens ─── */
:root {
  /* Surfaces — warm paper-stock palette */
  --surface: #fffcf7;
  --surface-dim: #e4e3d7;
  --surface-container: #f6f4ec;
  --surface-container-low: #fcf9f3;
  --surface-container-high: #f0eee5;
  --surface-variant: #eae8de;

  /* Primary — milled charcoal */
  --primary: #5f5e5e;
  --primary-dim: #535252;
  --on-primary: #faf7f6;

  /* Secondary — warm umber */
  --secondary: #71624f;

  /* Text */
  --on-surface: #383831;
  --on-surface-variant: #65655c;

  /* Outlines */
  --outline: #818178;
  --outline-variant: #babab0;

  /* Inverse (footer) */
  --inverse-surface: #0e0e0c;
  --inverse-on-surface: #9e9d98;

  /* Error */
  --error: #a54731;

  /* Font */
  --font: "ABC Favorit", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Libre Baskerville", "Georgia", "Times New Roman", serif;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--on-surface);
  background: var(--surface);
}

h1, h2, h3, h4, h5, h6,
.btn, .label, .label-sm, .nav, .footer-heading,
.stat-value, .process-num {
  font-family: var(--font);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: var(--primary);
  color: var(--on-primary);
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--outline);
}

.label-sm {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ─── Layout ─── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 48px; }
}

.section-full {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  border-top: 8px solid var(--surface);
}

.section-full:first-of-type {
  border-top: none;
}

.section-tall {
  position: relative;
  width: 100%;
  min-height: 80vh;
  overflow: hidden;
  border-top: 8px solid var(--surface);
}

/* ─── Glass Card ─── */
.glass-card {
  background: rgba(255, 252, 247, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 60px -20px rgba(56, 56, 49, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

/* ─── Card Overlay (consistent Soane-style boxes) ─── */
.card-overlay {
  padding: 40px 48px;
  text-align: center;
  max-width: 420px;
}

.card-overlay-heading {
  font-family: var(--font);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  color: var(--secondary);
}

.card-overlay-text {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--secondary);
  margin-bottom: 20px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  font-size: 13.5px;
  letter-spacing: 0.15em;
  text-transform: none;
  padding: 12px 28px;
  border-radius: 0;
  border: 1px solid var(--secondary);
  background: transparent;
  color: var(--secondary);
  transition: all 0.3s var(--ease-out-expo);
}

.btn:hover {
  background: var(--secondary);
  color: var(--surface);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: transparent;
  color: var(--secondary);
}

.btn-primary:hover {
  background: var(--secondary);
  color: var(--surface);
}

.btn-outline {
  border-color: rgba(186, 186, 176, 0.5);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  transition: all 0.5s var(--ease-out-expo);
}

/* Homepage only: soft dark scrim behind the nav over the video hero so the
   logo, links, and icons stay legible before the user scrolls. */
body.hero-dark .nav:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(14, 14, 12, 0.38) 0%, rgba(14, 14, 12, 0.18) 60%, rgba(14, 14, 12, 0) 100%);
}

body.hero-dark .nav:not(.scrolled) .nav-logo img,
body.hero-dark .nav:not(.scrolled) .nav-mobile-btn span {
  filter: brightness(0) invert(1);
}

body.hero-dark .nav:not(.scrolled) .nav-links a,
body.hero-dark .nav:not(.scrolled) .nav-social a {
  color: rgba(255, 255, 255, 0.92);
}

body.hero-dark .nav:not(.scrolled) .nav-links a:hover,
body.hero-dark .nav:not(.scrolled) .nav-social a:hover {
  color: #ffffff;
}

@media (min-width: 768px) {
  .nav { padding: 24px 48px; }
}

.nav.scrolled {
  background: rgba(255, 252, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-logo img {
  height: 19px;
  width: auto;
}

@media (min-width: 768px) {
  .nav-logo img { height: 21px; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 40px;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--on-surface);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.25s var(--ease-out-expo);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-dropdown-menu-inner {
  background: rgba(255, 252, 247, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 20px 40px rgba(56, 56, 49, 0.08);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 11px;
  letter-spacing: 0.15em;
  transition: background 0.2s;
}

.nav-dropdown-menu a,
body.hero-dark .nav:not(.scrolled) .nav-dropdown-menu a {
  color: var(--on-surface-variant);
}

.nav-dropdown-menu a:hover,
body.hero-dark .nav:not(.scrolled) .nav-dropdown-menu a:hover {
  background: var(--surface-container-low);
  color: var(--on-surface);
}

/* Social icons */
.nav-social {
  display: flex;
  gap: 16px;
  margin-left: 24px;
}

.nav-social a {
  color: var(--on-surface-variant);
  transition: color 0.3s;
}

.nav-social a:hover {
  color: var(--on-surface);
}

/* Mobile menu */
.nav-mobile-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}

@media (min-width: 768px) {
  .nav-mobile-btn { display: none; }
}

.nav-mobile-btn span {
  display: block;
  height: 1px;
  background: var(--on-surface);
  transition: all 0.3s var(--ease-out-expo);
}

.nav-mobile-btn span:nth-child(1) { width: 28px; }
.nav-mobile-btn span:nth-child(2) { width: 20px; }
.nav-mobile-btn span:nth-child(3) { width: 14px; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 96px 32px 96px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  display: block;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.02em;
  padding: 12px 0;
  color: var(--on-surface);
  transform: translateX(-30px);
  opacity: 0;
  transition: all 0.5s var(--ease-out-expo);
}

.mobile-menu.open a {
  transform: translateX(0);
  opacity: 1;
}

.mobile-menu a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu a:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu-group {
  margin: 8px 0;
  padding: 12px 0;
  border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
  transform: translateX(-30px);
  opacity: 0;
  transition: all 0.5s var(--ease-out-expo);
  transition-delay: 0.2s;
}

.mobile-menu.open .mobile-menu-group {
  transform: translateX(0);
  opacity: 1;
}

.mobile-menu-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--outline);
  padding: 4px 0 8px;
}

.mobile-menu-group a {
  font-size: 18px;
  padding: 6px 0;
  transform: none;
  opacity: 1;
  transition: none;
}

.mobile-menu-email {
  margin-top: 32px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--outline);
}

.mobile-menu-email a {
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 0;
  color: var(--outline);
  transform: none;
  opacity: 1;
  transition: none;
}

/* ─── Footer ─── */
.footer {
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
  padding: 64px 24px;
}

@media (min-width: 768px) {
  .footer { padding: 96px 48px; }
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
  }
}

.footer-logo {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  margin-bottom: 24px;
}

.footer p, .footer a {
  font-size: 14px;
  opacity: 0.6;
  line-height: 1.8;
}

.footer a:hover {
  opacity: 1;
}

.footer-heading {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 24px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 64px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom p,
.footer-bottom a {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.3;
}

.footer-bottom a:hover {
  opacity: 0.6;
}

/* ─── Hero Video ─── */
.hero-video-section {
  background: #0e0e0c;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ─── Hero Section ─── */
.hero-image {
  position: absolute;
  /* Extend slightly beyond bounds so heroScale zoom never shows edges */
  inset: -8% 0;
  height: 116%;
  background-size: cover;
  background-position: center 50%;
  will-change: background-position, transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--on-surface);
  opacity: 0.12;
}

.hero-content {
  position: absolute;
  bottom: 48px;
  left: 24px;
  max-width: 520px;
  z-index: 10;
}

@media (min-width: 768px) {
  .hero-content { left: 48px; }
}

.hero-content-right {
  position: absolute;
  bottom: 48px;
  right: 24px;
  max-width: 520px;
  z-index: 10;
  text-align: right;
}

@media (min-width: 768px) {
  .hero-content-right { right: 48px; }
}

.hero-content-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.reveal.from-left {
  transform: translateX(-40px);
}

.reveal.from-right {
  transform: translateX(40px);
}

.reveal.from-none {
  transform: none;
}

.reveal.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger children */
.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.06s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.12s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.18s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.24s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.30s; }
.stagger > .reveal:nth-child(7) { transition-delay: 0.36s; }
.stagger > .reveal:nth-child(8) { transition-delay: 0.42s; }
.stagger > .reveal:nth-child(9) { transition-delay: 0.48s; }
.stagger > .reveal:nth-child(10) { transition-delay: 0.54s; }

/* ─── Page intro animation ─── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  animation: fadeInUp 1s var(--ease-out-expo) forwards;
}

.animate-in-delay-1 { animation-delay: 0.3s; opacity: 0; }
.animate-in-delay-2 { animation-delay: 0.6s; opacity: 0; }
.animate-in-delay-3 { animation-delay: 0.9s; opacity: 0; }

/* ─── Component: Trust Bar ─── */
.trust-bar {
  background: var(--surface-container-low);
  padding: 48px 24px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .trust-bar { padding: 64px 48px; }
}

.trust-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

@media (min-width: 768px) {
  .trust-bar-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

@media (min-width: 768px) {
  .client-logos { gap: 56px; }
}

.client-logos img {
  height: 24px;
  width: auto;
  opacity: 0.35;
  filter: grayscale(1);
  transition: all 0.5s;
}

@media (min-width: 768px) {
  .client-logos img { height: 32px; }
}

.client-logos img:hover {
  opacity: 0.6;
  filter: grayscale(0);
}

/* ─── Component: Process ─── */
.process-section {
  padding: 48px 24px;
}

@media (min-width: 768px) {
  .process-section { padding: 80px 48px; }
}

.process-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .process-step {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.process-step + .process-step {
  margin-top: 48px;
}

@media (min-width: 768px) {
  .process-step + .process-step { margin-top: 72px; }
}

.process-step:nth-child(even) .process-img {
  order: 2;
}

.process-step:nth-child(even) .process-text {
  text-align: right;
}

.process-img {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
}

.process-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-num {
  font-size: 64px;
  font-weight: 300;
  color: rgba(95, 94, 94, 0.15);
  line-height: 1;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .process-num { font-size: 80px; }
}

/* ─── Component: Gallery ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1/1;
  cursor: pointer;
}

.gallery-item.span-2 {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--on-surface);
  opacity: 0;
  transition: opacity 0.5s;
}

.gallery-item:hover::after {
  opacity: 0.08;
}

/* ─── Component: Case Study Links ─── */
.case-link {
  display: block;
  padding-bottom: 8px;
  position: relative;
}

.case-link h3 {
  font-size: 20px;
  font-weight: 300;
  transition: color 0.3s;
}

@media (min-width: 768px) {
  .case-link h3 { font-size: 24px; }
}

.case-link:hover h3 {
  color: var(--primary);
}

.case-link-line {
  height: 1px;
  background: var(--primary);
  width: 0;
  transition: width 0.5s var(--ease-out-expo);
}

.case-link:hover .case-link-line {
  width: 100%;
}

/* ─── Component: Stats ─── */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border-top: 1px solid rgba(186, 186, 176, 0.15);
  padding-top: 32px;
}

.stat-value {
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 4px;
}

/* ─── Component: Partner Card ─── */
.partner-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .partner-section {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.partner-section + .partner-section {
  margin-top: 128px;
}

@media (min-width: 768px) {
  .partner-section + .partner-section { margin-top: 192px; }
}

.partner-section:nth-child(even) .partner-img {
  order: 2;
}

.partner-img {
  position: relative;
  aspect-ratio: 3/2;
  border-radius: 12px;
  overflow: hidden;
}

.partner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.partner-img:hover img {
  transform: scale(1.05);
}

.partner-logo {
  height: 40px;
  width: auto;
  opacity: 1;
  margin-bottom: 24px;
}

.partner-logo-square {
  height: 56px;
}

/* ─── Component: Contact Form ─── */
.form-group {
  margin-bottom: 32px;
}

.form-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--outline);
  margin-bottom: 12px;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(129, 129, 120, 0.4);
  padding: 12px 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--on-surface);
  outline: none;
  transition: border-color 0.3s;
}

.form-input:focus {
  border-color: var(--primary);
}

.form-input::placeholder {
  color: rgba(129, 129, 120, 0.3);
}

textarea.form-input {
  resize: none;
  min-height: 120px;
}

/* ─── Component: Blog List ─── */
.blog-item {
  display: block;
  padding: 32px 0;
  border-bottom: 1px solid rgba(186, 186, 176, 0.1);
  transition: border-color 0.3s;
}

.blog-item:hover {
  border-color: rgba(186, 186, 176, 0.3);
}

.blog-item-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 768px) {
  .blog-item-inner {
    flex-direction: row;
    align-items: baseline;
    gap: 32px;
  }
}

.blog-item h2 {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: color 0.3s;
  flex: 1;
}

@media (min-width: 768px) {
  .blog-item h2 { font-size: 24px; }
}

.blog-item:hover h2 {
  color: var(--primary);
}

.blog-category {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--outline);
  flex-shrink: 0;
  width: 96px;
}

.blog-date {
  font-size: 12px;
  color: var(--outline);
  flex-shrink: 0;
}

.blog-excerpt {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin-top: 8px;
}

/* ─── Filter Pills ─── */
.filter-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.filter-pill {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  border: 1px solid rgba(186, 186, 176, 0.3);
  transition: all 0.3s;
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--on-surface);
}

.filter-pill.active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

/* ─── Partner Logo Grid ─── */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: center;
  justify-items: center;
  padding: 48px 24px;
  background: var(--surface-container-low);
}

@media (min-width: 768px) {
  .logo-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 48px;
    padding: 64px 48px;
  }
}

.logo-grid img {
  height: 32px;
  width: auto;
  opacity: 0.4;
  filter: grayscale(1);
  transition: all 0.5s;
}

@media (min-width: 768px) {
  .logo-grid img { height: 40px; }
}

.logo-grid img:hover {
  opacity: 0.8;
  filter: grayscale(0);
}

/* Tayco logo is a solid-black transparent PNG — keep it static in the
   logo grid so it matches the other monochrome marks. */
.logo-grid img[src$="logo-tayco.png"] {
  opacity: 1;
  filter: none;
  transition: none;
}

.logo-grid img[src$="logo-tayco.png"]:hover {
  opacity: 1;
  filter: none;
}

/* ─── Page header ─── */
.page-header {
  padding-top: 128px;
  padding-bottom: 64px;
}

@media (min-width: 768px) {
  .page-header {
    padding-top: 176px;
    padding-bottom: 96px;
  }
}

/* ─── Content sections ─── */
.content-section {
  padding: 96px 24px;
}

@media (min-width: 768px) {
  .content-section { padding: 128px 48px; }
}

.content-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
    gap: 96px;
  }
}

.content-img {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
}

.content-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-img.square { aspect-ratio: 1/1; }
.content-img.contain img { object-fit: contain; padding: 16px; }

/* ─── Utilities ─── */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-variant { color: var(--on-surface-variant); font-size: 13.5px; line-height: 1.75; }
.text-outline { color: var(--outline); }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 18px; }

.bg-surface { background: var(--surface); }
.bg-surface-low { background: var(--surface-container-low); }

.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mt-20 { margin-top: 80px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.max-w-prose { max-width: 640px; }
.max-w-md { max-width: 448px; }
.max-w-lg { max-width: 512px; }
.max-w-xl { max-width: 576px; }
.max-w-2xl { max-width: 672px; }
.max-w-3xl { max-width: 768px; }
.max-w-4xl { max-width: 896px; }

.leading-relaxed { line-height: 1.8; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--outline-variant); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--outline); }

/* ─── Two col form ─── */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* ─── Sticky sidebar image ─── */
@media (min-width: 768px) {
  .sticky-img {
    position: sticky;
    top: 128px;
  }
}

/* ─── Component: Case Studies Landing ─── */
.case-intro-lede {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--on-surface-variant);
  max-width: 640px;
  margin-top: 32px;
}

.cases-list {
  padding: 24px 24px 120px;
}

.cases-list .container {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.case-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

@media (min-width: 900px) {
  .case-row {
    grid-template-columns: 1.15fr 1fr;
    gap: 72px;
  }
  .case-row.reverse {
    grid-template-columns: 1fr 1.15fr;
  }
  .case-row.reverse .case-media {
    order: 2;
  }
  .case-row.reverse .case-meta {
    order: 1;
    padding-right: 24px;
  }
  .case-row:not(.reverse) .case-meta {
    padding-left: 24px;
  }
}

.case-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-container);
}

.case-media-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s var(--ease-out-expo);
}

.case-row:hover .case-media-img {
  transform: scale(1.04);
}

.case-index {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--outline);
  margin-bottom: 20px;
}

.case-index::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--outline-variant);
  vertical-align: middle;
  margin-right: 14px;
  transform: translateY(-2px);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.case-tag {
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  padding: 5px 12px;
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
}

.case-title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--on-surface);
  margin-bottom: 20px;
  transition: color 0.3s;
}

.case-client {
  display: block;
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 14px;
}

.case-summary {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--on-surface-variant);
  margin-bottom: 28px;
  max-width: 520px;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-surface);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--on-surface);
  transition: gap 0.3s var(--ease-out-expo), color 0.3s;
}

.case-link::after {
  content: "→";
  font-size: 14px;
  letter-spacing: 0;
  transition: transform 0.3s var(--ease-out-expo);
}

.case-row:hover .case-link {
  gap: 16px;
}

.case-row:hover .case-link::after {
  transform: translateX(4px);
}

.case-row:hover .case-title {
  color: var(--secondary);
}

.cases-cta {
  background: var(--surface-container-low);
  border-top: 8px solid var(--surface);
  padding: 120px 24px;
  text-align: center;
}

.cases-cta h2 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  max-width: 720px;
  margin: 0 auto 32px;
  color: var(--on-surface);
}

.cases-cta p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--on-surface-variant);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
