/*
Theme Name: Syntri Labs
Theme URI: https://syntrilabs.com
Author: Syntri Labs Inc.
Author URI: https://syntrilabs.com
Description: Custom theme for Syntri Labs — Calgary-based AI-first marketing and automation agency.
Version: 1.0.0
License: Proprietary
Text Domain: syntri-labs
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,500;1,600&display=swap');

/* ── Mobile safety (global) ── */
html, body { overflow-x: hidden; max-width: 100%; }
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; word-break: break-word; }
section, header, footer, nav { max-width: 100%; box-sizing: border-box; }
img, video, iframe { max-width: 100%; height: auto; }

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Design tokens ── */
:root {
  --black:            #0A0A0A;
  --off-white:        #F5F5F3;
  --white:            #FFFFFF;
  --gold:             #C8A96E;
  --gold-deep:        #9E7E45;
  --accent-red:       #C14545;
  --accent-red-soft:  #F7E6E6;
  --grey-mid:         #6B6B6B;
  --grey-subtle:      #909088;
  --grey-dark:        #3A3A3A;
  --grey-light:       #D4D4D4;
  --body-on-dark:     #AEADA6;
  --body-on-light:    #4A4947;

  /* Typography scale */
  --font-display: 52px;
  --font-h1:      48px;
  --font-h2:      28px;
  --font-h3:      20px;
  --font-small:   14px;
  --font-label:   11px;
  --lh-tight:     1.05;
  --lh-heading:   1.1;
  --lh-body:      1.65;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 24px 80px;
  background: var(--black);
  border-bottom: 1px solid var(--grey-dark);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-left: auto;
  margin-right: 32px;
}

.nav-link {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--body-on-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--white); }

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img { height: 28px; width: auto; filter: invert(1); mix-blend-mode: lighten; }

.nav-cta {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  background: var(--gold);
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
  letter-spacing: 0.03em;
}
.nav-cta:hover { background: var(--gold-deep); }

/* ── Hamburger & Mobile menu ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 80px 24px 48px;
}
.mobile-menu.is-open { display: flex; }

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  padding: 8px;
}
.mobile-nav-link {
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--gold); }
.mobile-nav-cta {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  background: var(--gold);
  padding: 16px 40px;
  text-decoration: none;
  margin-top: 8px;
  transition: background 0.2s;
}
.mobile-nav-cta:hover { background: var(--gold-deep); }

/* ── Shared layout ── */
section { padding: 120px 80px; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

/* ── Typography ── */
.label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--grey-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

h1 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 52px;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.01em;
}

h2 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.01em;
}

h3 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: var(--white);
}

p {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--body-on-dark);
  line-height: 1.7;
}

/* ── Footer ── */
footer {
  padding: 40px 0;
  border-top: 1px solid rgba(200, 169, 110, 0.25);
}
footer > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo-link { display: flex; align-items: center; text-decoration: none; }
.footer-logo-link img { height: 24px; width: auto; filter: invert(1); mix-blend-mode: lighten; }
.footer-social { display: flex; gap: 20px; align-items: center; }
.footer-social a { color: var(--body-on-dark); transition: color 0.2s; display: flex; align-items: center; }
.footer-social a:hover { color: var(--white); }
footer p { font-size: 12px; color: var(--body-on-dark); }
footer a { color: var(--body-on-dark); text-decoration: none; }
footer a:hover { color: var(--white); }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none !important; }
  nav > .nav-cta { display: none !important; }
  .nav-hamburger { display: flex !important; }
  section { padding: 80px 24px; }
  .container { padding: 0 24px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  footer > .container { flex-direction: column; gap: 24px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 24px; }
}

/* ──────────────────────────────────────────────────────────────────── */
/* CASE STUDIES INDEX PAGE (/case-studies/)                             */
/* ──────────────────────────────────────────────────────────────────── */

:where(body.cs-scope) #page-hero {
  padding-top: 160px;
  padding-bottom: 80px;
  background: var(--black);
  border-bottom: 1px solid var(--grey-dark);
}
:where(body.cs-scope) #page-hero h1 { max-width: 880px; margin-bottom: 32px; }
:where(body.cs-scope) #page-hero .lead {
  font-size: 18px; max-width: 720px; line-height: 1.7;
  color: var(--body-on-dark);
}

/* Anchor jump bar */
:where(body.cs-scope) #industries {
  padding: 48px 0 0;
  background: var(--black);
}
:where(body.cs-scope) .industries-wrap {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--grey-dark);
}
:where(body.cs-scope) .industries-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px; font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-right: 18px;
}
:where(body.cs-scope) .industry-jump {
  font-size: 13px; font-weight: 500;
  color: var(--body-on-dark);
  text-decoration: none;
  padding: 9px 18px;
  border: 1px solid var(--grey-dark);
  border-radius: 40px;
  transition: all 0.2s;
}
:where(body.cs-scope) .industry-jump:hover {
  color: var(--white);
  border-color: var(--gold);
}

/* Industry sections */
:where(body.cs-scope) .industry-section {
  padding: 96px 0;
  background: var(--black);
  border-top: 1px solid var(--grey-dark);
}
:where(body.cs-scope) .industry-section:first-of-type {
  padding-top: 80px;
  border-top: none;
}
:where(body.cs-scope) .industry-head {
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--grey-dark);
}
:where(body.cs-scope) .industry-eyebrow {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px; font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
:where(body.cs-scope) .industry-head h2 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 56px);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 0;
  max-width: 880px;
}
/* 2-column: intro left, case card right */
:where(body.cs-scope) .industry-body {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: start;
}
:where(body.cs-scope) .industry-intro p {
  font-size: 15px;
  color: var(--body-on-dark);
  line-height: 1.75;
  margin-bottom: 14px;
}
:where(body.cs-scope) .industry-intro p:last-child { margin-bottom: 0; }
:where(body.cs-scope) .industry-intro strong { color: var(--white); font-weight: 500; }
:where(body.cs-scope) .industry-cases {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Case cards */
:where(body.cs-scope) .case-card {
  border: 1px solid var(--grey-dark);
  background: #0D0D0D;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
  overflow: hidden;
}
:where(body.cs-scope) .case-card:hover {
  border-color: var(--gold); transform: translateY(-2px);
}
:where(body.cs-scope) .case-thumb {
  aspect-ratio: 16 / 10;
  background: #161616 center/cover no-repeat;
  border-bottom: 1px solid var(--grey-dark);
  position: relative;
}
:where(body.cs-scope) .case-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
:where(body.cs-scope) .case-body { padding: 32px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
:where(body.cs-scope) .case-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--grey-subtle);
}
:where(body.cs-scope) .case-industry { color: var(--gold); font-weight: 500; }
:where(body.cs-scope) .case-dot { opacity: 0.4; }
:where(body.cs-scope) .case-title {
  font-family: 'Unbounded', sans-serif; font-weight: 700;
  font-size: 22px; line-height: 1.25; color: var(--white);
}
:where(body.cs-scope) .case-summary {
  font-size: 14px; color: var(--body-on-dark); line-height: 1.7;
}
:where(body.cs-scope) .case-metrics {
  display: flex; gap: 24px; padding-top: 20px;
  border-top: 1px solid rgba(200, 169, 110, 0.25); margin-top: auto;
}
:where(body.cs-scope) .case-metric {
  display: flex; flex-direction: column; gap: 4px;
}
:where(body.cs-scope) .case-metric .m-value {
  font-family: 'Unbounded', sans-serif; font-size: 18px;
  font-weight: 700; color: var(--gold); letter-spacing: -0.01em;
}
:where(body.cs-scope) .case-metric .m-label {
  font-size: 10px; color: var(--grey-subtle); text-transform: uppercase;
  letter-spacing: 0.1em;
}
:where(body.cs-scope) .case-link {
  font-size: 12px; font-weight: 500; color: var(--body-on-dark);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-top: 4px; transition: color 0.2s;
}
:where(body.cs-scope) .case-card:hover .case-link { color: var(--gold); }

/* CTA section on case studies page */
:where(body.cs-scope) #cta {
  background: var(--off-white); color: var(--black);
  border-top: 1px solid var(--grey-light);
}
:where(body.cs-scope) #cta h2 { color: var(--black); margin-bottom: 24px; max-width: 680px; }
:where(body.cs-scope) #cta .cta-intro {
  color: var(--body-on-light); font-size: 17px;
  max-width: 640px; margin-bottom: 56px;
}
:where(body.cs-scope) .cta-split {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 0; text-align: left;
}
:where(body.cs-scope) .cta-path { padding: 40px 48px 40px 0; display: flex; flex-direction: column; gap: 14px; }
:where(body.cs-scope) .cta-path + .cta-divider + .cta-path { padding: 40px 0 40px 48px; }
:where(body.cs-scope) .cta-divider { width: 1px; background: var(--grey-light); align-self: stretch; }
:where(body.cs-scope) .cta-path-label {
  font-size: 11px; font-weight: 500; color: var(--body-on-light);
  text-transform: uppercase; letter-spacing: 0.1em;
}
:where(body.cs-scope) .cta-path h3 {
  font-family: 'Unbounded', sans-serif; font-weight: 700;
  font-size: 22px; line-height: 1.2; color: var(--black);
}
:where(body.cs-scope) .cta-path p { color: var(--body-on-light); font-size: 15px; line-height: 1.7; }
:where(body.cs-scope) .cta-btn {
  display: inline-block; font-size: 14px; font-weight: 600;
  color: var(--black); background: var(--gold);
  padding: 16px 36px; text-decoration: none;
  letter-spacing: 0.03em; transition: background 0.2s; align-self: start;
}
:where(body.cs-scope) .cta-btn:hover { background: var(--gold-deep); }
:where(body.cs-scope) .cta-btn-dark {
  display: inline-block; font-size: 14px; font-weight: 500;
  color: var(--body-on-light); background: none;
  border: 1px solid var(--grey-light);
  padding: 16px 36px; text-decoration: none;
  letter-spacing: 0.03em; transition: all 0.2s; align-self: start;
}
:where(body.cs-scope) .cta-btn-dark:hover { border-color: var(--black); color: var(--black); }

@media (max-width: 960px) {
  :where(body.cs-scope) .industry-body { grid-template-columns: 1fr; gap: 32px; }
  :where(body.cs-scope) .industry-section { padding: 64px 0; }
}
@media (max-width: 768px) {
  :where(body.cs-scope) .case-body { padding: 24px; }
  :where(body.cs-scope) .case-metrics { flex-wrap: wrap; gap: 16px; }
  :where(body.cs-scope) .cta-split { grid-template-columns: 1fr; }
  :where(body.cs-scope) .cta-divider { width: auto; height: 1px; }
  :where(body.cs-scope) .cta-path { padding: 32px 0; }
  :where(body.cs-scope) .cta-path + .cta-divider + .cta-path { padding: 32px 0; }
}

/* ──────────────────────────────────────────────────────────────────── */
/* CASE STUDIES STYLES (from original static HTML)                      */
/* ──────────────────────────────────────────────────────────────────── */

:where(body.cs-scope) .breadcrumb {
  font-size: 12px; color: var(--grey-subtle);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 24px;
}
:where(body.cs-scope) .breadcrumb a { color: inherit; text-decoration: none; transition: color 0.2s; }
:where(body.cs-scope) .breadcrumb a:hover { color: var(--gold); }

:where(body.cs-scope) #case-hero {
  padding-top: 180px; padding-bottom: 72px;
  background: var(--black);
  border-bottom: 1px solid var(--grey-dark);
}
:where(body.cs-scope) .case-hero-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 64px; align-items: start;
}
:where(body.cs-scope) .case-hero-left .industry-badge {
  display: inline-block; font-size: 11px; font-weight: 500;
  color: var(--gold); border: 1px solid var(--gold);
  padding: 6px 14px; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 28px;
}
:where(body.cs-scope) .case-hero-left h1 { margin-bottom: 24px; }
:where(body.cs-scope) .case-hero-left .lead {
  font-size: 18px; line-height: 1.7; max-width: 520px;
  color: var(--body-on-dark);
}

:where(body.cs-scope) .case-hero-visual {
  aspect-ratio: 4 / 3;
  background: #161616 center/contain no-repeat;
  border: 1px solid var(--grey-dark);
  display: flex; align-items: center; justify-content: center;
  color: #505050; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 500;
}

:where(body.cs-scope) #glance {
  padding: 56px 80px;
  background: #0D0D0D;
  border-bottom: 1px solid var(--grey-dark);
}
:where(body.cs-scope) .glance-grid {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--grey-dark);
}
:where(body.cs-scope) .glance-cell {
  background: #0D0D0D; padding: 28px 32px;
  display: flex; flex-direction: column; gap: 6px;
}
:where(body.cs-scope) .glance-label {
  font-size: 10px; color: var(--grey-subtle); text-transform: uppercase;
  letter-spacing: 0.12em;
}
:where(body.cs-scope) .glance-value {
  font-family: 'Unbounded', sans-serif; font-size: 15px;
  font-weight: 600; color: var(--white); line-height: 1.4;
}

:where(body.cs-scope) .section-head { margin-bottom: 48px; max-width: 780px; }
:where(body.cs-scope) .section-head h2 { margin-bottom: 16px; }
:where(body.cs-scope) .section-head p { font-size: 17px; color: var(--body-on-dark); }

:where(body.cs-scope) .block {
  padding: 32px 36px;
  border: 1px solid var(--grey-dark);
  background: #0D0D0D;
  margin-bottom: 16px;
}
:where(body.cs-scope) .block h3 { color: var(--white); margin-bottom: 12px; }
:where(body.cs-scope) .block p { font-size: 15px; color: var(--body-on-dark); margin: 0; }

:where(body.cs-scope) .on-light { background: var(--off-white); }
:where(body.cs-scope) .on-light h2 { color: var(--black); }
:where(body.cs-scope) .on-light p { color: var(--body-on-light); }
:where(body.cs-scope) .on-light .block { background: var(--white); border-color: var(--grey-light); }
:where(body.cs-scope) .on-light .block h3 { color: var(--black); }
:where(body.cs-scope) .on-light .block p { color: var(--body-on-light); }
:where(body.cs-scope) .on-light .label { color: var(--body-on-light); }

:where(body.cs-scope) .challenge-intro-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}
:where(body.cs-scope) .challenge-intro-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 260px;
}
:where(body.cs-scope) .challenge-stat-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  color: #C14545;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: 'Unbounded', sans-serif;
}
:where(body.cs-scope) .challenge-stat-label::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #C14545;
}
:where(body.cs-scope) .challenge-stat-img {
  width: 100%;
  border: 1px solid var(--grey-light);
  border-radius: 4px;
  display: block;
}
:where(body.cs-scope) .challenge-stat-caption {
  font-size: 12px;
  color: var(--body-on-light);
  line-height: 1.5;
  font-style: italic;
}
:where(body.cs-scope) .challenge-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
:where(body.cs-scope) .block-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px;
}
:where(body.cs-scope) .block-icon {
  width: 38px; height: 38px;
  background: rgba(193, 69, 69, 0.08);
  border: 1px solid rgba(193, 69, 69, 0.25);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #C14545;
  flex-shrink: 0;
}
:where(body.cs-scope) .block-icon svg { width: 18px; height: 18px; }
@media (max-width: 768px) {
  :where(body.cs-scope) .challenge-intro-grid { grid-template-columns: 1fr; gap: 32px; }
}

:where(body.cs-scope) .phases {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
:where(body.cs-scope) .phase {
  border: 1px solid var(--grey-dark);
  padding: 36px; background: #0D0D0D;
  display: flex; flex-direction: column; gap: 18px;
}
:where(body.cs-scope) .phase-tag {
  display: inline-block; font-size: 10px; color: var(--gold);
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid var(--gold); border-radius: 40px;
  align-self: start;
}
:where(body.cs-scope) .phase h3 { font-size: 20px; line-height: 1.25; }
:where(body.cs-scope) .phase ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
:where(body.cs-scope) .phase ul li {
  font-size: 14px; color: var(--body-on-dark); line-height: 1.6;
  padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-left: 18px; position: relative;
}
:where(body.cs-scope) .phase ul li::before {
  content: '→'; color: var(--gold);
  position: absolute; left: 0; top: 0;
}
:where(body.cs-scope) .phase ul li:last-child { border-bottom: 0; padding-bottom: 0; }

:where(body.cs-scope) .strategic-block {
  border: 1px solid var(--gold); padding: 48px;
  background: linear-gradient(180deg, rgba(200,169,110,0.04), transparent);
}
:where(body.cs-scope) .strategic-block .se-eyebrow {
  color: var(--gold); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 16px;
}
:where(body.cs-scope) .strategic-block h3 {
  font-size: 24px; margin-bottom: 16px; line-height: 1.3;
}
:where(body.cs-scope) .strategic-block p { font-size: 15px; }

:where(body.cs-scope) .gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
:where(body.cs-scope) .gallery-item {
  aspect-ratio: 4 / 5;
  background: #161616 center/cover no-repeat;
  border: 1px solid var(--grey-dark);
  display: flex; align-items: flex-end;
  padding: 20px;
  color: var(--grey-subtle); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
}

/* ── Proof section ── */
:where(body.cs-scope) .proof-combined {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: stretch;
}
:where(body.cs-scope) .proof-sub { display: flex; flex-direction: column; }
:where(body.cs-scope) .proof-label {
  font-size: 10px; font-weight: 600; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.16em;
  font-family: 'Unbounded', sans-serif;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
:where(body.cs-scope) .proof-label::after {
  content: ''; flex: 1; height: 1px; background: var(--grey-dark);
}
:where(body.cs-scope) .ads-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
:where(body.cs-scope) .ad-card {
  border: 1px solid var(--grey-dark); background: #0D0D0D; overflow: hidden;
}
:where(body.cs-scope) .ad-card img { width: 100%; height: auto; display: block; }
:where(body.cs-scope) .ad-card-caption {
  padding: 10px 12px; font-size: 10px; color: var(--grey-subtle);
  letter-spacing: 0.06em; text-transform: uppercase;
  border-top: 1px solid var(--grey-dark);
}
:where(body.cs-scope) .ig-ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
:where(body.cs-scope) .ig-ba-col { display: flex; flex-direction: column; gap: 10px; }
:where(body.cs-scope) .ig-ba-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; font-family: 'Unbounded', sans-serif;
  padding: 5px 11px; border-radius: 40px; align-self: flex-start;
}
:where(body.cs-scope) .ig-ba-tag.before { color: #D96565; background: rgba(193,69,69,0.1); border: 1px solid rgba(193,69,69,0.35); }
:where(body.cs-scope) .ig-ba-tag.after { color: var(--gold); background: rgba(200,169,110,0.1); border: 1px solid var(--gold); }
:where(body.cs-scope) .ig-ba-tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
:where(body.cs-scope) .ig-ba-col.before img {
  border: 1px solid var(--grey-dark); border-radius: 4px;
  filter: grayscale(25%) brightness(0.93); width: 100%; display: block;
}
:where(body.cs-scope) .ig-ba-col.after img {
  border: 1px solid var(--gold); border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(200,169,110,0.3), 0 10px 24px rgba(200,169,110,0.15);
  width: 100%; display: block;
}
@media (max-width: 900px) {
  :where(body.cs-scope) .proof-combined { grid-template-columns: 1fr; }
}

:where(body.cs-scope) .results-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--grey-dark);
  border: 1px solid var(--grey-dark);
}
:where(body.cs-scope) .result-cell {
  background: #0D0D0D; padding: 40px 32px;
}
:where(body.cs-scope) .result-value {
  font-family: 'Unbounded', sans-serif; font-size: 40px;
  font-weight: 700; color: var(--gold);
  line-height: 1; margin-bottom: 12px;
  letter-spacing: -0.02em;
}
:where(body.cs-scope) .result-label {
  font-size: 13px; color: var(--body-on-dark);
  line-height: 1.6;
}

:where(body.cs-scope) .client-links {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px;
}
:where(body.cs-scope) .client-link {
  font-size: 12px; color: var(--body-on-dark);
  text-decoration: none; letter-spacing: 0.04em;
  border: 1px solid var(--grey-dark); padding: 10px 18px;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
}
:where(body.cs-scope) .client-link:hover {
  color: var(--white); border-color: var(--gold);
  background: rgba(200,169,110,0.05);
}

:where(body.cs-scope) #cta {
  background: var(--off-white); color: var(--black);
  border-top: 1px solid var(--grey-light);
  text-align: center;
}
:where(body.cs-scope) #cta h2 { color: var(--black); margin: 0 auto 20px; max-width: 680px; }
:where(body.cs-scope) #cta p {
  color: var(--body-on-light); font-size: 17px;
  max-width: 600px; margin: 0 auto 40px;
}
:where(body.cs-scope) .cta-btn {
  display: inline-block; font-size: 14px; font-weight: 500;
  color: var(--black); background: var(--gold);
  padding: 18px 40px; text-decoration: none;
  letter-spacing: 0.04em; transition: background 0.2s;
}
:where(body.cs-scope) .cta-btn:hover { background: var(--gold-deep); }

:where(body.cs-scope) #next-case {
  background: var(--black);
  padding: 72px 80px;
  border-top: 1px solid rgba(200, 169, 110, 0.25);
  text-align: center;
}
:where(body.cs-scope) #next-case a {
  font-size: 13px; color: var(--body-on-dark);
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; transition: color 0.2s;
}
:where(body.cs-scope) #next-case a:hover { color: var(--gold); }

/* ── Responsive for case studies ── */
@media (max-width: 768px) {
  :where(body.cs-scope) .case-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  :where(body.cs-scope) .glance-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  :where(body.cs-scope) .challenge-list { grid-template-columns: 1fr; }
  :where(body.cs-scope) .phases { grid-template-columns: 1fr 1fr; }
  :where(body.cs-scope) .proof-combined { grid-template-columns: 1fr; gap: 24px; }
  :where(body.cs-scope) .results-grid { grid-template-columns: 1fr 1fr; gap: 1px; }
  :where(body.cs-scope) .ads-grid { grid-template-columns: 1fr; }
  :where(body.cs-scope) #cta { padding: 60px 40px; }
  :where(body.cs-scope) #next-case { padding: 48px 40px; }
}

/* ──────────────────────────────────────────────────────────────────── */
/* SITE-WIDE PREMIUM POLISH (v9)                                          */
/* ──────────────────────────────────────────────────────────────────── */

/* Glass nav with scrolled state */
nav { background: rgba(10,10,10,0.72); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease; }
nav.is-scrolled { padding-top: 14px; padding-bottom: 14px; background: rgba(10,10,10,0.9); }

/* Smooth interactive defaults */
a, button, .nav-cta, .case-card, .metric { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease; }

/* Reveal-on-scroll (progressive enhancement; only active when body.has-reveal) */
body.has-reveal [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.85s cubic-bezier(0.16,1,0.3,1); will-change: opacity, transform; }
body.has-reveal [data-reveal].in { opacity: 1; transform: none; }

/* Accessible focus ring */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

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

/* Extra mobile safety: tighten section padding on very small screens */
@media (max-width: 640px) {
  section { padding: 64px 22px; }
  .container { padding: 0 22px; }
}

