/* ===========================================================
   Section-specific styles
   =========================================================== */

/* -------- NAV -------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(10,10,11,0.92), rgba(10,10,11,0.5) 70%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transition: background .3s ease;
}
.nav.scrolled { background: rgba(10,10,11,0.86); border-bottom: 1px solid var(--line); }
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}
.brand .mark img { width: 100%; height: 100%; display: block; }
.brand .name { display: inline-flex; gap: 0; align-items: center; }
.brand .name .wm { height: 21px; width: auto; display: block; }
.brand .name .wm-light { display: none; }
.brand .name em {
  font-style: normal;
  color: var(--brand);
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  padding: 5px;
  border-radius: 999px;
}
.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background .2s ease;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,0.06); }
.nav-links a.is-active { background: var(--paper); color: var(--ink); }
.nav-links a .blog-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--brand);
  animation: pulse 2.4s infinite;
}
.nav-links a.is-active .blog-dot { background: var(--brand); }

.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-right .audit { font-size: 13px; color: var(--mute); font-weight: 500; }
.nav-right .audit:hover { color: var(--paper); }
/* nav burger (mobile) */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  position: relative;
}
.nav-burger span {
  display: block;
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--paper);
  border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-burger span:nth-child(1) { top: 13px; }
.nav-burger span:nth-child(2) { top: 19px; }
.nav-burger span:nth-child(3) { top: 25px; }
.nav.open .nav-burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { top: 19px; transform: rotate(-45deg); }
@media (max-width: 980px) {
  .nav-burger { display: block; }
  .nav-right .audit { display: none; }
  .nav-right .btn { padding: 12px 16px; font-size: 13px; }
  .nav.open .nav-links {
    display: flex;
    position: fixed;
    top: 76px; left: var(--gutter); right: var(--gutter);
    flex-direction: column;
    padding: 14px;
    gap: 4px;
    border-radius: 18px;
    background: rgba(20,20,24,0.96);
    backdrop-filter: blur(20px);
  }
  .nav.open .nav-links a { padding: 14px 18px; font-size: 15px; }
}
@media (max-width: 540px) {
  .nav-right .btn { padding: 10px 14px; font-size: 12px; }
  .nav-right .btn .arr { display: none; }
}
@media (max-width: 1100px) {
  .nav-links a { padding: 9px 12px; font-size: 12px; }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
}

/* -------- HERO -------- */
.hero {
  position: relative;
  padding: 110px var(--gutter) 56px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 500px at 96% 28%, rgba(51, 153, 255, 0.12), transparent 60%),
    radial-gradient(700px 400px at -4% 96%, rgba(51, 153, 255, 0.06), transparent 60%),
    var(--ink);
  overflow: hidden;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(51,153,255,.6); }
  70% { box-shadow: 0 0 0 12px rgba(51,153,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(51,153,255,0); }
}

/* Hero body grid */
.hero-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 24px 0 32px;
}
.hero-left { display: flex; flex-direction: column; gap: 24px; }

.hero-headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 6.2vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--paper);
}
.hero-headline .it {
  font-style: italic;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.04em;
}
.hero-headline .stroke {
  -webkit-text-stroke: 1.5px var(--paper);
  color: transparent;
  font-weight: 700;
}

.hero-sub {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.5;
  color: var(--paper);
  max-width: 48ch;
}
.hero-sub strong { font-weight: 600; }
.hero-sub .mute { color: var(--mute); }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-stats .stat .n {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 2.4vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--paper);
}
.hero-stats .stat .l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 6px;
}

/* ===== Hero creative scroll (right side of hero) ===== */
.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: clamp(520px, 70vh, 720px);
}
.hero-stage {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
}
.hero-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  will-change: transform;
}
.hero-col.up { animation: scrollUp 50s linear infinite; }
.hero-col.down { animation: scrollDown 50s linear infinite; }
.hero-visual:hover .hero-col { animation-play-state: paused; }
.hero-badge {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: rgba(10,10,11,0.78);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
  z-index: 4;
}
.hero-badge .hb-dot {
  width: 6px; height: 6px;
  background: #2ED573;
  border-radius: 50%;
  box-shadow: 0 0 0 0 #2ED573;
  animation: dashpulse 2s infinite;
}
/* Legacy dashboard wrapper (still referenced anywhere) */
.hero-dash {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dash {
  width: 100%;
  max-width: 580px;
  background: linear-gradient(180deg, rgba(28,28,32,0.85), rgba(20,20,24,0.85));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 32px 64px -16px rgba(0,0,0,0.6),
    0 0 0 1px rgba(51,153,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
}
.dash::before {
  /* glow */
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(51,153,255,0.15), transparent 70%);
  border-radius: 20px;
  pointer-events: none;
  z-index: -1;
}
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mute);
}
.dash-head .name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
}
.dash-head .name .live-dot {
  width: 6px; height: 6px;
  background: #2ED573;
  border-radius: 50%;
  box-shadow: 0 0 0 0 #2ED573;
  animation: dashpulse 2s infinite;
}
@keyframes dashpulse {
  0% { box-shadow: 0 0 0 0 rgba(46,213,115,.6); }
  70% { box-shadow: 0 0 0 8px rgba(46,213,115,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,213,115,0); }
}
.dash-head .sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dash-head .sync::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--brand);
  border-radius: 50%;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dash-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 132px;
  position: relative;
}
.dash-card .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.dash-card .v {
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--paper);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.dash-card .v .unit {
  font-size: 16px;
  color: var(--mute);
  font-weight: 500;
}
.dash-card .delta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dash-card .delta.up { color: #2ED573; }
.dash-card .delta.down { color: var(--pink); }

.dash-viz {
  flex: 1;
  display: flex;
  align-items: flex-end;
  min-height: 38px;
}
/* line chart */
.dash-line svg { width: 100%; height: 100%; overflow: visible; }
.dash-line path.area { fill: url(#area-grad); opacity: 0.4; }
.dash-line path.line { fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dash-line circle.dot { fill: var(--brand); stroke: var(--ink-2); stroke-width: 2; }
/* bar chart */
.dash-bars { display: flex; align-items: flex-end; gap: 4px; width: 100%; }
.dash-bars .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--brand), rgba(51,153,255,0.25));
  border-radius: 2px 2px 0 0;
}
/* mini sparkline */
.dash-spark svg { width: 100%; height: 100%; }
.dash-spark path { fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.dash-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.dash-foot .tabs { display: flex; gap: 4px; }
.dash-foot .tabs span {
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
}
.dash-foot .tabs span.on { background: var(--brand); color: #fff; }

@media (max-width: 1024px) {
  .hero-body { grid-template-columns: 1fr; gap: 40px; padding: 16px 0; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .dash { max-width: 100%; }
  .hero-visual { min-height: 480px; }
}
@media (max-width: 680px) {
  .hero { padding-top: 96px; }
  .hero-stats { gap: 18px; }
  .hero-stats .stat .n { font-size: 26px; }
  .hero-visual { min-height: 420px; }
}

/* Brand marquee */
.brands {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  overflow: hidden;
  background: var(--ink);
}
.brands .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
  margin-bottom: 18px;
}
.brand-logo {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--paper);
  opacity: 0.78;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.brand-logo .div {
  color: var(--mute);
  font-size: 16px;
  opacity: 0.6;
}

/* -------- CREATIVE WALL -------- */
.wall {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0 0;
  background: var(--ink);
}
.wall-head {
  padding: 0 var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
}
.wall-head h2 {
  font-family: var(--display);
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.wall-head .lede { color: var(--mute); max-width: 46ch; font-size: 17px; }
.wall-stage {
  position: relative;
  height: clamp(640px, 80vh, 880px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
}
.wall-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding: 0 var(--gutter);
}
.wall-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform;
}
.wall-col.up   { animation: scrollUp   42s linear infinite; }
.wall-col.down { animation: scrollDown 42s linear infinite; }
.wall-col.slow { animation-duration: 60s; }
.wall-col.fast { animation-duration: 36s; }
@keyframes scrollUp   { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes scrollDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.wall-stage:hover .wall-col { animation-play-state: paused; }
@media (max-width: 1100px) {
  .wall-grid { grid-template-columns: repeat(4, 1fr); }
  .wall-col:nth-child(5), .wall-col:nth-child(6) { display: none; }
}
@media (max-width: 700px) {
  .wall-grid { grid-template-columns: repeat(3, 1fr); }
  .wall-col:nth-child(4) { display: none; }
}

/* Creative cards (mimic DTC ads) */
.cc {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
}
.cc::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.25));
  pointer-events: none;
}
.cc .play {
  position: absolute;
  top: 12px; right: 12px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  display: grid; place-items: center;
  color: #000;
  font-size: 10px;
  z-index: 2;
}

/* -------- SERVICES (ACCORDION) -------- */
.services {
  background: var(--ink);
  padding: clamp(16px, 2vw, 28px) 0 clamp(80px, 10vw, 140px);
  position: relative;
}
.services .wrap { position: relative; }
.svc-head-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.svc-head-right { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.svc-head-right .lede { max-width: 46ch; color: var(--mute); font-size: clamp(15px, 1.1vw, 17px); }
@media (max-width: 820px) { .svc-head-grid { grid-template-columns: 1fr; align-items: start; } }

.svc-acc {
  border-top: 1px solid var(--line);
}
.acc-item {
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .3s ease;
}
.acc-item:hover { background: rgba(255,255,255,0.015); }
.acc-item > summary {
  list-style: none;
  cursor: pointer;
  padding: clamp(24px, 3vw, 36px) 8px;
  display: grid;
  grid-template-columns: 56px 1fr auto 48px;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  position: relative;
}
.acc-item > summary::-webkit-details-marker { display: none; }
.acc-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mute);
}
.acc-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--svc, var(--paper));
  transition: color .3s ease, transform .35s var(--ease-out);
}
.acc-item:hover .acc-name { color: var(--svc, var(--brand)); }
.acc-cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  text-align: right;
}
.acc-toggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  transition: background .25s ease, border-color .25s ease, transform .35s var(--ease-out);
  justify-self: end;
}
.acc-toggle::before, .acc-toggle::after {
  content: "";
  position: absolute;
  background: var(--paper);
  border-radius: 1px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease-out), opacity .25s ease;
}
.acc-toggle::before { width: 14px; height: 1.5px; }
.acc-toggle::after { width: 1.5px; height: 14px; }
.acc-item[open] > summary .acc-toggle::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.acc-item:hover .acc-toggle { background: color-mix(in srgb, var(--svc, var(--brand)) 12%, transparent); border-color: var(--svc, var(--brand)); }
.acc-item[open] .acc-toggle { background: var(--svc, var(--brand)); border-color: var(--svc, var(--brand)); }
.acc-item[open] .acc-toggle::before { background: var(--ink); }

.acc-body {
  padding: 0 8px clamp(28px, 3.4vw, 44px) 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(20px, 3vw, 56px);
  align-items: start;
}
.acc-body p {
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.35;
  max-width: 38ch;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.acc-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mute);
}
.acc-list li {
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}
.acc-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 5px; height: 5px;
  background: var(--brand);
  border-radius: 50%;
}
.acc-link {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-top: 8px;
  display: inline-flex;
  align-self: start;
  width: max-content;
}
.acc-link:hover { color: var(--brand-soft); }
@media (max-width: 820px) {
  .acc-item > summary { grid-template-columns: 40px 1fr 40px; gap: 14px; }
  .acc-cat { display: none; }
  .acc-body { grid-template-columns: 1fr; padding-left: 16px; padding-right: 0; }
  .acc-list { grid-template-columns: 1fr; }
}

/* OS Diagram */
.os {
  margin-top: 56px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}
.os .os-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.os .os-text {
  font-family: var(--display);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.3;
}
.os .os-text em { color: var(--acid); font-style: italic; }
@media (max-width: 700px) {
  .os { grid-template-columns: 1fr; gap: 14px; }
}

/* -------- CLIENTS -------- */
.clients {
  background: transparent;
  color: inherit;
  padding-bottom: clamp(16px, 2vw, 28px);
}
.clients .sect-head .lede { color: inherit; opacity: 0.6; }
/* Full-width, left-aligned header for Featured Work */
.clients-head {
  display: block;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.clients-head h2 {
  max-width: none;
  margin-top: 14px;
}
.clients-head .lede {
  max-width: none;
  margin-top: 18px;
  font-size: clamp(18px, 1.6vw, 24px);
}
.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.featured-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 3vw, 40px);
}
/* this button sits on the scroll-driven 02→03 theme fade, so it must
   follow the body's interpolated text colour, not a fixed section colour */
.featured-cta .btn-ghost {
  color: inherit;
  border-color: color-mix(in srgb, currentColor 26%, transparent);
}
.featured-cta .btn-ghost:hover {
  border-color: currentColor;
  background: color-mix(in srgb, currentColor 7%, transparent);
}
.client {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 2px;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
  outline: none;
}
.client-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter .6s ease;
  will-change: transform;
}
/* permanent, gentle bottom veil so white logos stay legible at rest */
.client-veil {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(195deg, rgba(10,10,11,0) 55%, rgba(10,10,11,0.55) 100%);
  pointer-events: none;
}
/* client logo, locked bottom-right, always visible */
.client-logo {
  position: absolute;
  right: 22px; bottom: 20px;
  z-index: 4;
  width: auto;
  max-width: 38%;
  max-height: 30px;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.55));
  pointer-events: none;
}
.client:hover .client-img,
.client:focus-visible .client-img {
  transform: scale(1.1);
  filter: brightness(0.78) saturate(0.92);
}
.client-scrim {
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(184deg, rgba(10,10,11,0) 30%, rgba(10,10,11,0.5) 60%, rgba(10,10,11,0.92) 100%);
  opacity: 0;
  transition: opacity .55s ease;
}
.client:hover .client-scrim,
.client:focus-visible .client-scrim { opacity: 1; }
.client-stat {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 26px;
  z-index: 3;
  color: #fff;
  pointer-events: none;
}
.stat-num {
  display: flex;
  align-items: baseline;
  font-family: var(--display);
  font-size: clamp(40px, 3vw, 58px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--acid);
  opacity: 0;
  transform: translateY(16px);
  transition: transform .55s var(--ease-out) .06s, opacity .45s ease .06s;
}
.stat-value { font-variant-numeric: tabular-nums; }
.stat-suffix { font-size: 0.55em; margin-left: 2px; }
.stat-rule {
  height: 2px;
  width: 36px;
  background: var(--acid);
  margin: 12px 0 10px;
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform .6s var(--ease-out) .16s, opacity .3s ease .16s;
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.92);
  max-width: 20ch;
  text-wrap: pretty;
  opacity: 0;
  transform: translateY(14px);
  transition: transform .55s var(--ease-out) .2s, opacity .45s ease .2s;
}
.client:hover .stat-num,
.client:hover .stat-label,
.client:focus-visible .stat-num,
.client:focus-visible .stat-label {
  opacity: 1;
  transform: translateY(0);
}
.client:hover .stat-rule,
.client:focus-visible .stat-rule {
  opacity: 1;
  transform: scaleX(1);
}
@media (hover: none) {
  /* touch: tiles stay calm at rest, then the scrim darkens, the image
     eases in and the stat counts up as each tile scrolls into view
     (class added by clients-data.js). */
  .client-scrim {
    opacity: 0;
    background: linear-gradient(184deg, rgba(10,10,11,0) 30%, rgba(10,10,11,0.5) 60%, rgba(10,10,11,0.92) 100%);
  }
  .client.cstat-in .client-scrim { opacity: 1; }
  .client.cstat-in .client-img { transform: scale(1.07); filter: brightness(0.8) saturate(0.92); }
  .client.cstat-in .stat-num,
  .client.cstat-in .stat-label { opacity: 1; transform: translateY(0); }
  .client.cstat-in .stat-rule { opacity: 1; transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .client-img,
  .client-scrim,
  .stat-num,
  .stat-rule,
  .stat-label { transition-duration: 0.01s; transition-delay: 0s; }
}
@media (max-width: 1000px) {
  .client-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .client-grid { grid-template-columns: 1fr; }
  .client { aspect-ratio: 3 / 2; }
}
.clients-foot {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
@media (max-width: 560px) {
  .clients-foot { justify-content: center; }
}

/* -------- STATS -------- */
.stats {
  background: var(--ink);
  padding: clamp(72px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  align-items: start;
}
.stat-big .n {
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-big .n .unit { font-size: 0.5em; color: var(--acid); }
.stat-big .l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 14px;
  max-width: 24ch;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* -------- YOUTUBE COLUMNS -------- */
.youtube {
  background: var(--ink);
  padding: clamp(72px, 9vw, 120px) 0;
  position: relative;
  overflow: hidden;
}
.youtube .wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}
.yt-copy h2 {
  font-family: var(--display);
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.yt-copy h2 em { color: var(--acid); font-style: italic; }
.yt-copy p { color: var(--mute); max-width: 42ch; margin-bottom: 28px; }
.yt-handle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  margin-bottom: 28px;
}
.yt-handle .yt-mark {
  width: 18px; height: 18px;
  background: #FF0000;
  border-radius: 4px;
  display: grid; place-items: center;
}
.yt-handle .yt-mark::after {
  content: "";
  border-left: 6px solid #fff;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-left: 2px;
}
.yt-stage {
  position: relative;
  height: clamp(520px, 70vh, 680px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
}
.yt-grid {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.yt-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform;
}
.yt-col.up { animation: scrollUp 38s linear infinite; }
.yt-col.down { animation: scrollDown 38s linear infinite; }
.yt-stage:hover .yt-col { animation-play-state: paused; }
.yt-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  flex-shrink: 0;
  transition: transform .3s ease;
}
.yt-card:hover { transform: translateY(-2px); }
.yt-thumb {
  position: relative;
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  color: #fff;
}
.yt-thumb .play-circle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  opacity: 0;
  transition: opacity .3s ease;
}
.yt-card:hover .play-circle { opacity: 1; }
.yt-thumb .play-circle::before {
  content: "";
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  position: absolute;
  backdrop-filter: blur(6px);
}
.yt-thumb .play-circle::after {
  content: "";
  position: relative;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.yt-thumb .dur {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}
.yt-title {
  padding: 12px 14px 14px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.yt-meta {
  padding: 0 14px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  gap: 10px;
}
@media (max-width: 900px) {
  .youtube .wrap { grid-template-columns: 1fr; }
}

/* -------- TESTIMONIALS -------- */
.testimonials {
  background: var(--paper);
  color: var(--ink);
}
.testimonials .sect-head .lede { color: var(--mute-dark); }
.t-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 16px;
}
.t-card {
  background: var(--bone);
  border: 1px solid var(--line-dark);
  padding: 32px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.t-card.dark {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
}
.t-card.dark .t-name { color: var(--paper); }
.t-card.dark .t-role { color: var(--mute); }
.t-card.dark blockquote { color: var(--paper); }
.t-card blockquote {
  font-family: var(--display);
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.t-card.feature blockquote { font-size: clamp(24px, 2.2vw, 36px); }
.t-quote-mark {
  font-family: var(--display);
  font-style: italic;
  color: var(--acid);
  font-size: 56px;
  line-height: 0;
  height: 0;
  display: inline-block;
}
.t-attrib {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.t-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #888, #333);
  flex-shrink: 0;
}
.t-name { font-weight: 500; font-size: 14px; }
.t-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--mute-dark);
  margin-top: 2px;
}
.t-result {
  padding: 14px 16px;
  background: var(--ink);
  color: var(--acid);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.t-card.dark .t-result { background: rgba(255,255,255,0.06); }
@media (max-width: 1000px) { .t-grid { grid-template-columns: 1fr 1fr; } .t-card.feature { grid-column: 1 / -1; } }
@media (max-width: 640px) { .t-grid { grid-template-columns: 1fr; } .t-card.feature { grid-column: auto; } }

/* -------- INSIGHTS -------- */
.insights { background: var(--ink); }
.insights-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
  gap: 32px;
}
.insights-head h2 {
  font-family: var(--display);
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.posts {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.post {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s ease, background .3s ease;
  background: var(--ink);
}
.post:hover { border-color: var(--paper); }
.post-cover {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.post.feature .post-cover { aspect-ratio: 4/3; }
.post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.post-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  white-space: nowrap;
}
.post-meta .dot { width: 3px; height: 3px; background: var(--mute); border-radius: 50%; }
.post h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.post.feature h3 { font-size: clamp(28px, 2.6vw, 40px); }
.post p { color: var(--mute); font-size: 14px; line-height: 1.5; }
.post-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--mute); gap: 12px; }
.post-foot .author { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.post-foot .avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--acid), #888); }
@media (max-width: 1000px) {
  .posts { grid-template-columns: 1fr 1fr; }
  .post.feature { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } }

/* -------- CTA -------- */
.cta {
  background: var(--acid);
  color: #ffffff;
  padding: clamp(48px, 6vw, 84px) 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(10,10,11,0.08), transparent),
    radial-gradient(700px 500px at 10% 100%, rgba(10,10,11,0.06), transparent);
}
.cta .wrap { position: relative; }
.cta h2 {
  font-family: var(--display);
  font-size: clamp(56px, 10vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 40px;
}
.cta h2 em { font-style: italic; }
.cta-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.cta-sub {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 20ch;
  color: #ffffff;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn {
  background: var(--ink);
  color: var(--paper);
  padding: 20px 30px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.55);
}
.cta .btn .arr {
  width: 34px;
  height: 34px;
  font-size: 16px;
}
.cta .btn:hover { background: #1f1f23; transform: translateY(-2px); }
.cta .btn .arr { background: transparent; color: currentColor; }
.cta .btn-ghost { background: transparent; color: var(--ink); border-color: rgba(10,10,11,0.2); }
.cta .btn-ghost:hover { border-color: var(--ink); background: rgba(10,10,11,0.04); }
.cta-fineprint {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid rgba(10,10,11,0.2);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cta-fineprint b { display: block; font-family: var(--display); font-size: 22px; text-transform: none; letter-spacing: -0.01em; margin-bottom: 6px; font-weight: 400; }
@media (max-width: 800px) {
  .cta-row { grid-template-columns: 1fr; }
  .cta-fineprint { grid-template-columns: 1fr; gap: 20px; }
}

/* -------- FOOTER -------- */
.footer {
  background: var(--ink);
  padding: 80px 0 40px;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}
.foot-brand h3 {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  font-weight: 700;
}
.foot-brand h3 em { font-style: italic; color: var(--acid); }
.foot-logo { height: clamp(40px, 5vw, 60px); width: auto; margin-bottom: 24px; display: block; }
.foot-brand p { color: #ffffff; max-width: 36ch; margin-bottom: 24px; font-size: 15px; }
.foot-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 1;
  margin-bottom: 18px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col li { font-size: 15px; color: #ffffff; opacity: 1; }
.foot-col a { font-size: 15px; color: #ffffff; opacity: 1; }
.foot-col a:hover { opacity: 1; color: var(--acid); }
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 18px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; color: var(--paper); opacity: 0.85; }
.foot-col a:hover { opacity: 1; color: var(--acid); }
.foot-address {
  margin-top: 24px;
  font-size: 12px;
  color: #ffffff;
  opacity: 1;
  line-height: 1.6;
}
/* Ensure all footer non-link text is white */
.footer { color: #ffffff; }
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mute);
  text-transform: uppercase;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-bottom .locale { display: inline-flex; gap: 6px; align-items: center; }
.foot-bottom .locale .flag {
  width: 16px; height: 12px;
  background: linear-gradient(90deg, #009A49 33.3%, #fff 33.3% 66.6%, #FF7900 66.6%);
  border-radius: 1px;
}
@media (max-width: 900px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

/* Big lettermark word */
.bigword {
  font-family: var(--display);
  font-size: clamp(120px, 25vw, 380px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink-2);
  user-select: none;
  pointer-events: none;
  margin-top: 80px;
  padding: 0 var(--gutter);
  text-align: center;
}


/* ========================================================
   GROWTH AUDIT CTA — shared closing section (all pages)
   ======================================================== */
.ab-cta {
  position: relative;
  background: var(--brand);
  color: #fff;
  padding: clamp(90px, 13vw, 200px) 0;
  overflow: hidden;
}
.ab-cta::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 62%);
  pointer-events: none;
}
.ab-cta::after {
  content: "";
  position: absolute;
  bottom: -40%; left: -15%;
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(10,10,11,0.16), transparent 62%);
  pointer-events: none;
}
.ab-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ab-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans, 'Hanken Grotesk', sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: clamp(20px, 3vw, 32px);
}
.ab-cta-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.ab-cta-h2 {
  font-family: 'Lato', var(--display, sans-serif);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 clamp(36px, 4.5vw, 56px);
}
.ab-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: #fff;
  font-family: 'Lato', var(--sans, sans-serif);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(15px, 1.3vw, 19px);
  padding: 22px 44px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 20px 50px -18px rgba(10,10,11,0.55);
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s ease;
}
.ab-cta-btn .arr { transition: transform .25s cubic-bezier(.22,.61,.36,1); }
.ab-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 28px 60px -18px rgba(10,10,11,0.65); }
.ab-cta-btn:hover .arr { transform: translateX(6px); }
/* four pillars framing the corners */
.ab-pillar {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Lato', var(--sans, sans-serif);
  font-weight: 900;
  font-size: clamp(15px, 1.35vw, 21px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.ab-pillar-dot {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--pc, #fff);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.18), 0 0 18px var(--pc, #fff);
}
.ab-pillar--tl { top: clamp(40px, 6vw, 72px); left: clamp(28px, 5vw, 80px); }
.ab-pillar--tr { top: clamp(40px, 6vw, 72px); right: clamp(28px, 5vw, 80px); }
.ab-pillar--bl { bottom: clamp(40px, 6vw, 72px); left: clamp(28px, 5vw, 80px); }
.ab-pillar--br { bottom: clamp(40px, 6vw, 72px); right: clamp(28px, 5vw, 80px); }
@media (max-width: 760px) {
  .ab-cta .wrap { display: flex; flex-direction: column; align-items: center; }
  .ab-pillar { position: static; margin-top: 14px; }
  .ab-cta-inner { order: -1; }
}
