/* ==========================================================================
   YourDigitalMarketer — shared styles
   Theme: dark by default, follows the visitor's OS setting, manual toggle
   overrides via [data-theme] on <html>.
   ========================================================================== */

/* ---------- Tokens: dark (default) ---------- */
:root {
  --bg: #0a0a0a;
  --surface: #131313;
  --surface-2: #1b1b1b;
  --border: #262626;
  --text: #f5f5f2;
  --muted: #a3a3a0;
  --subtle: #8a8a86;
  --invert-bg: #f5f5f2;
  --invert-text: #0a0a0a;
  --ph: #f0b45a;              /* placeholder highlight */
  --shadow: 0 1px 2px rgb(0 0 0 / .4);

  --font-sans: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Arapey", Georgia, serif;

  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);

  color-scheme: dark;
}

/* ---------- Tokens: light (OS preference, unless forced dark) ---------- */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fafaf7;
    --surface: #ffffff;
    --surface-2: #f1f1ec;
    --border: #e3e3dd;
    --text: #111110;
    --muted: #5c5c58;
    --subtle: #6e6e69;
    --invert-bg: #111110;
    --invert-text: #fafaf7;
    --ph: #b26a00;
    --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .04);
    color-scheme: light;
  }
}

/* ---------- Tokens: light (manual toggle) ---------- */
:root[data-theme="light"] {
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-2: #f1f1ec;
  --border: #e3e3dd;
  --text: #111110;
  --muted: #5c5c58;
  --subtle: #6e6e69;
  --invert-bg: #111110;
  --invert-text: #fafaf7;
  --ph: #b26a00;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .04);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure, dl { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--border); }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--invert-bg); color: var(--invert-text);
  padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Placeholder marker — remove the class once real content is in */
.ph { color: var(--ph); }
.ph-box {
  border: 1.5px dashed var(--ph) !important;
  color: var(--ph);
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 96px);
  line-height: 1;
  letter-spacing: -.01em;
}
.display em { font-style: italic; }
.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -.005em;
}
.h2 em { font-style: italic; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 720px; }
.section-head--split {
  max-width: none;
  grid-template-columns: 1fr auto; align-items: end; gap: 24px;
}
@media (max-width: 720px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--font-sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--invert-bg); color: var(--invert-text); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 15px;
  border-bottom: 1px solid var(--border); padding-bottom: 2px;
  transition: border-color .2s ease;
}
.text-link:hover { border-color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color .2s ease; white-space: nowrap; }
@media (max-width: 1080px) { .nav-links { gap: 20px; } }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: transparent; color: var(--text);
  border: 1px solid var(--border); cursor: pointer;
  transition: border-color .2s ease;
}
.icon-btn:hover { border-color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

/* Theme toggle: sun shows in dark mode, moon in light mode */
.theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .i-moon { display: block; }
}
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }

.menu-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 860px) {
  .nav-links, .nav-actions .btn { display: none; }
  .menu-toggle { display: inline-grid; }
  .mobile-menu {
    display: grid; gap: 4px;
    padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a:not(.btn) { padding: 12px 0; font-size: 18px; font-weight: 500; border-bottom: 1px solid var(--border); }
  .mobile-menu .btn { margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(64px, 11vw, 140px) clamp(56px, 8vw, 96px); }
.hero-inner { display: grid; gap: 28px; }
.hero .display { max-width: 14ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
  margin-top: 20px; font-size: 14px; color: var(--muted);
}
.platforms { display: flex; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--text);
}
.chip svg { width: 16px; height: 16px; }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--subtle); }
@media (max-width: 640px) {
  .hero-meta .platforms { flex-basis: 100%; flex-wrap: wrap; }
  .hero-meta .dot-sep:first-of-type { display: none; }
}

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  margin-top: clamp(56px, 8vw, 96px);
}
.stat { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stat dd { margin: 0; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-value { font-family: var(--font-serif); font-size: clamp(40px, 4.6vw, 56px); line-height: 1; }
.stat-label { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ---------- Logo strip ---------- */
.logos { padding-block: 40px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logos-label { text-align: center; font-size: 13px; color: var(--subtle); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 24px; }
.logo-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 28px 48px;
}
.logos-note { margin-top: 22px; text-align: center; font-size: 12px; color: var(--subtle); }
.logo-row li { display: flex; align-items: center; justify-content: center; height: 48px; }
.logo-row img {
  width: auto; height: auto; max-height: 40px; max-width: 130px;
  opacity: .9; transition: opacity .2s ease;
}
.logo-row li:hover img { opacity: 1; }

/* Theme-specific images: logos that are black/navy (or white) ship a second
   version for the other theme. Hidden lazy images are never downloaded. */
.theme-light { display: none !important; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-light { display: block !important; }
  :root:not([data-theme="dark"]) .theme-dark { display: none !important; }
}
:root[data-theme="light"] .theme-light { display: block !important; }
:root[data-theme="light"] .theme-dark { display: none !important; }
@media (max-width: 560px) {
  .logo-row { gap: 20px 32px; }
  .logo-row img { max-width: 100px; max-height: 32px; }
}

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow);
}

/* Services */
.service { display: flex; flex-direction: column; gap: 16px; }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
}
.service-icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.service p { color: var(--muted); }
.checklist { display: grid; gap: 10px; font-size: 15px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.service .checklist { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }

/* Process */
.step { display: grid; gap: 12px; align-content: start; }
.step-num { font-family: var(--font-serif); font-size: 44px; line-height: 1; color: var(--subtle); }
.step h3 { font-size: 20px; font-weight: 700; }
.step p { color: var(--muted); font-size: 15px; }

/* Results */
.result { display: flex; flex-direction: column; gap: 14px; transition: border-color .2s ease, transform .2s ease; }
.result:hover { border-color: var(--subtle); transform: translateY(-2px); }
.result-tag { font-size: 13px; color: var(--muted); }
.result-metric { font-family: var(--font-serif); font-size: clamp(44px, 5vw, 60px); line-height: 1; }
.result-metric-label { font-size: 15px; color: var(--muted); margin-top: -4px; }
.result h3 { font-size: 20px; font-weight: 700; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--border); }
.result p { font-size: 15px; color: var(--muted); }

/* Pricing */
.pricing { align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 20px; position: relative; }
.plan-name { font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.plan-price { font-family: var(--font-serif); font-size: 56px; line-height: 1; }
.plan-price small { font-family: var(--font-sans); font-size: 16px; color: var(--muted); margin-left: 4px; }
.plan-for { font-size: 15px; color: var(--muted); min-height: 3em; }
.plan .checklist { padding-top: 20px; border-top: 1px solid var(--border); }
.plan .btn { margin-top: auto; width: 100%; }
.plan-featured { background: var(--invert-bg); color: var(--invert-text); border-color: var(--invert-bg); }
.plan-featured .plan-for, .plan-featured .plan-price small { color: color-mix(in srgb, var(--invert-text) 65%, transparent); }
.plan-featured .checklist { border-top-color: color-mix(in srgb, var(--invert-text) 18%, transparent); }
.plan-featured .btn-primary { background: var(--invert-text); color: var(--invert-bg); }
.badge {
  position: absolute; top: 24px; right: 24px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--invert-text) 12%, transparent);
}
.pricing-note { margin-top: 28px; text-align: center; font-size: 14px; color: var(--muted); }
.pricing-note strong { color: var(--text); font-weight: 600; }

/* Industries */
.industries { display: flex; flex-wrap: wrap; gap: 10px; }
.industries .chip { height: 42px; padding: 0 18px; font-size: 15px; }

/* Testimonials */
.quote { display: flex; flex-direction: column; gap: 24px; }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.55; }
.quote figcaption { margin-top: auto; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.stars { display: flex; gap: 2px; color: var(--text); }
.stars svg { width: 14px; height: 14px; }

/* About teaser */
.about { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: var(--surface-2);
  display: grid; place-items: center; text-align: center;
  font-size: 14px; padding: 24px;
}
.about-photo:has(img) { padding: 0; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.about-body { display: grid; gap: 20px; }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 280px; }
}

/* ---------- Inner pages ---------- */
.page-hero { padding-block: clamp(64px, 10vw, 128px) clamp(48px, 6vw, 72px); }
.page-hero .container { display: grid; gap: 24px; }
.page-hero .display { max-width: 16ch; }

/* About: story */
.story { display: grid; grid-template-columns: 400px 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.story .about-photo { position: sticky; top: 104px; }
.prose { display: grid; gap: 20px; font-size: 18px; color: var(--muted); max-width: 62ch; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .h2 { color: var(--text); margin-bottom: 4px; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story .about-photo { position: static; max-width: 320px; }
}

/* About: values */
.value { display: grid; gap: 14px; align-content: start; }
.value h3 { font-size: 20px; font-weight: 700; }
.value p { color: var(--muted); font-size: 15px; }

/* About: toolkit */
.toolkit { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.toolkit h3 { font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.toolkit .industries { gap: 8px; }
@media (max-width: 760px) { .toolkit { grid-template-columns: 1fr; } }

/* Featured quote */
.featured-quote { display: grid; gap: 28px; max-width: 900px; margin-inline: auto; text-align: center; justify-items: center; }
.featured-quote blockquote {
  margin: 0; font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.25;
}
.featured-quote figcaption { font-size: 15px; color: var(--muted); }

/* Services: detail blocks */
.service-detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; scroll-margin-top: 96px; }
.service-detail + .service-detail { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--border); }
.service-detail .intro { display: grid; gap: 18px; position: sticky; top: 104px; }
.service-detail .intro p { color: var(--muted); font-size: 18px; }
.checklist-lg { gap: 0; font-size: 17px; }
.checklist-lg li { padding: 16px 0; border-bottom: 1px solid var(--border); }
.checklist-lg li:first-child { padding-top: 0; }
.checklist-lg li::before { margin-top: 5px; }
@media (max-width: 860px) {
  .service-detail { grid-template-columns: 1fr; }
  .service-detail .intro { position: static; }
}

/* Setup fee card */
.setup { margin-top: 20px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: center; }
.setup .checklist { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .setup, .setup .checklist { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-size: 18px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 300; line-height: 1; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 68ch; }

/* Portfolio: case studies */
.case { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; scroll-margin-top: 96px; }
.case + .case { margin-top: clamp(64px, 9vw, 112px); padding-top: clamp(64px, 9vw, 112px); border-top: 1px solid var(--border); }
.case-meta { position: sticky; top: 104px; display: grid; gap: 24px; }
.case-meta img { width: auto; height: auto; max-height: 40px; max-width: 220px; }
.case-meta dl { display: grid; gap: 16px; font-size: 15px; }
.case-meta dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.case-meta dd { margin: 2px 0 0; }
.case-body { display: grid; gap: 22px; font-size: 17px; color: var(--muted); }
.case-body .h2 { color: var(--text); }
.case-body h3 { margin-top: 14px; font-size: 20px; font-weight: 700; color: var(--text); }
.case-body ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.case-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 6px; }
.case-stat { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.case-stat strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 44px; line-height: 1; color: var(--text); }
.case-stat span { display: block; margin-top: 8px; font-size: 14px; }
.case-note { font-size: 13px; color: var(--subtle); }
@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; }
  .case-meta { position: static; }
}

/* Portfolio overview cards */
.case-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .case-cards { grid-template-columns: 1fr; } }
.case-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease;
}
.case-card:hover { border-color: var(--subtle); transform: translateY(-2px); }
.case-card-media { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; }
.case-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-card:hover .case-card-media img { transform: scale(1.03); }
.case-card-media .logo-pair { display: flex; gap: 28px; align-items: center; }
.case-card-media .logo-pair img { width: auto; height: auto; max-height: 48px; max-width: 160px; object-fit: contain; transform: none !important; }
.case-card-body { display: grid; gap: 10px; padding: clamp(22px, 3vw, 28px); flex: 1; align-content: start; }
.case-card-tag { font-size: 13px; color: var(--muted); }
.case-card h3 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.case-card p { color: var(--muted); font-size: 15px; }
.case-card-foot { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--border); }
.case-card-stat strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 40px; line-height: 1; }
.case-card-stat span { font-size: 13px; color: var(--muted); }
.case-card .text-link { white-space: nowrap; }

/* Case study page */
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.case-hero .lead { max-width: 64ch; }
.case-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px 32px;
  padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 8px;
}
.case-facts dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.case-facts dd { margin: 4px 0 0; font-size: 15px; }
.case-cover { margin-top: clamp(32px, 5vw, 56px); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.case-cover img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.case-cover.logo-cover {
  margin-left: 0; margin-right: 0; aspect-ratio: 21 / 9;
  display: flex; align-items: center; justify-content: center; gap: clamp(24px, 6vw, 72px);
  padding: 24px; border: 1px solid var(--border);
  background: radial-gradient(120% 120% at 50% 0%, var(--surface) 0%, var(--surface-2) 100%);
}
.case-cover.logo-cover img { flex: none; width: auto; height: clamp(36px, 8vw, 88px); aspect-ratio: auto; object-fit: contain; max-width: 40%; }
.logo-cover-divider { width: 1px; align-self: stretch; margin: 12% 0; background: var(--border); }
@media (max-width: 640px) { .case-cover.logo-cover { aspect-ratio: 4 / 3; } }
.case-cover.ph-box { aspect-ratio: 21 / 9; display: grid; place-items: center; text-align: center; padding: 24px; font-size: 15px; }
@media (max-width: 640px) { .case-cover img, .case-cover.ph-box { aspect-ratio: 4 / 3; } }

.case-section { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.case-section + .case-section { margin-top: clamp(56px, 7vw, 88px); }
.case-section > header { position: sticky; top: 104px; display: grid; gap: 12px; }
.case-section > header .h2 { font-size: clamp(30px, 3.4vw, 40px); }
.case-section .prose { max-width: none; }
.case-section .prose ul.checklist { color: var(--text); }
@media (max-width: 860px) {
  .case-section { grid-template-columns: 1fr; }
  .case-section > header { position: static; }
}

.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.doc-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .2s ease, transform .2s ease;
}
.doc-card:hover { border-color: var(--subtle); transform: translateY(-2px); }
.doc-thumb { aspect-ratio: 4 / 3; background: #fff; overflow: hidden; border-bottom: 1px solid var(--border); }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doc-meta { display: grid; gap: 4px; padding: 14px 16px 16px; }
.doc-type { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); display: flex; align-items: center; gap: 6px; }
.doc-title { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.35; }
.doc-card.ph-box .doc-thumb { display: grid; place-items: center; background: var(--surface-2); font-size: 13px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; display: grid; gap: 10px; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: #fff; cursor: zoom-in; }
.gallery img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.02); }
.gallery.photos a { background: var(--surface-2); }
.gallery.photos img { object-position: center; }
.gallery figcaption { font-size: 14px; color: var(--muted); }

.result-callout {
  display: grid; gap: 8px; padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius); background: var(--invert-bg); color: var(--invert-text);
}
.result-callout strong, .prose .result-callout strong { color: var(--invert-text); font-family: var(--font-serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
.result-callout span { color: color-mix(in srgb, var(--invert-text) 68%, transparent); }

.confidential {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px 22px; border-radius: var(--radius-sm);
  border: 1px dashed var(--border); background: var(--surface); font-size: 15px; color: var(--muted);
}
.confidential svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--text); }
.wins { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 560px) { .wins { grid-template-columns: 1fr; } }
.win { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); display: grid; gap: 6px; }
.win strong { font-size: 17px; color: var(--text); }
.win span { font-size: 14px; color: var(--muted); }
.product-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .product-cols { grid-template-columns: 1fr; } }
.product-cols .card { display: grid; gap: 16px; align-content: start; }
.product-cols .card > img { width: auto; height: auto; max-height: 36px; max-width: 160px; }

.case-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-pager a { display: grid; gap: 6px; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s ease; }
.case-pager a:hover { border-color: var(--text); }
.case-pager a:last-child { text-align: right; }
.case-pager span { font-size: 13px; color: var(--muted); }
.case-pager strong { font-size: 18px; }
@media (max-width: 560px) { .case-pager { grid-template-columns: 1fr; } .case-pager a:last-child { text-align: left; } }

/* Lightbox (built by main.js) */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(5 5 5 / .94); color: #f5f5f2;
}
.lightbox::backdrop { background: rgb(0 0 0 / .6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-size: 14px; color: #a3a3a0; }
.lightbox-stage { display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; background: #fff; }
.lightbox-caption { text-align: center; padding: 14px 16px 22px; font-size: 15px; }
.lightbox button {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  background: rgb(255 255 255 / .08); color: #f5f5f2; border: 1px solid rgb(255 255 255 / .16); cursor: pointer;
}
.lightbox button:hover { background: rgb(255 255 255 / .16); }
.lightbox .lb-prev, .lightbox .lb-next { position: fixed; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: 12px; }
.lightbox .lb-next { right: 12px; }
.lightbox button svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .lightbox-stage { padding: 0 8px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 14px; transform: none; }
}

/* Why me: comparison table */
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); font-size: 15px;
}
.compare th, .compare td { padding: 18px 22px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.compare thead th { border-top: 0; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.compare thead th.me { color: var(--text); }
.compare tbody th { width: 20%; font-weight: 700; }
.compare td.them { color: var(--muted); }
.compare td.me, .compare thead th.me { background: color-mix(in srgb, var(--text) 5%, transparent); }
.compare td.me { font-weight: 500; }
.cell { display: flex; gap: 10px; align-items: flex-start; }
.ic { flex: none; width: 16px; height: 16px; margin-top: 3px; background: currentColor; }
.ic-check {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ic-x {
  opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 720px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody th { width: 100%; padding-bottom: 6px; }
  .compare td { border-top: 0; padding-top: 10px; }
  .compare td::before { content: attr(data-label); display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
}

.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .ai-grid { grid-template-columns: 1fr; } }
.ai-grid .card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.ai-grid .card p { color: var(--muted); font-size: 15px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 600; padding: 0; }
.field .opt { font-weight: 400; color: var(--subtle); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 14%, transparent);
}
textarea { min-height: 140px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.check-pill { position: relative; }
.check-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-pill span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg);
  font-size: 15px; cursor: pointer; transition: all .15s ease;
}
.check-pill input:checked + span { background: var(--invert-bg); color: var(--invert-text); border-color: var(--invert-bg); }
.check-pill input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--text); flex: none; }
.consent a, .legal a { text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute !important; left: -9999px !important; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-size: 15px; }
.form-status.is-error { color: #e5484d; }
.form-success { display: grid; gap: 14px; justify-items: start; }
.next-steps { display: grid; gap: 22px; counter-reset: step; }
.next-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; counter-increment: step; }
.next-steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); font-weight: 700; font-size: 14px;
}
.next-steps h3 { font-size: 17px; font-weight: 700; }
.next-steps p { font-size: 15px; color: var(--muted); }

/* Legal pages */
.legal { max-width: 760px; font-size: 17px; }
.legal h2 { font-size: 22px; font-weight: 700; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin: 12px 0; }
.legal .updated { font-size: 14px; color: var(--subtle); }

/* CTA band */
.cta {
  background: var(--invert-bg); color: var(--invert-text);
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 72px);
  display: grid; gap: 24px; justify-items: start;
}
.cta .h2 { max-width: 16ch; }
.cta p { color: color-mix(in srgb, var(--invert-text) 68%, transparent); max-width: 52ch; font-size: 18px; }
.cta .btn-primary { background: var(--invert-text); color: var(--invert-bg); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 72px 32px; border-top: 1px solid var(--border); margin-top: var(--section); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 34ch; }
.footer-col h4 { margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.footer-col ul { display: grid; gap: 10px; font-size: 15px; }
.footer-col a { color: var(--muted); transition: color .2s ease; }
.footer-col a:hover { color: var(--text); }
.footer-social { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s ease; }
.footer-social:hover { color: var(--text); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--subtle);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
