/* ====== Creative Scope — SM page ====== */
/* Reuses wd-* patterns (pillars, process, faq) from web-design.css.
   Scoped styles below are for SM-specific blocks only. */

/* ========== Hero ========== */
.sm-hero {
  padding-top: clamp(24px, 3vw, 48px) !important;
  padding-bottom: clamp(32px, 4vw, 64px) !important;
}
.sm-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(20px, 2.5vw, 32px);
  flex-wrap: wrap;
  gap: 12px;
}
.sm-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.sm-hero-copy {
  position: relative;
  z-index: 2;
}
.sm-hero-head {
  font-size: clamp(44px, 4.6vw, 78px);
  margin-top: 16px;
  letter-spacing: -0.035em;
}
.sm-hero-head .line > span { white-space: nowrap; }

/* Safety: ensure hero text renders — kill animations, show statically */
.sm-hero-head .line { overflow: visible !important; }
.sm-hero-head .line span,
.sm-hero-head .line > span {
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
}
.sm-hero-lede {
  margin: 24px 0 22px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 52ch;
}

/* ----- Hero animated ranking viz (replaces SERP mock) ----- */
.sm-hero-viz {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--bg-2) 90%, transparent) 0%,
    var(--bg-2) 100%);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
  position: relative;
}
.sm-hero-viz::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--border) 55%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--border) 55%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.35;
  pointer-events: none;
}
.sm-viz-chrome {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 70%, var(--bg-2));
}
.sm-viz-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 12px;
  color: var(--fg-soft);
  min-width: 0;
}
.sm-viz-query {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 1px solid transparent;
  animation: smVizType 5s steps(18, end) infinite;
}
@keyframes smVizType {
  0%   { max-width: 0; }
  30%  { max-width: 200px; }
  85%  { max-width: 200px; }
  100% { max-width: 0; }
}
.sm-viz-cursor {
  width: 1.5px; height: 12px;
  background: var(--accent);
  animation: smVizBlink 1s steps(2) infinite;
}
@keyframes smVizBlink { 50% { opacity: 0; } }
.sm-viz-loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}
.sm-viz-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
  animation: smVizLivePulse 1.8s ease-in-out infinite;
}
@keyframes smVizLivePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }
  50%      { box-shadow: 0 0 0 5px rgba(34,197,94,0.08); }
}

/* Chart */
.sm-viz-chart {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px 1fr;
  padding: 24px 20px 18px;
  min-height: 280px;
}
.sm-viz-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 9.5px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  padding: 4px 10px 26px 0;
  text-align: right;
  border-right: 1px dashed var(--border);
}
.sm-viz-plot {
  position: relative;
  padding-left: 14px;
  padding-bottom: 22px;
}
.sm-viz-grid {
  position: absolute;
  inset: 0 0 22px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.sm-viz-grid span {
  display: block;
  height: 1px;
  background: color-mix(in oklab, var(--border) 65%, transparent);
}
.sm-viz-svg {
  position: absolute;
  inset: 0 0 22px 14px;
  width: calc(100% - 14px);
  height: calc(100% - 22px);
  overflow: visible;
}
.sm-viz-area {
  opacity: 0;
  animation: smVizAreaIn 1.6s 0.4s ease forwards;
}
@keyframes smVizAreaIn { to { opacity: 1; } }
.sm-viz-line {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: smVizLineDraw 2.8s 0.2s cubic-bezier(.6,0,.3,1) forwards;
  filter: drop-shadow(0 0 8px color-mix(in oklab, var(--accent) 45%, transparent));
}
@keyframes smVizLineDraw { to { stroke-dashoffset: 0; } }
.sm-viz-dot {
  fill: var(--accent);
  opacity: 0;
  animation: smVizDotIn 0.3s ease forwards;
}
.sm-viz-dot:nth-of-type(1) { animation-delay: 0.8s; }
.sm-viz-dot:nth-of-type(2) { animation-delay: 1.2s; }
.sm-viz-dot:nth-of-type(3) { animation-delay: 1.6s; }
.sm-viz-dot:nth-of-type(4) { animation-delay: 2.0s; }
.sm-viz-dot:nth-of-type(5) { animation-delay: 2.4s; }
.sm-viz-dot:nth-of-type(6) { animation-delay: 2.8s; }
@keyframes smVizDotIn { to { opacity: 1; } }
.sm-viz-dot-live {
  filter: drop-shadow(0 0 10px var(--accent));
}
.sm-viz-dot-pulse {
  fill: var(--accent);
  opacity: 0;
  transform-origin: 400px 15px;
  animation: smVizPing 1.8s 3.2s ease-out infinite;
}
@keyframes smVizPing {
  0%   { opacity: 0.8; r: 5; }
  100% { opacity: 0; r: 18; }
}

/* #1 badge on chart */
.sm-viz-badge {
  position: absolute;
  top: -6px;
  right: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 14px 10px 14px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 8px 24px color-mix(in oklab, var(--accent) 45%, transparent);
  opacity: 0;
  transform: translateY(-6px) scale(0.9);
  animation: smVizBadgeIn 0.5s 3.0s cubic-bezier(.6,1.5,.4,1) forwards;
  z-index: 2;
}
@keyframes smVizBadgeIn { to { opacity: 1; transform: translateY(0) scale(1); } }
.sm-viz-badge-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2px;
}
.sm-viz-badge-k {
  display: block;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.sm-viz-xaxis {
  position: absolute;
  left: 14px;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
}

/* Keyword ticker */
.sm-viz-ticker {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 14px 18px 16px;
  background: color-mix(in oklab, var(--bg) 55%, var(--bg-2));
}
.sm-viz-ticker-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 10px;
}
.sm-viz-ticker-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: smVizLivePulse 1.8s ease-in-out infinite;
}
.sm-viz-kws {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sm-viz-kw {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  border-radius: 6px;
  background: var(--bg);
  opacity: 0;
  transform: translateX(-6px);
  animation: smVizKwIn 0.5s ease forwards;
}
.sm-viz-kw:nth-child(1) { animation-delay: 3.3s; }
.sm-viz-kw:nth-child(2) { animation-delay: 3.5s; }
.sm-viz-kw:nth-child(3) { animation-delay: 3.7s; }
@keyframes smVizKwIn { to { opacity: 1; transform: translateX(0); } }
.sm-viz-kw-q {
  font-size: 12px;
  color: var(--fg-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sm-viz-kw-arrow {
  font-size: 12px;
  color: #22c55e;
  font-weight: 600;
}
.sm-viz-kw-d {
  font-size: 11px;
  color: #22c55e;
  font-weight: 500;
}

/* ========== Pillars (tight overrides) ========== */
.sm-pillars { padding: 120px 0 100px; }
.sm-pillars-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: stretch;
  margin-top: clamp(40px, 5vw, 80px);
}
.sm-pillars-fig {
  position: sticky;
  top: 100px;
  margin: 0;
  align-self: flex-start;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 720px;
}
.sm-pillars-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-pillars-stack { display: flex; flex-direction: column; }
.sm-pillars-stack .sm-pillar-row {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.sm-pillars-stack .sm-pillar-row:first-child { border-top: none; padding-top: 4px; }
@media (max-width: 900px) {
  .sm-pillars-split { grid-template-columns: 1fr; }
  .sm-pillars-fig { position: static; max-height: 480px; }
}

/* ========== Services breakdown ========== */
.sm-services {
  padding: 120px 0 100px;
  background: var(--bg-2);
}
.sm-services-head {
  max-width: 760px;
  margin-bottom: 60px;
}
.sm-services-lede {
  margin-top: 20px;
  font-size: 17px;
  color: var(--fg-soft);
  max-width: 54ch;
}
.sm-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.sm-service {
  padding: 36px 32px 36px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: background 220ms ease;
  background: var(--bg);
}
.sm-service:hover { background: var(--bg-2); }
.sm-service-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.sm-service-n {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
}
.sm-service-chip {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  color: var(--accent-ink);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
}
[data-theme="dark"] .sm-service-chip {
  color: var(--accent);
  background: rgba(214,255,61,0.12);
  border-color: rgba(214,255,61,0.3);
}
.sm-service-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 4px 0 2px;
  text-wrap: balance;
}
.sm-service-body {
  color: var(--fg-soft);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 8px;
}
.sm-service-bullets {
  list-style: none;
  padding: 0; margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sm-service-bullets li {
  font-size: 13.5px;
  color: var(--fg-soft);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}
.sm-service-bullets li:last-child { border-bottom: none; }
.sm-service-note {
  font-size: 10.5px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* ----- 6th tile: image-cover editorial ----- */
.sm-service-image {
  padding: 0;
  overflow: hidden;
  background-image: url("assets/social-media/scope-6.jpg");
  background-size: cover;
  background-position: center;
  min-height: 480px;
  color: #fff;
  transition: none;
}
.sm-service-image:hover {
  background-image: url("assets/social-media/scope-6.jpg");
  background-color: transparent;
  background-size: cover;
  background-position: center;
}
.sm-service-image-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.75) 100%);
}
.sm-service-image-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.sm-service-image .sm-service-n { color: rgba(255,255,255,0.7); }
.sm-service-image .sm-service-chip {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.sm-service-image-body { display: flex; flex-direction: column; gap: 14px; }
.sm-service-image-title {
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(30px, 2.6vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.sm-service-image-lede {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  max-width: 44ch;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

/* ========== Process (tight overrides) ========== */
.sm-process { padding: 100px 0; }

/* ========== Results ========== */
.sm-results {
  padding: 120px 0 100px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.sm-results::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/seo/mountains.jpg") center/cover no-repeat;
  z-index: -2;
}
.sm-results::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      var(--bg) 0%,
      color-mix(in oklab, var(--bg) 92%, transparent) 10%,
      color-mix(in oklab, var(--bg) 78%, transparent) 28%,
      color-mix(in oklab, var(--bg) 72%, transparent) 55%,
      color-mix(in oklab, var(--bg) 82%, transparent) 80%,
      var(--bg) 100%);
  z-index: -1;
}
.sm-results-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 60px;
}
.sm-results-note {
  font-size: 14px;
  color: var(--fg-soft);
  line-height: 1.55;
  max-width: 36ch;
  padding-bottom: 6px;
  margin: 0;
}
.sm-wins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin-bottom: 96px;
}
.sm-win {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
  transition: background 220ms ease;
}
.sm-win:hover { background: var(--bg-2); }
.sm-win-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.sm-win-num { font-size: 11px; letter-spacing: 0.12em; color: var(--fg-muted); }
.sm-win-sector { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.sm-win-metric {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.sm-win-k {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(48px, 5vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg);
}
.sm-win-kl {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.sm-win-client {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.sm-win-tag {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-soft);
  margin: 0;
  text-wrap: pretty;
}
.sm-win-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  margin-top: auto;
}
.sm-win-kpi {
  padding-right: 10px;
  border-right: 1px solid var(--border);
}
.sm-win-kpi:last-child { border-right: none; padding-right: 0; }
.sm-win-kpi-k {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.sm-win-kpi-l {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fg-muted);
  margin-top: 4px;
}
.sm-pillars .wd-pillar-tags li { white-space: nowrap; }

/* ----- What we measure ----- */
.sm-measure {
  padding-top: 60px;
  border-top: 1px solid var(--border);
}
.sm-measure-head {
  max-width: 680px;
  margin-bottom: 48px;
}
.sm-measure-h {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 16px 0 0;
  text-wrap: balance;
}
.sm-measure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--fg);
}
.sm-measure-item {
  padding: 24px 20px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sm-measure-item:last-child { border-right: none; }
.sm-measure-n {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
}
.sm-measure-k {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.sm-measure-s {
  font-size: 13px;
  color: var(--fg-soft);
  line-height: 1.5;
  max-width: 24ch;
}

/* ========== FAQ (tight overrides) ========== */
.sm-faq { padding: 120px 0 100px; }

/* ========== Responsive ========== */
@media (max-width: 1100px) {
  .sm-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .sm-hero-viz { max-width: 560px; }
  .sm-services-grid { grid-template-columns: repeat(2, 1fr); }
  .sm-results-head { grid-template-columns: 1fr; }
  .sm-wins { grid-template-columns: 1fr; }
  .sm-measure-grid { grid-template-columns: repeat(2, 1fr); }
  .sm-measure-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 720px) {
  .sm-hero { padding: 96px 0 48px !important; }
  .sm-hero-head { font-size: clamp(44px, 10vw, 64px); }
  .sm-viz-chart { min-height: 220px; }
  .sm-services { padding: 80px 0 60px; }
  .sm-services-grid { grid-template-columns: 1fr; }
  .sm-service { padding: 28px 22px; }
  .sm-results { padding: 80px 0 60px; }
  .sm-measure-grid { grid-template-columns: 1fr; }
  .sm-measure-item { border-right: none; border-bottom: 1px solid var(--border); }
  .sm-measure-item:last-child { border-bottom: none; }
  .sm-win-kpis { grid-template-columns: repeat(3, 1fr); }
  .sm-win-k { font-size: 48px; }
}
@media (max-width: 480px) {
  .sm-viz-kw-q { font-size: 11px; }
  .sm-win-kpis { grid-template-columns: 1fr 1fr; gap: 14px; }
  .sm-win-kpi:nth-child(2) { border-right: none; }
  .sm-win-kpi:nth-child(3) { border-right: none; grid-column: 1 / -1; padding-top: 12px; border-top: 1px dashed var(--border); }
}

/* ================================================================
   Sm-Gallery — phone mockup grid (inserted between services & process)
   ================================================================ */
.sm-gallery {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sm-gallery-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.sm-gallery-note {
  color: var(--fg-soft);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  max-width: 52ch;
  margin: 0;
}

.sm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 1.8vw, 28px);
  align-items: end;
}
.sm-gallery-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .4s cubic-bezier(.2,.7,.1,1);
}
.sm-gallery-item:hover { transform: translateY(-6px); }
/* Alternate vertical offset so the row has editorial rhythm */
.sm-gallery-item-1 { transform: translateY(24px); }
.sm-gallery-item-1:hover { transform: translateY(18px); }
.sm-gallery-item-3 { transform: translateY(12px); }
.sm-gallery-item-3:hover { transform: translateY(6px); }
.sm-gallery-item-5 { transform: translateY(32px); }
.sm-gallery-item-5:hover { transform: translateY(26px); }

.sm-gallery-img {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 18px;
  background: color-mix(in oklab, var(--bg-2) 70%, transparent);
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}
.sm-gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sm-gallery-cap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}
.sm-gallery-cap-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.sm-gallery-client {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.sm-gallery-handle {
  font-size: 10.5px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}
.sm-gallery-tag {
  font-size: 10.5px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sm-gallery-foot {
  margin-top: clamp(32px, 4vw, 56px);
  display: flex;
  justify-content: center;
}

@media (max-width: 1100px) {
  .sm-gallery-head { grid-template-columns: 1fr; gap: 24px; }
  .sm-gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .sm-gallery-item-4, .sm-gallery-item-5 { display: none; }
  .sm-gallery-item-1, .sm-gallery-item-3 { transform: none; }
}
@media (max-width: 760px) {
  .sm-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .sm-gallery-item-3 { display: none; }
  .sm-gallery-item { transform: none !important; }
}

/* ================================================================
   Sm-Win — updated card layout with phone mockup on the left
   ================================================================ */
/* Mockup sits above the body content — PNG is a composed phone render */
.sm-win-mock {
  position: relative;
  width: 100%;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  padding: 0;
}
.sm-win-mock img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.35));
}
.sm-win-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

@media (max-width: 1100px) {
  .sm-win-mock { height: 300px; }
}
@media (max-width: 760px) {
  .sm-win-mock { height: 380px; }
}

/* ============= MOBILE FIXES — additional (≤760px) ============= */
@media (max-width: 760px) {
  .sm-services-grid,
  .sm-results-grid,
  .sm-pillars-stack { grid-template-columns: 1fr !important; gap: 20px; }
  .sm-hero-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .sm-measure-grid { grid-template-columns: 1fr 1fr !important; gap: 16px; }
  .sm-hero-viz { display: none; }
}
