/* ===========================================================
   Ground Beetle — polished stylesheet
   Type:  Archivo (display, 700/800/900) · Inter (body) ·
          Instrument Serif italic (editorial accent)
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Google+Sans+Flex:opsz,wght@6..144,300..800&display=swap');

:root {
  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 12px;

  /* Brand palette — slightly richer chroma so the gradient reads on light bg */
  --brand-mint: oklch(0.82 0.15 162);
  --brand-teal: oklch(0.80 0.14 198);
  --brand-blue: oklch(0.74 0.11 232);
  --brand-deep: oklch(0.55 0.13 218); /* darker tone for hover/contrast */

  /* Warm-neutral surface (subtly toned, not pure white) */
  --background: oklch(0.992 0.003 90);
  --surface:    oklch(0.985 0.004 90);
  --surface-2:  oklch(0.965 0.005 90);
  --foreground: oklch(0.16 0.01 250);
  --foreground-soft: oklch(0.28 0.008 250);
  --muted: oklch(0.96 0.004 90);
  --muted-foreground: oklch(0.50 0.008 250);
  --hairline: oklch(0.90 0.005 90);
  --hairline-strong: oklch(0.82 0.006 90);
  --card: var(--background);
  --primary: var(--foreground);
  --primary-foreground: var(--background);
  --secondary: var(--surface-2);
  --secondary-foreground: var(--foreground);
  --accent: var(--brand-teal);
  --border: var(--hairline);
  --input: var(--hairline);
  --ring: var(--brand-teal);

  --gradient-brand: linear-gradient(115deg, var(--brand-mint) 0%, var(--brand-teal) 52%, var(--brand-blue) 100%);
  --gradient-brand-soft: linear-gradient(115deg,
    color-mix(in oklab, var(--brand-mint) 60%, white),
    color-mix(in oklab, var(--brand-teal) 60%, white),
    color-mix(in oklab, var(--brand-blue) 60%, white));
  --shadow-glow: 0 30px 80px -40px color-mix(in oklab, var(--brand-teal) 70%, transparent);

  /* Layered shadow system */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 6px -2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 12px 32px -12px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 8px 24px -6px rgba(15, 23, 42, 0.10), 0 30px 60px -24px rgba(15, 23, 42, 0.18);
  --shadow-xl: 0 14px 40px -10px rgba(15, 23, 42, 0.12), 0 50px 100px -30px rgba(15, 23, 42, 0.24);

  /* Type stacks */
  --font-display: "Archivo", "Google Sans Flex", system-ui, sans-serif;
  --font-sans: "Google Sans Flex", "Archivo", system-ui, sans-serif;
  --font-accent: "Google Sans Flex", "Archivo", system-ui, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, .05, .36, 1);

  /* Container widths */
  --container: 100%;
  --container-wide: 100%;
  --pad-x: clamp(20px, 5.5vw, 112px);
}

* { box-sizing: border-box; border-color: var(--border); }
*:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: 3px; border-radius: 4px; }
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;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
}
::selection { background: color-mix(in oklab, var(--brand-teal) 50%, white); 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; }
p { text-wrap: pretty; }

/* ====== Utility tokens ====== */
.font-display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  font-feature-settings: "ss01", "ss02";
}
.font-sans { font-family: var(--font-sans); }
.font-serif { font-family: var(--font-accent); font-weight: 300; font-style: normal; letter-spacing: -0.01em; }

.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(--surface-2); }
.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); }

/* Refined accent dot */
.dot-accent {
  display: inline-block;
  width: 0.45em; height: 0.45em;
  border-radius: 9999px;
  background: var(--gradient-brand);
  vertical-align: 0.18em;
  margin-left: 0.18em;
  box-shadow: 0 6px 24px -4px color-mix(in oklab, var(--brand-teal) 70%, transparent);
}
.about-wordmark .dot-accent { vertical-align: 0.3em; }

.glass {
  background: color-mix(in oklab, var(--background) 70%, transparent);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid color-mix(in oklab, white 50%, transparent);
}
.mask-fade {
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee { animation: marquee 40s linear infinite; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.fade-up { animation: fadeUp 1s var(--ease) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.grayscale { filter: grayscale(1); }
.grayscale-hover:hover { filter: grayscale(0); }

/* Layout helper */
.container-7xl {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ====== Navbar ====== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: color-mix(in oklab, var(--background) 78%, transparent);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
}
.navbar-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-logo {
  height: 60px; width: auto;
  transition: transform 0.4s var(--ease);
}
.navbar a:hover .navbar-logo { transform: scale(1.04); }

.menu-btn {
  height: 52px; width: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--hairline);
  background: var(--background);
  color: var(--foreground);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.menu-btn:hover {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

/* ====== Menu overlay ====== */
.menu-overlay {
  position: fixed; inset: 0; z-index: 60;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.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) 40%, transparent);
  backdrop-filter: blur(8px);
}
.menu-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: 100%;
  max-width: 480px;
  background: var(--background);
  box-shadow: -40px 0 80px -20px rgba(15,23,42,.25);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.55s var(--ease);
}
.menu-overlay.open .menu-panel { transform: translateX(0); }
.menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--hairline);
}
.menu-list {
  flex: 1; overflow-y: auto;
  padding: 48px 32px;
  list-style: none; margin: 0;
}
.menu-list li {
  display: flex; align-items: baseline;
  gap: 20px;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--hairline) 50%, transparent);
}
.menu-list li:last-child { border-bottom: none; }
.menu-num {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-foreground);
  letter-spacing: 0.18em;
  width: 28px;
  font-feature-settings: "tnum";
}
.menu-link {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  transition: color 0.25s var(--ease), transform 0.4s var(--ease);
  cursor: pointer;
  background: none; border: none; text-align: left; padding: 0;
  display: inline-block;
}
.menu-link:hover { transform: translateX(4px); }
.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(--hairline);
  font-family: var(--font-accent);
  font-weight: 300;
  font-style: normal;
  letter-spacing: -0.005em;
  font-size: 17px;
  color: var(--foreground-soft);
}
.menu-foot a:hover { color: var(--foreground); }

/* ====== Hero (sticky 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 var(--ease);
}
.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:
    linear-gradient(180deg,
      rgba(8, 12, 20, 0.35) 0%,
      rgba(8, 12, 20, 0.55) 45%,
      rgba(8, 12, 20, 0.78) 100%),
    radial-gradient(ellipse at 30% 40%, transparent 30%, rgba(8, 12, 20, 0.25) 80%);
}
.hero-content {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; justify-content: center;
  height: 100%;
  padding: 96px clamp(32px, 6vw, 88px) 120px;
  will-change: transform;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  color: white;
  font-size: clamp(44px, 6.2vw, 96px);
  line-height: 0.94;
  max-width: 16ch;
  margin: 0;
  letter-spacing: -0.045em;
  font-feature-settings: "ss01";
}
.hero-line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0;
}
.hero-line-inner {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}
.hero-title.is-ready .hero-line-inner {
  animation: heroLineRise 1.05s cubic-bezier(.22, 1, .36, 1) both;
}
.hero-title.is-ready .hero-line:nth-child(2) .hero-line-inner {
  animation-delay: 0.15s;
}
@keyframes heroLineRise {
  from {
    transform: translateY(110%);
    opacity: 0;
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  to {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}

/* Sub-line + CTA + scroll hint enter staggered after the title */
.hero-title.is-ready ~ .hero-sub,
.hero-title.is-ready ~ .hero-cta-row {
  animation: heroFadeUp 1s cubic-bezier(.22, 1, .36, 1) both;
}
.hero-title.is-ready ~ .hero-sub { animation-delay: 0.55s; }
.hero-title.is-ready ~ .hero-cta-row { animation-delay: 0.75s; }
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hide sub + CTAs until animation runs so they don't pop in early */
.hero-sub, .hero-cta-row { opacity: 0; }
.hero-title.is-ready ~ .hero-sub,
.hero-title.is-ready ~ .hero-cta-row { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-line-inner { transform: none !important; }
  .hero-sub, .hero-cta-row { opacity: 1 !important; transform: none !important; }
}
.hero-sub {
  margin-top: 22px;
  font-family: var(--font-accent);
  font-weight: 400;
  letter-spacing: -0.005em;
  font-size: clamp(15px, 1.2vw, 19px);
  color: rgba(255,255,255,.88);
  text-transform: none;
  max-width: 560px;
  line-height: 1.5;
}
.hero-cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.55);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.hero-scroll-hint::after {
  content: "";
  display: inline-block;
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(0.4); opacity: 1; }
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn .i { transition: transform 0.4s var(--ease); display: inline-flex; }
.btn:hover .i { transform: translateX(4px); }

.btn-light {
  background: white;
  color: var(--foreground);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.25);
}
.btn-light:hover {
  background: var(--foreground);
  color: white;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,.35);
}
.btn-outline-light {
  border: 1px solid rgba(255,255,255,.35);
  color: white;
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.6);
}
.btn-dark {
  background: var(--foreground); color: var(--background);
  padding: 15px 28px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.005em;
  font-size: 14px;
}
.btn-dark:hover {
  background: var(--gradient-brand);
  color: var(--foreground);
}
.btn-brand {
  background: var(--gradient-brand);
  color: var(--foreground);
  padding: 17px 32px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.005em;
  font-size: 14px;
  box-shadow: var(--shadow-glow);
}
.btn-brand:hover {
  filter: brightness(1.05);
  box-shadow: 0 20px 50px -16px color-mix(in oklab, var(--brand-teal) 70%, transparent);
  transform: translateY(-1px);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: color 0.25s var(--ease);
  cursor: pointer;
  position: relative;
  padding-bottom: 4px;
}
.link-arrow::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gradient-brand);
  transition: width 0.4s var(--ease);
}
.link-arrow:hover::after { width: 100%; }
.link-arrow span { transition: transform 0.4s var(--ease); display: inline-block; }
.link-arrow:hover span { transform: translate(3px, -3px); }

/* ====== Sections ====== */
.section { padding: clamp(72px, 9vw, 120px) var(--pad-x); }
.section-tight { padding: clamp(56px, 7vw, 88px) var(--pad-x); }

/* Eyebrow (shared) */
.eyebrow,
.about-teaser-eyebrow,
.featured-eyebrow,
.clients-section-eyebrow,
.page-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 24px;
}
.about-teaser-eyebrow-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--gradient-brand);
}

/* ====== About teaser ====== */
.about-teaser {
  position: relative;
  padding: clamp(80px, 11vw, 140px) 0;
  overflow: hidden;
}
.about-teaser-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.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-weight: 900;
  font-size: clamp(140px, 18vw, 300px);
  line-height: 0.85;
  letter-spacing: -0.055em;
  -webkit-text-stroke: 1px color-mix(in oklab, var(--foreground) 12%, transparent);
  color: transparent;
  will-change: transform;
}

.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: 7fr 5fr;
    gap: 96px;
  }
}

.about-teaser-copy {
  position: relative;
  z-index: 2;
  will-change: transform, opacity;
  transition: opacity 0.4s var(--ease);
}
.about-teaser-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0;
}
.about-teaser-lede {
  margin: 32px 0 0;
  font-size: clamp(16px, 1.15vw, 18px);
  color: var(--foreground-soft);
  line-height: 1.65;
  max-width: 480px;
}
.about-teaser-cta {
  margin-top: 36px;
  display: inline-flex;
}

.about-teaser-media {
  position: relative;
  z-index: 1;
  will-change: transform;
}
.about-teaser-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-teaser-image {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(0.7) contrast(1.04);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1.02);
  transition: filter 0.7s var(--ease), transform 0.8s var(--ease);
}
.about-teaser-image-wrap:hover .about-teaser-image {
  filter: grayscale(0);
  transform: scale(1.06);
}

.about-teaser-corner-tl,
.about-teaser-corner-br {
  position: absolute;
  width: 48px; height: 48px;
  pointer-events: none;
}
.about-teaser-corner-tl {
  top: 16px; left: 16px;
  border-top: 1px solid rgba(255,255,255,.7);
  border-left: 1px solid rgba(255,255,255,.7);
}
.about-teaser-corner-br {
  bottom: 16px; right: 16px;
  border-bottom: 1px solid rgba(255,255,255,.7);
  border-right: 1px solid rgba(255,255,255,.7);
}

.about-teaser-stats {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.about-teaser-stat {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-right: 1px solid var(--hairline);
}

.about-teaser-stat:last-child { border-right: none; }
.about-teaser-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 2.8vw, 44px);
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
  font-feature-settings: "tnum";
}
.about-teaser-stat-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
  line-height: 1.4;
}

/* ====== Clients section ====== */
.clients-section {
  padding: clamp(80px, 10vw, 128px) 0;
  background: var(--background);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.clients-section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.clients-section-head {
  margin-bottom: clamp(48px, 6vw, 72px);
  max-width: 720px;
}
.clients-section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
}

/* Logo grid */
.clients-logo-grid {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
  width: 100%;
}
@media (min-width: 640px) { .clients-logo-grid { display: grid; } }

/* Homepage variant — 8 logos in 4×2, also shown on mobile */
.clients-logo-grid--home {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px) clamp(16px, 2.4vw, 32px);
}
@media (min-width: 640px) {
  .clients-logo-grid--home { grid-template-columns: repeat(4, 1fr); }
}

.clients-section-foot {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.clients-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 120px;
  padding: 12px 20px;
  background: transparent;
  border: 0;
  transition: transform 0.35s var(--ease);
  position: relative;
}
.clients-logo:hover {
  transform: translateY(-3px);
  background: transparent;
}
.clients-logo img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(1) opacity(0.6);
  transition: filter 0.4s var(--ease), transform 0.4s var(--ease);
}
.clients-logo:hover img {
  filter: grayscale(0) opacity(1);
  transform: scale(1.04);
}
.clients-logo-empty { display: none; }

/* 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.55s var(--ease);
}
.clients-mpage {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: transparent;
}
.clients-mpage .clients-logo {
  height: 96px;
  padding: 12px;
  border-radius: 0;
}
.clients-mctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}
.clients-marrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  cursor: pointer;
  background: var(--background);
  color: var(--foreground);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
}
.clients-marrow:hover {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}
.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: var(--hairline-strong);
  cursor: pointer; padding: 0;
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}
.clients-mdot.active { width: 28px; background: var(--gradient-brand); }

/* ====== Featured work ====== */
.featured-section {
  padding: clamp(80px, 10vw, 128px) 0;
  background: var(--background);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.featured-bg-orb {
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 9999px;
  filter: blur(140px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.featured-bg-orb-1 {
  top: -120px; left: -240px;
  background: radial-gradient(circle, var(--brand-mint), transparent 60%);
}
.featured-bg-orb-2 {
  bottom: -120px; right: -260px;
  background: radial-gradient(circle, var(--brand-blue), transparent 60%);
  opacity: 0.28;
}

.featured-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.featured-head { margin-bottom: clamp(48px, 6vw, 80px); }
.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: 96px;
  }
}
.featured-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
}
.featured-lede {
  font-size: clamp(16px, 1.1vw, 18px);
  color: var(--foreground-soft);
  line-height: 1.65;
  max-width: 460px;
  margin: 0 0 14px;
}

/* 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 var(--ease), filter 0.5s var(--ease), transform 0.5s var(--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: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.work-card:hover .work-card-image-wrap {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.work-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 1s var(--ease);
}
.work-card:hover .work-card-image { transform: scale(1.08); }

.work-card-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(8,12,20,.85) 100%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.work-card:hover .work-card-scrim { opacity: 1; }

.work-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: white;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.55s var(--ease);
  pointer-events: none;
}
.work-card:hover .work-card-body { opacity: 1; transform: translateY(0); }

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

.featured-footnote {
  margin-top: clamp(64px, 8vw, 96px);
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-accent);
  font-weight: 300;
  font-style: normal;
  letter-spacing: -0.005em;
  font-size: 18px;
  color: var(--foreground-soft);
  text-transform: none;
  letter-spacing: 0;
}

/* ====== Services preview ====== */
.section.bg-secondary {
  background: var(--surface-2);
}
.services-head {
  display: flex; flex-direction: column; gap: 24px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
@media (min-width: 1024px) {
  .services-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; }
}
.about-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0;
}
.services-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 56px; }
}
.service-group h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline-strong);
  position: relative;
}
.service-group h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 36px; height: 1px;
  background: var(--gradient-brand);
}
.service-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 14px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--foreground-soft);
  font-weight: 400;
}
.service-list li {
  transition: color 0.25s var(--ease), transform 0.3s var(--ease);
  display: flex; align-items: center; gap: 10px;
}
.service-list li::before {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 999px;
  background: var(--hairline-strong);
  transition: background 0.25s var(--ease);
}
.service-list li:hover { color: var(--foreground); transform: translateX(4px); }
.service-list li:hover::before { background: var(--brand-teal); }

/* ====== CTA block ====== */
.cta-block {
  max-width: var(--container);
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: var(--foreground); color: var(--background);
  padding: 56px;
  display: flex; flex-direction: column; gap: 32px;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse at center, color-mix(in oklab, var(--brand-teal) 35%, transparent), transparent 60%);
  pointer-events: none;
  opacity: 0.6;
}
@media (min-width: 1024px) {
  .cta-block {
    padding: 80px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
  }
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.04;
  max-width: 680px;
  margin: 0;
  letter-spacing: -0.035em;
  position: relative;
  text-wrap: balance;
}

/* ====== PageHero ====== */
.page-hero {
  padding: 156px var(--pad-x) 64px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 640px) { .page-hero { padding-top: 184px; padding-bottom: 80px; } }
.page-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: 0; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, color-mix(in oklab, var(--brand-teal) 12%, transparent), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 6.2vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  max-width: 980px;
  margin: 0;
}
.page-desc {
  margin-top: 28px;
  max-width: 680px;
  font-family: var(--font-accent);
  font-weight: 300;
  font-style: normal;
  letter-spacing: -0.005em;
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--foreground-soft);
  line-height: 1.5;
}

/* ====== About page detail ====== */
.about-detail {
  max-width: var(--container);
  margin: 0 auto;
  display: grid; gap: 56px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) { .about-detail { grid-template-columns: 1fr 1fr; gap: 96px; } }
.about-img-wrap { position: relative; }
.about-img-wrap img {
  border-radius: var(--radius-lg);
  width: 100%;
  filter: grayscale(0.7) contrast(1.04);
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute; bottom: -28px; right: -28px;
  background: var(--gradient-brand);
  color: var(--foreground);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-glow);
}
.about-badge p:first-child {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.04em;
}
.about-badge p:last-child {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  margin: 6px 0 0;
}
.about-body p {
  color: var(--foreground-soft);
  line-height: 1.7;
  margin: 0 0 22px;
  font-size: 16px;
}
.about-body p:first-child {
  font-family: var(--font-accent);
  font-weight: 300;
  font-style: normal;
  letter-spacing: -0.005em;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.5;
  color: var(--foreground);
  margin-bottom: 28px;
}

/* ====== Values ====== */
.values-grid {
  display: grid; gap: 40px;
  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); gap: 32px; } }
.value-card {
  border-top: 1px solid var(--foreground);
  padding-top: 24px;
  position: relative;
}
.value-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 28px; height: 1px;
  background: var(--gradient-brand);
}
.value-num {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  color: var(--muted-foreground);
  letter-spacing: 0.18em;
  margin: 0 0 16px;
  font-feature-settings: "tnum";
}
.value-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
.value-card p {
  font-size: 14px;
  color: var(--foreground-soft);
  line-height: 1.65;
  margin: 0;
}

/* ====== Services deep ====== */
.services-deep {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 72px 48px;
  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-weight: 800;
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
.service-deep ul {
  list-style: none; margin: 0; padding: 22px 0 0;
  border-top: 1px solid var(--hairline-strong);
  display: flex; flex-direction: column; gap: 14px;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--foreground-soft);
  position: relative;
}
.service-deep ul::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 32px; height: 1px;
  background: var(--gradient-brand);
}
.service-deep li {
  transition: color 0.25s var(--ease), transform 0.3s var(--ease);
  cursor: default;
  display: flex; align-items: center; gap: 12px;
}
.service-deep li::before {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 999px;
  background: var(--hairline-strong);
  transition: all 0.25s var(--ease);
}
.service-deep li:hover { color: var(--foreground); transform: translateX(6px); }
.service-deep li:hover::before { background: var(--brand-teal); width: 14px; border-radius: 999px; }

/* ====== Team ====== */
.team-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.team-card {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-photo { aspect-ratio: 4/5; overflow: hidden; position: relative; }
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.8s var(--ease), transform 0.8s var(--ease);
}
.team-card:hover .team-photo img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.03);
}
.team-body { padding: 30px; flex: 1; display: flex; flex-direction: column; }
.team-body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.025em;
  margin: 0;
}
.team-role {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  margin: 6px 0 0;
  font-weight: 500;
}
.team-quote {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex;
  gap: 14px;
  font-size: 14.5px;
  color: var(--foreground-soft);
  line-height: 1.65;
}
.team-quote svg { flex-shrink: 0; color: var(--brand-teal); }
.team-quote p {
  font-family: var(--font-accent);
  font-weight: 300;
  font-style: normal;
  letter-spacing: -0.005em;
  font-size: 17px;
  line-height: 1.5;
  color: var(--foreground);
  margin: 0;
}

/* ====== Joyo Academy (homepage flagship section) ====== */
.joyo-section {
  padding: clamp(80px, 11vw, 140px) 0;
  background: var(--background);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.joyo-section::before {
  content: "";
  position: absolute;
  top: 20%; right: -260px;
  width: 720px; height: 720px;
  background: radial-gradient(circle, var(--brand-mint), transparent 60%);
  filter: blur(140px);
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}
.joyo-section::after {
  content: "";
  position: absolute;
  bottom: 8%; left: -260px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--brand-blue), transparent 60%);
  filter: blur(140px);
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}
.joyo-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.joyo-head { margin-bottom: clamp(48px, 6vw, 72px); }
.joyo-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 24px;
}
.joyo-head-row {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 1024px) {
  .joyo-head-row {
    grid-template-columns: 1.3fr 1fr;
    gap: 96px;
  }
}
.joyo-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 6.5vw, 100px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin: 0;
}
.joyo-lede {
  font-size: clamp(16px, 1.15vw, 18px);
  color: var(--foreground-soft);
  line-height: 1.65;
  max-width: 460px;
  margin: 0 0 12px;
}

/* Billboard image card */
.joyo-billboard {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  min-height: 480px;
}
@media (min-width: 1024px) { .joyo-billboard { aspect-ratio: 21 / 9; min-height: 560px; } }
.joyo-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.joyo-billboard-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,12,20,.30) 0%, rgba(8,12,20,.55) 50%, rgba(8,12,20,.88) 100%),
    linear-gradient(105deg, rgba(8,12,20,.55) 0%, rgba(8,12,20,.15) 50%, transparent 100%);
}
.joyo-billboard-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  color: white;
}
.joyo-billboard-top {
  display: flex;
  align-items: center;
  gap: 20px;
}
.joyo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-brand);
  color: var(--foreground);
  box-shadow: var(--shadow-glow);
}
.joyo-billboard-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  margin: 0;
}
.joyo-billboard-line {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 880px;
  color: white;
}
.joyo-personas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.joyo-personas span {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: white;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.joyo-personas span:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.5);
  transform: translateY(-1px);
}

/* Pillars row */
.joyo-pillars {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hairline);
}
@media (min-width: 768px) {
  .joyo-pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}
.joyo-pillar {
  padding: clamp(28px, 3.4vw, 44px) 0;
  padding-right: clamp(20px, 3vw, 40px);
  position: relative;
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 768px) {
  .joyo-pillar {
    padding: clamp(36px, 3.4vw, 52px) clamp(28px, 3vw, 40px) clamp(36px, 3.4vw, 52px) 0;
    border-bottom: none;
    border-right: 1px solid var(--hairline);
  }
  .joyo-pillar:last-child { border-right: none; padding-right: 0; }
  .joyo-pillar:not(:first-child) {
    padding-left: clamp(28px, 3vw, 40px);
  }
}
.joyo-pillar:last-child { border-bottom: none; }
.joyo-pillar-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-feature-settings: "tnum";
}
.joyo-pillar h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 1.9vw, 28px);
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}
.joyo-pillar p {
  font-size: 15px;
  color: var(--foreground-soft);
  line-height: 1.65;
  margin: 0;
  max-width: 32ch;
}

/* ====== Contact ====== */
.contact-cards {
  max-width: var(--container);
  margin: 0 auto;
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  padding: 36px;
  transition: all 0.35s var(--ease);
  display: block;
  background: var(--background);
  position: relative;
  overflow: hidden;
}
.contact-card svg { margin-bottom: 28px; color: var(--brand-teal); }
.contact-card .eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted-foreground);
  margin: 0 0 10px;
  font-weight: 600;
}
.contact-card .big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0;
  word-break: break-word;
}
.contact-card .sub {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--foreground-soft);
  line-height: 1.55;
}
.contact-card.hover-brand:hover {
  border-color: transparent;
  background: var(--gradient-brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.contact-card.hover-brand:hover svg,
.contact-card.hover-brand:hover .eyebrow,
.contact-card.hover-brand:hover .sub { color: var(--foreground); }

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  padding: 48px;
  display: flex; flex-direction: column; gap: 28px;
  border: 1px solid var(--hairline);
}
@media (min-width: 640px) { .contact-form { padding: 64px; } }
.field-row { display: grid; gap: 28px; 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.22em;
  color: var(--muted-foreground);
  font-weight: 600;
}
.field input, .field textarea {
  margin-top: 10px; width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline-strong);
  padding: 12px 0;
  font-size: 16px;
  font-family: inherit;
  color: inherit;
  resize: none; outline: none;
  transition: border-color 0.3s var(--ease);
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--brand-teal); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-foreground); }

/* ====== Footer (light theme) ====== */
.footer {
  --background: #0b0b0d;
  --foreground: #f5f5f4;
  --foreground-soft: #c9c8c4;
  --muted-foreground: #8a8a86;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.18);
  background: #0b0b0d;
  color: #f5f5f4;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.footer .footer-social .social-btn { background: transparent; color: #f5f5f4; }
.footer::after { opacity: 0.06; filter: invert(1); }

/* CTA strip — big invitation block */
.footer-cta {
  padding: clamp(72px, 9vw, 128px) var(--pad-x) clamp(56px, 7vw, 88px);
}
.footer-cta-inner {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 1024px) {
  .footer-cta-inner {
    grid-template-columns: minmax(0, auto) 1fr;
    gap: 64px;
    align-items: end;
  }
}
.footer-cta-eyebrow {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 12px;
}
.footer-cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 6.8vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
}
.footer-cta-mail {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 26px);
  letter-spacing: -0.025em;
  color: var(--foreground);
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-strong);
  position: relative;
  justify-self: stretch;
  width: 100%;
  justify-content: space-between;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
@media (min-width: 1024px) {
  .footer-cta-mail { justify-self: end; min-width: 380px; }
}
.footer-cta-mail::before {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 1px;
  background: var(--gradient-brand);
  transition: width 0.5s var(--ease);
}
.footer-cta-mail:hover::before { width: 100%; }
.footer-cta-arrow {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--gradient-brand);
  color: var(--foreground);
  box-shadow: var(--shadow-glow);
  transition: transform 0.4s var(--ease);
}
.footer-cta-mail:hover .footer-cta-arrow {
  transform: translate(3px, -3px);
}

/* Divider */
.footer-divider {
  height: 1px;
  background: var(--hairline);
  margin: 0 var(--pad-x);
}

/* Main columns */
.footer-main {
  padding: clamp(48px, 6vw, 80px) var(--pad-x) clamp(48px, 6vw, 72px);
}
.footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; gap: 56px 48px; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 64px; } }

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 22px;
}
.footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 14px;
  font-size: 15px;
  color: var(--foreground-soft);
}
.footer-col ul a, .footer-col ul li {
  transition: color 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-col ul a:hover { color: var(--foreground); }
.footer-col ul a:hover::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--gradient-brand);
}

/* Brand col */
.footer-col-brand .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-col-brand .footer-brand img {
  height: 36px; width: 36px;
}
.footer-col-brand .footer-brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.footer-tagline {
  margin: 22px 0 28px;
  font-family: var(--font-accent);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.55;
  color: var(--foreground-soft);
  max-width: 280px;
  letter-spacing: -0.005em;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-social .social-btn {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid var(--hairline-strong);
  background: var(--background);
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}
.footer-social .social-btn:hover {
  background: var(--gradient-brand);
  border-color: transparent;
  color: var(--foreground);
  transform: translateY(-2px);
}

/* Address col */
.footer-addr {
  font-style: normal;
  font-size: 15px;
  color: var(--foreground-soft);
  line-height: 1.65;
  margin: 0;
}
.footer-addr-line1 {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--foreground);
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.footer-hours {
  margin: 18px 0 0;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
}

/* Bottom row */
.footer-bottom {
  padding: 24px var(--pad-x) 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted-foreground);
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; align-items: center; }
}
.footer-copy { margin: 0; }
.footer-credit { margin: 0; }
.footer-credit a {
  color: var(--foreground-soft);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 1px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer-credit a:hover {
  color: var(--foreground);
  border-bottom-color: var(--brand-teal);
}

/* Decorative corner watermark — icon as background, contained */
.footer::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: clamp(220px, 32vw, 460px);
  height: clamp(220px, 32vw, 460px);
  background: url('assets/icon.png') no-repeat center / contain;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-6deg);
}
.footer > * { position: relative; z-index: 1; }

/* ====== Preloader ====== */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--background);
  color: var(--foreground);
  transition: opacity 0.8s var(--ease-in-out), visibility 0.8s;
  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 var(--pad-x);
  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: 26px;
  height: 26px;
}
.preloader-mark-wordmark span {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 14px;
  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.4s ease-in-out infinite;
}
@keyframes preloaderDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.preloader-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad-x) 72px;
  gap: 28px;
}
@media (min-width: 768px) { .preloader-center { padding: 0 64px 96px; gap: 36px; } }

.preloader-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 40px);
}
.preloader-icon {
  width: clamp(32px, 4.2vw, 56px);
  height: clamp(32px, 4.2vw, 56px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  opacity: 0.35;
  transform: translateY(6px) scale(0.9);
  transition: opacity 0.45s var(--ease), color 0.45s var(--ease), transform 0.6s var(--ease);
}
.preloader-icon svg { width: 100%; height: 100%; }
.preloader-icon.is-done {
  opacity: 0.6;
  color: var(--foreground);
  transform: translateY(0) scale(1);
}
.preloader-icon.is-active {
  opacity: 1;
  color: var(--primary, #2dd4a8);
  transform: translateY(0) scale(1.12);
  filter: drop-shadow(0 0 18px color-mix(in oklab, var(--primary, #2dd4a8) 35%, transparent));
}
.preloader-icon.is-active svg { stroke: currentColor; }


.preloader-pct {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--muted-foreground);
  font-size: 13px;
  text-transform: uppercase;
  z-index: 2;
}
@media (min-width: 768px) { .preloader-pct { right: 40px; bottom: 40px; } }

.preloader-count {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  color: var(--foreground);
  font-size: 14px;
}
.preloader-count-pct {
  font-size: 11px;
  opacity: 0.7;
}

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

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

/* ====== Scroll reveal system ====== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: none;
}

.reveal-up        { transform: translateY(40px); }
.reveal-down      { transform: translateY(-28px); }
.reveal-left      { transform: translateX(-40px); }
.reveal-right     { transform: translateX(40px); }
.reveal-fade      { transform: none; }
.reveal-scale     { transform: translateY(28px) scale(0.96); }
.reveal-blur      { filter: blur(14px); transform: translateY(20px); }

.reveal-left.is-in,
.reveal-right.is-in { transform: translateX(0); }
.reveal-scale.is-in { transform: translateY(0) scale(1); }

/* Stagger helper */
.reveal[data-stagger="1"]  { transition-delay: 0.08s; }
.reveal[data-stagger="2"]  { transition-delay: 0.16s; }
.reveal[data-stagger="3"]  { transition-delay: 0.24s; }
.reveal[data-stagger="4"]  { transition-delay: 0.32s; }
.reveal[data-stagger="5"]  { transition-delay: 0.40s; }
.reveal[data-stagger="6"]  { transition-delay: 0.48s; }
.reveal[data-stagger="7"]  { transition-delay: 0.56s; }
.reveal[data-stagger="8"]  { transition-delay: 0.64s; }
.reveal[data-stagger="9"]  { transition-delay: 0.72s; }
.reveal[data-stagger="10"] { transition-delay: 0.80s; }
.reveal[data-stagger="11"] { transition-delay: 0.88s; }
.reveal[data-stagger="12"] { transition-delay: 0.96s; }

/* Parallax — base layer transform set inline by JS */
.parallax { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ====== Mobile refinements (≤ 768px) ====== */
@media (max-width: 768px) {
  /* ===== Hero — full-bleed redesign ===== */
  /* Reduce the scroll height so the sticky scroll is gentler on mobile */
  .hero-section { height: 130vh; }

  /* Make the image card edge-to-edge (override the JS inline styles) */
  .hero-frame {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    border-radius: 0 !important;
  }

  /* Heavier scrim at the bottom for legibility */
  .hero-overlay {
    background:
      linear-gradient(180deg,
        rgba(8,12,20,0.55) 0%,
        rgba(8,12,20,0.30) 35%,
        rgba(8,12,20,0.55) 65%,
        rgba(8,12,20,0.92) 100%);
  }

  /* Content stack at the bottom 60% */
  .hero-content {
    padding: 96px 22px 40px;
    justify-content: flex-end;
    gap: 0;
    max-width: 100%;
  }

  /* Add eyebrow line above title via ::before on .hero-title */
  .hero-title {
    font-size: clamp(40px, 12vw, 60px);
    line-height: 0.96;
    max-width: 14ch;
    letter-spacing: -0.04em;
    position: relative;
    padding-top: 18px;
  }
  .hero-title::before {
    content: "● A social-impact creative studio";
    position: absolute;
    top: -8px; left: 0;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
    padding-top: 0;
    line-height: 1;
  }

  .hero-sub {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255,255,255,0.78);
    max-width: 28ch;
  }

  /* Stacked, more prominent CTAs */
  .hero-cta-row {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 320px;
  }
  .hero-cta-row .btn {
    padding: 14px 22px;
    font-size: 14px;
    justify-content: space-between;
    width: 100%;
  }
  .hero-cta-row .btn-outline-light {
    border-color: rgba(255,255,255,0.4);
  }

  /* Re-enable scroll hint as a thin bottom marker */
  .hero-scroll-hint {
    display: flex;
    bottom: 18px;
    font-size: 9px;
    letter-spacing: 0.4em;
    color: rgba(255,255,255,0.6);
  }
  .hero-scroll-hint::after { height: 24px; }

  /* Work card — always-visible title/cat on touch devices */
  .work-card-scrim { opacity: 0.7; }
  .work-card-body {
    opacity: 1;
    transform: translateY(0);
    padding: 18px 20px 20px;
  }
  .work-card-cat { font-size: 10px; letter-spacing: 0.18em; }
  .work-card-title { font-size: 18px; }

  /* Navbar — smaller logo + button to save vertical space */
  .navbar {
    background: var(--background);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .navbar-inner { padding: 12px var(--pad-x); }
  .navbar-logo { height: 42px; }
  .menu-btn { width: 44px; height: 44px; }

  /* Menu panel */
  .menu-list { padding: 32px 24px; }
  .menu-list li { gap: 14px; padding: 6px 0; margin-bottom: 8px; }
  .menu-link { font-size: 28px; }
  .menu-head { padding: 16px 24px; }
  .menu-foot { padding: 20px 24px; }

  /* Hero — tighter top/bottom padding, hide scroll hint */
  .hero-content { padding: 76px 24px 72px; }
  .hero-title { font-size: clamp(40px, 11vw, 56px); max-width: 14ch; }
  .hero-sub { font-size: 14px; max-width: 100%; }
  .hero-cta-row { gap: 10px; margin-top: 28px; }
  .hero-cta-row .btn { padding: 12px 20px; font-size: 13px; }
  .hero-scroll-hint { display: none; }

  /* Page hero — less top padding (smaller navbar) */
  .page-hero { padding: 124px var(--pad-x) 48px; }
  .page-title { font-size: clamp(38px, 11vw, 56px); }
  .page-desc { margin-top: 20px; font-size: 16px; }

  /* About teaser — wordmark smaller so it doesn't dominate */
  .about-teaser { padding: 64px 0; }
  .about-teaser-grid { gap: 40px; }
  .about-wordmark { font-size: 110px; top: 48%; }
  .about-teaser-title { font-size: clamp(36px, 9vw, 48px); }
  .about-teaser-lede { font-size: 15px; }

  /* Stats — keep 3 col but tighten */
  .about-teaser-stats { margin-top: 24px; }
  .about-teaser-stat {
    padding: 16px 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .about-teaser-stat-num { font-size: 26px; }
  .about-teaser-stat-label { font-size: 9.5px; letter-spacing: 0.14em; }

  /* Featured work */
  .featured-section { padding: 64px 0; }
  .featured-head { margin-bottom: 32px; }
  .featured-head-row { gap: 20px; }
  .featured-title { font-size: clamp(38px, 11vw, 60px); }
  .featured-lede { font-size: 15px; }
  .work-card-image-wrap { border-radius: 18px; }
  .featured-footnote { margin-top: 48px; font-size: 14px; }

  /* Services section */
  .section { padding: 64px var(--pad-x); }
  .services-head { margin-bottom: 36px; gap: 16px; }
  .services-grid { gap: 36px; }
  .about-title { font-size: clamp(36px, 9vw, 52px); }

  /* Joyo */
  .joyo-section { padding: 64px 0; }
  .joyo-head { margin-bottom: 36px; }
  .joyo-head-row { gap: 16px; }
  .joyo-title { font-size: clamp(40px, 12vw, 64px); }
  .joyo-lede { font-size: 15px; }
  .joyo-billboard { aspect-ratio: auto; min-height: 0; height: auto; }
  .joyo-billboard-content {
    padding: 28px 24px;
    gap: 24px;
  }
  .joyo-billboard-top { gap: 14px; }
  .joyo-badge { width: 44px; height: 44px; border-radius: 12px; }
  .joyo-badge svg { width: 22px; height: 22px; }
  .joyo-billboard-tag { font-size: 10px; letter-spacing: 0.18em; }
  .joyo-billboard-line { font-size: 18px; line-height: 1.35; }
  .joyo-personas { gap: 8px; }
  .joyo-personas span { padding: 8px 14px; font-size: 12px; }
  .joyo-pillars { margin-top: 40px; }
  .joyo-pillar { padding: 24px 0; }
  .joyo-pillar h3 { font-size: 20px; }
  .joyo-pillar p { font-size: 14px; }

  /* Clients */
  .clients-section { padding: 64px 0; }
  .clients-section-head { margin-bottom: 32px; }
  .clients-section-title { font-size: clamp(36px, 11vw, 56px); }
  .clients-logo-grid--home { gap: 20px 16px; }
  .clients-logo { height: 84px; padding: 10px 12px; }
  .clients-logo img { max-height: 48px; }
  .clients-section-foot { margin-top: 32px; padding-top: 20px; }

  /* CTA block */
  .cta-block { padding: 36px 28px; border-radius: 22px; gap: 20px; }
  .cta-title { font-size: clamp(24px, 6vw, 36px); }

  /* Footer */
  .footer-cta { padding: 56px 24px 40px; }
  .footer-cta-inner { gap: 28px; }
  .footer-cta-title { font-size: clamp(36px, 10vw, 56px); }
  .footer-cta-mail {
    font-size: 16px;
    padding: 14px 0;
    min-width: 0;
    gap: 12px;
  }
  .footer-cta-arrow { width: 36px; height: 36px; }
  .footer-cta-arrow svg { width: 16px; height: 16px; }
  .footer-divider { margin: 0 24px; }
  .footer-main { padding: 36px 24px 32px; }
  .footer-grid { gap: 32px; grid-template-columns: 1fr; }
  .footer-col h4 { margin-bottom: 16px; }
  .footer-col ul { gap: 10px; font-size: 14px; }
  .footer-col-brand .footer-brand img { height: 30px; width: 30px; }
  .footer-col-brand .footer-brand span { font-size: 17px; }
  .footer-tagline { font-size: 14px; margin: 16px 0 20px; }
  .footer-bottom {
    padding: 16px 24px 24px;
    font-size: 12px;
    gap: 6px;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Footer corner watermark — smaller on mobile */
  .footer::after {
    width: clamp(160px, 50vw, 240px);
    height: clamp(160px, 50vw, 240px);
    right: -30px;
    bottom: -30px;
    opacity: 0.07;
  }

  /* About page detail */
  .about-detail { gap: 36px; }
  .about-img-wrap img { border-radius: 18px; }
  .about-badge { padding: 16px 18px; right: -12px; bottom: -16px; }
  .about-badge p:first-child { font-size: 30px; }
  .about-body p:first-child { font-size: 18px; }

  /* Values */
  .values-grid { gap: 28px; }
  .value-card h3 { font-size: 19px; }

  /* Services deep */
  .services-deep { gap: 48px 32px; }
  .service-deep h2 { font-size: 24px; }

  /* Team */
  .team-grid { gap: 22px; }
  .team-card { border-radius: 18px; }
  .team-body { padding: 22px; }
  .team-body h3 { font-size: 20px; }
  .team-quote p { font-size: 15px; }

  /* Contact */
  .contact-card { padding: 26px; border-radius: 18px; }
  .contact-card .big { font-size: 19px; }
  .contact-form { padding: 28px; border-radius: 22px; }
  .field-row { gap: 22px; }

  /* Preloader */
  .preloader-top { padding: 18px 20px; font-size: 10px; }
  .preloader-center { padding: 0 24px 48px; }
  .preloader-count { font-size: 14px; }

}

/* ====== Very small phones (≤ 380px) ====== */
@media (max-width: 380px) {
  .hero-title { font-size: 38px; }
  .hero-cta-row .btn { padding: 11px 16px; font-size: 12.5px; }
  .joyo-billboard-line { font-size: 16px; }
  .footer-cta-mail { font-size: 14px; flex-wrap: wrap; }
  .footer-cta-mail span:first-child { word-break: break-all; }
}

/* ====== Custom cursor ====== */
@media (hover: hover) and (pointer: fine) {
  html, body { cursor: none; }
  a, button, .menu-link, .filter-pill, .work-card, .clients-marrow,
  .menu-btn, .social-btn, .clients-logo, .service-list li, .service-deep li,
  .team-card, .contact-card, .joyo-persona { cursor: none; }

  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-50%, -50%, 0);
    will-change: transform, width, height, opacity;
    mix-blend-mode: difference;
  }
  .cursor-dot {
    width: 6px; height: 6px;
    border-radius: 999px;
    background: white;
    transition: width 0.25s var(--ease), height 0.25s var(--ease),
                opacity 0.2s var(--ease), background 0.25s var(--ease);
  }
  .cursor-ring {
    width: 36px; height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    transition: width 0.35s var(--ease), height 0.35s var(--ease),
                border-color 0.3s var(--ease), opacity 0.25s var(--ease),
                background 0.3s var(--ease);
  }

  /* Hover state — over interactive element */
  body.cursor-hover .cursor-dot {
    width: 0; height: 0; opacity: 0;
  }
  body.cursor-hover .cursor-ring {
    width: 56px; height: 56px;
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
  }

  /* Drag/active state */
  body.cursor-down .cursor-ring {
    width: 28px; height: 28px;
  }

  /* Hidden when offscreen */
  body.cursor-idle .cursor-dot,
  body.cursor-idle .cursor-ring {
    opacity: 0;
  }

  /* Don't override cursor on form fields (need a text caret) */
  input, textarea, select { cursor: text; }
  body:has(input:focus, textarea:focus) .cursor-dot,
  body:has(input:focus, textarea:focus) .cursor-ring {
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* Global title size reduction */
.hero-title { font-size: clamp(24px, 2.8vw, 42px) !important; }
.page-title { font-size: clamp(24px, 2.8vw, 42px) !important; }
.clients-section-title { font-size: clamp(24px, 2.8vw, 42px) !important; }
.section-title, h1.section-title, h2.section-title { font-size: clamp(24px, 2.8vw, 42px) !important; }

.about-teaser-title { font-size: clamp(24px, 2.8vw, 42px) !important; }
.footer-cta-title, .featured-title, .about-title, .joyo-title { font-size: clamp(24px, 2.8vw, 42px) !important; }

/* ====== Global smooth transitions & scroll ====== */
html { scroll-behavior: smooth; }
a, button, .btn, .work-card, .service-group, .clients-logo, .value-card, .team-card, .joyo-pillar, .social-btn, img {
  transition: color 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease), opacity 0.35s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease), filter 0.45s var(--ease);
}

/* Auto reveal for any [data-reveal] element */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
