@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Archivo:wght@400;500;600;700;800;900&display=swap');

:root {
  --radius: 0.75rem;

  /* Brand palette from Ground Beetle logo */
  --brand-mint: oklch(0.86 0.12 160);
  --brand-teal: oklch(0.86 0.11 190);
  --brand-blue: oklch(0.78 0.08 230);

  --background: oklch(1 0 0);
  --foreground: oklch(0.12 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.12 0 0);
  --primary: oklch(0.12 0 0);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.12 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.45 0 0);
  --accent: var(--brand-teal);
  --border: oklch(0.92 0 0);
  --input: oklch(0.92 0 0);
  --ring: var(--brand-teal);

  --gradient-brand: linear-gradient(135deg, var(--brand-mint), var(--brand-teal), var(--brand-blue));
  --shadow-glow: 0 20px 60px -20px color-mix(in oklab, var(--brand-teal) 50%, transparent);

  --font-display: "Archivo Black", system-ui, sans-serif;
  --font-sans: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
}
::selection { background: var(--brand-teal); color: var(--foreground); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Utility tokens */
.font-display { font-family: var(--font-display); letter-spacing: -0.02em; }
.font-sans { font-family: var(--font-sans); }
.text-gradient-brand {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bg-gradient-brand { background: var(--gradient-brand); }
.bg-foreground { background-color: var(--foreground); color: var(--background); }
.bg-secondary { background-color: var(--secondary); }
.bg-background { background-color: var(--background); }
.text-foreground { color: var(--foreground); }
.text-background { color: var(--background); }
.text-muted-foreground { color: var(--muted-foreground); }
.border-border { border-color: var(--border); }
.border-foreground { border-color: var(--foreground); }

.dot-accent {
  display: inline-block;
  width: 0.65em; height: 0.65em;
  border-radius: 9999px;
  background: var(--gradient-brand);
  vertical-align: middle;
  margin-left: 0.35em;
  box-shadow: var(--shadow-glow);
}
.glass {
  background: color-mix(in oklab, white 60%, transparent);
  backdrop-filter: blur(16px);
  border: 1px solid color-mix(in oklab, white 60%, transparent);
}
.mask-fade {
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee { animation: marquee 40s linear infinite; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.fade-up { animation: fadeUp 0.8s ease-out both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.grayscale { filter: grayscale(1); }
.grayscale-hover:hover { filter: grayscale(0); }

/* Layout helpers */
.container-7xl { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: color-mix(in oklab, white 80%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 50%, transparent);
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-logo { height: 64px; width: auto; }
.menu-btn {
  height: 44px; width: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  transition: background 0.2s;
}
.menu-btn:hover { background: var(--muted); }

/* Menu overlay */
.menu-overlay {
  position: fixed; inset: 0; z-index: 60;
  transition: opacity 0.5s, visibility 0.5s;
}
.menu-overlay.closed { opacity: 0; visibility: hidden; pointer-events: none; }
.menu-overlay.open { opacity: 1; visibility: visible; }
.menu-backdrop {
  position: absolute; inset: 0;
  background: color-mix(in oklab, var(--foreground) 30%, transparent);
  backdrop-filter: blur(4px);
}
.menu-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: 100%;
  max-width: 480px;
  background: var(--background);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.menu-overlay.open .menu-panel { transform: translateX(0); }
.menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
}
.menu-list {
  flex: 1; overflow-y: auto;
  padding: 40px 32px;
  list-style: none; margin: 0;
}
.menu-list li { display: flex; align-items: baseline; gap: 20px; margin-bottom: 20px; }
.menu-num { font-size: 14px; font-weight: 500; color: var(--muted-foreground); width: 24px; }
.menu-link {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.02em;
  transition: color 0.2s;
  cursor: pointer;
  background: none; border: none; text-align: left; padding: 0;
}
.menu-link:hover, .menu-link.active {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.menu-foot {
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  font-size: 14px; color: var(--muted-foreground);
}

/* Hero scroll */
.hero-section { position: relative; height: 180vh; width: 100%; }
.hero-sticky {
  position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden;
}
.hero-frame {
  position: absolute;
  overflow: hidden;
  transition: border-radius 0.2s;
}
.hero-img {
  position: absolute;
  top: -10%;
  left: 0; right: 0;
  height: 120%; width: 100%; object-fit: cover;
  will-change: transform;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.hero-content {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; justify-content: center;
  height: 100%;
  padding: 0 32px;
  will-change: transform;
}
.hero-title {
  font-family: var(--font-display);
  color: white;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.95;
  max-width: 1100px;
  margin: 0;
  letter-spacing: -0.02em;
}
.hero-sub {
  margin-top: 24px;
  font-size: clamp(14px, 1.3vw, 20px);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
  max-width: 800px;
}
.hero-cta-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 14px; font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-light { background: white; color: var(--foreground); }
.btn-light:hover { background: var(--gradient-brand); }
.btn-outline-light { border: 1px solid rgba(255,255,255,.3); color: white; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-dark { background: var(--foreground); color: var(--background); padding: 14px 28px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; font-size: 13px; }
.btn-dark:hover { background: var(--gradient-brand); color: var(--foreground); }
.btn-brand {
  background: var(--gradient-brand); color: var(--foreground);
  padding: 16px 32px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px;
}
.btn-brand:hover { opacity: 0.9; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  transition: color 0.2s;
  cursor: pointer;
}
.link-arrow:hover {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Sections */
.section { padding: 96px 24px; }
.section-tight { padding: 64px 24px; }

/* About teaser */
.about-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; gap: 64px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 5fr 7fr; gap: 32px; }
}
.about-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}
.beetle-wordmark {
  pointer-events: none; user-select: none;
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display);
  white-space: nowrap;
  line-height: 1;
  font-size: 13vw;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1.5px var(--border);
  color: transparent;
}

/* ===== About teaser (Boopin-style w/ scroll-driven wordmark) ===== */
.about-teaser {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
}
.about-teaser-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* full-bleed wordmark band, vertically centered on the row */
.about-wordmark-track {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.about-wordmark {
  position: absolute;
  left: 0;
  top: 52%;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(140px, 22vw, 360px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1.5px color-mix(in oklab, var(--foreground) 18%, transparent);
  color: transparent;
  will-change: transform;
}
.about-wordmark .dot-accent {
  width: 0.35em; height: 0.35em;
  box-shadow: 0 10px 40px -10px var(--brand-teal);
}

.about-teaser-grid {
  position: relative;
  display: grid;
  gap: 64px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-teaser-grid {
    grid-template-columns: 5fr 7fr;
    gap: 80px;
  }
}

/* Left column */
.about-teaser-copy {
  position: relative;
  z-index: 2;
  will-change: transform, opacity;
  transition: opacity 0.4s ease-out;
}
.about-teaser-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 28px;
}
.about-teaser-eyebrow-line {
  display: inline-block;
  width: 48px;
  height: 1.5px;
  background: var(--gradient-brand);
}
.about-teaser-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0;
}
.about-teaser-lede {
  margin: 32px 0 0;
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 540px;
}
.about-teaser-cta {
  margin-top: 32px;
  display: inline-flex;
}

/* Right column — image w/ corner brackets + stats row */
.about-teaser-media {
  position: relative;
  z-index: 1;
  will-change: transform;
}
.about-teaser-image-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 30px 80px -30px rgba(0,0,0,.35),
    0 8px 24px -12px rgba(0,0,0,.25);
}
.about-teaser-image {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1) contrast(1.02);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1.01);
  transition: filter 0.6s ease, transform 0.6s ease;
}
.about-teaser-image-wrap:hover .about-teaser-image {
  filter: grayscale(0);
  transform: scale(1.04);
}

/* Decorative thin corner brackets */
.about-teaser-corner-tl,
.about-teaser-corner-br {
  position: absolute;
  width: 56px; height: 56px;
  pointer-events: none;
}
.about-teaser-corner-tl {
  top: 14px; left: 14px;
  border-top: 1.5px solid color-mix(in oklab, white 80%, transparent);
  border-left: 1.5px solid color-mix(in oklab, white 80%, transparent);
}
.about-teaser-corner-br {
  bottom: 14px; right: 14px;
  border-bottom: 1.5px solid color-mix(in oklab, white 80%, transparent);
  border-right: 1.5px solid color-mix(in oklab, white 80%, transparent);
}

.about-teaser-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-teaser-stat {
  padding: 22px 18px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-right: 1px solid var(--border);
}
.about-teaser-stat:last-child { border-right: none; }
.about-teaser-stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.about-teaser-stat-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
  line-height: 1.35;
}

/* ===== Clients carousel section (Boopin-style) ===== */
.clients-section {
  padding: 120px 0;
  background: var(--background);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.clients-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.clients-section-head {
  margin-bottom: 64px;
  max-width: 720px;
}
.clients-section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 24px;
}
.clients-section-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  margin: 0;
}

.clients-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 16px;
}
@media (min-width: 1024px) {
  .clients-carousel {
    grid-template-columns: 64px 1fr 64px;
    gap: 28px;
  }
}

.clients-arrow {
  width: 56px; height: 56px;
  border-radius: 9999px;
  background: var(--gradient-brand);
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px -12px color-mix(in oklab, var(--brand-teal) 60%, transparent);
  transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
}
@media (min-width: 1024px) {
  .clients-arrow { width: 64px; height: 64px; }
}
.clients-arrow:hover {
  transform: scale(1.08);
  filter: brightness(1.05);
  box-shadow: 0 16px 40px -10px color-mix(in oklab, var(--brand-teal) 70%, transparent);
}
.clients-arrow:active { transform: scale(0.96); }

.clients-viewport {
  overflow: hidden;
  border-radius: 20px;
}
.clients-track {
  display: flex;
  width: 100%;
  transition: transform 0.7s cubic-bezier(.65,.05,.36,1);
  will-change: transform;
}
.clients-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
@media (min-width: 640px) { .clients-page { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .clients-page { grid-template-columns: repeat(5, 1fr); } }

.clients-cell {
  background: var(--background);
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  position: relative;
  overflow: hidden;
  transition: background 0.35s ease;
}
@media (min-width: 900px) { .clients-cell { min-height: 150px; } }
.clients-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.clients-cell:hover::before { opacity: 1; }
.clients-cell-empty { background: color-mix(in oklab, var(--secondary) 60%, transparent); }
.clients-cell-empty::before { display: none; }

.clients-mark {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.05vw, 17px);
  letter-spacing: 0.02em;
  text-align: center;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
  text-transform: uppercase;
  line-height: 1.15;
  transition: color 0.35s ease, transform 0.35s ease;
}
.clients-cell:hover .clients-mark {
  color: var(--foreground);
  transform: scale(1.05);
}

.clients-dots {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.clients-dot {
  width: 28px; height: 4px;
  border-radius: 9999px;
  background: var(--border);
  transition: background 0.25s, width 0.25s;
}
.clients-dot.active {
  width: 48px;
  background: var(--gradient-brand);
}

/* ===== Clients logos ===== */
.clients-logo-grid {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  width: 100%;
}
@media (min-width: 640px) { .clients-logo-grid { display: grid; } }
.clients-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 140px;
  padding: 20px;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: transform 0.25s ease;
}
.clients-logo:hover { transform: translateY(-3px); }
.clients-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.clients-logo-empty { visibility: hidden; }

/* Mobile slider */
.clients-mobile { display: block; width: 100%; }
@media (min-width: 640px) { .clients-mobile { display: none; } }
.clients-mviewport { overflow: hidden; width: 100%; }
.clients-mtrack {
  display: flex;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.clients-mpage {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.clients-mpage .clients-logo { height: 100px; padding: 10px; }
.clients-mctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.clients-marrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--gradient-brand);
  color: var(--foreground);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
}
.clients-marrow:active { transform: scale(0.94); }
.clients-mdots { display: flex; gap: 8px; }
.clients-mdot {
  width: 8px; height: 8px; border-radius: 999px; border: 0;
  background: color-mix(in oklab, var(--foreground) 20%, transparent);
  cursor: pointer; padding: 0;
  transition: width 0.25s, background 0.25s;
}
.clients-mdot.active { width: 28px; background: var(--gradient-brand); }

/* ===== Featured work — filter pills + image grid ===== */
.featured-section {
  padding: 120px 0 100px;
  background: var(--background);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 1024px) { .featured-section { padding: 160px 0 120px; } }

.featured-bg-orb {
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 9999px;
  filter: blur(120px);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}
.featured-bg-orb-1 {
  top: 4%; left: -240px;
  background: radial-gradient(circle, var(--brand-mint), transparent 60%);
}
.featured-bg-orb-2 {
  bottom: 4%; right: -260px;
  background: radial-gradient(circle, var(--brand-blue), transparent 60%);
  opacity: 0.3;
}

.featured-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.featured-head { margin-bottom: 56px; }
@media (min-width: 1024px) { .featured-head { margin-bottom: 72px; } }
.featured-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 24px;
}
.featured-head-row {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 1024px) {
  .featured-head-row {
    grid-template-columns: 1.3fr 1fr;
    gap: 80px;
  }
}
.featured-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin: 0;
}
.featured-lede {
  font-size: clamp(15px, 1.05vw, 17px);
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 0 12px;
}

/* Filter pills */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
@media (min-width: 1024px) { .filter-row { margin-bottom: 64px; gap: 12px; } }

.filter-pill {
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  border: 1.5px solid var(--foreground);
  border-radius: 9999px;
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}
.filter-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -10px rgba(0,0,0,.2);
}
.filter-pill.is-active {
  background: var(--foreground);
  color: var(--background);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.35);
}

/* Project grid */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}
@media (min-width: 1280px) { .work-grid { gap: 32px; } }

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition:
    opacity 0.5s ease,
    filter 0.5s ease,
    transform 0.5s ease;
}
.work-card.is-faded {
  opacity: 0.22;
  filter: grayscale(0.6);
  transform: scale(0.985);
  pointer-events: none;
}

.work-card-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  background: var(--secondary);
  box-shadow:
    0 30px 80px -36px rgba(20,30,50,.3),
    0 8px 20px -14px rgba(20,30,50,.18);
  transition: box-shadow 0.5s ease, transform 0.5s ease;
}
.work-card:hover .work-card-image-wrap {
  transform: translateY(-6px);
  box-shadow:
    0 50px 110px -36px rgba(20,30,50,.4),
    0 14px 36px -18px rgba(20,30,50,.24);
}

.work-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 0.9s cubic-bezier(.2,.7,.2,1), filter 0.5s ease;
}
.work-card:hover .work-card-image {
  transform: scale(1.12);
}

/* Brand-tinted scrim that warms on hover */
.work-card-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 30%, rgba(0,0,0,.78) 100%),
    linear-gradient(135deg,
      color-mix(in oklab, var(--brand-mint) 28%, transparent),
      transparent 45%,
      color-mix(in oklab, var(--brand-blue) 32%, transparent));
  opacity: 0;
  transition: opacity 0.45s ease;
}
.work-card:hover .work-card-scrim { opacity: 0.95; }

/* Title + category — overlaid, hidden until hover */
.work-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: white;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.45s cubic-bezier(.2,.7,.2,1),
    transform 0.5s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.work-card:hover .work-card-body { opacity: 1; transform: translateY(0); }

.work-card-cat {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,.85);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.work-card-cat::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 9999px;
  background: var(--gradient-brand);
  box-shadow: 0 0 12px color-mix(in oklab, var(--brand-teal) 80%, transparent);
}
.work-card-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  color: white;
}

.featured-footnote {
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-foreground);
}

/* Services preview grid */
.services-head {
  display: flex; flex-direction: column; gap: 24px;
  margin-bottom: 64px;
}
@media (min-width: 1024px) {
  .services-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.services-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-group h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.service-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

/* Clients strip */
.clients-strip { padding: 80px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.clients-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 40px;
}
.marquee-track { display: flex; gap: 64px; width: max-content; align-items: center; }
.marquee-item {
  font-family: var(--font-display);
  font-size: 24px;
  color: color-mix(in oklab, var(--foreground) 70%, transparent);
  white-space: nowrap;
}

/* CTA block */
.cta-block {
  max-width: 1280px; margin: 0 auto;
  border-radius: 28px;
  background: var(--foreground); color: var(--background);
  padding: 48px;
  display: flex; flex-direction: column; gap: 32px;
}
@media (min-width: 1024px) {
  .cta-block { padding: 80px; flex-direction: row; align-items: center; justify-content: space-between; }
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 60px);
  line-height: 1;
  max-width: 700px;
  margin: 0;
}

/* PageHero */
.page-hero { padding: 144px 24px 64px; }
@media (min-width: 640px) { .page-hero { padding-top: 176px; padding-bottom: 80px; } }
.page-hero-inner { max-width: 1280px; margin: 0 auto; }
.page-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 20px;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 1000px;
  margin: 0;
}
.page-desc {
  margin-top: 24px;
  max-width: 720px;
  font-size: 18px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* About page */
.about-detail {
  max-width: 1280px; margin: 0 auto;
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) { .about-detail { grid-template-columns: 1fr 1fr; gap: 80px; } }
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: 24px; width: 100%; }
.about-badge {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--gradient-brand);
  color: var(--foreground);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
}
.about-badge p:first-child { font-family: var(--font-display); font-size: 36px; margin: 0; line-height: 1; }
.about-badge p:last-child { font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; margin: 4px 0 0; }
.about-body p { color: var(--muted-foreground); line-height: 1.7; margin: 0 0 20px; }

/* Values */
.values-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value-card { border-top: 2px solid var(--foreground); padding-top: 24px; }
.value-num { font-family: var(--font-display); font-size: 14px; color: var(--muted-foreground); margin: 0 0 12px; }
.value-card h3 { font-family: var(--font-display); font-size: 20px; margin: 0 0 12px; }
.value-card p { font-size: 14px; color: var(--muted-foreground); line-height: 1.7; margin: 0; }

/* Services page (deeper grid) */
.services-deep {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  gap: 64px 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .services-deep { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-deep { grid-template-columns: repeat(3, 1fr); } }
.service-deep h2 { font-family: var(--font-display); font-size: 24px; margin: 0 0 24px; }
.service-deep ul {
  list-style: none; margin: 0; padding: 20px 0 0;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground);
}
.service-deep li { transition: color 0.2s; }
.service-deep li:hover { color: var(--foreground); }

/* Clients page */
.clients-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; gap: 1px;
  grid-template-columns: 1fr;
  background: var(--border);
  border-radius: 24px;
  overflow: hidden;
}
@media (min-width: 640px) { .clients-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .clients-grid { grid-template-columns: repeat(3, 1fr); } }
.client-cell {
  background: var(--background);
  min-height: 180px;
  padding: 40px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 24px);
  text-align: center;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
  transition: background 0.3s, color 0.3s;
}
.client-cell:hover { background: var(--gradient-brand); color: var(--foreground); }

/* Team cards */
.team-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card {
  background: var(--secondary);
  border-radius: 24px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.team-photo { aspect-ratio: 4/5; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 0.7s; }
.team-card:hover .team-photo img { filter: grayscale(0); }
.team-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.team-body h3 { font-family: var(--font-display); font-size: 20px; margin: 0; }
.team-role { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); margin: 4px 0 0; }
.team-quote { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; gap: 12px; font-size: 14px; color: var(--muted-foreground); line-height: 1.7; }
.team-quote svg { flex-shrink: 0; color: var(--foreground); }
.team-quote p { font-style: italic; margin: 0; }

/* Joyo */
.joyo-feature {
  max-width: 1280px; margin: 0 auto;
  position: relative; overflow: hidden;
  border-radius: 28px;
}
.joyo-feature > img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.joyo-feature-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.joyo-feature-content { position: relative; z-index: 10; padding: 48px; color: white; }
@media (min-width: 640px) { .joyo-feature-content { padding: 80px; } }
.joyo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--gradient-brand); color: var(--foreground);
  margin-bottom: 32px;
}
.joyo-feature-content p { max-width: 760px; font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.9); margin: 0 0 16px; }
.joyo-personas {
  margin-top: 48px;
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .joyo-personas { grid-template-columns: repeat(4, 1fr); } }
.joyo-persona {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(12px);
  padding: 24px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 18px;
}
.joyo-pillars {
  max-width: 1280px; margin: 0 auto;
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .joyo-pillars { grid-template-columns: repeat(3, 1fr); } }
.joyo-pillar { border-top: 2px solid var(--foreground); padding-top: 24px; }
.joyo-pillar h3 { font-family: var(--font-display); font-size: 24px; margin: 0 0 12px; }
.joyo-pillar p { font-size: 14px; color: var(--muted-foreground); line-height: 1.7; margin: 0; }

/* Contact */
.contact-cards {
  max-width: 1280px; margin: 0 auto;
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 32px;
  transition: background 0.2s;
  display: block;
}
.contact-card.hover-brand:hover { background: var(--gradient-brand); }
.contact-card svg { margin-bottom: 24px; }
.contact-card .eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--muted-foreground); margin: 0 0 8px; }
.contact-card .big { font-family: var(--font-display); font-size: 20px; line-height: 1.25; margin: 0; word-break: break-all; }
.contact-card .sub { margin: 12px 0 0; font-size: 14px; color: var(--muted-foreground); }
.contact-form {
  max-width: 768px; margin: 0 auto;
  border-radius: 28px;
  background: var(--secondary);
  padding: 40px;
  display: flex; flex-direction: column; gap: 24px;
}
@media (min-width: 640px) { .contact-form { padding: 56px; } }
.field-row { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--muted-foreground); }
.field input, .field textarea {
  margin-top: 8px; width: 100%; background: transparent;
  border: none; border-bottom: 1px solid color-mix(in oklab, var(--foreground) 30%, transparent);
  padding: 12px 0; font-size: 16px; font-family: inherit; color: inherit;
  resize: none; outline: none;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--foreground); }

/* Footer */
.footer { background: var(--foreground); color: var(--background); }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 80px 24px; }
.footer-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 3fr 2fr 3fr 4fr; } }
.footer h4 { font-family: var(--font-display); font-size: 16px; margin: 0 0 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: rgba(255,255,255,.7); }
.footer ul a:hover { color: white; }
.footer-bottom {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column; gap: 16px;
  align-items: center; justify-content: space-between;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.social-row { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.7); }
.social-btn {
  width: 36px; height: 36px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.social-btn:hover { background: var(--gradient-brand); border-color: transparent; color: var(--foreground); }

/* ===== Preloader (minimal editorial) ===== */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--background);
  color: var(--foreground);
  transition: opacity 0.7s cubic-bezier(.6,.05,.3,1), visibility 0.7s;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--muted-foreground);
}
.preloader-mark-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--foreground);
}
.preloader-mark-wordmark img {
  width: 24px;
  height: 24px;
}
.preloader-mark-wordmark span {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: none;
}
.preloader-status::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 9999px;
  background: var(--gradient-brand);
  margin-right: 10px;
  vertical-align: middle;
  animation: preloaderDotBlink 1.2s ease-in-out infinite;
}
@keyframes preloaderDotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.preloader-center {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 32px 64px;
  gap: 10px;
}
@media (min-width: 768px) {
  .preloader-center { padding: 0 56px 88px; }
}
.preloader-count {
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 320px);
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}
.preloader-count-pct {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1;
  margin-bottom: 0.5em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.preloader-bar {
  height: 1.5px;
  background: var(--border);
  position: relative;
}
.preloader-bar-fill {
  height: 100%;
  background: var(--gradient-brand);
  transition: width 0.08s linear;
}

/* Page enter animation */
.page-enter { animation: pageIn 0.5s ease-out both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
