/* ============================================================
   Xantrum - main.css
   Style: Exaggerated Minimalism + Bold Typography (Editorial Agency)
   Scope in this file: base / buttons / nav / hero only.
   ============================================================ */

/* ---------- Base ---------- */
html, body {
  background: var(--bg);
  color: var(--fg);
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11", "cv01";
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg);
}

p {
  color: var(--fg-soft);
}

/* Utility */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.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;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.accent { color: var(--accent); }

/* ---------- Buttons / CTAs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: var(--radius-1);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--dur-2) var(--ease-standard),
              color var(--dur-2) var(--ease-standard),
              border-color var(--dur-2) var(--ease-standard),
              transform var(--dur-1) var(--ease-standard);
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: translateY(1px); }

.btn-solid {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn-solid:hover {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-2);
}
.btn-outline:hover {
  border-color: var(--fg);
  background: var(--surface);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  padding: 0 4px;
  height: 28px;
  border-radius: 0;
}

.btn-arrow {
  width: 16px; height: 10px;
  position: relative;
  transition: transform var(--dur-2) var(--ease-out);
}
.btn-arrow::before,
.btn-arrow::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.btn-arrow::before { top: 4px; left: 0; width: 100%; height: 1.5px; }
.btn-arrow::after  { top: 0; right: 0; width: 8px; height: 8px;
                     border-right: 1.5px solid currentColor;
                     border-top: 1.5px solid currentColor;
                     transform: rotate(45deg);
                     background: transparent; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Text-link CTA (underline draws on hover) */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 6px 0;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform var(--dur-2) var(--ease-out),
              background var(--dur-2) var(--ease-standard);
}
.link:hover { color: var(--accent); }
.link:hover::after {
  transform-origin: left;
  background: var(--accent);
}

/* ============================================================
   SECTION 1 - NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur-2) var(--ease-standard),
              backdrop-filter var(--dur-2) var(--ease-standard),
              border-color var(--dur-2) var(--ease-standard);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}

.nav-inner {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-lg);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
}
.nav-brand img {
  height: 22px;
  width: auto;
  display: block;
}
.nav-brand-meta {
  display: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-left: 14px;
  margin-left: 4px;
  border-left: 1px solid var(--border);
}
@media (min-width: 1040px) {
  .nav-brand-meta { display: inline-flex; align-items: center; gap: 8px; }
}

.nav-menu {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-soft);
  padding: 8px 0;
  transition: color var(--dur-2) var(--ease-standard);
}
.nav-link::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-standard),
              width var(--dur-2) var(--ease-standard);
}
.nav-link:hover { color: var(--fg); }
.nav-link:hover::before { opacity: 1; width: 14px; }

.nav-right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}
.nav-cta {
  height: 40px;
  padding: 0 18px;
  font-size: 13px;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: transparent;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-1);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--fg);
  position: relative;
  transition: transform var(--dur-2) var(--ease-standard),
              opacity var(--dur-1) linear;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

.nav.is-open .nav-toggle span         { background: transparent; }
.nav.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-inner { grid-template-columns: auto auto; }
  .nav-toggle { display: inline-flex; }
  .nav-menu, .nav-right .btn-solid { display: none; }
  .nav.is-open .nav-menu {
    display: flex;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--container-pad) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open .nav-link {
    padding: 18px 0;
    font-size: 22px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--fg);
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open .nav-link::before { display: none; }
  .nav.is-open .nav-menu::after {
    content: "";
    display: block;
    height: 0;
  }
}

/* ============================================================
   SECTION 2 - HERO (Exaggerated Minimalism)
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + clamp(40px, 8vh, 96px));
  padding-bottom: clamp(40px, 8vh, 120px);
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  isolation: isolate;
}

/* Full-bleed framing rules (the thin editorial border) */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: var(--container-pad);
  right: var(--container-pad);
  height: 1px;
  background: var(--border);
  pointer-events: none;
}
.hero::before { top: calc(var(--nav-height) + 20px); }
.hero::after  { bottom: 0; }

/* Eyebrow row */
.hero-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: 34px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero-eyebrow .idx { color: var(--fg); }
.hero-eyebrow .sep {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--border-2);
}
.hero-eyebrow .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-soft);
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
.hero-eyebrow-right {
  display: none;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
}
@media (min-width: 720px) { .hero-eyebrow-right { display: inline-flex; gap: 12px; align-items: center; } }

/* Oversized headline */
.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin-block: clamp(32px, 6vh, 96px) clamp(24px, 4vh, 48px);
  max-width: 18ch;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.18em;   /* room for descenders (g, j, y) during mask reveal */
  margin-bottom: -0.18em;   /* keep visual line spacing identical */
}
.hero-title .line > span {
  display: inline-block;
  will-change: transform;
}
.hero-title em {
  font-style: normal;
  position: relative;
  color: var(--fg);
  padding-right: 0.08em;
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.02em;
  width: 100%;
  height: 0.12em;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  animation: none;
}
.hero-title.is-ready em::after {
  animation: underline-draw 900ms var(--ease-out) 1.1s forwards;
}
@keyframes underline-draw {
  to { transform: scaleX(1); }
}

/* Meta row below headline: subhead left + CTAs right */
.hero-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: end;
  padding-top: clamp(24px, 4vh, 48px);
  padding-bottom: clamp(24px, 4vh, 48px);
  border-top: 1px solid var(--border);
}
.hero-sub {
  font-size: var(--fs-lead);
  line-height: 1.45;
  max-width: 52ch;
  color: var(--fg-soft);
  font-weight: 400;
}
.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
@media (min-width: 900px) {
  .hero-meta { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .hero-actions { justify-self: end; }
}

/* Service ribbon (replaces trusted-by mockup in hero; marquee section follows) */
.hero-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: 22px 0 6px;
}
.hero-ribbon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-ribbon-list .num { color: var(--fg); margin-right: 6px; }
.hero-ribbon-list .item { display: inline-flex; align-items: center; gap: 6px; }
.hero-ribbon-list .item + .item::before {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--border-2);
  margin-right: 14px;
}

/* GMB rating (compact, right side) */
.gmb-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.gmb-stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 1px;
}
.gmb-rating { color: var(--fg); font-weight: 500; letter-spacing: 0.08em; }
.gmb-label  { color: var(--muted-2); }
.gmb-separator { color: var(--border-2); margin: 0 2px; }
.gmb-count  { color: var(--fg-soft); }

/* Scroll indicator (bottom-left, quiet) */
.hero-scroll {
  position: absolute;
  left: var(--container-pad);
  bottom: 22px;
  display: none;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
  animation: scroll-nudge 2.4s ease-in-out infinite;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 22px;
  background: linear-gradient(180deg, var(--muted-2), transparent);
}
@media (min-width: 1100px) { .hero-scroll { display: inline-flex; } }

/* Responsive tuning */
@media (max-width: 640px) {
  .hero-title { max-width: none; }
  .hero-ribbon { flex-direction: column; align-items: flex-start; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; min-width: 160px; }
}

/* ============================================================
   SECTION 3 - MARQUEE (Trusted By)
   Editorial, quiet, infinite CSS ticker. No JS.
   ============================================================ */
.marquee-section {
  position: relative;
  padding-block: clamp(40px, 7vh, 88px);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.marquee-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: clamp(28px, 4vh, 48px);
  color: var(--muted-2);
}
.marquee-header .mono { color: var(--muted); }
.marquee-header .marquee-meta {
  text-align: right;
  color: var(--muted-2);
}
@media (max-width: 640px) {
  .marquee-header .marquee-meta { display: none; }
}

/* Ticker */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 6px;
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 10%,
    #000 90%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
  padding-right: clamp(36px, 5vw, 72px);
}

.logo-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.85;
  transition: color var(--dur-2) var(--ease-standard),
              opacity var(--dur-2) var(--ease-standard);
}
.logo-mark:hover { color: var(--fg); opacity: 1; }

.logo-mark.serif {
  font-family: 'Inter Tight', serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.logo-mark.mono {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.15vw, 17px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.logo-mark.condensed {
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: clamp(18px, 1.6vw, 24px);
}
.logo-mark.caps {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(18px, 1.5vw, 22px);
}

.logo-mark .bullet {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.logo-mark .slash {
  color: var(--border-2);
  font-weight: 500;
  margin: 0 2px;
}

.logo-dot {
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  background: var(--border-2);
  border-radius: 50%;
  display: inline-block;
}

/* ============================================================
   SECTION 4 - PAIN POINT (Light inversion)
   Editorial contrast break: warm off-white, oversized statement,
   three-column grid with hairline dividers and numbered labels.
   ============================================================ */
.section-light {
  --bg-local:   #F5F2EE;   /* warm off-white (paper) */
  --fg-local:   #0A0A0A;
  --muted-loc:  #595959;
  --muted-2-loc:#8A8A8A;
  --border-loc: #1A1A1A11; /* very subtle on light */
  --border-2-loc:#1A1A1A22;
  background: var(--bg-local);
  color: var(--fg-local);
}
.section-light p { color: var(--muted-loc); }

.pain {
  position: relative;
  padding-block: clamp(80px, 14vh, 160px);
  overflow: hidden;
}

/* Top editorial rule + tiny section index */
.pain-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  padding-bottom: clamp(32px, 5vh, 56px);
  border-bottom: 1px solid var(--border-2-loc);
}
.pain-head .mono { color: var(--muted-2-loc); }
.pain-head .mono .idx { color: var(--fg-local); margin-right: 10px; }

/* Oversized statement headline */
.pain-statement {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 6.5vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--fg-local);
  max-width: 18ch;
  margin-block: clamp(32px, 6vh, 80px) clamp(20px, 3vh, 36px);
}
.pain-statement em {
  font-style: normal;
  color: var(--fg-local);
  position: relative;
  padding-right: 0.05em;
  white-space: nowrap;
}
.pain-statement em::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.02em;
  width: 100%;
  height: 0.1em;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 900ms var(--ease-out);
}
.pain.is-in-view .pain-statement em::after { transform: scaleX(1); }

.pain-sub {
  font-size: var(--fs-lead);
  line-height: 1.5;
  max-width: 60ch;
  color: var(--muted-loc);
  margin-bottom: clamp(64px, 9vh, 120px);
}

/* Three-column problem grid */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 0;
  border-top: 1px solid var(--border-2-loc);
  border-bottom: 1px solid var(--border-2-loc);
}

@media (min-width: 760px) {
  .pain-grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
}

.pain-item {
  position: relative;
  padding: clamp(36px, 5vh, 56px) clamp(20px, 2.2vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 760px) {
  .pain-item + .pain-item::before {
    content: "";
    position: absolute;
    left: 0; top: 14%;
    width: 1px; height: 72%;
    background: var(--border-2-loc);
  }
}
@media (max-width: 759px) {
  .pain-item + .pain-item { border-top: 1px solid var(--border-2-loc); }
}

.pain-item .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2-loc);
}
.pain-item .num .idx {
  color: var(--fg-local);
  margin-right: 10px;
  font-weight: 500;
}

.pain-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--fg-local);
  margin-top: 8px;
}

.pain-item p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-loc);
  max-width: 38ch;
}

/* Tail rule with a trailing meta — ties back to hero's editorial grammar */
.pain-tail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: clamp(24px, 4vh, 40px);
  color: var(--muted-2-loc);
}
.pain-tail .mono { color: var(--muted-2-loc); }
.pain-tail .mono .accent { color: var(--accent); }

@media (max-width: 640px) {
  .pain-tail { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================================
   SECTION 5 - SERVICES
   Dark editorial section:
     - Header (eyebrow + title + lede)
     - Icon ticker (infinite marquee of all services)
     - Filter tabs (underline-active)
     - Card grid (3 col desktop / 2 col tablet / 1 col mobile)
   ============================================================ */
.services {
  background: var(--bg);
  color: var(--fg);
  padding-block: clamp(72px, 11vh, 160px);
  border-block: 1px solid var(--border);
}

.svc-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: end;
  padding-bottom: clamp(24px, 3.5vh, 40px);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(32px, 5vh, 56px);
}
.svc-head .svc-index { color: var(--muted-2); }
.svc-head .svc-index .idx { color: var(--accent); margin-right: 8px; }
.svc-head .svc-meta    { color: var(--muted-2); text-align: right; }

.svc-title {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-top: 24px;
  max-width: 18ch;
}
.svc-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.svc-lede {
  grid-column: 1 / -1;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 60ch;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .svc-head { grid-template-columns: 1fr; gap: 8px; }
  .svc-head .svc-meta { text-align: left; }
}

/* ---- Icon ticker (all services scroll infinitely) ---- */
.svc-ticker {
  position: relative;
  overflow: hidden;
  padding-block: clamp(20px, 3vh, 32px);
  border-block: 1px solid var(--border);
  margin-block: clamp(32px, 5vh, 56px);
  mask-image: linear-gradient(90deg,
    transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0, #000 10%, #000 90%, transparent 100%);
}
.svc-ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: svc-ticker-scroll 52s linear infinite;
}
.svc-ticker:hover .svc-ticker-track,
.svc-ticker:focus-within .svc-ticker-track {
  animation-play-state: paused;
}
.svc-ticker-group {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding-inline: clamp(14px, 2vw, 28px);
}
.svc-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg-soft);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15px, 1.15vw, 18px);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.svc-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.svc-icon-svg svg { width: 100%; height: 100%; display: block; }

@keyframes svc-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .svc-ticker-track { animation: none; }
}

/* ---- Filter tabs ---- */
.svc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1.2vw, 16px);
  align-items: center;
  margin-bottom: clamp(24px, 3.5vh, 40px);
}
.svc-filter {
  --pad-y: 10px;
  --pad-x: 14px;
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: var(--pad-y) var(--pad-x);
  cursor: pointer;
  border-radius: var(--radius-0);
  transition: color var(--dur-2) var(--ease-standard);
}
.svc-filter::after {
  content: '';
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-2) var(--ease-standard);
}
.svc-filter:hover   { color: var(--fg-soft); }
.svc-filter:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.svc-filter.is-active {
  color: var(--accent);
}
.svc-filter.is-active::after {
  transform: scaleX(1);
}

/* ---- Editorial list (big-row index) ---- */
.svc-grid {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  transition: opacity var(--dur-2) var(--ease-standard);
}

.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto 40px;
  gap: clamp(16px, 2vw, 32px);
  align-items: center;
  padding: clamp(20px, 2.6vh, 32px) clamp(4px, 1vw, 16px);
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  isolation: isolate;
  transition: background-color var(--dur-2) var(--ease-standard),
              padding var(--dur-2) var(--ease-standard);
}
.svc-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-3) var(--ease-out);
  z-index: -1;
}
.svc-row:hover::before,
.svc-row:focus-within::before {
  transform: scaleX(1);
}
.svc-row:hover,
.svc-row:focus-within {
  padding-inline: clamp(16px, 2vw, 28px);
}

.svc-row-idx {
  color: var(--muted-2);
  font-size: var(--fs-label);
  transition: color var(--dur-2) var(--ease-standard);
}
.svc-row:hover .svc-row-idx { color: var(--accent); }

.svc-row.is-featured .svc-row-idx { color: var(--accent); }

.svc-row-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.svc-row-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 40px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: 0;
}

.svc-row-outcome {
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 72ch;
  margin: 0;
}

.svc-row-cat {
  color: var(--muted-2);
  white-space: nowrap;
  transition: color var(--dur-2) var(--ease-standard);
}
.svc-row:hover .svc-row-cat { color: var(--fg-soft); }

.svc-row .svc-icon-svg {
  width: 22px;
  height: 22px;
  color: var(--muted);
  transition: color var(--dur-2) var(--ease-standard);
}
.svc-row:hover .svc-icon-svg { color: var(--accent); }

.svc-row-arrow {
  justify-self: end;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 18px;
  transform: translateX(-6px);
  opacity: 0.5;
  transition: transform var(--dur-2) var(--ease-standard),
              opacity var(--dur-2) var(--ease-standard),
              color var(--dur-2) var(--ease-standard);
}
.svc-row:hover .svc-row-arrow {
  color: var(--accent);
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 900px) {
  .svc-row {
    grid-template-columns: 40px minmax(0, 1fr) auto 28px;
    gap: 14px;
  }
  .svc-row .svc-icon-svg { display: none; }
  .svc-row-title { font-size: clamp(20px, 4.5vw, 26px); }
  .svc-row-outcome { font-size: 14px; }
}
@media (max-width: 560px) {
  .svc-row {
    grid-template-columns: 32px minmax(0, 1fr) 24px;
    gap: 12px;
  }
  .svc-row-cat { display: none; }
}

.svc-empty {
  padding: clamp(40px, 6vh, 72px);
  text-align: center;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   SECTION 6 - PORTFOLIO / WORK
   Continuous horizontal marquee of project cards. Clicking a
   card opens a minimal modal with the full project record.
   Edge-masked for a cinematic feel. Respects prefers-reduced-motion.
   ============================================================ */
.portfolio {
  background: var(--bg);
  color: var(--fg);
  padding-block: clamp(72px, 11vh, 160px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.pf-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: end;
  padding-bottom: clamp(24px, 3.5vh, 40px);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(40px, 6vh, 72px);
}
.pf-head .pf-index { color: var(--muted-2); }
.pf-head .pf-index .idx { color: var(--accent); margin-right: 8px; }
.pf-head .pf-meta  { color: var(--muted-2); text-align: right; }

.pf-head .pf-title {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-top: 24px;
  max-width: 18ch;
}
.pf-head .pf-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.pf-lede {
  grid-column: 1 / -1;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 60ch;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .pf-head { grid-template-columns: 1fr; gap: 8px; }
  .pf-head .pf-meta { text-align: left; }
}

/* ---- Marquee (container breaks out of .container to span viewport) ---- */
.pf-marquee {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);   /* break out of .container padding */
  overflow: hidden;
  mask-image: linear-gradient(90deg,
    transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0, #000 8%, #000 92%, transparent 100%);
}

.pf-marquee-track {
  display: flex;
  width: max-content;
  animation: pf-marquee-scroll 90s linear infinite;
}
.pf-marquee:hover .pf-marquee-track,
.pf-marquee:focus-within .pf-marquee-track {
  animation-play-state: paused;
}

.pf-marquee-group {
  display: flex;
  gap: clamp(20px, 2vw, 36px);
  padding-inline: clamp(10px, 1vw, 18px);
}

@keyframes pf-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .pf-marquee-track { animation: none; }
}

/* ---- Card (minimal: thumb + client mono + title) ---- */
.pf-card {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  flex: 0 0 auto;
  width: clamp(240px, 22vw, 320px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: inherit;
  font-family: inherit;
  transition: transform var(--dur-2) var(--ease-standard);
}
.pf-card:hover { transform: translateY(-4px); }
.pf-card:focus-visible { outline: none; }
.pf-card:focus-visible .pf-thumb { border-color: var(--accent); }

.pf-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  border: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color var(--dur-2) var(--ease-standard);
}
.pf-card:hover .pf-thumb { border-color: var(--accent); }

.pf-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--border-2);
  background:
    linear-gradient(135deg, var(--surface) 0%, var(--bg-2) 100%);
  z-index: 0;
  user-select: none;
}

.pf-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition:
    opacity var(--dur-3) var(--ease-standard),
    transform var(--dur-3) var(--ease-out);
}
.pf-thumb-img.is-loaded { opacity: 1; }
.pf-card:hover .pf-thumb-img { transform: scale(1.04); }

.pf-card-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-inline: 2px;
}
.pf-card-client {
  color: var(--muted-2);
  font-size: var(--fs-label);
}
.pf-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg);
}

/* ---- Footer CTA ---- */
.pf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: clamp(40px, 6vh, 72px);
  padding-top: clamp(24px, 3.5vh, 40px);
  border-top: 1px solid var(--border);
}
.pf-footer .mono { color: var(--muted); }

@media (max-width: 640px) {
  .pf-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

.pf-empty {
  padding: clamp(40px, 6vh, 72px);
  text-align: center;
  color: var(--muted);
}

/* ============================================================
   Portfolio modal
   Full-screen overlay + centered panel. Safe DOM appended to
   <body> by portfolio.js. Controlled via the hidden attribute.
   ============================================================ */
body.pf-modal-open {
  overflow: hidden;
}

.pf-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px);
}
.pf-modal[hidden] { display: none; }

.pf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 6, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: pf-fade-in var(--dur-2) var(--ease-standard) both;
}
@keyframes pf-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pf-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  width: min(960px, 100%);
  max-height: min(720px, 92vh);
  background: var(--bg);
  border: 1px solid var(--border-2);
  overflow: hidden;
  animation: pf-panel-in 360ms var(--ease-out) both;
}
@keyframes pf-panel-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.pf-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition:
    background var(--dur-2) var(--ease-standard),
    border-color var(--dur-2) var(--ease-standard),
    color var(--dur-2) var(--ease-standard);
}
.pf-modal-close:hover,
.pf-modal-close:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
  outline: none;
}

.pf-modal-media {
  position: relative;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  overflow: hidden;
  min-height: 260px;
}
.pf-modal-media .pf-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: clamp(64px, 10vw, 140px);
  font-weight: 500;
  color: var(--border-2);
  background:
    linear-gradient(135deg, var(--surface) 0%, var(--bg-2) 100%);
}
.pf-modal-media .pf-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-standard);
}
.pf-modal-media .pf-thumb-img.is-loaded { opacity: 1; }

.pf-modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(28px, 3.2vw, 48px);
  overflow-y: auto;
}

.pf-modal-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--muted-2);
}
.pf-modal-eyebrow .mono { color: var(--muted-2); }
.pf-modal-eyebrow .mono:first-child { color: var(--accent); }

.pf-modal-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: 0;
}

.pf-modal-summary {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-soft);
  margin: 0;
}

.pf-modal-outcome {
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pf-modal-outcome .mono { color: var(--accent); }
.pf-modal-outcome p {
  margin: 0;
  color: var(--fg);
  font-size: 15px;
  line-height: 1.45;
}

/* Tags reuse .pf-tag from above (now scoped here too) */
.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pf-tag {
  padding: 4px 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.pf-modal-cta {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 720px) {
  .pf-modal-panel {
    grid-template-columns: 1fr;
    max-height: 96vh;
  }
  .pf-modal-media {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
}

/* ============================================================
   Shared section-header pattern
   Reused by process, AI, testimonials, bundles, contact, trust.
   ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: end;
  padding-bottom: clamp(24px, 3.5vh, 40px);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(32px, 5vh, 56px);
}

/* ============================================================
   SECTION 7 - PROCESS
   ============================================================ */
.process {
  background: var(--bg);
  color: var(--fg);
  padding-block: clamp(72px, 11vh, 160px);
  border-bottom: 1px solid var(--border);
}

.pc-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: end;
  padding-bottom: clamp(24px, 3.5vh, 40px);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(40px, 6vh, 72px);
}
.pc-head .pc-index { color: var(--muted-2); }
.pc-head .pc-index .idx { color: var(--accent); margin-right: 8px; }
.pc-head .pc-meta  { color: var(--muted-2); text-align: right; }

.pc-title {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-top: 24px;
  max-width: 18ch;
}
.pc-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.pc-lede {
  grid-column: 1 / -1;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 60ch;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .pc-head { grid-template-columns: 1fr; gap: 8px; }
  .pc-head .pc-meta { text-align: left; }
}

.pc-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 1024px) {
  .pc-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pc-steps { grid-template-columns: 1fr; }
}

.pc-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 3vw, 40px);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background var(--dur-2) var(--ease-standard);
}
.pc-step:hover { background: var(--bg-2); }

.pc-step-num {
  font-family: var(--font-mono);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.pc-step-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0;
}

.pc-step-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   SECTION 8 - STATS
   ============================================================ */
.stats {
  background: var(--bg);
  color: var(--fg);
  padding-block: clamp(48px, 8vh, 96px);
  border-bottom: 1px solid var(--border);
}

.st-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
@media (max-width: 960px) {
  .st-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .st-grid { grid-template-columns: 1fr; }
}

.st-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.st-label { color: var(--muted-2); }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 96px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.st-note { color: var(--muted-2); }

/* ============================================================
   SECTION 9 - AI
   ============================================================ */
.ai-section {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% 0%, rgba(255, 61, 0, 0.06) 0%, transparent 60%),
    var(--bg);
  color: var(--fg);
  padding-block: clamp(72px, 11vh, 160px);
  border-bottom: 1px solid var(--border);
}

.ai-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: end;
  padding-bottom: clamp(24px, 3.5vh, 40px);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(40px, 6vh, 72px);
}
.ai-head .ai-index { color: var(--muted-2); }
.ai-head .ai-index .idx { color: var(--accent); margin-right: 8px; }
.ai-head .ai-meta { color: var(--muted-2); text-align: right; }

.ai-title {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-top: 24px;
  max-width: 16ch;
}
.ai-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.ai-lede {
  grid-column: 1 / -1;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 60ch;
  margin-top: 16px;
}
@media (max-width: 640px) {
  .ai-head { grid-template-columns: 1fr; gap: 8px; }
  .ai-head .ai-meta { text-align: left; }
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
@media (max-width: 1024px) {
  .ai-grid { grid-template-columns: 1fr; }
}

.ai-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 3.2vw, 44px);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background var(--dur-2) var(--ease-standard);
  min-height: 280px;
}
.ai-card:hover { background: var(--bg-2); }

.ai-card-idx {
  color: var(--accent);
  font-size: var(--fs-label);
}

.ai-card-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0;
}
.ai-card-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   SECTION 10 - TESTIMONIALS
   ============================================================ */
.testimonials {
  background: var(--bg);
  color: var(--fg);
  padding-block: clamp(72px, 11vh, 160px);
  border-bottom: 1px solid var(--border);
}
.tm-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: end;
  padding-bottom: clamp(24px, 3.5vh, 40px);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(40px, 6vh, 72px);
}
.tm-head .tm-index { color: var(--muted-2); }
.tm-head .tm-index .idx { color: var(--accent); margin-right: 8px; }
.tm-head .tm-meta { color: var(--muted-2); text-align: right; }
.tm-title {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-top: 24px;
  max-width: 16ch;
}
.tm-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.tm-lede {
  grid-column: 1 / -1;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 60ch;
  margin-top: 16px;
}
@media (max-width: 640px) {
  .tm-head { grid-template-columns: 1fr; gap: 8px; }
  .tm-head .tm-meta { text-align: left; }
}

.tm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
@media (max-width: 960px) {
  .tm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tm-grid { grid-template-columns: 1fr; }
}

.tm-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 2.8vw, 36px);
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: border-color var(--dur-2) var(--ease-standard),
              transform var(--dur-2) var(--ease-standard);
}
.tm-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.tm-stars {
  display: inline-flex;
  gap: 2px;
  font-size: 18px;
  color: var(--border-2);
  letter-spacing: 0.04em;
}
.tm-star.is-filled { color: var(--gold); }

.tm-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-soft);
  margin: 0;
  font-style: normal;
  quotes: '\201C' '\201D';
}
.tm-text::before {
  content: open-quote;
  color: var(--muted-2);
  margin-right: 2px;
}
.tm-text::after {
  content: close-quote;
  color: var(--muted-2);
  margin-left: 2px;
}

.tm-attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.tm-avatar {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border-2);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0;
  flex: 0 0 auto;
}
.tm-who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tm-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
  line-height: 1.2;
}
.tm-role {
  color: var(--muted-2);
  font-size: 11px;
}
.tm-source {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 10px;
}

.tm-footer {
  margin-top: clamp(32px, 5vh, 56px);
  text-align: center;
}
.tm-google {
  color: var(--fg);
}
.tm-google:hover { color: var(--accent); }

.tm-empty {
  grid-column: 1 / -1;
  padding: clamp(40px, 6vh, 72px);
  text-align: center;
  color: var(--muted);
}

/* ============================================================
   SECTION 11 - BUNDLES / PRICING
   ============================================================ */
.bundles {
  background: var(--bg);
  color: var(--fg);
  padding-block: clamp(72px, 11vh, 160px);
  border-bottom: 1px solid var(--border);
}
.bd-head-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: end;
  padding-bottom: clamp(24px, 3.5vh, 40px);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(40px, 6vh, 72px);
}
.bd-head-block .bd-index { color: var(--muted-2); }
.bd-head-block .bd-index .idx { color: var(--accent); margin-right: 8px; }
.bd-head-block .bd-meta { color: var(--muted-2); text-align: right; }
.bd-title {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-top: 24px;
  max-width: 18ch;
}
.bd-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.bd-lede {
  grid-column: 1 / -1;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 60ch;
  margin-top: 16px;
}
.bd-banner {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  padding: 14px 18px;
  margin-top: 24px;
  border: 1px solid var(--border-2);
  color: var(--fg-soft);
}
.bd-banner .accent { color: var(--accent); }

@media (max-width: 640px) {
  .bd-head-block { grid-template-columns: 1fr; gap: 8px; }
  .bd-head-block .bd-meta { text-align: left; }
}

.bd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
@media (max-width: 1024px) {
  .bd-grid { grid-template-columns: 1fr; }
}

.bd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(28px, 3vw, 40px);
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: border-color var(--dur-2) var(--ease-standard),
              transform var(--dur-2) var(--ease-standard);
}
.bd-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.bd-card.is-popular {
  border-color: var(--accent);
  background: var(--surface);
}
.bd-flag {
  position: absolute;
  top: -1px;
  left: -1px;
  padding: 6px 12px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.bd-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bd-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--fg);
  margin: 0;
}
.bd-tagline {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.bd-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-block: 12px;
  border-block: 1px solid var(--border);
}
.bd-price-old {
  color: var(--muted-2);
  font-size: 18px;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.bd-price-new {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.bd-price-save {
  color: var(--accent);
  padding: 3px 8px;
  border: 1px solid var(--accent);
}

.bd-includes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.bd-includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--fg-soft);
}
.bd-check {
  color: var(--accent);
  font-weight: 500;
  flex: 0 0 auto;
}

.bd-timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--fg-soft);
  font-size: 14px;
}
.bd-timeline .mono { color: var(--muted-2); }

.bd-cta { margin-top: auto; }

.bd-referral {
  margin-top: clamp(32px, 5vh, 56px);
  padding: 18px;
  border: 1px solid var(--border);
  text-align: center;
  color: var(--fg-soft);
}
.bd-referral .accent { color: var(--accent); }

.bd-empty {
  grid-column: 1 / -1;
  padding: clamp(40px, 6vh, 72px);
  text-align: center;
  color: var(--muted);
}

/* ============================================================
   SECTION 12 - TRUST / Signals
   ============================================================ */
.trust {
  background: var(--bg-2);
  color: var(--fg);
  padding-block: clamp(48px, 8vh, 96px);
  border-bottom: 1px solid var(--border);
}
.tr-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  padding-bottom: clamp(16px, 3vh, 28px);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(24px, 4vh, 40px);
}
.tr-head .tr-index { color: var(--muted-2); }
.tr-head .tr-index .idx { color: var(--accent); margin-right: 8px; }
.tr-head .tr-meta { color: var(--muted-2); }
@media (max-width: 560px) {
  .tr-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}

.tr-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}
@media (max-width: 720px) {
  .tr-grid { grid-template-columns: 1fr; }
}

.tr-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tr-block-label { color: var(--muted-2); }

.tr-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tr-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  color: var(--fg);
  font-size: 14px;
  transition: border-color var(--dur-2) var(--ease-standard);
}
.tr-badge:hover { border-color: var(--accent); }

.tr-badge-platform {
  color: var(--muted-2);
}
.tr-badge-value {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fg);
}

/* ============================================================
   SECTION 13 - CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--accent);
  color: var(--accent-fg);
  padding-block: clamp(64px, 10vh, 120px);
  border-bottom: 1px solid var(--bg);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  max-width: 900px;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 80px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--accent-fg);
  margin: 0;
}
.cta-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--bg);
}
.cta-sub {
  font-size: var(--fs-lead);
  color: var(--accent-fg);
  opacity: 0.78;
  margin: 0;
  max-width: 60ch;
}
.cta-btn {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--bg);
}
.cta-btn:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* ============================================================
   SECTION 14 - CONTACT
   ============================================================ */
.contact {
  background: var(--bg);
  color: var(--fg);
  padding-block: clamp(72px, 11vh, 160px);
  border-bottom: 1px solid var(--border);
}
.ct-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: end;
  padding-bottom: clamp(24px, 3.5vh, 40px);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(40px, 6vh, 72px);
}
.ct-head .ct-index { color: var(--muted-2); }
.ct-head .ct-index .idx { color: var(--accent); margin-right: 8px; }
.ct-head .ct-meta { color: var(--muted-2); text-align: right; }
.ct-title {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-top: 24px;
  max-width: 18ch;
}
.ct-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.ct-lede {
  grid-column: 1 / -1;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 60ch;
  margin-top: 16px;
}
@media (max-width: 640px) {
  .ct-head { grid-template-columns: 1fr; gap: 8px; }
  .ct-head .ct-meta { text-align: left; }
}

.ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(24px, 3vw, 56px);
}
@media (max-width: 960px) {
  .ct-grid { grid-template-columns: 1fr; }
}

.ct-aside {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vh, 32px);
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg-2);
  border: 1px solid var(--border);
}

.ct-channel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ct-channel-label { color: var(--muted-2); }
.ct-channel-note {
  color: var(--muted-2);
  font-size: 10px;
}
.ct-whatsapp,
.ct-calendly { width: 100%; justify-content: space-between; }
.ct-email {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--fg);
}

/* ---- Form ---- */
.ct-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-content: start;
}
.ct-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.ct-field-wide { grid-column: 1 / -1; }
.ct-field label {
  color: var(--muted);
  font-size: var(--fs-label);
}
.ct-field label .req { color: var(--accent); }

.ct-form input,
.ct-form select,
.ct-form textarea {
  width: 100%;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  padding: 12px 14px;
  border: 1px solid var(--border-2);
  border-radius: 0;
  outline: none;
  transition: border-color var(--dur-2) var(--ease-standard),
              background var(--dur-2) var(--ease-standard);
  appearance: none;
}
.ct-form textarea {
  resize: vertical;
  min-height: 110px;
  font-family: var(--font-body);
}
.ct-form input:focus,
.ct-form select:focus,
.ct-form textarea:focus {
  border-color: var(--accent);
  background: var(--bg-2);
}
.ct-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(-45deg, transparent 50%, var(--muted) 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 12px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.ct-form option { background: var(--bg); color: var(--fg); }

.ct-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ct-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.ct-privacy {
  color: var(--muted-2);
  max-width: 48ch;
  margin: 0;
}

.ct-status {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border: 1px solid var(--border-2);
  color: var(--fg);
}
.ct-status[data-state="success"] {
  border-color: var(--success);
  color: var(--fg);
}
.ct-status[data-state="error"] {
  border-color: var(--danger);
  color: var(--fg);
}

@media (max-width: 560px) {
  .ct-form { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION 15 - FLOATING WHATSAPP
   ============================================================ */
.wa-float {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  text-decoration: none;
  outline: none;
}
.wa-float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform var(--dur-2) var(--ease-standard);
  position: relative;
}
.wa-float-icon::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-float-icon svg { width: 28px; height: 28px; }
.wa-float:hover .wa-float-icon { transform: scale(1.06); }

.wa-float-tooltip {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border-2);
  padding: 8px 12px;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-standard),
              transform var(--dur-2) var(--ease-standard);
  white-space: nowrap;
}
.wa-float:hover .wa-float-tooltip,
.wa-float:focus-visible .wa-float-tooltip {
  opacity: 1;
  transform: translateX(0);
}
.wa-float:focus-visible .wa-float-icon {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@keyframes wa-pulse {
  0%   { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float-icon::before { animation: none; display: none; }
}

/* flip-to-left layout for Arabic/RTL in future — placeholder */

/* ============================================================
   SECTION 16 - FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  color: var(--fg);
  padding-block: clamp(48px, 8vh, 80px);
  border-top: 1px solid var(--border);
}

.ft-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: clamp(28px, 4vh, 48px);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 720px) {
  .ft-top { grid-template-columns: 1fr; gap: 32px; }
}

.ft-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ft-logo { height: auto; }
.ft-tagline {
  color: var(--muted);
  max-width: 34ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.ft-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 32px);
}
@media (max-width: 480px) {
  .ft-nav { grid-template-columns: repeat(2, 1fr); }
}

.ft-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ft-col-label { color: var(--muted-2); margin-bottom: 4px; }
.ft-link {
  color: var(--fg-soft);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--dur-2) var(--ease-standard);
}
.ft-link:hover { color: var(--accent); }

.ft-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: clamp(20px, 3vh, 32px);
  color: var(--muted-2);
}
@media (max-width: 640px) {
  .ft-bottom { flex-direction: column; align-items: flex-start; }
}
