/* ====== Creative Scope — Homepage ====== */

:root {
  --accent: #D6FF3D;
  --accent-ink: #0E0E10;

  --bone: #F4F1EC;
  --bone-2: #EAE5DC;
  --ink: #111111;
  --ink-soft: #1C1C1E;
  --muted: #6B6560;
  --line: rgba(17,17,17,0.12);
  --line-strong: rgba(17,17,17,0.32);

  --bg: var(--bone);
  --bg-2: var(--bone-2);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --fg-muted: var(--muted);
  --border: var(--line);
  --border-strong: var(--line-strong);

  --radius: 2px;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
}

[data-theme="dark"] {
  --bg: #0E0E10;
  --bg-2: #17171A;
  --fg: #EDE8DF;
  --fg-soft: #E3DDD2;
  --fg-muted: #9A938B;
  --border: rgba(237,232,223,0.12);
  --border-strong: rgba(237,232,223,0.32);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 300ms ease, color 300ms ease;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ======= Type scale ======= */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.display {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0;
}

.display em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
}

.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.45;
  color: var(--fg-soft);
  max-width: 58ch;
}

.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }

/* ======= Layout ======= */
.shell { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }

/* ======= Nav ======= */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px var(--gutter);
  max-width: var(--maxw); margin: 0 auto;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.02em; font-size: 18px;
}
.logo-emblem {
  width: 26px; height: 26px; object-fit: contain; display: block;
}
.logo .mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--fg);
  position: relative;
}
.logo .mark::after {
  content: ""; position: absolute; inset: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.nav-links { display: flex; gap: 28px; justify-content: center; align-items: center; }
.nav-links a, .nav-links .nav-link {
  font-size: 14px; color: var(--fg-soft);
  position: relative;
  padding: 4px 0;
  transition: color 200ms;
  background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit;
}
.nav-links a:hover, .nav-links .nav-link:hover, .nav-links .nav-link.is-open { color: var(--fg); }
.nav-links a::after, .nav-links .nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 250ms cubic-bezier(.7,.1,.2,1);
}
.nav-links a:hover::after, .nav-links .nav-link:hover::after, .nav-links .nav-link.is-open::after { transform: scaleX(1); }
.nav-mega-trigger { display: inline-flex; align-items: center; padding: 8px 0; margin: -8px 0; }

.nav-right { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 40px; height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: inline-grid; place-items: center;
  color: var(--fg);
  transition: background 200ms, color 200ms, border-color 200ms;
}
.theme-toggle:hover { background: var(--fg); color: var(--bg); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--fg);
  background: var(--fg); color: var(--bg);
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  border-radius: 999px;
  transition: transform 200ms ease, background 200ms, color 200ms;
}
.btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn svg { width: 14px; height: 14px; }

.btn-ghost {
  background: transparent; color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ======= Hero ======= */
.hero {
  padding: clamp(49px, 3vw, 73px) 0 clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

/* Background video — full-bleed behind hero */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: heroVidFadeIn 1.6s 200ms ease-out forwards;
}
@keyframes heroVidFadeIn { to { opacity: 1; } }

/* Gradient overlay — left→right black fade so headline stays readable */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      var(--bg) 0%,
      color-mix(in oklab, var(--bg) 92%, transparent) 28%,
      color-mix(in oklab, var(--bg) 55%, transparent) 55%,
      color-mix(in oklab, var(--bg) 25%, transparent) 80%,
      transparent 100%),
    linear-gradient(180deg,
      transparent 0%,
      transparent 70%,
      color-mix(in oklab, var(--bg) 70%, transparent) 100%);
}

/* In light theme the video is a bit blown-out; tint it subtly */
[data-theme="light"] .hero-bg-video { filter: brightness(0.96) saturate(1.05); }

/* Hero top block contains the video + reel */
.hero-top {
  position: relative;
}

/* Hero bottom (CTAs + stats) — now its own standalone section under the hero */
.hero-bottom-section {
  padding: clamp(32px, 4vw, 56px) 0 clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.hero-bottom-section .hero-bottom {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* ====== Hero Reel — two vertical columns, opposite directions ====== */
.hero-reel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(46%, 620px);
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  animation: reelFadeIn 1.2s 300ms ease-out forwards;
}
@keyframes reelFadeIn { to { opacity: 1; } }

.reel-cols {
  position: absolute;
  inset: 0;
  padding: 0 clamp(16px, 2vw, 32px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.5vw, 20px);
}

.reel-col {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.reel-col-track {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vw, 20px);
  will-change: transform;
}

/* Up column starts offset, so the two tracks begin staggered */
.reel-col-up .reel-col-track {
  animation: reelScrollUp 38s linear infinite;
}
.reel-col-down .reel-col-track {
  animation: reelScrollDown 38s linear infinite;
}

@keyframes reelScrollUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-33.333%); }
}
@keyframes reelScrollDown {
  from { transform: translateY(-33.333%); }
  to   { transform: translateY(0); }
}

.reel-tile {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0c0c0c;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 22px 50px -20px rgba(0,0,0,.5),
    0 8px 18px -8px rgba(0,0,0,.3);
  aspect-ratio: 4 / 5;
  flex-shrink: 0;
}
[data-theme="light"] .reel-tile {
  background: #fff;
  border-color: rgba(17,17,17,.08);
  box-shadow:
    0 18px 40px -18px rgba(0,0,0,.18),
    0 6px 14px -6px rgba(0,0,0,.08);
}

.reel-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.reel-tile figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 7px;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .02em;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Overlay: left→right fade so headline stays readable; top/bottom fade for infinite-scroll illusion */
.reel-overlay {
  position: absolute;
  inset: 0;
  background:
    /* left edge fade into bg */
    linear-gradient(90deg, var(--bg) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 100%),
    /* top fade */
    linear-gradient(180deg, var(--bg) 0%, rgba(0,0,0,0) 14%, rgba(0,0,0,0) 86%, var(--bg) 100%);
  pointer-events: none;
  z-index: 5;
}

/* Make the hero content sit above the reel */
.hero .shell { position: relative; z-index: 8; }

@media (max-width: 1100px) {
  .hero-reel { width: 42%; }
}
@media (max-width: 860px) {
  .hero-reel { display: none; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  position: relative;
  z-index: 2;
}
.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: clamp(32px, 5vw, 56px) 0 8px;
  max-width: 58%;
  position: relative;
  z-index: 2;
}
.hero-meta .item .label { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .12em; }
.hero-meta .item .val { margin-top: 6px; font-size: 15px; color: var(--fg-soft); line-height: 1.4; }
.hero-headline {
  margin-top: 24px;
  max-width: 58%;
}
@media (max-width: 1100px) {
  .hero-headline { max-width: 62%; }
}
@media (max-width: 860px) {
  .hero-headline { max-width: 100%; }
}
.hero-headline .line { display: block; overflow: hidden; }
.hero-headline .line span {
  display: inline-block;
  opacity: 0;
  animation: rise 900ms cubic-bezier(.2,.7,.1,1) both;
  will-change: transform, opacity;
}
.hero-headline .line:nth-child(2) span { animation-delay: 120ms; }
.hero-headline .line:nth-child(3) span { animation-delay: 240ms; }

@keyframes rise {
  0%   { transform: translateY(101%); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(0);    opacity: 1; }
}
/* Safety net — if JS/animation fails, show text. */
@media (prefers-reduced-motion: reduce) {
  .hero-headline .line span {
    animation: none;
    transform: none;
    opacity: 1;
  }
}

.hero-strike {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 .12em;
  transform: skewX(-6deg);
  margin-right: .05em;
}

.hero-bottom {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px; align-items: end;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: clamp(16px, 3vw, 48px);
  align-items: flex-end;
  flex-wrap: wrap;
}
.stat .num {
  font-family: var(--font-sans);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
}
.stat .num em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
}
.stat .label { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); letter-spacing: .12em; text-transform: uppercase; display: block; margin-top: 6px; max-width: 14ch; }

/* Tag strip */
.hero-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 28px;
  position: relative;
  z-index: 2;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--fg-soft);
}
.tag .dot { display:inline-block; width:6px; height:6px; border-radius:50%; background: var(--accent); margin-right:8px; vertical-align: middle; }

/* ======= Marquee ======= */
.marquee {
  border-block: 1px solid var(--border);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg);
}
.marquee-track {
  display: flex; gap: 56px;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 80px);
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline-flex; align-items: center; gap: 56px;
  color: var(--fg);
}
.marquee-item em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.marquee-star {
  width: 36px; height: 36px; color: var(--accent);
  flex-shrink: 0;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ======= Services ======= */
.services { padding: clamp(80px, 10vw, 160px) 0; }
.services-head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  margin-bottom: clamp(48px, 6vw, 88px);
  align-items: end;
}
.services-list {
  border-top: 1px solid var(--border-strong);
}
.service-row {
  display: grid; grid-template-columns: 80px 1fr 1fr auto;
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
  padding: clamp(22px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  isolation: isolate;
  cursor: pointer;
  transition: padding 300ms cubic-bezier(.2,.7,.1,1);
}
.service-row > * { position: relative; z-index: 1; }
.service-row:hover { padding-left: 16px; }
.service-row::before {
  content: ""; position: absolute; inset: 0;
  background: var(--accent); opacity: 0;
  transform-origin: left; transform: scaleX(0);
  transition: transform 400ms cubic-bezier(.2,.7,.1,1), opacity 200ms;
  z-index: 0;
}
.service-row:hover::before,
.service-row:focus::before { transform: scaleX(1); opacity: 1; }
.service-row:hover,
.service-row:hover .service-title,
.service-row:hover .service-title em,
.service-row:hover .service-desc,
.service-row:hover .service-index,
.service-row:hover .service-arrow { color: #0E0E10 !important; }
.service-row:hover .service-desc { opacity: .85; }
.service-row:hover .service-index { opacity: .6; }
.service-row:hover .service-arrow { transform: translateX(6px); border-color: #0E0E10; }

.service-index { font-family: var(--font-mono); font-size: 13px; color: var(--fg-muted); }
.service-title { font-size: clamp(24px, 3vw, 40px); font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.service-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.service-desc { font-size: 15px; color: var(--fg-muted); line-height: 1.4; max-width: 42ch; }
.service-arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid currentColor;
  display: grid; place-items: center;
  transition: transform 250ms;
}
.service-arrow svg { width: 16px; height: 16px; }

/* ======= Work ======= */
.work { padding: clamp(40px, 6vw, 100px) 0 clamp(80px, 10vw, 160px); }
.work-head {
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
}
.case-card:nth-child(1) { grid-column: span 13; }
.case-card:nth-child(2) { grid-column: span 7;  }
.case-card:nth-child(3) { grid-column: span 7;  }
.case-card:nth-child(4) { grid-column: span 13; }
.case-card {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 220ms ease, transform 320ms cubic-bezier(.2,.7,.1,1), box-shadow 320ms;
  will-change: transform;
}
.case-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -28px rgba(0,0,0,.35);
}

.case-card-media {
  position: relative;
  height: clamp(280px, 32vw, 420px);
  overflow: hidden;
  background: var(--bg-2);
}
.case-card-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.7,.1,1);
}
.case-card:hover .case-card-media img { transform: scale(1.04); }
.case-card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45));
  opacity: .6; transition: opacity 280ms;
  pointer-events: none;
}
.case-card:hover .case-card-media::after { opacity: .85; }

.case-card-chip {
  position: absolute; left: 16px; top: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 12px 7px 8px;
  background: rgba(255,255,255,.92);
  color: #0b0b0d;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
  backdrop-filter: blur(6px);
}
.case-chip-num {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: 10px;
}
.case-chip-label { opacity: .7; }

.case-card-arrow {
  position: absolute; right: 16px; top: 16px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 50%;
  z-index: 2;
  opacity: 0;
  transform: scale(.6) rotate(-20deg);
  transition: opacity 280ms, transform 320ms cubic-bezier(.2,.7,.1,1);
}
.case-card:hover .case-card-arrow {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.case-card-body {
  padding: clamp(20px, 2vw, 28px);
  display: flex; flex-direction: column;
  gap: 16px;
  flex: 1;
}
.case-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px;
}
.case-card-sector {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 6px;
}
.case-card-title {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.case-card-stat {
  text-align: right;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  padding-left: 14px;
  min-width: 90px;
}
.case-card-stat .stat-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  color: var(--accent-ink, var(--fg));
  line-height: 1;
  letter-spacing: -0.01em;
}
[data-theme="dark"] .case-card-stat .stat-num { color: var(--accent); }
.case-card-stat .stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 4px;
}
.case-card-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
}
.case-card-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.case-card-services {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.case-service {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-muted);
}
.case-card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg);
  transition: gap 220ms;
}
.case-card:hover .case-card-cta { gap: 10px; }

/* Placeholder patterns */
.p-stripes { background: repeating-linear-gradient(135deg, var(--bg-2) 0 8px, var(--bg) 8px 14px); }
.p-tint-a { background: color-mix(in oklab, var(--accent) 18%, var(--bg)); }
.p-tint-b { background: color-mix(in oklab, var(--fg) 10%, var(--bg)); }
.p-ink { background: var(--fg); color: var(--bg); }

/* ======= Process ======= */
.process { padding: clamp(80px, 10vw, 160px) 0; background: var(--bg-2); }
.process-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 80px);
  align-items: end; margin-bottom: clamp(48px, 6vw, 88px);
}
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 32px);
  border-top: 1px solid var(--border-strong);
  padding-top: 32px;
}
.step { position: relative; }
.step-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(60px, 7vw, 112px);
  line-height: 1; color: var(--fg);
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.step-num sup {
  font-family: var(--font-mono); font-style: normal;
  font-size: 11px; color: var(--fg-muted);
  letter-spacing: .12em; top: -2.2em; margin-left: 8px;
}
.step-title { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.5; max-width: 28ch; }
.step::after {
  content: ""; position: absolute; top: calc(clamp(60px, 7vw, 112px)/2); right: -12px;
  width: 24px; height: 1px; background: var(--border-strong);
}
.step:last-child::after { display: none; }

/* ======= Logos (full-width ticker) ======= */
.logos { padding: clamp(52px, 7vw, 96px) 0; border-top: 1px solid var(--border); overflow: hidden; }
.logos-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.logos-sub { font-size: 14px; color: var(--fg-muted); max-width: 56ch; margin: 0; }

.ticker { width: 100%; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.ticker[data-theme-logos="dark"] { display: none; }
:root[data-theme="dark"] .ticker[data-theme-logos="light"] { display: none; }
:root[data-theme="dark"] .ticker[data-theme-logos="dark"] { display: block; }

.logo-row { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.logo-track { display: flex; align-items: center; gap: clamp(48px, 6vw, 96px); padding-right: clamp(48px, 6vw, 96px); flex-shrink: 0; }
.ticker-logo {
  height: clamp(64px, 7vw, 96px);
  width: auto; max-width: 360px;
  object-fit: contain;
  opacity: 0.72;
  transition: opacity 250ms;
  flex-shrink: 0;
}
.ticker-logo:hover { opacity: 1; }
@keyframes ticker {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-row { animation-duration: 180s; }
}

/* ======= Testimonials ======= */
.testis { padding: clamp(80px, 10vw, 160px) 0; }
.testi-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 80px); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.testi-google-badge {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 24px; padding: 10px 16px;
  border: 1px solid var(--border); border-radius: 999px;
  text-decoration: none; color: var(--fg);
  background: color-mix(in oklab, var(--fg) 3%, transparent);
  transition: border-color .2s, background .2s;
}
.testi-google-badge:hover { border-color: var(--fg); background: color-mix(in oklab, var(--fg) 6%, transparent); }
.testi-google-badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.testi-google-badge-stars { font-size: 13px; color: #F4B400; letter-spacing: 1px; font-weight: 500; }
.testi-google-badge-stars strong { color: var(--fg); margin-left: 4px; font-weight: 600; }
.testi-google-badge-count { font-size: 11px; color: var(--fg-muted); font-family: var(--font-mono); letter-spacing: 0.04em; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.testi {
  border: 1px solid var(--border);
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 24px;
  min-height: 340px;
  transition: background 250ms, border-color 250ms;
}
.testi:hover { background: var(--bg-2); border-color: var(--border-strong); }
.testi .quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  flex: 1;
}
.testi .quote::before { content: "“"; color: var(--accent); margin-right: 4px; font-size: 1.3em; line-height: 0; }
.testi .by {
  display: flex; align-items: center; gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testi .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 500;
  background: var(--fg); color: var(--bg);
  flex-shrink: 0;
}
.testi .name { font-size: 14px; font-weight: 500; }
.testi .role { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }

/* ======= CTA ======= */
.cta {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--fg); color: var(--bg);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 40%);
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta .eyebrow { color: color-mix(in oklab, var(--bg) 60%, transparent); }
.cta .eyebrow::before { background: var(--accent); }
.cta .display { margin-top: 20px; max-width: 18ch; }
.cta-bottom {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding-top: 32px;
  border-top: 1px solid color-mix(in oklab, var(--bg) 18%, transparent);
}
.cta-bottom .phone {
  font-family: var(--font-mono);
  font-size: 13px;
  color: color-mix(in oklab, var(--bg) 70%, transparent);
  letter-spacing: .04em;
}
.cta .btn { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cta .btn:hover { background: var(--bg); color: var(--fg); border-color: var(--bg); }

/* ======= Footer ======= */
.footer { padding: 48px 0 40px; border-top: 1px solid var(--border); }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer-inner h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); font-weight: 400; margin: 0 0 14px; }
.footer-inner ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-inner a { font-size: 14px; color: var(--fg-soft); }
.footer-inner a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.footer-brand p { font-size: 14px; color: var(--fg-muted); max-width: 36ch; }
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--fg) 15%, transparent);
  color: var(--fg-soft);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.footer-social:hover {
  color: var(--fg);
  border-color: var(--fg);
  background: color-mix(in oklab, var(--fg) 6%, transparent);
  transform: translateY(-2px);
}
.footer-social svg { display: block; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  color: var(--fg-muted); text-transform: uppercase;
}
.footer-legal { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.footer-legal a { color: var(--fg-muted); transition: color .2s; }
.footer-legal a:hover { color: var(--fg); }

/* ======= Tweaks panel ======= */
.tweaks {
  position: fixed; right: 20px; bottom: 20px;
  z-index: 100;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 18px;
  width: 280px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.16);
  display: none;
  font-size: 13px;
}
.tweaks.open { display: block; }
.tweaks h4 { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); font-weight: 400; }
.tweaks-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.tweaks-row:first-of-type { border-top: none; padding-top: 0; }
.tweaks-row label { color: var(--fg-soft); }
.tweaks input[type=color] { width: 36px; height: 24px; border: 1px solid var(--border); border-radius: 4px; background: none; }
.swatches { display: flex; gap: 6px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); cursor: pointer; }
.swatch.active { outline: 2px solid var(--fg); outline-offset: 2px; }
.tweaks input[type=text] {
  width: 100%; margin-top: 6px;
  padding: 8px 10px; font: inherit; font-size: 12px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; color: var(--fg);
}

/* ====== Hamburger / mobile drawer ====== */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--fg);
  transition: transform 250ms cubic-bezier(.7,.1,.2,1), opacity 200ms;
  transform-origin: center;
}
.nav-open .nav-burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  top: 73px; left: 0; right: 0;
  height: calc(100dvh - 73px);
  z-index: 49;
  background: var(--bg);
  padding: 32px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 350ms cubic-bezier(.2,.7,.1,1), opacity 250ms;
  border-bottom: 1px solid var(--border);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  transition: padding 200ms, color 200ms;
}
.nav-drawer a:hover { padding-left: 8px; color: var(--accent); }
.nav-drawer a .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--fg-muted);
  font-weight: 400;
}
.nav-drawer-foot {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.nav-drawer-foot .btn { width: auto; color: var(--bg); border-bottom: none; padding: 12px 18px; font-size: 14px; }
.nav-drawer-foot .btn:hover { color: var(--accent-ink); padding-left: 18px; }
.nav-drawer-foot .mono {
  color: var(--fg-muted);
  font-size: 12px;
  letter-spacing: .04em;
}

/* ======= Utility ======= */
@media (max-width: 960px) {
  .hero-grid, .services-head, .work-head, .testi-head, .process-head { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .service-row { grid-template-columns: 40px 1fr auto; }
  .service-row .service-desc { display: none; }
  .work-grid, .testi-grid, .case-grid { grid-template-columns: 1fr; }
  .case, .case.tall, .case.wide, .case.small, .case.mid { grid-column: span 1; grid-row: auto; }
  .case-card:nth-child(1), .case-card:nth-child(2),
  .case-card:nth-child(3), .case-card:nth-child(4) { grid-column: span 1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .cta-bottom { grid-template-columns: 1fr; }
  .nav-burger { display: inline-flex; }
}

/* Tablet → small mobile transition */
@media (max-width: 760px) {
  .nav-cta { display: none; }
  .nav-inner { gap: 12px; padding: 14px var(--gutter); }
  .logo { font-size: 16px; }
  .logo .mark { width: 18px; height: 18px; }
  .nav-drawer { top: 65px; height: calc(100dvh - 65px); }

  .display { font-size: clamp(40px, 12vw, 72px); }
  .h2 { font-size: clamp(28px, 8vw, 44px); }

  .hero { padding: clamp(48px, 8vw, 80px) 0 48px; }
  .hero-meta { padding: 36px 0 8px; gap: 18px; }
  .hero-meta .item .val { font-size: 14px; }
  .hero-tags { gap: 6px; margin-top: 24px; }
  .tag { padding: 6px 10px; font-size: 10px; letter-spacing: .06em; }

  .hero-bottom {
    margin-top: 36px;
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .hero-ctas { flex-wrap: wrap; gap: 10px; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; min-height: 48px; }
  .hero-stats { gap: 24px; }

  .step::after { display: none; }

  .testi { min-height: auto; padding: 24px; }
  .testi .quote { font-size: 20px; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }

  .marquee { padding: 16px 0; }
}

/* Small phones */
@media (max-width: 480px) {
  :root { --gutter: 18px; }

  .display { font-size: clamp(38px, 13vw, 56px); }
  .h2 { font-size: clamp(26px, 9vw, 36px); }
  .lead { font-size: 16px; }

  /* Hero */
  .hero { padding: 36px 0 36px; }
  .hero-meta { grid-template-columns: 1fr; gap: 18px; padding-top: 28px; }
  .hero-bottom { margin-top: 28px; gap: 28px; }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .hero-stats .stat .num { font-size: clamp(36px, 11vw, 56px); }

  /* Services */
  .services { padding: 60px 0; }
  .service-row {
    grid-template-columns: 28px 1fr 32px;
    gap: 12px;
    padding: 18px 0;
  }
  .service-row:hover { padding-left: 8px; }
  .service-index { font-size: 11px; }
  .service-title { font-size: clamp(20px, 6vw, 26px); }
  .service-arrow { width: 32px; height: 32px; }
  .service-arrow svg { width: 12px; height: 12px; }

  /* Work */
  .work { padding: 40px 0 60px; }
  .case-grid { gap: 20px; }
  .case-card-body { padding: 20px; gap: 14px; }
  .case-card-head { flex-direction: column; gap: 12px; }
  .case-card-stat {
    text-align: left;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 10px;
    min-width: 0;
  }
  .case-card-foot { gap: 14px; }

  /* Process */
  .process { padding: 60px 0; }
  .steps { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }

  /* Logos */
  .logos { padding: 48px 0; }
  .ticker-logo { height: 52px; }
  .logo-track { gap: 36px; padding-right: 36px; }

  /* Testimonials */
  .testis { padding: 60px 0; }
  .testi { padding: 22px; gap: 18px; }
  .testi .quote { font-size: 18px; line-height: 1.25; }

  /* CTA */
  .cta { padding: 60px 0; }
  .cta-bottom { gap: 18px; padding-top: 24px; align-items: flex-start; }
  .cta-bottom .btn { width: 100%; justify-content: center; min-height: 50px; }

  /* Footer */
  .footer { padding: 36px 0 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  /* Tweaks panel */
  .tweaks {
    right: 12px; left: 12px; bottom: 12px;
    width: auto;
    padding: 16px;
    max-height: 70vh;
    overflow-y: auto;
  }

  /* Nav drawer */
  .nav-drawer { padding: 24px var(--gutter) 32px; top: 61px; height: calc(100dvh - 61px); }
  .nav-drawer a { font-size: clamp(26px, 9vw, 36px); padding: 14px 0; }

  /* Buttons - hit target */
  .btn { min-height: 44px; }
  .theme-toggle { width: 38px; height: 38px; }
  .nav-burger { width: 38px; height: 38px; }

  /* Reduce shell padding pressure on hero */
  .hero-headline { margin-top: 16px; }
}

/* Tiny phones */
@media (max-width: 360px) {
  .hero-stats { grid-template-columns: 1fr; }
  .nav-inner { padding: 12px var(--gutter); }
  .logo span:last-child { display: none; }
}


/* ======= Mega Menu ======= */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 40px -24px rgba(0,0,0,0.18);
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 240ms cubic-bezier(.7,.1,.2,1);
}
.mega.mega-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mega-backdrop {
  position: fixed; inset: 0; top: 64px;
  background: color-mix(in oklab, var(--fg) 30%, transparent);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity 200ms;
  z-index: 49;
}
.mega-backdrop.open { opacity: 1; pointer-events: auto; }

.mega-panel {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px var(--gutter) 24px;
}
.mega-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 1.1fr 0.9fr;
  gap: 20px;
  align-items: stretch;
}
.mega-col { display: flex; flex-direction: column; gap: 14px; }
.mega-col-title {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-muted); margin: 0 0 4px;
  text-decoration: none;
}
.mega-col-title-link { transition: color .2s; }
.mega-col-title-link:hover { color: var(--accent); }
.mega-pills { display: flex; flex-direction: column; gap: 8px; }
.mega-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--fg);
  transition: background 200ms, border-color 200ms, transform 200ms;
}
.mega-pill:hover { background: var(--bg); border-color: var(--fg); transform: translateX(2px); }

/* Web Design feature card */
.mega-card {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms, transform 200ms;
  text-decoration: none; color: inherit;
}
.mega-card:hover { border-color: var(--fg); transform: translateY(-2px); }
.mega-card-label {
  font-weight: 600; letter-spacing: -0.01em; font-size: 16px;
  margin: 14px 0 0;
  position: relative; z-index: 2;
}
.mega-card-media {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 14px;
}
.mega-card-media img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.mega-card-web .mega-card-label {
  position: absolute; left: 18px; bottom: 14px;
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 6px;
}
.mega-card-web .mega-card-media {
  inset: 0;
  padding: 8px;
}
.mega-card-web .mega-card-media img {
  max-height: 100%;
  max-width: 100%;
}

/* Branding — light card, dark inner tiles */
.mega-card-branding {
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.mega-card-branding .mega-col-title { margin: 4px 4px 0; }
.mega-tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  flex: 1;
}
.mega-tile {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 14px 14px;
  background: #0b0b0d;
  color: #fff;
  font-size: 13px; font-weight: 500;
  border-radius: 10px;
  aspect-ratio: 1/1;
  transition: transform 200ms;
}
.mega-tile:hover { transform: translateY(-2px); }
.mega-tile-accent {
  background: var(--accent);
  color: #0b0b0d;
}

/* Stack (SEO + Social) */
.mega-stack { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mega-stack-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  transition: border-color 200ms, transform 200ms;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.mega-stack-card:hover { transform: translateY(-2px); }

.mega-stack-seo {
  background: var(--accent);
  color: #0b0b0d;
  border-color: var(--accent);
}
.mega-stack-visual-seo {
  background: #0b0b0d;
  color: var(--accent);
  width: 40px; height: 40px;
  border-radius: 8px;
  display: grid; place-items: center;
}
.mega-stack-seo .mega-stack-label { color: #0b0b0d; font-weight: 600; }

.mega-stack-social {
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  padding: 0 0 0 16px;
  min-height: 88px;
  flex: 0 0 auto;
  align-items: center;
}
.mega-stack-social .mega-stack-label {
  position: relative; z-index: 2;
}
.mega-stack-social-img {
  height: 140%;
  width: auto;
  max-width: 55%;
  object-fit: contain;
  object-position: right center;
  position: relative; z-index: 1;
  transform: translateX(8%);
}

.mega-stack-label { font-size: 14px; font-weight: 600; margin: 0; }

.mega-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 20px; padding-top: 16px;
  gap: 16px;
}
.mega-footer .mono { color: var(--fg-muted); }
.mega-all {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--fg);
}
.mega-all:hover { color: var(--accent); }

/* ======= Partners strip ======= */
.partners {
  padding: clamp(48px, 6vw, 88px) 0 clamp(28px, 4vw, 56px);
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.partners-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  padding-bottom: clamp(32px, 4vw, 56px);
}
.partner {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg);
  opacity: .9;
}
.partner-label {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 500;
  color: var(--fg-soft);
}
.partner-label b { font-weight: 700; color: var(--fg); }
.partner-gray { color: var(--fg-muted); font-weight: 400; }
.meta-badge { width: 26px; height: 26px; background: #fff; border-radius: 4px; display: grid; place-items: center; border: 1px solid var(--border); }
:root[data-theme="dark"] .meta-badge { background: var(--bg-2); }
.js-mark { font-weight: 700; font-size: 13px; background: var(--fg); color: var(--bg); padding: 3px 6px; border-radius: 3px; }
.tw-mark { color: #6B6EFF; font-size: 16px; }
.partner-klv .partner-label b { letter-spacing: .04em; }
.klv-sep { color: var(--fg-muted); }
.partners-head { text-align: center; padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--border); }
.partners-title {
  font-family: var(--font-sans);
  font-size: clamp(24px, 3.6vw, 42px);
  font-weight: 700; letter-spacing: -0.02em;
  margin: 0;
}

/* ======= Mobile rules for mega, ticker, partners ======= */
@media (max-width: 960px) {
  .mega { display: none; }
  .mega-backdrop { display: none; }
  .logos-head-row { margin-bottom: 28px; }
  .partners-inner { justify-content: center; }
  .partner-label { font-size: 12px; }
}
@media (max-width: 600px) {
  .logo-word { display: none; }
  .partners { padding: 40px 0 20px; }
  .partners-title { font-size: 22px; }
}

/* Tiny phones */
@media (max-width: 360px) {
  .hero-stats { grid-template-columns: 1fr; }
  .nav-inner { padding: 12px var(--gutter); }
}

/* Mega — paid hub link */
.mega-hub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  background: transparent;
  transition: background .2s ease, border-color .2s ease;
}
.mega-hub-link:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.2);
}
.mega-hub-link svg { transition: transform .2s ease; }
.mega-hub-link:hover svg { transform: translateX(2px); }

/* ============= MOBILE FIXES — universal (≤760px) ============= */
@media (max-width: 760px) {
  .hero-stats { grid-template-columns: 1fr 1fr !important; gap: 14px; }
  .testi-head,
  .work-head,
  .services-head,
  .process-head { grid-template-columns: 1fr !important; gap: 16px; }
  .testi-grid { grid-template-columns: 1fr !important; }
  .testi-google-badge { padding: 10px 12px; }
  .testi-google-badge-stars { font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px; }
  .nav-cta { display: none; }
  .mega-grid { grid-template-columns: 1fr !important; }
  .display { font-size: clamp(40px, 12vw, 72px) !important; }
}
