/* ============================================================
   marketing.css: Marketing & Business Growth (services/marketing.html)

   The marketing pillar has its own look, so a visitor can tell which side of
   Rufen they're on. Engineering: white, blueprint grid, bold orange and
   electric blue, particles. Marketing: Mediterranean blue sea light behind
   crisp glass, ribbons instead of particles.

   Light is the default. The site-wide toggle in the header sets html[data-theme] and
   keeps html.mkt-dark in step (generated theme script); the choice is kept in localStorage 'rufen-theme'.

   Glass is kept sharp on purpose: a low blur (8px, 6px on phones), a bright
   1px edge, a hairline outline and a specular sheen, so cards read as cut
   glass rather than fog. Every class here is prefixed mkt- or scoped to
   body.pillar-marketing.
   ============================================================ */

/* ---- Palette and tokens ---- */
body.pillar-marketing {
  --med: #0f5fa6;            /* Mediterranean blue */
  --med-sea: #2a9fd6;        /* shallow water */
  --med-sky: #7cc6ee;        /* sky over the sea */
  --med-deep: #0a3d6b;       /* deep water */
  --mkt-bg: #f4f8fc;
  --mkt-text: #0b1f33;
  --mkt-text-2: #3d5468;
  --mkt-accent: var(--med);
  --mkt-accent-soft: rgba(15, 95, 166, 0.08);
  --mkt-accent-line: rgba(15, 95, 166, 0.22);
  --mkt-glass: rgba(255, 255, 255, 0.56);
  --mkt-glass-strong: rgba(255, 255, 255, 0.72);
  --mkt-edge: rgba(255, 255, 255, 0.9);
  --mkt-hairline: rgba(15, 95, 166, 0.12);
  --mkt-sheen: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 42%);
  --mkt-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 0 0 1px var(--mkt-hairline), 0 14px 34px -18px rgba(10, 61, 107, 0.35);
  --mkt-grad: linear-gradient(90deg, #0a3d6b 0%, #0f5fa6 45%, #2a9fd6 100%);
  --mkt-field: rgba(255, 255, 255, 0.85);
  /* One gradient for the whole page: sea blue at the top, peak white at the
     middle of the page, back to sea blue at the bottom. */
  --mkt-tide: linear-gradient(180deg,
    #eef5fc 0%, #f1f7fd 18%, #f8fbfe 34%, #ffffff 50%,
    #f4f9fd 64%, #e4f0fa 82%, #cfe4f6 100%);
  background: var(--mkt-tide);
  color: var(--mkt-text);
}

/* The page body, footer and bottom bar read the marketing tokens. The header
   keeps Rufen's own tokens, because its drop-down panels and the phone drawer
   are white panels. */
body.pillar-marketing main,
body.pillar-marketing footer,
body.pillar-marketing .footer-bottom-bar {
  --text-primary: var(--mkt-text);
  --text-secondary: var(--mkt-text-2);
  --glass-bg: var(--mkt-glass);
  --glass-border: var(--mkt-edge);
  --glass-border-hover: var(--mkt-accent-line);
  --grad-dark: var(--mkt-sheen);
  --grad-primary: linear-gradient(135deg, var(--med) 0%, var(--med-sea) 100%);
  color: var(--text-primary);
}

/* ---- Background: Mediterranean light, no blueprint grid ----
   Soft but defined patches of sea and sky, so the glass has shapes to refract.
   They drift slowly. */
body.pillar-marketing .tech-grid {
  background-image:
    radial-gradient(circle at 12% 10%, rgba(42, 159, 214, 0.26) 0, rgba(42, 159, 214, 0) 30%),
    radial-gradient(circle at 88% 26%, rgba(15, 95, 166, 0.22) 0, rgba(15, 95, 166, 0) 28%),
    radial-gradient(circle at 38% 70%, rgba(124, 198, 238, 0.24) 0, rgba(124, 198, 238, 0) 30%),
    radial-gradient(circle at 80% 96%, rgba(42, 159, 214, 0.20) 0, rgba(42, 159, 214, 0) 30%);
  background-size: 140% 140%;
  animation: mktMesh 28s ease-in-out infinite alternate;
}
/* The sea light ebbs as you scroll to the middle of the page (peak white) and
   flows back in toward the bottom. Scroll-driven, so it runs off the main thread. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    body.pillar-marketing .tech-grid {
      animation: mktMesh 28s ease-in-out infinite alternate, mktTide linear both;
      animation-timeline: auto, scroll(root);
    }
  }
}
@keyframes mktTide {
  0% { opacity: 1; }
  50% { opacity: 0.12; }
  100% { opacity: 1; }
}
@keyframes mktMesh {
  from { background-position: 0% 0%, 100% 0%, 30% 100%, 100% 100%; }
  to { background-position: 30% 20%, 70% 30%, 0% 70%, 70% 80%; }
}
body.pillar-marketing .glow-orb { opacity: 0.7; filter: blur(70px); }
body.pillar-marketing .orb-1 {
  background: radial-gradient(circle, rgba(42, 159, 214, 0.35) 0%, rgba(0, 0, 0, 0) 70%) !important;
}
body.pillar-marketing .orb-2 {
  background: radial-gradient(circle, rgba(15, 95, 166, 0.30) 0%, rgba(0, 0, 0, 0) 70%) !important;
  animation: mktDrift 16s infinite alternate ease-in-out;
}
@keyframes mktDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(160px, -120px); }
}
/* No section bands on this page: the tide runs under every section. */
body.pillar-marketing .service-alt {
  background: transparent;
  border: 0;
}

/* ---- Header: the current menu item wears the marketing blue ---- */
@media (min-width: 1200px) {
}

/* ---- Header and footer in the dark view (light keeps Rufen's own) ---- */
@keyframes mktShrinkHeader {
  to {
    height: 60px;
    background: rgba(6, 26, 46, 0.74);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
  }
}
@media (max-width: 1199px) {
}
@media (min-width: 1200px) {
}
body.pillar-marketing footer a:hover { color: var(--mkt-accent); }
body.pillar-marketing .footer-bottom p { color: var(--mkt-text-2) !important; }

/* ---- Glass: sharp, not foggy ---- */
body.pillar-marketing main .glass-card {
  background: var(--mkt-glass);
  border: 1px solid var(--mkt-edge);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  box-shadow: var(--mkt-shadow);
}
body.pillar-marketing main .glass-card:hover {
  border-color: var(--mkt-accent-line);
  box-shadow: var(--mkt-shadow), 0 0 0 1px var(--mkt-accent-line), 0 18px 40px -16px rgba(15, 95, 166, 0.35);
}
@media (prefers-reduced-motion: no-preference) {
  body.pillar-marketing main .glass-card:hover { transform: translateY(-3px); }
}

/* ---- Accent: dots, badge, links, buttons ---- */
body.pillar-marketing .indicator-dot.dot-blue {
  background: var(--med-sea);
  box-shadow: 0 0 8px var(--med-sea);
}
body.pillar-marketing .service-hero-badge {
  border-color: var(--mkt-accent-line);
  color: var(--mkt-accent);
  background: var(--mkt-accent-soft);
  backdrop-filter: blur(8px);
}
body.pillar-marketing main .card-punchy,
body.pillar-marketing main .sp-timeframe-link,
body.pillar-marketing main .mkt-link,
body.pillar-marketing main .related-card a,
body.pillar-marketing main .highlight-text { color: var(--mkt-accent); }
body.pillar-marketing .mkt-link {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  text-decoration: none;
}
body.pillar-marketing .mkt-link:hover { text-decoration: underline; }
body.pillar-marketing main .btn-primary { box-shadow: 0 8px 22px -8px rgba(15, 95, 166, 0.6); }
body.pillar-marketing main .btn-secondary {
  background: var(--mkt-glass);
  border: 1px solid var(--mkt-edge);
  box-shadow: 0 0 0 1px var(--mkt-hairline);
  color: var(--mkt-text);
  backdrop-filter: blur(8px);
}
body.pillar-marketing main .btn-secondary:hover { border-color: var(--mkt-accent-line); }

/* ---- FAQ, contact card and form ---- */
body.pillar-marketing main .sp-faq details {
  background: var(--mkt-glass);
  border-color: var(--mkt-edge);
  box-shadow: 0 0 0 1px var(--mkt-hairline);
  backdrop-filter: blur(8px);
}
body.pillar-marketing main .sp-faq details[open] { border-color: var(--mkt-accent-line); }
body.pillar-marketing main .contact-card {
  background: var(--mkt-glass-strong);
  animation: mktGlow 3.2s ease-in-out infinite alternate;
}
@keyframes mktGlow {
  from { box-shadow: 0 0 0 1px rgba(15, 95, 166, 0.10), 0 0 16px rgba(42, 159, 214, 0.10); }
  to { box-shadow: 0 0 0 1px rgba(15, 95, 166, 0.28), 0 0 40px 2px rgba(42, 159, 214, 0.26); }
}
body.pillar-marketing main .contact-card input,
body.pillar-marketing main .contact-card select,
body.pillar-marketing main .contact-card textarea {
  background-color: var(--mkt-field) !important;
  color: var(--mkt-text);
}
body.pillar-marketing main .form-group input:focus,
body.pillar-marketing main .form-group textarea:focus {
  border-color: var(--med-sea);
  box-shadow: 0 0 0 3px rgba(42, 159, 214, 0.18);
}

/* ---- Hero ---- */
.mkt-hero {
  position: relative;
  overflow: hidden;
}
.mkt-ribbons {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}
.mkt-hero > .container {
  position: relative;
  z-index: 1;
  pointer-events: none;           /* the hero canvas reacts to the pointer everywhere */
}
.mkt-hero > .container a,
.mkt-hero > .container button { pointer-events: auto; }

/* Light / dark switch (built by marketing.js) */
.mkt-theme {
  position: absolute;
  z-index: 4;
  top: 104px;
  right: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--mkt-edge);
  box-shadow: 0 0 0 1px var(--mkt-hairline), 0 6px 16px -10px rgba(10, 61, 107, 0.5);
  background: var(--mkt-glass-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--mkt-text);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.mkt-theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 50%, var(--med) 50%);
  box-shadow: 0 0 0 1px var(--mkt-accent-line);
}
html.mkt-dark .mkt-theme-dot { background: linear-gradient(135deg, var(--med-deep) 50%, var(--med-sky) 50%); }
.mkt-theme:focus-visible { outline: 2px solid var(--med-sea); outline-offset: 3px; }

/* Ask box under the hero buttons */
.mkt-ask {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 460px;
  box-sizing: border-box;
  margin-top: 18px;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: var(--mkt-glass-strong);
  border: 1px solid var(--mkt-edge);
  box-shadow: 0 0 0 1px var(--mkt-hairline);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mkt-ask[hidden] { display: none; }
.mkt-ask:focus-within {
  border-color: var(--med-sea);
  box-shadow: 0 0 0 4px rgba(42, 159, 214, 0.16);
}
.mkt-ask input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--mkt-text);
  font: inherit;
  font-size: 0.92rem;
}
.mkt-ask input::placeholder { color: var(--mkt-text-2); opacity: 0.8; }
.mkt-ask button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--med), var(--med-sea));
  box-shadow: 0 6px 16px -6px rgba(15, 95, 166, 0.7);
}
.mkt-ask button svg { width: 18px; height: 18px; }

/* Client result that pops from a point on the ribbons (built by marketing.js) */
.mkt-pop {
  position: absolute;
  z-index: 3;
  width: 250px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--mkt-glass-strong);
  border: 1px solid var(--mkt-edge);
  box-shadow: 0 0 0 1px var(--mkt-accent-line), 0 18px 40px -18px rgba(10, 61, 107, 0.5);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  color: var(--mkt-text);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 18px)) scale(0.92);
  transform-origin: 50% 100%;
  transition: opacity 0.18s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.mkt-pop.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 18px)) scale(1); }
.mkt-pop.is-below { transform: translate(-50%, 18px) scale(0.92); transform-origin: 50% 0; }
.mkt-pop.is-below.is-on { transform: translate(-50%, 18px) scale(1); }
.mkt-pop-logo { display: block; height: 22px; width: auto; max-width: 150px; object-fit: contain; filter: brightness(0); opacity: 0.8; margin-bottom: 10px; }
html.mkt-dark .mkt-pop-logo { filter: brightness(0) invert(1); opacity: 0.92; }
.mkt-pop-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mkt-accent);
  margin-bottom: 4px;
}
.mkt-pop-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.mkt-pop-line {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--mkt-text-2);
}
.mkt-pop-line strong {
  background: var(--mkt-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.mkt-hint {
  position: absolute;
  right: 40px;
  bottom: 84px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mkt-accent);
  pointer-events: none;
}
.mkt-hint::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--med-sea);
  box-shadow: 0 0 10px var(--med-sea);
  vertical-align: 1px;
}
@media (hover: none) { .mkt-hint { display: none; } }

/* ---- Cards rise in as they scroll into view ----
   CSS scroll timelines run off the main thread. Browsers without them, and
   reduced motion, show the cards as they are. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    body.pillar-marketing main .service-section .glass-card {
      animation: mktRise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    /* the story deck fades between cards itself */
    body.pillar-marketing main .service-section .glass-card.mkt-story { animation: none; }
  }
}
@keyframes mktRise {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ---- Section copy ---- */
.mkt-note {
  max-width: 720px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.mkt-note strong { color: var(--text-primary); }
.mkt-note .mkt-arrow { color: var(--mkt-accent); padding: 0 2px; }
.mkt-center-link {
  text-align: center;
  margin-top: 24px;
}

/* ---- Proof: the headline client result ---- */
.mkt-proof-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
}
body.pillar-marketing main .mkt-proof-card {
  background: linear-gradient(135deg, rgba(42, 159, 214, 0.14), rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0.4));
  border-color: var(--mkt-edge);
}
.mkt-proof-copy { position: relative; }
.mkt-proof-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: 20px;
}
html.mkt-dark .mkt-proof-logo { filter: brightness(0) invert(1); }
.mkt-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mkt-accent);
}
.mkt-sector {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 8px 0 0;
}
.mkt-proof-figure {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  align-items: center;
  gap: 0.25em;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.2vw, 3.9rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 20px 0 4px;
}
.mkt-proof-figure .mkt-count,
.mkt-proof-figure .mkt-arrow {
  background: var(--mkt-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mkt-proof-period {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 20px;
}
.mkt-proof-copy p.mkt-proof-body {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 12px;
}
.mkt-proof-stage {
  position: relative;
  height: 340px;
}
.mkt-proof-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- Bento: the six services as tiles of different sizes ---- */
@media (min-width: 1025px) {
  body.pillar-marketing .mkt-bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(190px, auto);
  }
  .mkt-bento > #brand { grid-column: 1 / 3; grid-row: 1 / 3; }
  .mkt-bento > #websites { grid-column: 3 / 5; }
  .mkt-bento > #search { grid-column: 3 / 4; }
  .mkt-bento > #ads { grid-column: 4 / 5; }
  .mkt-bento > #social { grid-column: 1 / 3; }
  .mkt-bento > #reporting { grid-column: 3 / 5; }
  .mkt-bento > #brand {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px;
  }
  body.pillar-marketing main .mkt-bento > #brand {
    background: linear-gradient(160deg, rgba(42, 159, 214, 0.22), rgba(15, 95, 166, 0.10) 55%, rgba(255, 255, 255, 0.45));
  }
  .mkt-bento > #brand h3 { font-size: 1.9rem; }
  .mkt-bento > #brand p { font-size: 1.05rem; max-width: 420px; }
  .mkt-bento > #brand .mkt-icon { width: 56px; height: 56px; border-radius: 16px; }
}


/* ============================================================
   Six things, run by one team: goal-led, live tiles
   1. Goal chips light the services that deliver that goal (marketing.js).
   2. Each tile shows its work in a small live preview.
   3. A soft light follows the cursor across the glass, with a slight tilt.
   4. Extra depth, because this section sits at the page's peak white.
   5. Each tile opens with one plain "what you get" sentence.
   6. Tiles assemble into the grid as the section scrolls in.
   Animations sit paused on their first frame until the tile is on screen
   (.in-view); without JS, or with reduced motion, every preview shows its
   finished state.
   ============================================================ */
.mkt-goals { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 4px 0 14px; }
.mkt-goals[hidden] { display: none; }
.mkt-goal {
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--mkt-text);
  background: var(--mkt-glass-strong); border: 1px solid var(--mkt-edge);
  box-shadow: 0 0 0 1px var(--mkt-hairline), 0 6px 16px -12px rgba(10, 61, 107, 0.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.mkt-goal:hover { box-shadow: 0 0 0 1px var(--mkt-accent-line), 0 8px 18px -12px rgba(10, 61, 107, 0.5); }
.mkt-goal[aria-pressed="true"] {
  color: #fff; background: linear-gradient(135deg, var(--med), var(--med-sea));
  box-shadow: 0 10px 22px -10px rgba(15, 95, 166, 0.75);
}
.mkt-goal:focus-visible, .mkt-goal-ask:focus-visible { outline: 2px solid var(--med-sea); outline-offset: 3px; }
.mkt-goal-line { text-align: center; max-width: 720px; margin: 0 auto 28px; color: var(--mkt-text); font-weight: 500; }
.mkt-goal-line[hidden] { display: none; }
.mkt-goal-ask {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 0; border: 0; background: none;
  color: var(--mkt-accent); font: inherit; font-weight: 700; cursor: pointer;
}
.mkt-goal-ask svg { width: 15px; height: 15px; }
.mkt-goal-ask:hover { text-decoration: underline; }

/* Grid: four columns with the bento shape on desktop (see .mkt-bento), two on tablets, one on phones */
.mkt-tiles { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; }
@media (max-width: 640px) { .mkt-tiles { grid-template-columns: minmax(0, 1fr); } }

.mkt-tile { display: flex; flex-direction: column; transform-style: preserve-3d; will-change: transform; }
body.pillar-marketing main .mkt-tile {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 0 0 1px rgba(15, 95, 166, 0.10),
    0 26px 50px -26px rgba(10, 61, 107, 0.38), 0 10px 20px -14px rgba(42, 159, 214, 0.30);
  transition: box-shadow 0.25s ease, filter 0.35s ease, transform 0.25s ease;
}
body.pillar-marketing main .mkt-tile:hover {
  border-color: rgba(42, 159, 214, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 0 0 1px rgba(42, 159, 214, 0.45),
    0 30px 60px -26px rgba(10, 61, 107, 0.45), 0 0 34px -8px rgba(42, 159, 214, 0.45);
}
.mkt-tile h3 { margin: 0 0 8px; }
.mkt-tile .mkt-tile-answer { color: var(--text-secondary); line-height: 1.6; margin: 0; }
.mkt-tile-goal { margin: 12px 0 0; font-weight: 600; color: var(--mkt-accent); line-height: 1.5; }
.mkt-tile-goal::before { content: "\2192\00a0"; }
.mkt-tile-goal:empty { display: none; }
/* A quiet link to the service's own page, under the tile's text. */
.mkt-tile-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mkt-text-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.mkt-tile-more:hover,
.mkt-tile-more:focus-visible { color: var(--mkt-accent); text-decoration: underline; text-underline-offset: 3px; }

/* Goal chosen: the services that deliver it light up, the rest step back */
.mkt-tiles.has-goal .mkt-tile:not(.is-lit) { filter: grayscale(0.7) opacity(0.42); }
body.pillar-marketing main .mkt-tiles.has-goal .mkt-tile.is-lit {
  border-color: rgba(42, 159, 214, 0.6);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 0 0 2px rgba(42, 159, 214, 0.5),
    0 30px 60px -26px rgba(10, 61, 107, 0.45), 0 0 40px -6px rgba(42, 159, 214, 0.45);
}

/* Cursor light: follows the pointer across the glass (marketing.js sets --mx/--my) */
.mkt-tile > .mkt-spot {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; opacity: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 30%), rgba(42, 159, 214, 0.20), rgba(255, 255, 255, 0.25) 35%, transparent 65%);
  transition: opacity 0.3s ease;
}
.mkt-tile:hover > .mkt-spot { opacity: 1; }

/* The preview frame at the top of each tile */
.mkt-tv {
  position: relative; height: 128px; margin: -4px 0 20px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, rgba(42, 159, 214, 0.12), rgba(15, 95, 166, 0.04) 60%, rgba(255, 255, 255, 0.35));
  box-shadow: inset 0 0 0 1px var(--mkt-hairline);
}
.mkt-sk { display: block; height: 7px; margin: 7px 10px; border-radius: 6px; background: rgba(15, 95, 166, 0.16); }
.mkt-sk--hero { height: 22px; background: linear-gradient(90deg, rgba(15, 95, 166, 0.28), rgba(42, 159, 214, 0.22)); }
.mkt-sk--short { width: 52%; }
.mkt-sk-btn { display: block; width: 48px; height: 12px; margin: 8px 10px; border-radius: 6px; background: linear-gradient(135deg, var(--med), var(--med-sea)); }
.mkt-tv i, .mkt-tv svg { width: 16px; height: 16px; }

/* Brand: swatches and lettering. Hover spreads the palette and thickens the type. */
.mkt-sw { position: absolute; top: 50%; width: 50px; height: 50px; border-radius: 50%; transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 8px 16px -8px rgba(10, 61, 107, 0.5); transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.mkt-sw--1 { left: 18px; background: var(--med-deep); }
.mkt-sw--2 { left: 50px; background: var(--med); }
.mkt-sw--3 { left: 82px; background: var(--med-sea); }
.mkt-sw--4 { left: 114px; background: var(--med-sky); }
.mkt-tile:hover .mkt-sw--2 { left: 78px; }
.mkt-tile:hover .mkt-sw--3 { left: 138px; }
.mkt-tile:hover .mkt-sw--4 { left: 198px; }
.mkt-aa {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 4rem; font-weight: 300; line-height: 1;
  background: var(--mkt-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: font-weight 0.4s ease, letter-spacing 0.4s ease;
}
.mkt-tile:hover .mkt-aa { font-weight: 800; letter-spacing: -0.03em; }

/* Websites: a browser and a phone, the page loading in */
.mkt-browser { position: absolute; left: 14px; right: 74px; top: 14px; bottom: -8px; border-radius: 10px; background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 1px var(--mkt-hairline), 0 10px 22px -14px rgba(10, 61, 107, 0.5); }
.mkt-browser-bar { display: flex; gap: 4px; padding: 7px 10px; border-bottom: 1px solid var(--mkt-hairline); }
.mkt-browser-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(15, 95, 166, 0.25); }
.mkt-phone { position: absolute; right: 14px; top: 24px; bottom: -8px; width: 52px; border-radius: 10px; background: rgba(255, 255, 255, 0.92); padding-top: 6px;
  box-shadow: 0 0 0 1px var(--mkt-hairline), 0 10px 22px -12px rgba(10, 61, 107, 0.55); }
.mkt-phone .mkt-sk, .mkt-phone .mkt-sk-btn { margin: 5px 6px; }
.mkt-phone .mkt-sk-btn { width: 30px; }

/* SEO & AI search: a question types itself, then an AI answer cites the business */
.mkt-q { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); box-shadow: 0 0 0 1px var(--mkt-hairline); color: var(--mkt-accent); }
.mkt-q-text { display: inline-block; overflow: hidden; white-space: nowrap; width: 15ch; font-family: var(--font-mono); font-size: 0.74rem; color: var(--mkt-text); border-right: 2px solid transparent; }
.mkt-ai { position: absolute; left: 14px; right: 14px; top: 56px; bottom: 10px; padding: 8px 4px 0; border-radius: 10px;
  background: rgba(255, 255, 255, 0.86); box-shadow: 0 0 0 1px var(--mkt-accent-line), 0 10px 22px -14px rgba(10, 61, 107, 0.5); }
.mkt-ai-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mkt-accent); }
.mkt-ai-tag svg { width: 12px; height: 12px; }
.mkt-cite { position: absolute; right: 10px; bottom: 8px; padding: 2px 8px; border-radius: 999px; font-size: 0.66rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--med), var(--med-sea)); }

/* Paid ads: a sponsored result gets the click, and the phone rings */
.mkt-tv--ads { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 12px; }
.mkt-ad { position: relative; flex: 0 1 170px; padding: 10px 2px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px var(--mkt-hairline), 0 10px 20px -14px rgba(10, 61, 107, 0.5); }
.mkt-ad-tag { margin-left: 10px; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mkt-text-2); }
.mkt-ad b { display: block; margin: 2px 10px 0; font-family: var(--font-display); font-size: 0.85rem; color: var(--mkt-accent); }
.mkt-ad-click { position: absolute; right: 18px; bottom: 12px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--med-sea); opacity: 0; }
.mkt-ad-arrow { color: var(--mkt-accent); display: grid; place-items: center; }
.mkt-ad-phone { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--med), var(--med-sea)); box-shadow: 0 8px 18px -8px rgba(15, 95, 166, 0.7); }
.mkt-ad-phone svg { width: 20px; height: 20px; }

/* Social & content: posts fan out, hearts beat */
.mkt-post { position: absolute; left: 50%; top: 18px; width: 72px; height: 96px; margin-left: -36px; padding-top: 52px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.94); box-shadow: 0 0 0 1px var(--mkt-hairline), 0 10px 20px -12px rgba(10, 61, 107, 0.5); }
.mkt-post::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 40px; border-radius: 7px;
  background: linear-gradient(140deg, var(--med-sky), var(--med-sea) 60%, var(--med)); }
.mkt-post .mkt-sk { margin: 0 8px; }
.mkt-post svg { position: absolute; right: 7px; bottom: 7px; width: 13px; height: 13px; color: var(--med-sea); fill: var(--med-sea); }
.mkt-post--1 { transform: translateX(-62px) rotate(-10deg); }
.mkt-post--2 { transform: translateY(-4px); z-index: 1; }
.mkt-post--3 { transform: translateX(62px) rotate(10deg); }

/* Reporting: ad -> call -> job -> paid, filling in link by link */
.mkt-tv--report { display: flex; align-items: center; padding: 0 12px; gap: 0; }
.mkt-node { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 50px; padding: 8px 0 6px; border-radius: 10px;
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, var(--med), var(--med-sea)); box-shadow: 0 8px 16px -10px rgba(15, 95, 166, 0.7); }
.mkt-link-line { position: relative; flex: 1; height: 3px; border-radius: 3px; background: var(--mkt-accent-soft); overflow: hidden; }
.mkt-link-line::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(90deg, var(--med), var(--med-sea)); transform-origin: left; }

/* The big brand tile gets a taller preview */
@media (min-width: 1025px) {
  .mkt-bento > #brand .mkt-tv { height: auto; flex: 1 1 auto; min-height: 230px; }
  .mkt-bento > #brand .mkt-sw { width: 72px; height: 72px; }
  .mkt-bento > #brand .mkt-sw--1 { left: 28px; } .mkt-bento > #brand .mkt-sw--2 { left: 74px; }
  .mkt-bento > #brand .mkt-sw--3 { left: 120px; } .mkt-bento > #brand .mkt-sw--4 { left: 166px; }
  .mkt-bento > #brand.mkt-tile:hover .mkt-sw--2 { left: 112px; }
  .mkt-bento > #brand.mkt-tile:hover .mkt-sw--3 { left: 196px; }
  .mkt-bento > #brand.mkt-tile:hover .mkt-sw--4 { left: 280px; }
  .mkt-bento > #brand .mkt-aa { font-size: 6rem; right: 34px; }
  .mkt-bento > #brand { justify-content: flex-start; }
}

/* Motion: armed by JS (.mkt-tiles--js), held on the first frame, played when on screen */
@media (prefers-reduced-motion: no-preference) {
  .mkt-tiles--js .mkt-tile .mkt-sw { animation: mktPopIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .mkt-tiles--js .mkt-tile .mkt-sw--2 { animation-delay: 0.1s; }
  .mkt-tiles--js .mkt-tile .mkt-sw--3 { animation-delay: 0.2s; }
  .mkt-tiles--js .mkt-tile .mkt-sw--4 { animation-delay: 0.3s; }
  .mkt-tiles--js .mkt-tile .mkt-aa { animation: mktFade 0.8s 0.35s both; }
  .mkt-tiles--js .mkt-tv--web .mkt-sk,
  .mkt-tiles--js .mkt-tv--web .mkt-sk-btn {
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%; background-repeat: no-repeat; animation: mktShimmer 1.2s 2 ease-in-out both;
  }
  .mkt-tiles--js .mkt-tv--web .mkt-browser,
  .mkt-tiles--js .mkt-tv--web .mkt-phone { animation: mktRiseIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .mkt-tiles--js .mkt-tv--web .mkt-phone { animation-delay: 0.25s; }
  .mkt-tiles--js .mkt-q-text { animation: mktType 1.3s 0.3s steps(15, end) both, mktCaret 0.7s 0.3s 3 step-end; }
  .mkt-tiles--js .mkt-ai { animation: mktRiseIn 0.6s 2.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .mkt-tiles--js .mkt-cite { animation: mktChipIn 0.5s 2.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .mkt-tiles--js .mkt-ad-click { animation: mktRipple 2.6s 0.6s ease-out infinite; }
  .mkt-tiles--js .mkt-ad-arrow { animation: mktNudge 2.6s 0.9s ease-in-out infinite; }
  .mkt-tiles--js .mkt-ad-phone { animation: mktRing 2.6s 1.1s ease-in-out infinite; }
  .mkt-tiles--js .mkt-post--1 { animation: mktFanL 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .mkt-tiles--js .mkt-post--3 { animation: mktFanR 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .mkt-tiles--js .mkt-post svg { animation: mktBeat 1.8s 1s ease-in-out infinite; }
  .mkt-tiles--js .mkt-post--3 svg { animation-delay: 1.4s; }
  .mkt-tiles--js .mkt-post--1 svg { animation-delay: 1.8s; }
  .mkt-tiles--js .mkt-link-line::after { animation: mktLink 4.8s ease-in-out infinite; }
  .mkt-tiles--js .mkt-link-line:nth-child(4)::after { animation-delay: 0.5s; }
  .mkt-tiles--js .mkt-link-line:nth-child(6)::after { animation-delay: 1s; }
  .mkt-tiles--js .mkt-node { animation: mktNodeOn 4.8s ease-in-out infinite; }
  .mkt-tiles--js .mkt-node:nth-child(3) { animation-delay: 0.5s; }
  .mkt-tiles--js .mkt-node:nth-child(5) { animation-delay: 1s; }
  .mkt-tiles--js .mkt-node:nth-child(7) { animation-delay: 1.5s; }
  /* held until on screen */
  .mkt-tiles--js .mkt-tile:not(.in-view) *,
  .mkt-tiles--js .mkt-tile:not(.in-view) *::after { animation-play-state: paused !important; }
}
@keyframes mktPopIn { from { opacity: 0; transform: translateY(-50%) scale(0.4); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
@keyframes mktChipIn { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: none; } }
@keyframes mktRiseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes mktShimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes mktType { from { width: 0; } to { width: 15ch; } }
@keyframes mktCaret { 0%, 100% { border-right-color: var(--med-sea); } 50% { border-right-color: transparent; } }
@keyframes mktRipple { 0% { opacity: 0.9; transform: scale(0.4); } 60%, 100% { opacity: 0; transform: scale(2.6); } }
@keyframes mktNudge { 0%, 30%, 100% { transform: none; } 15% { transform: translateX(5px); } }
@keyframes mktRing {
  0%, 40%, 100% { transform: rotate(0); box-shadow: 0 8px 18px -8px rgba(15, 95, 166, 0.7); }
  8%, 24% { transform: rotate(-12deg); } 16%, 32% { transform: rotate(12deg); box-shadow: 0 0 0 8px rgba(42, 159, 214, 0.18), 0 8px 18px -8px rgba(15, 95, 166, 0.7); }
}
@keyframes mktFanL { from { transform: none; } to { transform: translateX(-62px) rotate(-10deg); } }
@keyframes mktFanR { from { transform: none; } to { transform: translateX(62px) rotate(10deg); } }
@keyframes mktBeat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.35); } }
@keyframes mktLink { 0% { transform: scaleX(0); } 30%, 80% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes mktNodeOn { 0% { filter: grayscale(1) opacity(0.5); } 15%, 85% { filter: none; } 100% { filter: grayscale(1) opacity(0.5); } }

/* 6. Assemble: tiles slide into the grid from their own side as the section
   scrolls in. Uses the separate translate/scale properties, so the cursor tilt
   (transform) still works. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    body.pillar-marketing main .mkt-tiles .glass-card.mkt-tile {
      animation: mktAssemble linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 75%;
    }
  }
}
#brand { --ax: -70px; --ay: 30px; }
#websites { --ax: 70px; --ay: -20px; }
#search { --ax: 40px; --ay: 40px; }
#ads { --ax: 80px; --ay: 30px; }
#social { --ax: -70px; --ay: 40px; }
#reporting { --ax: 70px; --ay: 50px; }
@keyframes mktAssemble {
  from { opacity: 0; translate: var(--ax, 0) var(--ay, 30px); scale: 0.96; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}


/* ============================================================
   Marketing -> systems flow (#joined-up)
   Left: the six service cards fall into a funnel as you scroll (and float
   back out if you scroll up). Right: what comes out runs through Rufen's
   systems in order: Inbox and Voice Systems as entry points, Agentic
   Workflows next, the Business Assistant last, where a small light per
   module flickers once it's lit. marketing.js maps scroll position to
   progress; reduced motion shows the finished state. Kept light on purpose.
   ============================================================ */
/* quiet background line under the funnel heading */
.mkt-fn-lead {
  font-family: var(--font-body); font-size: 1rem; font-weight: 400; line-height: 1.6;
  color: var(--text-muted, #94a3b8);
  margin: 0 auto 14px; max-width: 620px;
}
.mkt-fn-lead .rufen-word { opacity: 0.75; }
.mkt-flow-stage { position: relative; aspect-ratio: 1100 / 560; margin-top: 30px; }
/* On wide screens the diagram breaks out of the text column a little, so it
   has room to breathe. */
@media (min-width: 1240px) {
  .mkt-flow-stage { width: min(1320px, calc(100vw - 64px)); left: 50%; margin-left: calc(min(1320px, 100vw - 64px) / -2); }
}
/* Rufen's engineering grid, in muted orange, fading out toward the edges.
   It comes up as the flow reaches the systems (--grid from marketing.js). */
.mkt-flow-stage::before {
  content: ""; position: absolute; inset: -40px -60px; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 107, 0, 0.11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 107, 0, 0.11) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 62% 52%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 58% at 62% 52%, #000 30%, transparent 78%);
  opacity: calc(0.35 + var(--grid, 0) * 0.65);
}
@media (prefers-reduced-motion: no-preference) {
  .mkt-flow-stage::before { animation: mktGridDrift 30s linear infinite; }
}
@keyframes mktGridDrift { from { background-position: 0 0; } to { background-position: 40px 40px; } }
.mkt-fl-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mkt-fl-tier-base { fill: rgba(42, 159, 214, 0.13); stroke: rgba(15, 95, 166, 0.18); stroke-width: 1; }
/* Each tier fills with its orange (light at the top, deep at the spout) as
   the funnel digests the cards; --on comes from marketing.js. */
.mkt-fl-tier-on { opacity: var(--on, 0); }
.mkt-fl-tier-label {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  fill: rgba(11, 31, 51, 0.72);
}
.mkt-fl-leader { stroke: rgba(15, 95, 166, 0.25); stroke-width: 1; stroke-dasharray: 2 4; }

/* Stage names inside the funnel's tiers. They come up to full strength as
   their tier fills (.is-on from marketing.js); white on the deep spout tier. */
.mkt-fl-stage {
  position: absolute; z-index: 2; transform: translate(-50%, -50%); width: 32%;
  display: flex; flex-direction: column; align-items: center; text-align: center; pointer-events: none;
  opacity: 0.55; transition: opacity 0.35s ease;
}
.mkt-fl-stage.is-on { opacity: 1; }
.mkt-fl-stage-name {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
  color: #5a2400;
}
.mkt-fl-stage-text { font-size: 0.7rem; line-height: 1.3; color: rgba(90, 36, 0, 0.78); white-space: nowrap; }
.mkt-fl-stage[data-k="3"] .mkt-fl-stage-name { font-size: 0.64rem; }
.mkt-fl-stage[data-k="3"].is-on .mkt-fl-stage-name { color: #ffffff; }
@media (max-width: 1150px) { .mkt-fl-stage-text { display: none; } }
.mkt-fl-or { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; fill: rgba(255, 107, 0, 0.75); opacity: var(--joint, 0); }

.mkt-fl-joint { fill: #ff6b00; opacity: var(--joint, 0); }
.mkt-fl-path {
  fill: none; stroke: url(#mktFlHandoff); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--fill, 0) * 100);
  opacity: 0.75;
}

.mkt-fl-spout {
  position: absolute; left: 22.73%; top: 83.93%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #ff7a0a; box-shadow: 0 0 0 calc(var(--pulse, 0) * 10px) rgba(255, 107, 0, 0.18), 0 0 12px rgba(255, 107, 0, 0.7);
  opacity: var(--spout, 0.25);
}

/* The systems, dim until the flow reaches them. They wear Rufen's engineering
   orange on purpose: this is where marketing hands over to the rest of what
   Rufen builds. */
.mkt-fl-node {
  position: absolute; z-index: 2; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; justify-content: center; gap: 2px; width: 12.73%; height: 23%; box-sizing: border-box; overflow: hidden;
  padding: 8px 10px; border-radius: 10px;
  text-decoration: none; color: var(--mkt-text);
  background: linear-gradient(160deg, rgba(255, 138, 61, 0.16), rgba(255, 107, 0, 0.07) 60%, rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(255, 107, 0, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7) inset, 0 12px 26px -18px rgba(120, 50, 0, 0.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0.45;
  transition: opacity 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease, background 0.45s ease;
}
.mkt-fl-node.is-lit { opacity: 1; border-color: rgba(255, 107, 0, 0.6); background: linear-gradient(160deg, rgba(255, 138, 61, 0.22), rgba(255, 107, 0, 0.08) 60%, rgba(255, 255, 255, 0.92)); box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.45), 0 14px 30px -16px rgba(120, 50, 0, 0.35), 0 0 26px -10px rgba(255, 107, 0, 0.55); }
.mkt-fl-node:hover, .mkt-fl-node:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.6), 0 16px 32px -16px rgba(120, 50, 0, 0.4); }
.mkt-fl-name { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; white-space: nowrap; }
.mkt-fl-name svg { width: 13px; height: 13px; flex: 0 0 auto; color: var(--accent-orange, #ff6b00); }
.mkt-fl-sub { font-size: 0.68rem; line-height: 1.3; color: var(--mkt-text-2); }
.mkt-fl-node--ba { justify-content: flex-start; }
@media (max-width: 1150px) { .mkt-fl-node .mkt-fl-sub { display: none; } }
.mkt-ba-mods { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 6px; margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(255, 107, 0, 0.22); }
.mkt-ba-mod { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mkt-text-2); }
.mkt-led { width: 6px; height: 6px; border-radius: 50%; background: rgba(42, 159, 214, 0.25); flex: 0 0 auto; }
.mkt-fl-node--ba.is-lit .mkt-led { background: var(--med-sea); box-shadow: 0 0 6px rgba(42, 159, 214, 0.9); }
@media (prefers-reduced-motion: no-preference) {
  .mkt-fl-node--ba.is-lit .mkt-led { animation: mktLed 1.6s var(--d, 0s) ease-in-out infinite; }
}
@keyframes mktLed { 0%, 100% { opacity: 1; } 45% { opacity: 0.25; } 55% { opacity: 1; } 70% { opacity: 0.5; } }

/* The "why Rufen" points: three quiet pills under the headline. */
.mkt-why-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 18px 0 0; padding: 0; }
.mkt-why-pills li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; cursor: default;
  font-family: var(--font-display); font-size: 0.86rem; font-weight: 600; color: var(--mkt-text);
  background: var(--mkt-glass-strong); border: 1px solid var(--mkt-edge); box-shadow: 0 0 0 1px var(--mkt-hairline);
}
.mkt-why-pills li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff6b00; }

/* The real service cards on their way to the funnel. marketing.js copies
   each card into this fixed layer at its exact place, hides the original,
   and moves the copy down into the funnel as you scroll. */
.mkt-ghosts { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.mkt-ghosts .mkt-ghost {
  position: absolute; left: 0; top: 0; margin: 0; transform-origin: 0 0; will-change: transform, opacity;
}
.mkt-ghosts .mkt-ghost, .mkt-ghosts .mkt-ghost * { animation: none !important; transition: none !important; }
.mkt-tile.is-travelling { visibility: hidden; }
/* The travelling cards pass behind the funnel section's headline, not over it. */
body.pillar-marketing #joined-up .section-header { position: relative; z-index: 45; }

/* Why Rufen, and the call to action */
.mkt-fn-cta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 28px; }
.mkt-fn-cta p { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }

/* Tablet and phone: the funnel on top, the systems stacked below it */
@media (max-width: 900px) {
  .mkt-flow-stage { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
  .mkt-fl-svg, .mkt-fl-spout, .mkt-fl-stage { display: none; }
  .mkt-flow-stage::before { inset: 0; }
  .mkt-flow-stage { flex-flow: row wrap; justify-content: center; }
  .mkt-fl-node, .mkt-fl-node--ba {
    position: relative; left: auto !important; top: auto !important; transform: none; width: 100%; max-width: 420px; flex: 0 0 100%; height: auto;
  }
  .mkt-fl-node:not(:last-child)::after {
    content: ""; position: absolute; left: 50%; bottom: -20px; width: 2px; height: 16px; margin-left: -1px; background: var(--accent-orange, #ff6b00); opacity: 0.6;
  }
}

/* ---- How we work: one line, four stops, and what you get at each ----
   The rail fills and the stops light in turn as the section scrolls up
   (marketing.js sets --tl and .is-on). Without JS, or with reduced motion,
   everything shows lit. */
.mkt-timeline { position: relative; list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.mkt-tl-rail { position: absolute; left: 12.5%; right: 12.5%; top: 26px; height: 2px; background: var(--mkt-accent-line); border-radius: 2px; }
.mkt-tl-rail span { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--med), var(--med-sea)); transform-origin: left; transform: scaleX(var(--tl, 1)); }
.mkt-tl-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mkt-tl-node {
  position: relative; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 50%;
  color: var(--mkt-accent); background: var(--mkt-glass-strong); border: 1px solid var(--mkt-edge);
  box-shadow: 0 0 0 1px var(--mkt-hairline), 0 10px 22px -14px rgba(10, 61, 107, 0.5);
  transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.mkt-tl-node svg { width: 22px; height: 22px; }
.mkt-tl-step h4 { margin: 0 0 6px; }
.mkt-tl-step > p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; max-width: 220px; }
.mkt-tl-get {
  margin-top: 14px !important; padding-top: 12px; border-top: 1px solid var(--mkt-hairline); width: 100%; max-width: 250px;
  color: var(--mkt-text) !important; font-weight: 600;
}
.mkt-tl-get span {
  display: block; margin-bottom: 3px; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mkt-accent);
}
.mkt-timeline--js .mkt-tl-step { opacity: 0.45; transition: opacity 0.45s ease; }
.mkt-timeline--js .mkt-tl-step.is-on { opacity: 1; }
.mkt-tl-step.is-on .mkt-tl-node, .mkt-timeline:not(.mkt-timeline--js) .mkt-tl-node {
  color: #fff; background: linear-gradient(135deg, var(--med), var(--med-sea)); border-color: transparent;
  box-shadow: 0 10px 24px -10px rgba(15, 95, 166, 0.7);
}
.mkt-tl-foot { margin: 34px auto 0; max-width: 720px; text-align: center; font-size: 0.85rem; color: var(--text-secondary); }
.mkt-tl-foot a { margin-left: 6px; white-space: nowrap; }
@media (max-width: 900px) {
  .mkt-timeline { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-left: 70px; }
  .mkt-tl-rail { left: 26px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .mkt-tl-rail span { transform-origin: top; transform: scaleY(var(--tl, 1)); }
  .mkt-tl-step { align-items: flex-start; text-align: left; }
  .mkt-tl-node { position: absolute; left: -70px; top: -6px; margin: 0; }
  .mkt-tl-step > p, .mkt-tl-get { max-width: none; }
}

/* ---- Cards ---- */
.mkt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(42, 159, 214, 0.16), rgba(15, 95, 166, 0.10));
  border: 1px solid var(--mkt-accent-line);
  color: var(--mkt-accent);
  margin-bottom: 16px;
}
.mkt-icon i,
.mkt-icon svg {
  width: 20px;
  height: 20px;
}
.mkt-card { height: 100%; }
.mkt-card h3 { margin-bottom: 10px; }
.mkt-card p {
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ---- Step rows: "joined up" and "how we work" ---- */
.mkt-flow {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.mkt-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
}
.mkt-step h4 { margin: 0; }
.mkt-step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.mkt-step .mkt-icon { margin-bottom: 4px; }
.mkt-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mkt-accent);
}

/* ---- Client logos: one line that scrolls forever. Two identical sets sit
   side by side and the track slides by exactly one set, so it loops without a
   seam. Hover pauses it; reduced motion shows a still row you can scroll.
   The logos are white artwork: inked dark in the light view, white in dark. ---- */
.mkt-marquee {
  overflow: hidden; margin-top: 36px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.mkt-marquee-track { display: flex; width: max-content; }
.mkt-logos { display: flex; align-items: center; gap: 56px; padding-right: 56px; flex: 0 0 auto; }
.mkt-logos img {
  height: 38px; width: auto; max-width: 150px; object-fit: contain; flex: 0 0 auto;
  filter: brightness(0); opacity: 0.55;
}
html.mkt-dark .mkt-logos img { filter: brightness(0) invert(1); opacity: 0.65; }
.mkt-logos img:hover { opacity: 0.95; }
@media (prefers-reduced-motion: no-preference) {
  .mkt-marquee-track { animation: mktMarquee 38s linear infinite; }
  .mkt-marquee:hover .mkt-marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .mkt-marquee { overflow-x: auto; }
  .mkt-logos[aria-hidden="true"] { display: none; }
}
@keyframes mktMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) { .mkt-logos { gap: 36px; padding-right: 36px; } .mkt-logos img { height: 30px; } }

/* ---- Case cards ---- */
.mkt-cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.mkt-case {
  display: flex;
  flex-direction: column;
  padding: 28px;
}
.mkt-case-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  align-self: flex-start;
  margin-bottom: 18px;
  filter: brightness(0);
  opacity: 0.78;
}
html.mkt-dark .mkt-case-logo { filter: brightness(0) invert(1); opacity: 0.9; }
.mkt-case h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}
.mkt-sector-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.mkt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 16px;
}
.mkt-chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--mkt-accent-soft);
  border: 1px solid var(--mkt-accent-line);
  color: var(--mkt-accent);
}
.mkt-changed {
  margin: auto 0 0;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}
.mkt-changed strong { color: var(--text-primary); }

/* Closing card needs room above the fixed footer bar */
body.pillar-marketing .contact-section { padding-bottom: 100px; }

@media (prefers-reduced-motion: reduce) {
  body.pillar-marketing .tech-grid,
  body.pillar-marketing .orb-2,
  body.pillar-marketing main .contact-card { animation: none; }
  .mkt-pop { transition: none; }
}


/* ---- Client stories: a deck of proof cards, one per job ----
   Without JS every story shows, one under another. With JS (.mkt-stories--js)
   they stack in one place and the tabs, arrows or a swipe change the story.
   No auto-rotation. Each story's visual plays when it becomes the active one. */
.mkt-story-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.mkt-story-tabs {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px;
}
.mkt-story-tabs::-webkit-scrollbar { display: none; }
.mkt-story-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--mkt-edge);
  box-shadow: 0 0 0 1px var(--mkt-hairline);
  background: var(--mkt-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--mkt-text-2);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.mkt-story-tab img { height: 16px; width: auto; max-width: 70px; object-fit: contain; filter: brightness(0); opacity: 0.6; }
#tab-yarrabrook img { filter: none; opacity: 0.9; }
html.mkt-dark .mkt-story-tab img { filter: brightness(0) invert(1); opacity: 0.75; }
.mkt-story-tab:hover { color: var(--mkt-text); }
.mkt-story-tab[aria-selected="true"] {
  color: #ffffff;
  background: linear-gradient(135deg, var(--med), var(--med-sea));
  box-shadow: 0 8px 20px -10px rgba(15, 95, 166, 0.7);
}
.mkt-story-tab[aria-selected="true"] img { filter: brightness(0) invert(1); opacity: 0.95; }
.mkt-story-tab:focus-visible { outline: 2px solid var(--med-sea); outline-offset: 2px; }

.mkt-story-stage { display: grid; gap: 24px; }
.mkt-stories--js .mkt-story-stage { gap: 0; }
.mkt-stories--js .mkt-story {
  grid-area: 1 / 1;
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s;
}
.mkt-stories--js .mkt-story:not(.is-active) {
  opacity: 0;
  visibility: hidden;
  transform: translateX(28px) scale(0.985);
  pointer-events: none;
}
.mkt-story-logo { filter: brightness(0); opacity: 0.8; max-height: 48px; }
#story-yarrabrook .mkt-story-logo { filter: none; opacity: 1; }
html.mkt-dark .mkt-story-logo { filter: brightness(0) invert(1); opacity: 0.92; }
.mkt-story .mkt-chips { margin-bottom: 0; }

.mkt-story-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.mkt-story-nav[hidden] { display: none; }
.mkt-story-step {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--mkt-edge);
  box-shadow: 0 0 0 1px var(--mkt-hairline);
  background: var(--mkt-glass-strong);
  color: var(--mkt-accent);
  cursor: pointer;
}
.mkt-story-step svg { width: 18px; height: 18px; }
.mkt-story-step:hover { border-color: var(--mkt-accent-line); }
.mkt-story-dots { display: inline-flex; align-items: center; gap: 8px; }
.mkt-story-dot {
  position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; overflow: hidden;
  background: var(--mkt-accent-line); transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}
.mkt-story-dot:hover { background: var(--mkt-accent); }
.mkt-story-dot.is-on { width: 34px; background: var(--mkt-accent-soft); box-shadow: inset 0 0 0 1px var(--mkt-accent-line); }
/* the active dot fills as the countdown to the next story runs */
.mkt-story-dot i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--med), var(--med-sea)); transform: scaleX(0); transform-origin: left; }
.mkt-story-dot.is-on i { transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) {
  .mkt-story-dot.is-on i { animation: mktStoryFill var(--story-ms, 7000ms) linear both; }
  .mkt-stories.is-paused .mkt-story-dot.is-on i { animation-play-state: paused; }
}
@keyframes mktStoryFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.mkt-story-dot:focus-visible, .mkt-story-pause:focus-visible { outline: 2px solid var(--med-sea); outline-offset: 3px; }
.mkt-story-pause {
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--mkt-edge); box-shadow: 0 0 0 1px var(--mkt-hairline); background: var(--mkt-glass-strong); color: var(--mkt-accent);
}
.mkt-story-pause svg { width: 13px; height: 13px; }

/* Shared frame for the CSS visuals */
.mkt-vis {
  position: relative;
  height: 340px;
  border-radius: 14px;
}

/* Speed race: the old process crawls, the new one is done in a blink */
.mkt-vis--speed { display: flex; flex-direction: column; justify-content: center; gap: 34px; padding: 0 8px; }
.mkt-speed-row { display: grid; grid-template-columns: 64px 1fr 76px; align-items: center; gap: 14px; }
.mkt-speed-name { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mkt-text-2); }
.mkt-speed-track { position: relative; height: 18px; border-radius: 999px; background: var(--mkt-accent-soft); box-shadow: inset 0 0 0 1px var(--mkt-hairline); overflow: hidden; }
.mkt-speed-bar { position: absolute; inset: 0 auto 0 0; border-radius: 999px; transform-origin: left center; }
.mkt-speed-bar--slow { width: 100%; background: linear-gradient(90deg, rgba(61, 84, 104, 0.35), rgba(61, 84, 104, 0.55)); }
.mkt-speed-bar--fast { width: 9%; background: linear-gradient(90deg, var(--med), var(--med-sea)); box-shadow: 0 0 14px rgba(42, 159, 214, 0.6); }
.mkt-speed-val { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--mkt-text); }
.mkt-speed-row:last-child .mkt-speed-val { background: var(--mkt-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Ranking climb: their result rises to the top of a search page */
.mkt-vis--rank { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 0 6px; }
.mkt-rank-search {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--mkt-glass-strong); border: 1px solid var(--mkt-edge); box-shadow: 0 0 0 1px var(--mkt-hairline);
  color: var(--mkt-accent);
}
.mkt-rank-search svg { width: 18px; height: 18px; }
.mkt-rank-search span { flex: 1; height: 8px; border-radius: 6px; background: var(--mkt-accent-soft); max-width: 60%; }
.mkt-rank-list { position: relative; display: grid; grid-auto-rows: 40px; gap: 8px; }
.mkt-rank-row { border-radius: 10px; background: var(--mkt-accent-soft); box-shadow: inset 0 0 0 1px var(--mkt-hairline); }
.mkt-rank-row--you {
  position: absolute; left: 0; right: 0; top: 0; height: 40px;
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: var(--mkt-glass-strong); box-shadow: 0 0 0 1px var(--mkt-accent-line), 0 10px 24px -12px rgba(15, 95, 166, 0.55);
  border: 1px solid var(--mkt-edge);
}
.mkt-rank-row--you img { height: 18px; width: auto; max-width: 80px; filter: brightness(0); opacity: 0.75; }
html.mkt-dark .mkt-rank-row--you img { filter: brightness(0) invert(1); }
.mkt-rank-row--you b { font-family: var(--font-display); font-size: 0.9rem; color: var(--mkt-text); }
.mkt-rank-row--you em {
  margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--med), var(--med-sea));
}

/* Rising line: more leads, no numbers claimed */
.mkt-vis--rise svg { position: absolute; inset: 20px 10px 30px; width: calc(100% - 20px); height: calc(100% - 50px); overflow: visible; }
.mkt-rise-line { stroke-dasharray: 100; stroke-dashoffset: 0; }
.mkt-rise-end { fill: var(--med); filter: drop-shadow(0 0 8px rgba(42, 159, 214, 0.8)); }
.mkt-vis-tag {
  position: absolute; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--mkt-glass-strong); border: 1px solid var(--mkt-edge);
  box-shadow: 0 0 0 1px var(--mkt-hairline); color: var(--mkt-text);
}
.mkt-vis-tag--start { left: 8px; bottom: 4px; }
.mkt-vis-tag--end { right: 8px; top: 0; }

/* Brand reveal: the new mark, framed by a slowly turning ring */
.mkt-vis--brand { display: grid; place-items: center; }
.mkt-vis--brand img { position: relative; z-index: 1; height: 72px; width: auto; max-width: 70%; object-fit: contain; filter: brightness(0); opacity: 0.85; }
html.mkt-dark .mkt-vis--brand img { filter: brightness(0) invert(1); opacity: 0.95; }
.mkt-brand-ring {
  position: absolute; width: 250px; height: 250px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(42, 159, 214, 0), rgba(42, 159, 214, 0.55), rgba(15, 95, 166, 0.9), rgba(42, 159, 214, 0));
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 66%, transparent 67%);
  mask: radial-gradient(circle, transparent 62%, #000 63%, #000 66%, transparent 67%);
}
.mkt-vis--brand::before {
  content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 159, 214, 0.18), rgba(42, 159, 214, 0) 70%);
}

/* Data flow: records travel from the old place to the new one */
.mkt-vis--flow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 0 6px; align-content: center; }
.mkt-flow-box {
  padding: 16px 18px; border-radius: 12px; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  background: var(--mkt-glass-strong); border: 1px solid var(--mkt-edge); box-shadow: 0 0 0 1px var(--mkt-hairline); color: var(--mkt-text-2);
}
.mkt-flow-box--to { color: #fff; background: linear-gradient(135deg, var(--med), var(--med-sea)); box-shadow: 0 10px 24px -12px rgba(15, 95, 166, 0.7); border-color: transparent; }
.mkt-flow-track { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--mkt-accent-line) 0 6px, transparent 6px 12px); }
.mkt-flow-track i {
  position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--med-sea); box-shadow: 0 0 10px rgba(42, 159, 214, 0.9); opacity: 0;
}
.mkt-flow-what { grid-column: 1 / -1; text-align: center; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mkt-text-2); }

/* Motion, only for the active story and only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .mkt-stories--js .is-active .mkt-speed-bar--slow { animation: mktFill 1.8s linear both; }
  .mkt-stories--js .is-active .mkt-speed-bar--fast { animation: mktFill 0.35s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .mkt-stories--js .is-active .mkt-speed-row:first-child .mkt-speed-val { animation: mktFade 0.25s 1.8s both; }
  .mkt-stories--js .is-active .mkt-speed-row:last-child .mkt-speed-val { animation: mktFade 0.25s 0.45s both; }
  .mkt-stories--js .is-active .mkt-rank-row--you { animation: mktClimb 1.1s 0.15s cubic-bezier(0.65, 0, 0.35, 1) both; }
  .mkt-stories--js .is-active .mkt-rank-row--you em { animation: mktFade 0.25s 1.25s both; }
  .mkt-stories--js .is-active .mkt-rise-line { animation: mktDraw 1.2s 0.1s cubic-bezier(0.65, 0, 0.35, 1) both; }
  .mkt-stories--js .is-active .mkt-rise-area { animation: mktFade 0.5s 0.8s both; }
  .mkt-stories--js .is-active .mkt-rise-end,
  .mkt-stories--js .is-active .mkt-vis-tag--end { animation: mktPop 0.35s 1.3s cubic-bezier(0.16, 1, 0.3, 1) both; transform-box: fill-box; transform-origin: center; }
  .mkt-stories--js .is-active .mkt-vis--brand img { animation: mktPop 0.5s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .mkt-stories--js .is-active .mkt-brand-ring { animation: mktSpin 9s linear infinite; }
  .mkt-stories--js .is-active .mkt-flow-track i { animation: mktTravel 2.4s linear infinite; }
  .mkt-stories--js .is-active .mkt-flow-track i:nth-child(2) { animation-delay: 0.6s; }
  .mkt-stories--js .is-active .mkt-flow-track i:nth-child(3) { animation-delay: 1.2s; }
  .mkt-stories--js .is-active .mkt-flow-track i:nth-child(4) { animation-delay: 1.8s; }
}
@media (prefers-reduced-motion: reduce) {
  .mkt-flow-track i:nth-child(2) { opacity: 1; left: 30%; }
  .mkt-flow-track i:nth-child(3) { opacity: 1; left: 65%; }
  .mkt-stories--js .mkt-story { transition: none; }
}
@keyframes mktFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes mktFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mktClimb { from { transform: translateY(192px); } to { transform: translateY(0); } }
@keyframes mktDraw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes mktPop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes mktSpin { to { transform: rotate(360deg); } }
@keyframes mktTravel {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; }
}

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  .mkt-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mkt-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Phone ---- */
@media (max-width: 768px) {
  .mkt-proof-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
  }
  .mkt-proof-stage { height: 240px; }
  .mkt-vis { height: 240px; }
  .mkt-story-head { align-items: stretch; }
  .mkt-story-tab span { display: none; }
  .mkt-story-tab { padding: 8px 12px; }
  .mkt-hero > .container { padding-left: 16px; padding-right: 16px; }
  .mkt-pop { width: 220px; }
  .mkt-theme { top: 88px; right: 16px; }
  body.pillar-marketing main .glass-card {
    backdrop-filter: blur(6px) saturate(170%);
    -webkit-backdrop-filter: blur(6px) saturate(170%);
  }
}
@media (max-width: 640px) {
  .mkt-cases { grid-template-columns: minmax(0, 1fr); }
  .mkt-flow { grid-template-columns: minmax(0, 1fr); }
}

/* Story pills link to their service page (or this page's "What you get") */
a.mkt-chip { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: background .2s, color .2s, border-color .2s, transform .2s; }
a.mkt-chip::after { content: "\2192"; font-size: 0.7rem; line-height: 1; opacity: 0; margin-right: -10px; transition: opacity .2s, margin .2s; }
a.mkt-chip:hover, a.mkt-chip:focus-visible { background: var(--mkt-accent); border-color: var(--mkt-accent); color: #fff; transform: translateY(-1px); }
a.mkt-chip:hover::after, a.mkt-chip:focus-visible::after { opacity: 1; margin-right: 0; }
a.mkt-chip:focus-visible { outline: 2px solid var(--mkt-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { a.mkt-chip, a.mkt-chip::after { transition: none; } a.mkt-chip:hover { transform: none; } }

/* Story visual: the real site in a frame, scrolling steadily down the page and
   back up, like someone browsing it. Still for reduced motion. */
.mkt-vis--shot { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--mkt-hairline), 0 24px 50px -24px rgba(15, 40, 80, 0.45); }
.mkt-vis--shot img { display: block; width: 100%; height: auto; transform: translateY(0); }
.mkt-vis--shot::after { content: ""; position: absolute; inset: auto 0 0 0; height: 48px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85)); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  /* a constant, even scroll down the site and back up, all the time */
  .mkt-stories--js .mkt-vis--shot img { animation: mktBrowse 16s linear infinite alternate; }
}
@keyframes mktBrowse { from { transform: translateY(0); } to { transform: translateY(calc(-100% + 340px)); } }
@media (max-width: 768px) {
  @keyframes mktBrowse { from { transform: translateY(0); } to { transform: translateY(calc(-100% + 240px)); } }
}

/* Brand story visual: the ring is sized to enclose the logo. The logo is
   capped so its corners stay inside the ring's inner edge (62% of the radius). */
.mkt-vis--brand { --ring: 330px; --logo-w: 190px; }
.mkt-vis--brand .mkt-brand-ring { width: var(--ring); height: var(--ring); }
.mkt-vis--brand::before { width: calc(var(--ring) * 0.8); height: calc(var(--ring) * 0.8); }
.mkt-vis--brand img { height: auto; max-height: 72px; width: auto; max-width: var(--logo-w); }
@media (max-width: 768px) {
  .mkt-vis--brand { --ring: 232px; --logo-w: 130px; }
  .mkt-vis--brand img { max-height: 52px; }
}

/* The Website pill on a client story opens the client's live site: an external
   arrow shows all the time, so it reads differently from the service pills. */
a.mkt-chip--ext::after { content: "\2197"; opacity: 0.8; margin-right: 0; }

/* The Rufen name set like the logo, in plain text, inside a sentence ("The same team behind {RUFEN. builds ...") */
.rufen-word { font-family: var(--font-display, 'Outfit', sans-serif); font-weight: 800; color: #0062ff; letter-spacing: -0.01em; white-space: nowrap; }
.rufen-word .rw-b { color: #ff6b00; margin-right: 0.04em; }
.rufen-word .rw-d { color: #ff6b00; }
.rep-join-lead { margin: 0 auto 10px; max-width: 680px; color: var(--text-secondary); text-wrap: balance; }



/* ===== Dark mode (html[data-theme="dark"]). Design: docs/plans/dark-mode-design-system.md, section h (Marketing, hue 241). =====
   One block. Every rule is keyed on :root[data-theme="dark"], so light mode cannot change. The surface tokens (--dk-*) come from styles.css
   (re-declared for Marketing on body.pillar-marketing). Page-local --mkt-* names are re-pointed here so every rule above follows them.
   Levels: --mc = a card on the page, --mc2 = a panel inside a card, --mc3 = a panel inside that. A .service-alt band is s1 and its cards step up one level. */
:root[data-theme="dark"] body.pillar-marketing{
  --mc:var(--dk-s1); --mc2:var(--dk-s2); --mc3:var(--dk-s3); --mline:var(--dk-line-1);
  --mkt-bg:var(--dk-canvas);
  --mkt-text:#e4edf2; --mkt-text-2:#b2c0c9;
  --mkt-accent:#71c1e0;
  --mkt-accent-soft:rgba(113,193,224,.10);
  --mkt-accent-line:rgba(113,193,224,.30);
  --mkt-glass:var(--mc); --mkt-glass-strong:var(--mc2);
  --mkt-edge:var(--dk-line-2); --mkt-hairline:var(--dk-line-2);
  --mkt-sheen:linear-gradient(180deg,transparent,transparent);
  --mkt-shadow:inset 0 1px 0 var(--dk-light-top);
  --mkt-grad:linear-gradient(90deg,#9bd3ea 0%,#71c1e0 55%,#8fb0ee 100%);
  --mkt-field:var(--dk-s1);
  --mkt-tide:linear-gradient(180deg,#00030b 0%,#000611 12%,#000a17 50%,#000611 88%,#00030b 100%);
  --med:#3d92cc;            /* swatches, rails, rings: 5:1 on s1 */
  background:var(--mkt-tide);
  color:var(--mkt-text);
}
:root[data-theme="dark"] body.pillar-marketing .service-alt{
  --mc:var(--dk-s2); --mc2:var(--dk-s3); --mc3:var(--dk-s4); --mline:var(--dk-line-2); --mkt-field:var(--dk-s1);
  background:var(--dk-s1); border:0; box-shadow:inset 0 1px 0 var(--dk-line-1),inset 0 -1px 0 var(--dk-line-1);
}
/* the sea light behind the page: low, so cards stay 4.3 L or more above its brightest patch */
:root[data-theme="dark"] body.pillar-marketing .tech-grid{
  background-image:
    radial-gradient(circle at 12% 10%, rgba(42,159,214,.07) 0, rgba(42,159,214,0) 30%),
    radial-gradient(circle at 88% 26%, rgba(15,95,166,.09) 0, rgba(15,95,166,0) 30%),
    radial-gradient(circle at 38% 70%, rgba(124,198,238,.04) 0, rgba(124,198,238,0) 30%),
    radial-gradient(circle at 80% 96%, rgba(42,159,214,.06) 0, rgba(42,159,214,0) 30%);
}
:root[data-theme="dark"] body.pillar-marketing .orb-1{ background:radial-gradient(circle,rgba(42,159,214,.14) 0%,rgba(0,0,0,0) 70%) !important; }
:root[data-theme="dark"] body.pillar-marketing .orb-2{ background:radial-gradient(circle,rgba(15,95,166,.12) 0%,rgba(0,0,0,0) 70%) !important; }
:root[data-theme="dark"] body.pillar-marketing .service-hero-title{ color:var(--text-primary); }

/* ---- Cards: solid level, lit top edge, no blur, no shadow, no glow ---- */
:root[data-theme="dark"] body.pillar-marketing main .glass-card{
  background:var(--mc); border-color:var(--mkt-edge); box-shadow:var(--mkt-shadow);
  -webkit-backdrop-filter:none; backdrop-filter:none;
}
:root[data-theme="dark"] body.pillar-marketing main .glass-card:hover{ background:var(--mc2); border-color:var(--dk-line-3); box-shadow:var(--mkt-shadow); }
/* a card that holds panels of its own keeps its level on hover, so the panels never merge into it */
:root[data-theme="dark"] body.pillar-marketing main .glass-card:is(.mkt-story,.soc-stage,.rep-board,.ads-stage,.web-join,.seo-join,.bd-join,.soc-join,.ads-join):hover{ background:var(--mc); border-color:var(--mkt-edge); }
:root[data-theme="dark"] body.pillar-marketing main .sp-faq details{ background:var(--mc); border-color:var(--mkt-edge); box-shadow:var(--mkt-shadow); }
:root[data-theme="dark"] body.pillar-marketing main .sp-faq details[open]{ border-color:var(--dk-line-3); }
:root[data-theme="dark"] body.pillar-marketing main .btn-secondary{ box-shadow:none; }
:root[data-theme="dark"] body.pillar-marketing .service-hero-badge{ -webkit-backdrop-filter:none; backdrop-filter:none; }
:root[data-theme="dark"] body.pillar-marketing main .form-group :is(input,textarea):focus + label,
:root[data-theme="dark"] body.pillar-marketing main .form-group :is(input,textarea):not(:placeholder-shown) + label{ background:var(--dk-s1); color:var(--blue-text); }

/* ---- Hero ---- */
:root[data-theme="dark"] .mkt-ask{ background:var(--dk-s2); border-color:var(--dk-line-3); box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; }
:root[data-theme="dark"] .mkt-ask:focus-within{ border-color:var(--blue-text); box-shadow:none; outline:2px solid var(--dk-focus); outline-offset:2px; }
:root[data-theme="dark"] .mkt-ask button{ background:var(--btn-mkt); box-shadow:none; color:#fff; }
:root[data-theme="dark"] .mkt-ask button:hover{ background:var(--btn-mkt-hi); }
:root[data-theme="dark"] .mkt-pop{
  background:var(--dk-s3); border-color:var(--dk-line-3); -webkit-backdrop-filter:none; backdrop-filter:none;
  box-shadow:inset 0 1px 0 var(--dk-edge-hi),0 18px 40px -18px rgba(0,3,11,.7);   /* a popover over the ribbons: one neutral ambient shadow (listed exception) */
}
:root[data-theme="dark"] .mkt-hint::before{ box-shadow:0 0 0 1px rgba(113,193,224,.40); }

/* ---- Proof deck ---- */
:root[data-theme="dark"] body.pillar-marketing main .mkt-proof-card{ background:linear-gradient(135deg,rgba(113,193,224,.06),rgba(113,193,224,0) 60%),var(--mc); }
:root[data-theme="dark"] .mkt-story-tab{ background:var(--dk-s1); border-color:var(--dk-line-2); box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; color:var(--text-secondary); }
:root[data-theme="dark"] .mkt-story-tab:hover{ background:var(--dk-s2); color:var(--text-primary); }
:root[data-theme="dark"] .mkt-story-tab[aria-selected="true"]{ background:var(--btn-mkt); border-color:var(--btn-mkt); color:#fff; box-shadow:none; }
:root[data-theme="dark"] .mkt-story-step,:root[data-theme="dark"] .mkt-story-pause{ background:var(--dk-s2); border-color:var(--dk-line-3); box-shadow:none; }
:root[data-theme="dark"] .mkt-story-step:hover{ background:var(--dk-s3); border-color:var(--dk-edge); }
:root[data-theme="dark"] .mkt-story-dot{ background:var(--dk-control); }
:root[data-theme="dark"] .mkt-story-dot.is-on{ background:var(--dk-s3); box-shadow:inset 0 0 0 1px var(--dk-line-3); }
:root[data-theme="dark"] .mkt-chip{ background:rgba(113,193,224,.12); border-color:rgba(113,193,224,.32); color:var(--blue-text); }
:root[data-theme="dark"] a.mkt-chip:hover,:root[data-theme="dark"] a.mkt-chip:focus-visible{ background:var(--btn-mkt); border-color:var(--btn-mkt); color:#fff; }
:root[data-theme="dark"] .mkt-vis--shot{ background:var(--dk-s2); box-shadow:0 0 0 3px var(--dk-s2),0 0 0 4px var(--dk-edge); }   /* client artwork stays light; framed, not recoloured */
:root[data-theme="dark"] .mkt-vis--shot::after{ background:linear-gradient(180deg,rgba(1,20,34,0),rgba(1,20,34,.7)); }
:root[data-theme="dark"] .mkt-speed-track{ background:var(--dk-s3); box-shadow:inset 0 0 0 1px var(--dk-line-3); }
:root[data-theme="dark"] .mkt-speed-bar--slow{ background:linear-gradient(90deg,#2e495e,#3b5a71); }
:root[data-theme="dark"] .mkt-rank-search{ background:var(--dk-s2); border-color:var(--dk-line-3); box-shadow:none; }
:root[data-theme="dark"] .mkt-rank-row{ background:var(--dk-s2); box-shadow:inset 0 0 0 1px var(--dk-line-2); }
:root[data-theme="dark"] .mkt-rank-row--you{ background:var(--dk-s3); border-color:var(--dk-line-3); box-shadow:0 0 0 1px var(--mkt-accent-line); }
:root[data-theme="dark"] .mkt-rank-row--you em{ background:var(--btn-mkt); color:#fff; }
:root[data-theme="dark"] .mkt-vis-tag{ background:var(--dk-s3); border-color:var(--dk-line-3); box-shadow:none; }
:root[data-theme="dark"] .mkt-brand-ring{ background:conic-gradient(from 0deg,rgba(113,193,224,0),rgba(113,193,224,.5),rgba(61,146,204,.9),rgba(113,193,224,0)); }
:root[data-theme="dark"] .mkt-vis--brand::before{ background:radial-gradient(circle,rgba(113,193,224,.08),rgba(113,193,224,0) 70%); }
:root[data-theme="dark"] .mkt-flow-box{ background:var(--dk-s2); border-color:var(--dk-line-3); box-shadow:none; }
:root[data-theme="dark"] .mkt-flow-box--to{ background:var(--btn-mkt); border-color:var(--btn-mkt); color:#fff; }

/* ---- Six things, run by one team (tiles) ---- */
:root[data-theme="dark"] .mkt-goal{ background:var(--dk-s2); border-color:var(--dk-line-3); box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; }
:root[data-theme="dark"] .mkt-goal:hover{ background:var(--dk-s3); border-color:var(--dk-edge); box-shadow:none; }
:root[data-theme="dark"] .mkt-goal[aria-pressed="true"]{ background:var(--btn-mkt); border-color:var(--btn-mkt); color:#fff; box-shadow:none; }
:root[data-theme="dark"] body.pillar-marketing main .mkt-tile{ box-shadow:var(--mkt-shadow); }
:root[data-theme="dark"] body.pillar-marketing main .mkt-tile:hover{ border-color:var(--dk-line-3); box-shadow:var(--mkt-shadow); }
:root[data-theme="dark"] body.pillar-marketing main .mkt-tiles.has-goal .mkt-tile.is-lit{ border-color:var(--blue-text); box-shadow:inset 0 1px 0 var(--dk-light-top),0 0 0 1px rgba(113,193,224,.45); }
:root[data-theme="dark"] .mkt-tile > .mkt-spot{ background:radial-gradient(280px circle at var(--mx,50%) var(--my,30%),rgba(113,193,224,.08),transparent 62%); }
:root[data-theme="dark"] .mkt-tv{ background:var(--mc2); box-shadow:inset 0 0 0 1px var(--mline); }
:root[data-theme="dark"] .mkt-sw{ box-shadow:0 0 0 3px var(--mc2),0 0 0 4px var(--dk-edge); }
:root[data-theme="dark"] :is(.mkt-browser,.mkt-phone,.mkt-q,.mkt-ai,.mkt-ad,.mkt-post){ background:var(--mc3); box-shadow:0 0 0 1px var(--dk-line-3); }
:root[data-theme="dark"] .mkt-browser-bar i{ background:var(--dk-edge); }
:root[data-theme="dark"] :is(.mkt-cite,.mkt-node,.mkt-ad-phone){ background:var(--btn-mkt); box-shadow:none; color:#fff; }
:root[data-theme="dark"] body.pillar-marketing main .mkt-bento > #brand{ background:linear-gradient(160deg,rgba(113,193,224,.07),rgba(113,193,224,0) 55%),var(--mc); }

/* ---- Joined up: the funnel hands off to the orange systems ---- */
:root[data-theme="dark"] .mkt-fn-lead{ color:var(--text-secondary); }
:root[data-theme="dark"] .mkt-flow-stage::before{ background-image:linear-gradient(to right,rgba(113,193,224,.06) 1px,transparent 1px),linear-gradient(to bottom,rgba(113,193,224,.06) 1px,transparent 1px); }
:root[data-theme="dark"] .mkt-fl-tier-base{ fill:rgba(113,193,224,.10); stroke:rgba(113,193,224,.30); }
:root[data-theme="dark"] .mkt-fl-path{ opacity:1; }
/* funnel tiers: the filled body is an opaque navy plate that gets lighter per tier (Marketing s4 -> plate -> plate-hi). Orange is only the outline, getting heavier per tier, and the last tier is solid pure orange. No mixed orange, no brown. The animation is untouched: marketing.js still sets --on, and the CSS opacity:var(--on) on .mkt-fl-tier-on fades fill and stroke in together. */
:root[data-theme="dark"] .mkt-fl-tier-on{ stroke:#f39d5e; stroke-linejoin:round; }
:root[data-theme="dark"] .mkt-fl-tier[data-k="0"] .mkt-fl-tier-on{ fill:#1b3446; stroke-width:1.25; }   /* oklch 31.4%, text-primary 10.9:1 */
:root[data-theme="dark"] .mkt-fl-tier[data-k="1"] .mkt-fl-tier-on{ fill:#233c4e; stroke-width:1.75; }   /* oklch 34.4%, 9.7:1 */
:root[data-theme="dark"] .mkt-fl-tier[data-k="2"] .mkt-fl-tier-on{ fill:#2d4759; stroke-width:2.25; }   /* oklch 38.5%, 8.2:1; secondary text 5.2:1 */
:root[data-theme="dark"] .mkt-fl-tier[data-k="3"] .mkt-fl-tier-on{ fill:#fa7c20; stroke:#fa7c20; stroke-width:1; }   /* the only solid orange; ink #1a0d00 on it is 7.23:1 */
:root[data-theme="dark"] .mkt-fl-tier-label{ fill:var(--text-primary); }
:root[data-theme="dark"] .mkt-fl-leader{ stroke:rgba(113,193,224,.35); }
:root[data-theme="dark"] .mkt-fl-stage{ opacity:.8; }
:root[data-theme="dark"] .mkt-fl-stage.is-on{ opacity:1; }
:root[data-theme="dark"] .mkt-fl-stage .mkt-fl-stage-name{ color:var(--text-primary); }
:root[data-theme="dark"] .mkt-fl-stage[data-k="3"].is-on .mkt-fl-stage-name{ color:#1a0d00; }   /* (0,6,0) beats the light rule (0,4,0) that makes it white; dark ink on the solid orange tier */
:root[data-theme="dark"] .mkt-fl-stage .mkt-fl-stage-text{ color:var(--text-secondary); }
:root[data-theme="dark"] #mktFlHandoff stop:first-child{ stop-color:#f39d5e; }
:root[data-theme="dark"] #mktFlHandoff stop:last-child{ stop-color:#f39d5e; }
:root[data-theme="dark"] .mkt-fl-joint{ fill:#f39d5e; }
:root[data-theme="dark"] .mkt-fl-or{ fill:var(--orange-text); }
:root[data-theme="dark"] .mkt-fl-spout{ background:#f39d5e; box-shadow:none; outline:1px solid #f39d5e; outline-offset:calc(var(--pulse,0) * 10px); opacity:max(.9, var(--spout,1)); }   /* a faded orange dot reads brown on navy (R3) */
:root[data-theme="dark"] .mkt-fl-node{ background:var(--dk-s2); border-color:var(--dk-edge); box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; opacity:.92; }
:root[data-theme="dark"] .mkt-fl-node.is-lit{ background:var(--dk-s3); border-color:#f39d5e; opacity:1; box-shadow:none; }
:root[data-theme="dark"] .mkt-fl-node:hover,:root[data-theme="dark"] .mkt-fl-node:focus-visible{ background:var(--dk-s3); border-color:#f39d5e; box-shadow:none; opacity:1; }
:root[data-theme="dark"] .mkt-fl-name svg{ color:var(--orange-text); }
:root[data-theme="dark"] .mkt-ba-mods{ border-top-color:var(--dk-line-3); }
:root[data-theme="dark"] .mkt-led{ background:rgba(113,193,224,.30); }
:root[data-theme="dark"] .mkt-fl-node--ba.is-lit .mkt-led{ background:var(--blue-text); box-shadow:0 0 0 1px rgba(113,193,224,.40); }
:root[data-theme="dark"] .mkt-why-pills li{ background:var(--dk-s2); border-color:var(--dk-line-2); box-shadow:none; }
:root[data-theme="dark"] .mkt-why-pills li::before{ background:#f39d5e; }
:root[data-theme="dark"] .mkt-fn-cta p{ color:var(--text-primary); }
@media (max-width:900px){ :root[data-theme="dark"] .mkt-fl-node:not(:last-child)::after{ background:#f39d5e; } }

/* ---- How we work ---- */
:root[data-theme="dark"] .mkt-tl-rail{ background:var(--dk-line-3); }
:root[data-theme="dark"] .mkt-tl-node{ background:var(--dk-s2); border-color:var(--dk-line-3); box-shadow:none; color:var(--blue-text); }
:root[data-theme="dark"] .mkt-tl-step.is-on .mkt-tl-node,:root[data-theme="dark"] .mkt-timeline:not(.mkt-timeline--js) .mkt-tl-node{ background:var(--btn-mkt); border-color:var(--btn-mkt); color:#fff; box-shadow:none; }
:root[data-theme="dark"] .mkt-timeline--js .mkt-tl-step{ opacity:.78; }
:root[data-theme="dark"] .mkt-timeline--js .mkt-tl-step.is-on{ opacity:1; }
:root[data-theme="dark"] .mkt-tl-get{ border-top-color:var(--dk-line-2); }
:root[data-theme="dark"] .mkt-tl-foot a,:root[data-theme="dark"] body.pillar-marketing main .mkt-link{ color:var(--blue-text); }

/* ---- Small shared pieces ---- */
:root[data-theme="dark"] .mkt-icon{ background:rgba(113,193,224,.10); border-color:rgba(113,193,224,.30); }
:root[data-theme="dark"] body.pillar-marketing main .highlight-text{ color:var(--blue-text) !important; }
:root[data-theme="dark"] body.pillar-marketing .sp-faq summary::after{ color:var(--blue-text); }
:root[data-theme="dark"] body.pillar-marketing .rufen-word{ color:#74acff; }
:root[data-theme="dark"] body.pillar-marketing .rufen-word :is(.rw-b,.rw-d){ color:#f39d5e; }
:root[data-theme="dark"] .mkt-fn-lead .rufen-word{ opacity:1; }

/* ---- logos on a dark ground: white artwork inked white (kept from the old dark view) ---- */
:root[data-theme="dark"] .mkt-pop-logo{ filter:brightness(0) invert(1); opacity:.92; }
:root[data-theme="dark"] .mkt-proof-logo{ filter:brightness(0) invert(1); }
:root[data-theme="dark"] .mkt-logos img{ filter:brightness(0) invert(1); opacity:.65; }
:root[data-theme="dark"] .mkt-case-logo{ filter:brightness(0) invert(1); opacity:.9; }
:root[data-theme="dark"] .mkt-story-tab img{ filter:brightness(0) invert(1); opacity:.75; }
:root[data-theme="dark"] .mkt-story-logo{ filter:brightness(0) invert(1); opacity:.92; }
:root[data-theme="dark"] .mkt-rank-row--you img{ filter:brightness(0) invert(1); }
:root[data-theme="dark"] .mkt-vis--brand img{ filter:brightness(0) invert(1); opacity:.95; }
:root[data-theme="dark"] #tab-yarrabrook img{ filter:brightness(0) invert(1); opacity:.75; }
:root[data-theme="dark"] #tab-yarrabrook[aria-selected="true"] img{ opacity:.95; }
:root[data-theme="dark"] #story-yarrabrook .mkt-story-logo{ filter:brightness(0) invert(1); opacity:.92; }
