/* ═══════════════════════════════════════════════════════════════
   Muzamna Tech Solutions — Design system
   Arabic RTL · Aubergine palette · Editorial boutique studio
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Aubergine palette */
  --c-bg: oklch(0.988 0.003 80);
  --c-bg-card: oklch(1 0 0);
  --c-bg-deep: oklch(0.20 0.04 320);
  --c-ink: oklch(0.18 0.03 320);
  --c-ink-2: oklch(0.32 0.04 320);
  --c-muted: oklch(0.52 0.025 320);
  --c-line: oklch(0.88 0.012 320);
  --c-line-2: oklch(0.92 0.008 320);

  --c-primary: oklch(0.32 0.13 320);
  --c-primary-deep: oklch(0.24 0.10 320);
  --c-primary-soft: oklch(0.85 0.05 320);
  --c-primary-pale: oklch(0.94 0.025 320);

  --c-accent: oklch(0.60 0.17 350);
  --c-accent-soft: oklch(0.88 0.06 350);
  --c-success: oklch(0.55 0.10 160);

  /* Spacing */
  --gap-sec: clamp(40px, 6vw, 88px);
  --gap-block: clamp(20px, 3vw, 36px);

  /* Typography */
  --ff-display: "Tajawal", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --ff-body: "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, monospace;

  --t-display: clamp(40px, 5.5vw, 84px);
  --t-h1: clamp(30px, 3.6vw, 56px);
  --t-h2: clamp(24px, 2.4vw, 38px);
  --t-h3: clamp(20px, 1.8vw, 28px);
  --t-body: clamp(15px, 0.95vw, 16px);
  --t-small: 13px;
  --t-eyebrow: 12px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;
  --r-xl: 36px;

  --shadow-sm: 0 1px 0 rgba(40, 20, 60, .04), 0 2px 8px rgba(40, 20, 60, .04);
  --shadow-md: 0 1px 0 rgba(40, 20, 60, .04), 0 12px 32px rgba(40, 20, 60, .08);
  --shadow-lg: 0 1px 0 rgba(40, 20, 60, .04), 0 24px 64px rgba(40, 20, 60, .12);
}

/* ───── Base ───── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html[dir="rtl"] { direction: rtl; }
html[dir="ltr"] { direction: ltr; }
body {
  font-family: var(--ff-body);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* English mode prefers a Latin-tuned stack; Tajawal still works for display. */
html[lang="en"] {
  --ff-body: "IBM Plex Sans", "Inter", system-ui, sans-serif;
  --ff-display: "Tajawal", "Inter", system-ui, sans-serif;
}
/* In LTR mode, soften letter-spacing on titles (Arabic uses negative spacing). */
html[lang="en"] .t-display,
html[lang="en"] .t-h1,
html[lang="en"] .t-h2 { letter-spacing: -0.018em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--c-primary); color: white; }

img, svg { max-width: 100%; }

/* ───── Layout ───── */
.wrap { width: min(1280px, 92vw); margin: 0 auto; }
.wrap-tight { width: min(960px, 92vw); margin: 0 auto; }
.wrap-wide { width: min(1440px, 94vw); margin: 0 auto; }
.section { padding: var(--gap-sec) 0; position: relative; }
/*.section + .section { padding-top: 0; }*/

/* ───── Typography ───── */
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; color: var(--c-ink); }
p { margin: 0; }

.t-display { font-family: var(--ff-display); font-weight: 800; font-size: var(--t-display); line-height: 0.96; letter-spacing: -0.025em; }
.t-h1 { font-size: var(--t-h1); line-height: 1.04; letter-spacing: -0.02em; font-weight: 700; font-family: var(--ff-display); }
.t-h2 { font-size: var(--t-h2); line-height: 1.1; letter-spacing: -0.015em; font-weight: 700; font-family: var(--ff-display); }
.t-h3 { font-size: var(--t-h3); line-height: 1.25; font-weight: 600; font-family: var(--ff-display); }
.t-muted { color: var(--c-muted); }
.t-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: var(--t-eyebrow);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-primary); font-weight: 500;
}
.t-eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.t-lead { font-size: clamp(17px, 1.3vw, 21px); line-height: 1.6; color: var(--c-ink-2); max-width: 60ch; }

/* ───── Buttons ───── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-family: var(--ff-body); font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: all .25s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--c-primary); color: white; }
.btn-primary:hover { background: var(--c-primary-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn-ghost:hover { background: var(--c-bg-card); border-color: var(--c-ink); }
.btn-dark { background: var(--c-ink); color: var(--c-bg); }
.btn-dark:hover { background: var(--c-primary); }
.btn-disabled, .btn[disabled] { opacity: 0.4; pointer-events: none; cursor: default; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--ff-mono); font-size: 11px;
  background: var(--c-primary-pale); color: var(--c-primary);
  letter-spacing: 0.02em;
}

/* ───── Cards & surfaces ───── */
.card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.4vw, 36px);
  transition: all .3s ease;
}
.card-hover:hover { border-color: var(--c-ink); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.divider { height: 1px; background: var(--c-line); border: 0; margin: 0; }

.stripe-placeholder {
  background:
    repeating-linear-gradient(45deg, var(--c-line-2) 0 1px, transparent 1px 12px),
    var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-muted);
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.04em;
}

/* ───── Utility ───── */
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.stack-md { display: flex; flex-direction: column; gap: 24px; }
.stack-lg { display: flex; flex-direction: column; gap: var(--gap-block); }

:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ───── Section header ───── */
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.section-head.center { align-items: center; text-align: center; margin-inline: auto; }
.section-head h2 { margin-top: 8px; }
.section-head p { margin-top: 12px; }

/* ═══════════════════ Nav ═══════════════════ */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  transition: all .25s ease;
  background: transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--c-bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--c-line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500;
  color: var(--c-ink-2); transition: all .15s ease;
  position: relative;
}
.nav-link:hover { color: var(--c-ink); background: var(--c-primary-pale); }
.nav-link.active { color: var(--c-primary); }
.nav-link.active::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px;
  background: var(--c-primary); border-radius: 1px;
}
.nav-cta { display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-flex; gap: 2px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; padding: 6px 10px;
  font-family: var(--ff-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s ease;
}
.lang-btn:hover { color: var(--c-ink); text-decoration: none; }
.lang-btn.active { background: var(--c-primary); color: white; }
.lang-btn.lang-btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: auto; /* keep the title-tooltip working */
  text-decoration: line-through;
}
.lang-btn.lang-btn-disabled:hover { color: var(--c-muted); }

/* Currency dropdown — visually matches the language switcher: the <form>
   is the pill CONTAINER (same bg-card + border + radius + 3px padding as
   .lang-switch) and the native <select> is a borderless inner pill (like
   .lang-btn). So currency + language read as one consistent control pair. */
.currency-select-form {
  display: inline-flex; margin: 0;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 3px;
}
.currency-select {
  font-family: var(--ff-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 26px 6px 10px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'><path d='M1 2.5L4 5.5L7 2.5' stroke='%23666' stroke-width='1.3' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 8px 8px;
  transition: color .15s ease;
}
html[dir="rtl"] .currency-select { padding: 6px 10px 6px 26px; background-position: left 8px center; }
.currency-select:hover { color: var(--c-ink); }
.currency-select:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
@media (max-width: 880px) {
  .nav-cta .currency-select-form { display: none; }
}
.mobile-menu-currency { margin-top: 12px; display: flex; justify-content: center; }
.mobile-menu-currency .currency-select { padding-block: 8px; font-size: 13px; }
.currency-select-footer { padding-block: 6px; }
@media (max-width: 880px) {
  .nav-cta .lang-switch { display: none; }
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--c-ink); }
.logo-mark { color: var(--c-primary); }
.logo-name { font-family: var(--ff-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.logo-sub { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--c-muted); border-inline-start: 1px solid var(--c-line); padding-inline-start: 10px; margin-inline-start: 4px; text-transform: uppercase; }
.menu-btn { display: none; background: transparent; border: 1px solid var(--c-line); border-radius: 10px; padding: 8px 12px; }
@media (max-width: 880px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-btn { display: inline-flex; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--c-bg);
  padding: 24px;
  display: none; flex-direction: column; gap: 8px;
}
.mobile-menu:target { display: flex; }
.mobile-menu a { padding: 16px 12px; font-size: 22px; font-weight: 600; border-bottom: 1px solid var(--c-line); color: var(--c-ink); text-decoration: none; }
.mobile-menu-close { position: absolute; top: 18px; inset-inline-end: 24px; font-size: 32px; color: var(--c-ink) !important; text-decoration: none; border-bottom: 0 !important; padding: 0 !important; }
.mobile-menu-langs { display: flex; gap: 8px; justify-content: center; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--c-line); }
.mobile-menu-langs a { border: 0; padding: 8px 16px; font-size: 14px; font-weight: 500; }

/* Contact form: progressive enhancement.
   Without JS: all .step blocks visible; only the submit button is wired.
   With JS (.js-on on the form): only the active step shows; Next/Back
   advance through steps; submit appears only on the final step. */
.contact-form-php .step { display: block; }
.contact-form-php.js-on .step { display: none; }
.contact-form-php.js-on .step.active { display: block; }

.contact-form-php .js-only { display: none; }
.contact-form-php.js-on .js-only { display: inline-flex; }

/* Submit: hidden by the wizard except on the last step (.last-step on form). */
.contact-form-php.js-on #submit-btn { display: none; }
.contact-form-php.js-on.last-step #submit-btn { display: inline-flex; }
.contact-form-php.js-on #prev-btn { display: inline-flex; }
.contact-form-php.js-on.last-step #next-btn { display: none; }

/* No-JS: no wizard pills, no Next/Back — just submit at the bottom. */
.contact-form-php:not(.js-on) .contact-progress { display: none; }
.contact-form-php:not(.js-on) #prev-btn,
.contact-form-php:not(.js-on) #next-btn { display: none; }

/* ═══════════════════ Hero ═══════════════════ */
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero-title { margin-top: 24px; }
.hero-title em { font-style: normal; color: var(--c-primary); font-family: var(--ff-display); }
.hero-lead { margin-top: 32px; max-width: 540px; }
.hero-actions { margin-top: 36px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-badges .chip { background: var(--c-bg-card); border: 1px solid var(--c-line); color: var(--c-ink-2); }

.hero-visual { position: relative; }
.hero-card-dark {
  background: var(--c-bg-deep); color: white;
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}
.hero-card-light {
  margin-top: -32px; margin-inline-start: 40px;
  background: var(--c-bg-card); border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-md);
  transform: rotate(2deg);
  position: relative; z-index: 2;
}
.hero-card-mono {
  margin-top: -16px; margin-inline-end: 30px;
  background: var(--c-primary); color: white;
  border-radius: var(--r-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  transform: rotate(-1deg);
  position: relative; z-index: 1;
}
.hero-meta-eyebrow { font-family: var(--ff-mono); font-size: 11px; color: oklch(0.78 0.08 320); letter-spacing: 0.08em; margin-bottom: 12px; }

/* Speed card — the redesigned headline + chips replacing LCP/CLS/INP. */
.hero-speed-headline {
  font-family: var(--ff-display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 700;
  color: white; line-height: 1.15; margin-top: 4px;
}
.hero-speed-headline strong { color: oklch(0.78 0.16 145); font-weight: 700; }
.hero-speed-subline {
  font-family: var(--ff-mono); font-size: 12px; color: oklch(0.85 0.04 320);
  margin-top: 10px; letter-spacing: 0.02em;
}
.hero-speed-explainer {
  font-size: 13.5px; line-height: 1.65; color: oklch(0.90 0.02 320);
  margin-top: 14px; margin-bottom: 0;
}
.hero-chips {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
  margin-top: 18px;
}
.hero-chip {
  background: oklch(0.30 0.05 320 / 0.6);
  border: 1px solid oklch(0.55 0.08 320 / 0.4);
  border-radius: var(--r-md);
  padding: 10px 12px;
}
.hero-chip-top {
  font-size: 12px; font-weight: 600; color: white; line-height: 1.25;
}
.hero-chip-bottom {
  font-family: var(--ff-mono); font-size: 10.5px;
  color: oklch(0.78 0.06 320); margin-top: 4px; line-height: 1.3;
}

/* Outcome card — replaces the git-commit mono block. */
.hero-outcome-label {
  font-family: var(--ff-mono); font-size: 11px;
  color: oklch(0.92 0.04 320 / 0.85); letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.hero-outcome-text {
  font-size: 14.5px; font-weight: 600; color: white; line-height: 1.55;
}

/* ═══════════════════ Soon badge ═══════════════════ */
/* Replaces the per-card CTA arrow ("Explore →", "Read →", "Request quote →")
   when an item is in soon state. Cards keep their visuals + title + excerpt
   but lose their <a> wrap, so the badge is the entire CTA-area. */
.soon-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--c-primary-pale); color: var(--c-primary);
  font-family: var(--ff-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; line-height: 1;
  border: 1px solid color-mix(in oklch, var(--c-primary) 25%, transparent);
}
.soon-badge::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--c-primary);
  animation: soonPulse 1.8s ease-in-out infinite;
}
@keyframes soonPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}
/* Subtle de-emphasis on cards in soon state. */
.is-soon { cursor: default; }

/* Big "obvious" overlay placed inside each card's cover-visual element.
   Darkens + slightly desaturates the image behind, then puts a large
   "قريباً" pill centered. Sits above any in-visual overlays (client
   name, year, category, carousel headlines) by z-index. */
.soon-cover-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(15,15,20,0.55), rgba(15,15,20,0.70));
  -webkit-backdrop-filter: blur(3px) saturate(0.55);
          backdrop-filter: blur(3px) saturate(0.55);
  z-index: 10;
  pointer-events: none;
}
.soon-cover-overlay-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 22px; border-radius: 999px;
  background: white; color: var(--c-primary);
  font-family: var(--ff-mono); font-weight: 700;
  font-size: 16px; letter-spacing: 0.10em; line-height: 1;
  border: 2px solid var(--c-primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.30);
  text-transform: uppercase;
}
.soon-cover-overlay-pill::before {
  content: ""; display: inline-block;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--c-primary);
  animation: soonPulse 1.6s ease-in-out infinite;
}
/* Smaller pill on tight surfaces (carousel cards, related strip). */
.carousel-card-visual .soon-cover-overlay-pill,
.related-visual .soon-cover-overlay-pill,
.service-preview-cover .soon-cover-overlay-pill {
  font-size: 13px; padding: 8px 16px;
}

/* ═══════════════════ Trust strip ═══════════════════ */
.trust {
  padding: 40px 0;
  border-block: 1px solid var(--c-line);
  margin-top: var(--gap-sec);
}
.trust-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
/* Stat-grade weight: bigger, bolder, full-ink (was a faint 12px muted line
   that read as legal small-print rather than headline numbers). */
.trust-item {
  font-family: var(--ff-mono);
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
}
.trust-item::before { content: "●"; color: var(--c-primary); font-size: 0.7em; margin-inline-end: 10px; }

/* ═══════════════════ Services preview ═══════════════════ */
/* Cards live inside .carousel-track on the home page — width is set
   below so they snap-scroll like the solutions carousel. The card
   itself is shared with anywhere a text-only service card is used. */
.service-preview-card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.4vw, 36px);
  transition: all .3s ease;
  color: inherit;
}
.carousel-track .service-preview-card {
  flex: 0 0 clamp(280px, 30vw, 340px);
  scroll-snap-align: start;
}
.service-preview-card:hover { border-color: var(--c-ink); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-preview-head { display: flex; justify-content: space-between; align-items: baseline; }
.service-preview-num { font-family: var(--ff-mono); font-size: 13px; color: var(--c-primary); }
.service-preview-tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 16px; border-top: 1px solid var(--c-line-2); }
.service-preview-tag { font-family: var(--ff-mono); font-size: 11px; color: var(--c-muted); }
/* Featured-image areas for the otherwise text-only services + pricing
   cards. Only present in the DOM when an image is uploaded. */
.service-preview-cover { position: relative; aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; }
.service-row-cover { position: relative; aspect-ratio: 16/6; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 22px; }
.price-cover { position: relative; aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; margin-bottom: 20px; }

/* ═══════════════════ Work preview (home) ═══════════════════ */
.work-card {
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  background: var(--c-bg-card);
  overflow: hidden;
  transition: all .35s ease;
  display: block; color: inherit;
}
.work-card:hover { border-color: var(--c-ink); box-shadow: var(--shadow-lg); }
.work-card:hover .work-card-visual { transform: scale(1.02); }
.work-card-inner { display: grid; grid-template-columns: 1.1fr 1.4fr; align-items: stretch; }
@media (max-width: 720px) { .work-card-inner { grid-template-columns: 1fr; } }
.work-card-visual {
  position: relative; overflow: hidden;
  min-height: 320px; aspect-ratio: 4/3;
  color: white;
  transition: transform .5s ease;
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.work-card-pattern { position: absolute; inset: 0; opacity: 0.7; }
.work-card-name { position: relative; font-family: var(--ff-display); font-weight: 800; font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -0.02em; }
.work-card-year { position: relative; font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.08em; opacity: 0.7; align-self: flex-end; }
.work-card-body { padding: clamp(28px, 3vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.work-card-cat { font-family: var(--ff-mono); font-size: 12px; color: var(--c-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.work-card-metrics { display: flex; gap: 24px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--c-line); margin-top: 24px; }
.work-card-metric-label { font-family: var(--ff-mono); font-size: 11px; color: var(--c-muted); }
.work-card-metric-value { font-weight: 600; margin-top: 4px; }
.work-card-cta { margin-top: 24px; color: var(--c-primary); display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }

.work-section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 24px; margin-bottom: var(--gap-block); }

/* ═══════════════════ Process snapshot ═══════════════════ */
.process-bg { background: var(--c-primary-pale); }
.process-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 80px); align-items: start; padding: var(--gap-sec) 0; }
@media (max-width: 720px) { .process-grid { grid-template-columns: 1fr; } }
.process-list { display: flex; flex-direction: column; }
.process-item {
  display: grid; grid-template-columns: 80px 1fr; gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--c-primary-soft);
  align-items: start;
}
.process-item:last-child { border-bottom: 0; }
.process-num {
  font-family: var(--ff-display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 800;
  line-height: 1;
  color: var(--c-primary);
  letter-spacing: -0.04em;
}
@media (max-width: 540px) { .process-item { grid-template-columns: 1fr; gap: 8px; } .process-num { font-size: 48px; } }

/* ═══════════════════ Tech marquee ═══════════════════ */
.tech-strip { display: flex; flex-direction: column; gap: 16px; overflow: hidden; margin-top: 56px; }
.tech-row {
  display: flex; gap: 12px; flex-shrink: 0; width: max-content;
  animation: techscroll 50s linear infinite;
}
.tech-row-2 { animation: techscroll-rev 60s linear infinite; }
@keyframes techscroll { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes techscroll-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.tech-pill {
  padding: 14px 24px; border-radius: 999px;
  background: var(--c-bg-card); border: 1px solid var(--c-line);
  font-family: var(--ff-display); font-weight: 600; font-size: 17px;
  color: var(--c-ink);
  white-space: nowrap;
}
.tech-pill-alt { background: var(--c-primary); color: white; border-color: var(--c-primary); }

/* ═══════════════════ Testimonials ═══════════════════ */
.testi-wrap { margin-top: var(--gap-block); position: relative; }
.testi-main {
  background: var(--c-bg-deep);
  color: oklch(0.95 0.01 320);
  border-radius: var(--r-xl);
  padding: clamp(40px, 5vw, 80px);
  position: relative; overflow: hidden;
}
.testi-mark {
  position: absolute; top: -40px; right: 32px;
  font-family: var(--ff-display); font-size: 240px;
  color: oklch(0.30 0.06 320); line-height: 1;
  font-weight: 800;
}
.testi-quote {
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1.35; letter-spacing: -0.01em;
  margin: 0 0 40px;
  position: relative; z-index: 1;
  max-width: 22ch;
}
.testi-author { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.testi-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: oklch(0.78 0.08 320); color: var(--c-bg-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-weight: 700; font-size: 18px;
}
.testi-controls { display: flex; gap: 8px; margin-top: 24px; justify-content: center; }
.testi-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-line); border: 0; padding: 0;
  transition: all .2s ease;
  cursor: pointer;
}
.testi-dot.active { background: var(--c-primary); width: 24px; border-radius: 4px; }

/* ═══════════════════ Pricing ═══════════════════ */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin-top: var(--gap-block); align-items: stretch;
}
.price-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 2.6vw, 40px);
  display: flex; flex-direction: column;
  transition: all .25s ease;
  position: relative;
  height: 100%;
}
.price-card:hover { border-color: var(--c-ink); transform: translateY(-2px); }
.price-card.featured {
  background: var(--c-bg-deep);
  color: oklch(0.95 0.02 320);
  border-color: var(--c-bg-deep);
  transform: translateY(-8px);
}
.price-card.featured:hover { transform: translateY(-10px); }
.price-card.featured h3 { color: white; }
.price-badge {
  position: absolute; top: -14px; right: 24px;
  background: var(--c-accent); color: white;
  font-family: var(--ff-mono); font-size: 11px;
  padding: 6px 12px; border-radius: 999px;
  letter-spacing: 0.06em;
}
.price-desc { font-size: 14.5px; margin-top: 12px; line-height: 1.6; color: var(--c-ink-2); }
.price-card.featured .price-desc { color: oklch(0.85 0.04 320); }
.price-amount { display: flex; align-items: baseline; gap: 8px; margin-top: 28px; }
.price-value { font-family: var(--ff-display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
.price-unit { font-family: var(--ff-mono); font-size: 13px; opacity: 0.7; }
.price-duration { font-family: var(--ff-mono); font-size: 12px; opacity: 0.6; margin-top: 4px; }
.price-items {
  list-style: none; padding: 0; margin: 24px 0 0; flex-grow: 1;
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 24px; border-top: 1px solid color-mix(in oklab, currentColor 15%, transparent);
}
.price-items li { display: flex; align-items: start; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.price-items svg { color: var(--c-primary); flex-shrink: 0; margin-top: 4px; }
.price-card.featured .price-items svg { color: oklch(0.78 0.08 320); }

/* ═══════════════════ Services page ═══════════════════ */
.services-list { display: flex; flex-direction: column; }
.service-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 32px;
  padding: clamp(40px, 5vw, 80px) 0;
  border-top: 1px solid var(--c-line);
}
.service-row:last-child { border-bottom: 1px solid var(--c-line); }
.service-num {
  font-family: var(--ff-display);
  font-size: clamp(64px, 7vw, 104px);
  font-weight: 800;
  color: var(--c-primary);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.service-grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px;
  margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--c-line-2);
}
.service-label {
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--c-muted); letter-spacing: 0.08em;
  text-transform: uppercase;
}
.service-items {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px;
}
.service-items li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.service-items svg { color: var(--c-primary); flex-shrink: 0; }
.service-meta { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 720px) {
  .service-row { grid-template-columns: 1fr; gap: 16px; }
  .service-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-items { grid-template-columns: 1fr; }
}

/* ═══════════════════ Work page ═══════════════════ */
.work-filters {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-bottom: 24px; border-bottom: 1px solid var(--c-line);
}
.work-filter {
  background: transparent; border: 1px solid var(--c-line);
  padding: 8px 16px; border-radius: 999px;
  font-family: var(--ff-body); font-size: 14px; color: var(--c-ink-2);
  transition: all .2s ease; cursor: pointer;
}
.work-filter:hover { border-color: var(--c-ink); }
.work-filter.active { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }
.work-filter-count { margin-inline-start: auto; font-family: var(--ff-mono); font-size: 12px; color: var(--c-muted); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.work-tile {
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .3s ease;
}
.work-tile:hover { border-color: var(--c-ink); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.work-tile:hover .work-tile-visual { transform: scale(1.04); }
.work-tile-visual {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10; color: white;
  padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .5s ease;
}
.work-tile-pattern { position: absolute; inset: 0; opacity: 0.7; }
.work-tile-name { position: relative; z-index: 1; font-family: var(--ff-display); font-weight: 800; font-size: clamp(28px, 3vw, 44px); line-height: 1; letter-spacing: -0.02em; text-shadow: 0 2px 14px rgba(0,0,0,0.4); }
.work-tile-year { position: relative; z-index: 1; font-family: var(--ff-mono); font-size: 12px; opacity: 0.75; align-self: flex-end; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.work-tile-body { padding: 24px 28px 28px; }
.work-tile-cat { font-family: var(--ff-mono); font-size: 11px; color: var(--c-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.work-tile-metrics { display: flex; gap: 18px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--c-line-2); flex-wrap: wrap; }
.work-tile-metric-val { font-family: var(--ff-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.work-tile-metric-label { font-family: var(--ff-mono); font-size: 10.5px; color: var(--c-muted); }
.work-tile-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.work-tile-tag { font-family: var(--ff-mono); font-size: 11px; color: var(--c-muted); }

/* ═══════════════════ About page ═══════════════════ */
.principles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: var(--gap-block);
}
@media (max-width: 880px) { .principles-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principles-grid { grid-template-columns: 1fr; } }
.principle {
  background: var(--c-bg-card);
  padding: clamp(28px, 2.6vw, 40px);
  transition: background .2s ease;
}
.principle:hover { background: var(--c-primary-pale); }
.principle-num {
  font-family: var(--ff-mono); font-size: 12px;
  color: var(--c-primary); letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.principle-desc { margin-top: 10px; color: var(--c-ink-2); font-size: 15px; line-height: 1.65; }

.timeline { display: flex; flex-direction: column; gap: 0; max-width: 760px; margin-inline: auto; margin-top: var(--gap-block); }
.milestone {
  display: grid; grid-template-columns: 100px 24px 1fr; gap: 24px;
  padding: 24px 0;
  align-items: start;
  position: relative;
}
.milestone:not(:last-child)::after {
  content: ""; position: absolute;
  top: 36px; bottom: -12px;
  inset-inline-start: 110px;
  width: 1px; background: var(--c-primary-soft);
}
.milestone-year { font-family: var(--ff-mono); font-weight: 500; color: var(--c-primary); padding-top: 4px; }
.milestone-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-primary); margin-top: 10px; margin-inline: 7px; position: relative; z-index: 1; }
.milestone-text { font-size: 17px; line-height: 1.55; }

.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-top: var(--gap-block);
}
.team-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.4vw, 36px);
  transition: all .25s ease;
}
.team-card:hover { border-color: var(--c-ink); transform: translateY(-2px); }
.team-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--c-primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-weight: 700; font-size: 22px;
  overflow: hidden;
}
.team-avatar-photo { background: oklch(0.86 0.06 320); }
.team-avatar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-name { margin-top: 16px; font-family: var(--ff-display); font-weight: 700; font-size: 20px; }
.team-role { color: var(--c-ink-2); font-size: 14px; margin-top: 4px; }
.team-years { font-family: var(--ff-mono); font-size: 11px; color: var(--c-muted); margin-top: 12px; }

/* ═══════════════════ Carousel (Work + Solutions on home) ═══════════════════ */
.carousel {
  position: relative;
  /* Let the track bleed to the edge of the viewport on the side opposite the
     gutter padding — visually invites the next card into view. */
}
.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.carousel-controls-left { display: flex; align-items: center; gap: 10px; }
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: var(--c-bg-card, #fff);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--c-ink);
  transition: background .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease, transform .15s cubic-bezier(.34,1.56,.64,1);
}
.carousel-btn:hover:not(:disabled) { background: var(--c-primary); color: white; border-color: var(--c-primary); }
.carousel-btn:active:not(:disabled) { transform: scale(0.88); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }

/* Press animation — JS toggles .is-pressed-{prev,next} for ~280ms on
   click so the bump survives even when the user clicks faster than the
   :active pseudo-state can register. The arrow inside the button nudges
   in the direction of travel; the button shell does a spring-back. */
@keyframes carousel-btn-press {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.85); }
  100% { transform: scale(1); }
}
/* The nudge keyframes COMPOSE the directional flip (--arrow-flip) with the
   translate, so the press animation never clobbers the chevron's scaleX
   and the arrow can't momentarily flip to the opposite direction (the
   previous keyframes set `transform: translateX()` alone, which dropped
   the scaleX(-1) for 280ms — the visible "arrow reverses on click" bug). */
@keyframes carousel-arrow-nudge-prev {
  0%   { transform: scaleX(var(--arrow-flip, 1)) translateX(0); }
  40%  { transform: scaleX(var(--arrow-flip, 1)) translateX(4px); }
  100% { transform: scaleX(var(--arrow-flip, 1)) translateX(0); }
}
@keyframes carousel-arrow-nudge-next {
  0%   { transform: scaleX(var(--arrow-flip, 1)) translateX(0); }
  40%  { transform: scaleX(var(--arrow-flip, 1)) translateX(-4px); }
  100% { transform: scaleX(var(--arrow-flip, 1)) translateX(0); }
}
.carousel-btn.is-pressed-prev,
.carousel-btn.is-pressed-next {
  animation: carousel-btn-press 280ms cubic-bezier(.34,1.56,.64,1);
}
.carousel-btn.is-pressed-prev svg { animation: carousel-arrow-nudge-prev 280ms ease-out; }
.carousel-btn.is-pressed-next svg { animation: carousel-arrow-nudge-next 280ms ease-out; }
/* RTL flips the visual direction — keep the nudge consistent with what
   the user sees ("next" arrow visually points left in RTL). */
html[dir="rtl"] .carousel-btn.is-pressed-prev svg { animation-name: carousel-arrow-nudge-next; }
html[dir="rtl"] .carousel-btn.is-pressed-next svg { animation-name: carousel-arrow-nudge-prev; }
/* The SVG path draws a left-pointing chevron (<). Buttons that should point
   the other way (next in LTR, prev in RTL) set --arrow-flip:-1; the static
   transform + every nudge keyframe read that var so the flip is preserved. */
.carousel-btn svg { display: block; transform: scaleX(var(--arrow-flip, 1)); }
html[dir="ltr"] .carousel-btn.carousel-next svg,
html[dir="rtl"] .carousel-btn.carousel-prev svg { --arrow-flip: -1; }

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  /* `proximity`, not `mandatory`: the JS pager scrolls by a full PAGE
     (several cards), but snap points sit on every card. Mandatory snap
     re-yanked the resting position to the nearest single card after each
     programmatic page jump — desyncing the active dot and "prev". Proximity
     keeps the nice swipe-settle for touch/trackpad without overriding our
     own page scrolls. */
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px; /* room for hover-lift shadow */
}
.carousel-track::-webkit-scrollbar { display: none; }
/* Disable mandatory snap during programmatic slide so each rAF tick
   isn't yanked back by the snap engine. Re-enabled when the slide ends. */
.carousel-track.is-animating { scroll-snap-type: none; }
.carousel-card {
  flex: 0 0 clamp(260px, 28vw, 320px);
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--c-bg-card, #fff);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-decoration: none;
  color: inherit;
}
.carousel-card:hover { border-color: var(--c-ink); transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.carousel-card-visual {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}
.carousel-card-pattern { position: absolute; inset: 0; opacity: 0.75; }
.carousel-card-year {
  position: absolute; top: 16px; inset-inline-start: 18px;
  font-family: var(--ff-mono); font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.78); letter-spacing: 0.04em; z-index: 2;
}
.carousel-card-headline {
  position: relative; z-index: 1;
  font-family: var(--ff-display);
  color: white; font-weight: 800; font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.01em; text-align: center;
  padding: 0 18px; line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}
.carousel-card-headline-sm { font-size: clamp(18px, 2vw, 22px); padding: 0 14px; }
.carousel-card-icon { position: relative; z-index: 1; }
.carousel-card-icon-sm { position: relative; z-index: 1; display: flex; }
.carousel-card-stack {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
}
.carousel-card-metric-label {
  font-family: var(--ff-mono); font-size: 10.5px;
  color: var(--c-muted); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 2px;
}
.carousel-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.carousel-card-chip {
  font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--c-muted); text-transform: uppercase;
}
.carousel-card-title {
  font-family: var(--ff-display); font-weight: 700;
  font-size: 17px; line-height: 1.4;
  margin-top: 10px; color: var(--c-ink);
}
.carousel-card-divider { border-top: 1px solid var(--c-line-2, #efebf2); margin: 16px 0 12px; }
.carousel-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
  gap: 12px;
}
.carousel-card-metric {
  font-family: var(--ff-display); font-weight: 700;
  color: var(--c-primary); font-size: 15px;
}
.carousel-card-metric small { font-family: var(--ff-mono); font-weight: 500; font-size: 11px; color: var(--c-muted); margin-inline-start: 4px; }
.carousel-card-arrow { color: var(--c-primary); display: inline-flex; }

.carousel-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 22px;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-line); border: 0;
  padding: 0; cursor: pointer;
  transition: background .2s ease, width .2s ease;
}
.carousel-dot.active { background: var(--c-primary); width: 24px; border-radius: 4px; }

@media (max-width: 720px) {
  .carousel-card { flex-basis: 78vw; }
}

/* ═══════════════════ Solutions catalog ═══════════════════ */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.solution-card {
  display: flex; flex-direction: column;
  background: var(--c-bg-card, #fff);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .25s ease;
}
.solution-card:hover { border-color: var(--c-ink); transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.solution-card-visual {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
}
.solution-card-pattern { position: absolute; inset: 0; opacity: 0.7; }
.solution-card-icon { position: relative; z-index: 1; }
.solution-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.solution-card-price {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--c-line-2, #efebf2);
}
.solution-card-price-label { font-family: var(--ff-mono); font-size: 11px; color: var(--c-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.solution-card-price-value { font-family: var(--ff-display); font-weight: 700; font-size: 22px; color: var(--c-primary); letter-spacing: -0.01em; }
.solution-card-cta {
  margin-top: 18px; color: var(--c-primary);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 13px; font-weight: 500;
}

/* ═══════════════════ Insights / blog ═══════════════════ */
.post-featured {
  display: grid; grid-template-columns: 1fr 1.2fr;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all .35s ease;
}
.post-featured:hover { border-color: var(--c-ink); box-shadow: var(--shadow-lg); }
@media (max-width: 760px) { .post-featured { grid-template-columns: 1fr; } }
.post-featured-visual { position: relative; min-height: 320px; aspect-ratio: 4/3; }
.post-featured-pattern { position: absolute; inset: 0; opacity: 0.6; }
.post-featured-overlay { position: relative; color: white; padding: clamp(28px, 3vw, 48px); height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.post-featured-cat { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.post-featured-time { font-family: var(--ff-display); font-size: 18px; opacity: 0.85; }
.post-featured-body { padding: clamp(28px, 3vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.post-featured-date { font-family: var(--ff-mono); font-size: 12px; color: var(--c-muted); }
.post-featured-title { margin-top: 16px; font-size: clamp(28px, 3.4vw, 48px); font-family: var(--ff-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.post-featured-cta { margin-top: 28px; color: var(--c-primary); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: var(--gap-block);
}
.post-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .3s ease;
  display: block; color: inherit;
}
.post-card:hover { border-color: var(--c-ink); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card-visual { aspect-ratio: 16/9; position: relative; }
.post-card-cat { font-family: var(--ff-mono); font-size: 11px; color: white; letter-spacing: 0.08em; text-transform: uppercase; position: absolute; top: 16px; right: 16px; }
.post-card-body { padding: 20px 24px 24px; }
.post-card-meta { display: flex; gap: 12px; font-family: var(--ff-mono); font-size: 11px; color: var(--c-muted); }
.post-card-title { margin-top: 12px; }
.post-card-excerpt { margin-top: 10px; color: var(--c-ink-2); font-size: 14.5px; line-height: 1.6; }

.newsletter {
  margin-top: var(--gap-sec);
  background: var(--c-bg-deep); color: oklch(0.95 0.01 320);
  padding: clamp(40px, 5vw, 72px);
  border-radius: var(--r-xl);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
}
@media (max-width: 720px) { .newsletter { grid-template-columns: 1fr; } }
.newsletter h3 { color: white; margin-top: 12px; }
.newsletter p { color: oklch(0.85 0.02 320); margin-top: 16px; max-width: 50ch; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 200px;
  padding: 16px 20px;
  background: oklch(0.30 0.05 320);
  border: 1px solid oklch(0.40 0.05 320);
  border-radius: 999px;
  color: white; font-family: var(--ff-body); font-size: 15px;
}
.newsletter-form input::placeholder { color: oklch(0.70 0.04 320); }
.newsletter-form input:focus { outline: 0; border-color: oklch(0.78 0.08 320); }
.newsletter-form button { background: oklch(0.95 0.02 320); color: var(--c-bg-deep); }
.newsletter-form button:hover { background: white; }
.newsletter-form .form-msg { width: 100%; font-family: var(--ff-mono); font-size: 13px; color: oklch(0.85 0.04 320); }
.newsletter-form .form-msg.ok { color: oklch(0.85 0.12 145); }
.newsletter-form .form-msg.err { color: oklch(0.80 0.14 25); }

/* ═══════════════════ Article ═══════════════════ */
.article-breadcrumb {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ff-mono); font-size: 13px; color: var(--c-muted);
}
.article-breadcrumb a { color: var(--c-ink-2); }
.article-breadcrumb a:hover { color: var(--c-primary); }

.article-meta {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: 36px; padding-block: 24px;
  border-block: 1px solid var(--c-line);
}
.meta-author { display: flex; align-items: center; gap: 12px; }
.meta-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-weight: 700; font-size: 18px;
}
.meta-divider { width: 1px; height: 36px; background: var(--c-line); }
.meta-info { display: flex; gap: 32px; }
.meta-label {
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--c-muted); letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-hero {
  position: relative; overflow: hidden;
  aspect-ratio: 21/9; border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
  display: flex; align-items: end;
  color: white;
}
.article-hero-pattern { position: absolute; inset: 0; opacity: 0.7; }

/* Full-bleed featured image (cover_image_html). Fills any relatively-
   positioned *-visual / hero wrapper, cropping to fit. No z-index — like
   the gradient pattern it replaces, it's the first child of the wrapper
   so text overlays (client name, year, category) painted later in the
   DOM sit on top. */
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.article-hero .cover-img { border-radius: inherit; }
/* Legibility scrim under white text overlays (tiles, carousels, hero).
   Bottom-weighted but with a floor everywhere, so centered headlines stay
   readable over bright photos too. */
.cover-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.28) 55%, rgba(0,0,0,0.24) 100%); }

.article-body {
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.8;
  color: var(--c-ink-2);
}
.article-body h2 { color: var(--c-ink); margin-top: var(--gap-block); font-size: var(--t-h2); }
.article-body h3 { margin-top: 32px; margin-bottom: 16px; color: var(--c-ink); }
.article-body p { margin-block: 18px; }
.article-body ul {
  padding-inline-start: 20px;
  display: flex; flex-direction: column; gap: 8px;
  margin-block: 20px;
}
.article-body ul li {
  position: relative; padding-inline-start: 16px;
  list-style: none;
}
.article-body ul li::before {
  content: ""; position: absolute;
  inset-inline-start: 0; top: 0.7em;
  width: 6px; height: 6px;
  background: var(--c-primary);
  border-radius: 50%;
}
.article-body strong { color: var(--c-ink); font-weight: 600; }
.article-body code {
  background: var(--c-primary-pale);
  padding: 2px 8px; border-radius: 4px;
  font-family: var(--ff-mono); font-size: 0.9em;
  color: var(--c-primary);
}
.article-body .article-lead {
  font-size: clamp(19px, 1.5vw, 24px) !important;
  line-height: 1.55 !important;
  color: var(--c-ink) !important;
  font-weight: 400;
  margin-block: 0 32px !important;
}
.article-body .article-quote {
  margin: 40px 0;
  padding: 28px 36px;
  background: var(--c-primary-pale);
  border-inline-start: 4px solid var(--c-primary);
  border-radius: var(--r-md);
  font-family: var(--ff-display);
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.4;
  font-weight: 500;
  color: var(--c-ink);
}

.article-cta {
  background: var(--c-primary-pale);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 40px);
  margin-block: var(--gap-block) 0;
}
.article-cta h3 { margin-bottom: 12px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: var(--gap-block);
}
.related-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .3s ease;
  display: block; color: inherit;
}
.related-card:hover { border-color: var(--c-ink); transform: translateY(-3px); }
.related-visual { aspect-ratio: 16/9; position: relative; }

/* ═══════════════════ Contact ═══════════════════ */
.contact-shell {
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
}
.contact-progress { display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.step-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 999px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  font-size: 13px; color: var(--c-muted);
  transition: all .25s ease;
}
.step-pill .step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--c-bg-card); border: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: 12px;
}
.step-pill.active { color: var(--c-ink); border-color: var(--c-primary-soft); }
.step-pill.active .step-num { background: var(--c-primary); color: white; border-color: var(--c-primary); }
.step-pill.current { background: var(--c-primary-pale); border-color: var(--c-primary); }

.step h2 { font-size: clamp(24px, 2.6vw, 36px); }
.step-intro { color: var(--c-ink-2); margin-top: 12px; }
.step-fields { margin-top: 32px; }
.step-fields-2col { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .step-fields-2col { grid-template-columns: 1fr; } }
.step-fields-full { grid-column: 1 / -1; }

.type-grid { display: grid; gap: 8px; margin-top: 32px; }
.type-card {
  display: flex; align-items: center; gap: 16px;
  text-align: start;
  background: var(--c-bg); border: 1px solid var(--c-line);
  padding: 18px 20px; border-radius: var(--r-md);
  transition: all .2s ease;
  cursor: pointer;
}
.type-card:hover { border-color: var(--c-ink-2); background: var(--c-bg-card); }
.type-card.selected { border-color: var(--c-primary); background: var(--c-primary-pale); }
.type-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--c-line);
  background: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.type-card.selected .type-check { background: var(--c-primary); border-color: var(--c-primary); }
.type-label { font-weight: 600; font-size: 16px; }
.type-desc { font-size: 13.5px; color: var(--c-muted); margin-top: 4px; }

.field-label {
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--c-muted); letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field-input {
  display: block; width: 100%;
  padding: 14px 16px; margin-top: 8px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  font-size: 15px; font-family: var(--ff-body); color: var(--c-ink);
  transition: all .2s ease;
}
.field-input:focus { outline: 0; border-color: var(--c-primary); background: var(--c-bg-card); }

.chip-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-option {
  padding: 10px 18px; border-radius: 999px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  font-family: var(--ff-body); font-size: 14px;
  color: var(--c-ink-2);
  transition: all .2s ease;
  cursor: pointer;
}
.chip-option:hover { border-color: var(--c-ink-2); }
.chip-option.selected { background: var(--c-primary); color: white; border-color: var(--c-primary); }

.step-controls {
  display: flex; align-items: center; gap: 12px;
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--c-line);
}
.step-controls .spacer { flex: 1; }
.done-check {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--c-success); color: white;
  display: flex; align-items: center; justify-content: center;
}

.alt-contacts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 32px;
}
@media (max-width: 640px) { .alt-contacts { grid-template-columns: 1fr; } }
.alt-card { padding: 20px 24px; background: var(--c-bg-card); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.alt-label { font-family: var(--ff-mono); font-size: 11px; color: var(--c-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.alt-value { font-weight: 600; font-size: 16px; color: var(--c-ink); display: block; }

.form-msg-area { margin-top: 16px; font-family: var(--ff-mono); font-size: 13px; }
.form-msg-area.ok { color: var(--c-success); }
.form-msg-area.err { color: oklch(0.55 0.18 25); }

/* ═══════════════════ Footer ═══════════════════ */
.pre-footer { background: var(--c-bg-deep); color: oklch(0.95 0.01 320); padding: var(--gap-sec) 0 0; }
.pre-footer-inner { max-width: 900px; }
.pre-footer .t-eyebrow { color: oklch(0.78 0.08 320); }
.pre-footer h2 {
  font-family: var(--ff-display);
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 800; line-height: 0.96;
  letter-spacing: -0.025em;
  color: oklch(0.96 0.01 320);
  margin: 16px 0 24px;
}
.pre-footer .btn { background: oklch(0.95 0.02 320); color: var(--c-bg-deep); font-size: 16px; padding: 18px 28px; }
.pre-footer .btn:hover { background: white; }

.footer {
  background: var(--c-bg-deep);
  color: oklch(0.92 0.01 320);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid oklch(0.30 0.04 320);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: oklch(0.75 0.04 320);
  margin-bottom: 16px; font-weight: 500;
}
.footer a { display: block; padding: 6px 0; color: oklch(0.85 0.02 320); font-size: 15px; transition: color .15s; }
.footer a:hover { color: white; }
.footer-brand-name { font-family: var(--ff-display); font-weight: 700; font-size: 22px; color: white; }
.footer-tagline { font-family: var(--ff-mono); font-size: 13px; color: oklch(0.78 0.03 320); line-height: 1.7; max-width: 320px; white-space: pre-line; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-family: var(--ff-mono); font-size: 12px;
  color: oklch(0.65 0.03 320);
}
@media (max-width: 560px) { .footer-bottom { flex-direction: column; gap: 12px; text-align: center; } }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { display: inline; padding: 0; }
.footer-address { white-space: pre-line; }

/* ═══════════════════ Loader ═══════════════════ */
.loader {
  display: flex; align-items: center; justify-content: center;
  padding: 100px 20px; color: var(--c-muted);
  font-family: var(--ff-mono); font-size: 13px;
  gap: 12px;
}
.loader::before {
  content: ""; display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid var(--c-primary-soft);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-box {
  margin: 60px auto; max-width: 520px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 32px;
  text-align: center;
}
.error-box h2 { margin-bottom: 12px; color: var(--c-ink); }
.error-box p { color: var(--c-muted); margin-bottom: 20px; }

/* ═══════════════════ Page intros ═══════════════════ */
.page-intro { padding-top: clamp(40px, 6vw, 80px); }
.page-intro h1 { margin-top: 24px; max-width: 16ch; }
.page-intro .lead { margin-top: 28px; max-width: 640px; }
.page-intro em { font-style: normal; color: var(--c-primary); font-family: var(--ff-display); }

/* ═══════════════════ Site map embed (before footer) ═══════════════════ */
/* Full-bleed band holding the admin-pasted (and sanitized) maps iframe.
   The iframe itself gets width:100% + min-height from sanitize_map_embed(). */
.site-map { border-top: 1px solid var(--c-line); }
.site-map iframe { display: block; width: 100%; border: 0; }

/* ═══════════════════ Testimonials — Google reviews mode ═══════════════════ */
/* Wrapper for the admin-pasted review-widget embed (mode = google). Gives
   the third-party widget room + the section's normal top rhythm. */
.testi-google { margin-top: var(--gap-block); min-height: 120px; }
.testi-google :is(iframe, img) { max-width: 100%; }

/* ═══════════════════ Pagination (archive pager) ═══════════════════ */
.pagination {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px; margin-top: clamp(32px, 5vw, 56px);
}
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  background: var(--c-bg-card, #fff);
  color: var(--c-ink);
  font-family: var(--ff-mono); font-size: 13.5px; font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.page-link:hover { border-color: var(--c-primary); color: var(--c-primary); text-decoration: none; }
.page-link.is-current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 700; }
.page-link.is-disabled { opacity: 0.4; pointer-events: none; }
.page-nav { font-family: var(--ff-body); font-weight: 600; }
.page-ellipsis { padding: 0 4px; color: var(--c-muted); }
@media (max-width: 480px) { .page-link { min-width: 36px; height: 36px; padding: 0 9px; font-size: 12.5px; } }