/* ============ RESET & TOKENS ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple-900: #1c0f3f;
  --purple-800: #2a1560;
  --purple-600: #5b2ee6;
  --purple-500: #6d3df5;
  --purple-400: #8b63ff;
  --ink: #16121f;
  --ink-soft: #4d4761;
  --bg: #faf9fc;
  --card: #ffffff;
  --line: #e8e4f1;
  --gold: #f5b532;
  --radius: 20px;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-accent: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h1 em, h2 em, .page-hero em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
}

.center { text-align: center; }
.light { color: #fff; }

.section { padding: clamp(4rem, 9vw, 7.5rem) clamp(1.25rem, 5vw, 4rem); max-width: 1200px; margin: 0 auto; }
.section.tight { padding-top: clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
  display: inline-block;
  width: 100%;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--purple-500);
  margin-bottom: 0.75rem;
}
.eyebrow.light { color: var(--purple-400); }

.section-sub { max-width: 620px; margin: 0 auto 2.5rem; color: var(--ink-soft); }
.light.section-sub { color: #c9c0e8; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--purple-600); color: #fff; box-shadow: 0 8px 24px rgba(91, 46, 230, 0.35); }
.btn-primary:hover { background: var(--purple-500); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--purple-800); }
.mt { margin-top: 2.5rem; }

/* ============ TOP LOGO BAR ============ */
.top-logo-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 1.4rem;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
/* Gold matches the FR brand mark and reads clearly on the purple hero */
.logo span { color: #f7b733; }
.logo-mark { width: 34px; height: 34px; display: block; }

/* ============ BRAND WORDMARK (very end of footer) ============ */
.brand-end {
  position: relative;
  overflow: hidden;
  /* bleed out to the footer edges by cancelling its horizontal padding.
     (100vw would include the scrollbar and overflow by ~8px.) */
  margin: clamp(2rem, 5vw, 3.5rem) calc(-1 * clamp(1.25rem, 5vw, 4rem)) 0;
  width: auto;
  line-height: 0;
  isolation: isolate;
}
/* glow rising from the bottom edge */
.brand-end::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -60%;
  transform: translateX(-50%);
  width: 140%;
  height: 170%;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(139, 99, 255, 0.5) 0%,
    rgba(247, 183, 51, 0.14) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}
/* SVG scales to any width — the wordmark can never overflow */
.brand-end-word {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}
/* fine horizontal light streaks over the lower half */
.brand-end-streaks {
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  z-index: 2;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0 2px,
    transparent 2px 7px
  );
  pointer-events: none;
}

/* Fixed bottom blur band — same technique as the reference */
.page-fade {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  z-index: 40;
  pointer-events: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 10%, rgba(0,0,0,0.8) 40%, rgba(0,0,0,0.5) 80%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, #000 10%, rgba(0,0,0,0.8) 40%, rgba(0,0,0,0.5) 80%, transparent 100%);
}
@media (max-width: 768px) {
  /* the mobile tab bar already occupies the bottom edge */
  .page-fade { display: none; }
  .brand-end { margin-top: 1.5rem; }
  /* the mirrored reflection reads as a glitch at small sizes — letters only */
  .bw-reflection { display: none; }
  /* clear the fixed tab bar (93px) + the chat button that rises ~28px above it */
  .site-footer { padding-bottom: calc(11rem + env(safe-area-inset-bottom)); }
}

/* Nav dropdown video (same approach as reference: muted autoplay loop) */
.bn-panel-media { overflow: hidden; position: relative; }
.nav-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ NAV OVERLAY (page blur while menu open) ============ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.nav-overlay.active { opacity: 1; visibility: visible; }

/* ============ BOTTOM NAV — desktop floating pill ============ */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: #0a0a0a;
  border-radius: 16px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: inset 0 3px 6px rgba(48, 255, 151, 0.25), 0 12px 40px rgba(0,0,0,0.45);
}
.bn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #f2f0f7;
  font-size: 0.92rem;
  font-weight: 500;
  font-family: var(--font-body);
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.bn-link:hover { background: rgba(255,255,255,0.08); }
.bn-icon { width: 22px; height: 22px; display: none; }
.bn-label { line-height: 1; }

.bn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #8a55ff 0%, #5b2ee6 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 4px 18px rgba(91, 46, 230, 0.5);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  margin: 0 0.35rem;
  transition: filter 0.2s ease;
}
.bn-cta:hover { filter: brightness(1.12); }
.bn-cta svg { width: 18px; height: 18px; }

/* Raised center button — mobile only */
.bn-fab { display: none; }

/* Notch shape is mobile-only; hidden here so it never enters the desktop flex row */
.bn-shape { display: none; }

/* Mobile-only plain Services link */
.bn-mobile-only { display: none !important; }

/* ---- Dropdown panels (open upward) ---- */
.bn-dd { position: relative; }
.bn-dd .bn-toggle { width: 100%; }
.bn-panel {
  position: absolute;
  bottom: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  width: 560px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.bn-panel::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 3px;
}
.bn-dd.open .bn-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.bn-dd.open .bn-label { color: var(--purple-400); }
.bn-panel-list { flex: 1; min-width: 250px; }
.bn-panel-list a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.bn-panel-list a:hover { background: #f3effc; }
.bn-panel-list strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.bn-panel-list small { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.4; }
.bn-panel-media {
  width: 230px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--purple-800), var(--purple-500));
  display: flex;
  align-items: center;
  justify-content: center;
}
.bn-panel-media span {
  font-family: var(--font-accent);
  font-style: italic;
  color: rgba(255,255,255,0.9);
  font-size: 1.3rem;
}
.bn-panel.simple { width: 340px; display: block; }

/* ---- Mobile: app-style bottom tab bar with center notch ---- */
@media (max-width: 768px) {
  .bottom-nav {
    left: 0; right: 0; bottom: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    /* iOS: 16px top + 22px bottom incl. home-indicator safe area (~102px total) */
    padding: 16px 2px calc(22px + env(safe-area-inset-bottom));
    justify-content: space-around;
    gap: 0;
    animation: bn-rise-mobile 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  /* SVG path draws the bar: rounded top corners + smooth notch valley */
  .bottom-nav::before { display: none; }
  .bn-shape {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
    filter: drop-shadow(0 -1px 0 rgba(48, 255, 151, 0.28));
  }
  .bn-shape path {
    fill: #0a0a0a;
    stroke: rgba(48, 255, 151, 0.30);
    stroke-width: 1.2;
  }
  .bn-link, .bn-fab, .bn-cta { position: relative; z-index: 1; }
  .bn-link {
    position: relative;
    flex-direction: column;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.7rem;
  }
  .bn-link:hover { background: none; }
  .bn-icon { display: block; width: 24px; height: 24px; }
  /* keep the CTA in flow as an invisible centre spacer so the tab labels
     never collide with the floating chat button sitting in the notch */
  .bn-cta {
    display: block;
    visibility: hidden;
    width: 76px;
    min-width: 76px;
    height: 1px;
    padding: 0;
    margin: 0;
    box-shadow: none;
    background: none;
    pointer-events: none;
  }
  .bn-desktop-only { display: none !important; }
  .bn-mobile-only { display: inline-flex !important; }

  /* Chat button in the notch — iOS app-icon style rounded square */
  .bn-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -48%);
    width: 58px; height: 58px;
    border-radius: 19px;
    background: linear-gradient(180deg, #8a55ff 0%, #5b2ee6 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 6px 20px rgba(91, 46, 230, 0.55);
    color: #fff;
    z-index: 2;
    animation: fab-pulse 3.2s ease-in-out 1.2s infinite;
  }
  .bn-fab svg { width: 26px; height: 26px; }

  /* More menu becomes a bottom sheet */
  .bn-dd { position: static; }
  .bn-panel, .bn-panel.simple {
    position: fixed;
    left: 0; right: 0;
    bottom: calc(94px + env(safe-area-inset-bottom));
    width: auto;
    transform: translateY(12px);
    border-radius: 20px 20px 0 0;
    padding: 0.5rem 0.5rem 0.75rem;
    max-height: 70vh;
    overflow-y: auto;
  }
  .bn-dd.open .bn-panel { transform: translateY(0); }
  .bn-panel::after { display: none; }
  .bn-panel-media { display: none; }
  .bn-panel-list a { padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .bn-panel-list a:last-child { border-bottom: none; }
}

/* ============ HERO (home) ============ */
.hero {
  position: relative;
  overflow: hidden;
  /* Dot-grid texture over a gradient that fades near-black at the bottom,
     matching the reference hero */
  background:
    radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1.4px) 0 0 / 22px 22px,
    radial-gradient(120% 100% at 50% 0%, #4a2bb5 0%, var(--purple-800) 38%, #170b33 70%, #0b0517 100%);
  color: #fff;
  text-align: center;
  /* Top = the absolute logo bar (~80px) plus a tight gap, so the badge sits close under the logo */
  padding: calc(80px + clamp(1rem, 2.5vw, 2rem)) 1.25rem clamp(3rem, 5vw, 4rem);
}

/* ---- Rolling photo gallery (two rows, opposite directions) ---- */
.photo-marquee {
  position: relative;
  margin: clamp(2.5rem, 5vw, 4rem) -1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pm-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.pm-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: pm-left 48s linear infinite;
}
.pm-row.reverse .pm-track { animation: pm-right 54s linear infinite; }
.pm-track img {
  height: 210px;
  width: 310px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
}
.pm-track img:nth-child(3n) { width: 250px; }
@keyframes pm-left { to { transform: translateX(-50%); } }
@keyframes pm-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

@media (max-width: 640px) {
  .pm-track img { height: 150px; width: 220px; }
  .pm-track img:nth-child(3n) { width: 180px; }
}

.hero-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(closest-side, rgba(139, 99, 255, 0.45), transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 860px; margin: 0 auto; }

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.stars { color: var(--gold); letter-spacing: 2px; }

.hero .eyebrow { color: #c9b8ff; }
.hero-sub { max-width: 560px; margin: 1.25rem auto 2rem; color: #d5cdf0; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.trusted { margin: 3.5rem 0 1.25rem; font-size: 0.85rem; color: #b3a8d9; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }

/* ============ PAGE HERO (interior pages) ============ */
.page-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 130% at 50% 0%, #4a2bb5 0%, var(--purple-800) 50%, var(--purple-900) 100%);
  color: #fff;
  text-align: center;
  padding: clamp(7rem, 13vw, 9.5rem) 1.25rem clamp(3.5rem, 7vw, 5.5rem);
}
.page-hero p { max-width: 620px; margin: 1.25rem auto 0; color: #d5cdf0; font-size: 1.05rem; }
.page-hero .hero-actions { margin-top: 2rem; }

/* ============ LOGO MARQUEE ============ */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-weight: 700;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ PROJECT FEATURE CARDS (home) ============ */
.project-list { display: flex; flex-direction: column; gap: 2.5rem; margin-top: 3rem; }

.project-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  align-items: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.project-card:hover { box-shadow: 0 20px 50px rgba(91, 46, 230, 0.12); transform: translateY(-4px); }
.project-card.flip .project-visual { order: 2; }

.project-visual {
  border-radius: 14px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-label {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 2rem;
  color: rgba(255,255,255,0.9);
}
.grad-1 { background: linear-gradient(135deg, #ff9a62, #f5576c); }
.grad-2 { background: linear-gradient(135deg, #43e97b, #38a3d1); }
.grad-3 { background: linear-gradient(135deg, #667eea, #b465da); }
.grad-4 { background: linear-gradient(135deg, #f7b733, #fc4a1a); }
.grad-5 { background: linear-gradient(135deg, #24c6dc, #514a9d); }
.grad-6 { background: linear-gradient(135deg, #ec6ead, #3494e6); }

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple-600);
  background: #efe9ff;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}
.project-info h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.project-info p { color: var(--ink-soft); }

.stats { display: flex; gap: 2.5rem; margin: 1.5rem 0; }
.stats strong { display: block; font-size: 1.6rem; letter-spacing: -0.02em; }
.stats span { font-size: 0.85rem; color: var(--ink-soft); }

.client { display: flex; align-items: center; gap: 0.75rem; }
.client strong { display: block; font-size: 0.95rem; }
.client span { font-size: 0.82rem; color: var(--ink-soft); }

.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-400));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  flex-shrink: 0;
}

/* ============ STACKED PROJECT CARDS (home) ============ */
/* Pure CSS scroll-stacking: each card is sticky with a staggered top offset,
   so earlier cards' tag strips stay peeking as the next card slides over. */
.stack-cards {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
}
.stack-card {
  position: sticky;
  top: calc(84px + var(--i, 0) * 56px);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
  border-radius: 20px;
  padding: 2.25rem 2.5rem 2.5rem;
  min-height: 460px;
  color: var(--ink);
}
.sc-tag {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 1.1rem;
  color: var(--ink) !important;
}
.stack-card h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 0.9rem; letter-spacing: -0.02em; }
.stack-card > div > p { color: rgba(22, 18, 31, 0.72); max-width: 46ch; }
.sc-stats { display: flex; gap: 3.5rem; margin: 1.75rem 0; }
.sc-stats span { display: block; font-size: 0.88rem; color: rgba(22, 18, 31, 0.65); }
.sc-stats strong { font-size: 1.45rem; letter-spacing: -0.02em; }
.sc-client {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  max-width: 420px;
}
.sc-client strong { display: block; font-size: 0.95rem; }
.sc-client span { font-size: 0.82rem; color: rgba(22, 18, 31, 0.65); }
.sc-client .sc-arrow { margin-left: auto; font-size: 1.1rem; }
.sc-visual {
  align-self: stretch;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 380px;
  position: relative;
}
/* Ridged/striped backdrop like the reference */
.sc-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.14) 0 8px,
    rgba(0, 0, 0, 0.05) 8px 16px
  );
  pointer-events: none;
}
.sc-device {
  position: relative;
  z-index: 1;
  width: 88%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.3));
}
/* CSS-only phone mockup placeholder — swap for real screenshots later */
.sc-phone {
  width: 200px;
  height: 320px;
  background: #16121f;
  border-radius: 30px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  transform: rotate(-4deg) translateY(24px);
}
.sc-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
}
/* Card palettes (tag-strip pastels + deeper visual tints) */
.sc-lavender { background: #c6cfff; }
.sc-lavender .sc-visual { background: #6d7cf0; }
.sc-salmon { background: #ffb8b0; }
.sc-salmon .sc-visual { background: #f0705f; }
.sc-yellow { background: #fbe8a4; }
.sc-yellow .sc-visual { background: #edb92e; }
.sc-cyan { background: #abf5ff; }
.sc-cyan .sc-visual { background: #2ec3dd; }
.sc-mint { background: #c9fff7; }
.sc-mint .sc-visual { background: #2ee0bb; }

/* ============ WORK GRID (projects page) ============ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.work-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.work-card:hover { box-shadow: 0 20px 50px rgba(91, 46, 230, 0.12); transform: translateY(-4px); }
.work-card .project-visual { border-radius: 0; min-height: 260px; }
.work-card .work-body { padding: 1.5rem 1.75rem 1.75rem; }
.work-card h3 { font-size: 1.25rem; margin: 0.25rem 0 0.5rem; }
.work-card p { color: var(--ink-soft); font-size: 0.93rem; }

/* ============ TESTIMONIALS ============ */
.testimonial-grid { columns: 3; column-gap: 1.5rem; margin-top: 3rem; }
.t-card {
  break-inside: avoid;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.t-card blockquote { color: var(--ink); font-size: 0.97rem; margin-bottom: 1.25rem; }
.t-card figcaption { display: flex; align-items: center; gap: 0.75rem; }
.t-card strong { display: block; font-size: 0.92rem; }
.t-card figcaption span { font-size: 0.8rem; color: var(--ink-soft); }

/* ============ DARK PANEL + FEATURE GRID ============ */
.ai-section {
  background: linear-gradient(160deg, var(--purple-900), var(--purple-800));
  border-radius: 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.f-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.75rem;
  color: #fff;
  transition: background 0.25s ease, transform 0.25s ease;
}
.f-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.f-icon { font-size: 1.8rem; margin-bottom: 0.9rem; }
.f-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.f-card p { font-size: 0.9rem; color: #c9c0e8; }

/* Light variant */
.icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.icon-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.icon-card:hover { box-shadow: 0 16px 40px rgba(91, 46, 230, 0.1); transform: translateY(-4px); }
.icon-card h3 { font-size: 1.1rem; margin: 0.75rem 0 0.5rem; }
.icon-card p { font-size: 0.92rem; color: var(--ink-soft); }
.icon-card .f-icon { margin-bottom: 0; }

/* ============ AI HUB (center node + connector lines + mini mockups) ============ */
.ai-section.ai-dark {
  background: #0a090f;
  max-width: none;
  border-radius: 0;
}
.ai-section.ai-dark > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.ai-section.ai-dark .section-sub { max-width: 620px; }
.ai-hub { position: relative; margin-top: 3rem; }
.ai-hub .feature-grid { margin-top: 0; gap: 2rem 1.75rem; position: relative; align-items: stretch; }
.ai-hub .f-card {
  background: #151020;
  border: 1px solid rgba(139, 99, 255, 0.14);
  border-radius: 20px;
  padding: 2rem;
}
.ai-hub .f-card:hover { background: #1a1428; }
.ai-hub .f-card h3 { font-size: 1.22rem; }

/* Full-width band between the two equal card rows; hub + wires live here */
.ai-band { position: relative; height: 230px; }
.ai-band::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 420px; height: 220px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.22), rgba(139, 99, 255, 0.12) 55%, transparent 75%);
  pointer-events: none;
}
.ai-lines .pulse {
  stroke: #c9b2ff;
  stroke-width: 2;
  stroke-dasharray: 9 91;
  animation: wire-flow 3.2s linear infinite;
}
@keyframes wire-flow { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.ai-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ai-lines path { stroke: rgba(139, 99, 255, 0.35); stroke-width: 1.5; fill: none; vector-effect: non-scaling-stroke; }
.ai-node { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--purple-400); box-shadow: 0 0 8px rgba(139, 99, 255, 0.9); transform: translate(-50%, -50%); }

.ai-core {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  z-index: 2;
  pointer-events: none;
}
.ai-core-glow {
  position: absolute; inset: -30px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(139,99,255,0.55), rgba(46,195,221,0.25), rgba(139,99,255,0.55));
  filter: blur(26px);
  animation: ai-rotate 6s linear infinite, ai-blur-glow 3s ease-in-out infinite;
}
.ai-core-glow.g2 { inset: -12px; filter: blur(14px); animation-duration: 8s, 4.2s; opacity: 0.7; }
.ai-core-btn {
  position: absolute; inset: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #8a55ff 0%, #5b2ee6 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 10px 34px rgba(91, 46, 230, 0.65);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  animation: ai-pulse-scale 2s ease-in-out infinite;
}
.ai-core-btn svg { width: 38px; height: 38px; }

@keyframes ai-pulse-scale { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.09); } }
@keyframes ai-rotate { to { rotate: 360deg; } }
@keyframes ai-blur-glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* f-card title italic accents */
.f-card h3 em { font-family: var(--font-accent); font-style: italic; font-weight: 600; }

/* ---- Mini UI mockups inside cards ---- */
.mui {
  margin-top: 1.1rem;
  background: rgba(10, 6, 20, 0.55);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.72rem;
  color: #c9c0e8;
}
.mui-row {
  display: flex; align-items: center; gap: 0.55rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9px;
  padding: 0.45rem 0.6rem;
}
.mui-ico {
  width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(139, 99, 255, 0.25);
  font-size: 0.7rem;
}
.mui-row strong { color: #efeafd; font-weight: 600; font-size: 0.72rem; }
.skel {
  height: 5px; border-radius: 3px; flex: 1;
  background: linear-gradient(90deg, rgba(255,255,255,0.10) 25%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0.10) 75%);
  background-size: 200% 100%;
  animation: skel-sweep 2.2s linear infinite;
}
.skel.s60 { max-width: 60%; }
.skel.s40 { max-width: 40%; }
@keyframes skel-sweep { to { background-position: -200% 0; } }

.mui-bubble {
  align-self: flex-start;
  background: rgba(255,255,255,0.08);
  border-radius: 10px 10px 10px 3px;
  padding: 0.4rem 0.6rem;
  max-width: 85%;
}
.mui-bubble.me { align-self: flex-end; background: rgba(139, 99, 255, 0.35); border-radius: 10px 10px 3px 10px; color: #fff; }

.mui-input {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px;
  padding: 0.5rem 0.65rem;
  color: #b3a8d9;
}
.mui-input .caret { display: inline-block; width: 1px; height: 12px; background: #d5cdf0; animation: caret-blink 1.1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.mui-send {
  margin-left: auto; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(180deg, #8a55ff, #5b2ee6);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.7rem;
}
.mui-btn {
  align-self: stretch;
  text-align: center;
  background: linear-gradient(180deg, #8a55ff, #5b2ee6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
  border-radius: 9px;
  padding: 0.45rem;
  color: #fff; font-weight: 600; font-size: 0.72rem;
}
.mui-bars { display: flex; align-items: flex-end; gap: 0.35rem; height: 46px; padding: 0.2rem 0.3rem 0; }
.mui-bars i {
  flex: 1; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #8b63ff, rgba(139, 99, 255, 0.35));
  transform-origin: bottom;
  animation: bar-bounce 2.6s ease-in-out infinite;
}
.mui-bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.mui-bars i:nth-child(2) { height: 65%; animation-delay: 0.2s; }
.mui-bars i:nth-child(3) { height: 50%; animation-delay: 0.4s; }
.mui-bars i:nth-child(4) { height: 85%; animation-delay: 0.6s; }
.mui-bars i:nth-child(5) { height: 100%; animation-delay: 0.8s; }
@keyframes bar-bounce { 0%, 100% { transform: scaleY(0.75); } 50% { transform: scaleY(1); } }
.mui-check { color: #43e97b; font-weight: 700; margin-left: auto; }

@media (max-width: 900px) {
  .ai-lines, .ai-core, .ai-node, .ai-band { display: none; }
  .ai-hub .feature-grid { gap: 1.25rem; }
  .ai-hub .feature-grid + .feature-grid { margin-top: 1.25rem; }
}

/* ============ DARK SERVICE SHOWCASE (What I Do) ============ */
.showcase {
  background: #0a0a0a;
  color: #fff;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 5vw, 4rem);
}
.showcase-inner { max-width: 1200px; margin: 0 auto; }
.show-pill {
  display: inline-block;
  border: 1px solid rgba(67, 233, 123, 0.6);
  color: #7dedaa;
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.showcase h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 2rem; }

/* Sticky flow: service text pins while its mockup collage scrolls past */
.show-row {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.show-info {
  position: sticky;
  top: 150px;
}
.show-info h3 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  color: #fff;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-block;
}
.show-info h3 em { font-family: var(--font-accent); font-style: italic; font-weight: 600; }
.show-info p { color: #b9b3cf; max-width: 40ch; }
.show-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  color: var(--purple-400);
  font-weight: 700;
  font-size: 0.95rem;
}
.show-more .arrow { transition: transform 0.25s ease; }
.show-more:hover .arrow { transform: translateX(6px); }

/* Two offset columns of portrait cards */
.show-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
.show-media .col {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
.show-media .col.c2 { padding-top: clamp(3.5rem, 7vw, 6.5rem); }
.show-media img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
  transition: transform 0.4s ease;
}
.show-media img:hover { transform: scale(1.025); }

@media (max-width: 900px) {
  .show-row { grid-template-columns: 1fr; }
  .show-info { position: static; }
  .show-media .col.c2 { padding-top: 2.5rem; }
}

/* ============ SERVICES LIST ============ */
.service-list { margin-top: 3rem; border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2.25rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, padding 0.2s ease;
}
.service-row:hover { background: #f3effc; padding-left: 1.25rem; border-radius: 12px; }
.service-row h3 { font-size: 1.45rem; }
.service-row p { color: var(--ink-soft); font-size: 0.95rem; }
.arrow-circle {
  width: 48px; height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.service-row:hover .arrow-circle { background: var(--purple-600); border-color: var(--purple-600); color: #fff; transform: rotate(-45deg); }

/* ============ STAT BAND ============ */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  text-align: center;
}
.stat-band > div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1rem;
}
.stat-band strong { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--purple-600); }
.stat-band span { font-size: 0.9rem; color: var(--ink-soft); }

/* ============ PROCESS STEPS ============ */
.process-steps { margin-top: 3rem; display: flex; flex-direction: column; gap: 1rem; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 2rem;
  color: var(--purple-400);
  line-height: 1;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ============ PRICING ============ */
.plan-toggle {
  display: inline-flex;
  gap: 0.25rem;
  background: #eee9f8;
  border-radius: 999px;
  padding: 0.3rem;
  margin: 0 auto 3rem;
}
.plan-toggle button {
  border: none;
  background: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.plan-toggle button.active { background: var(--purple-600); color: #fff; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.plan-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
}
.plan-card.featured {
  background: linear-gradient(160deg, var(--purple-900), var(--purple-800));
  color: #fff;
  border: none;
  box-shadow: 0 24px 60px rgba(42, 21, 96, 0.35);
}
.plan-card.featured .plan-desc, .plan-card.featured li { color: #c9c0e8; }
.plan-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  margin-bottom: 1rem;
}
.plan-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.plan-desc { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.25rem; }
.price small { font-size: 1rem; font-weight: 500; color: inherit; opacity: 0.7; }
.plan-card ul { list-style: none; margin: 1.5rem 0 2rem; flex: 1; }
.plan-card li { padding: 0.45rem 0; font-size: 0.93rem; color: var(--ink-soft); }
.plan-card li::before { content: "✓  "; color: var(--purple-400); font-weight: 700; }

/* ============ BENEFITS ============ */
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.b-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.b-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.b-card p { color: var(--ink-soft); font-size: 0.95rem; }
.chips { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.chips span {
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: var(--bg);
}

/* ============ TEAM ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.member-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding-bottom: 1.5rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.member-card:hover { box-shadow: 0 16px 40px rgba(91, 46, 230, 0.12); transform: translateY(-4px); }
.member-photo {
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 4.5rem;
  margin-bottom: 1.25rem;
}
.member-card h3 { font-size: 1.05rem; }
.member-card p { font-size: 0.85rem; color: var(--ink-soft); }

/* ============ BLOG ============ */
.featured-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 3rem;
}
.featured-post .project-visual { min-height: 280px; }
.post-meta { font-size: 0.82rem; color: var(--ink-soft); display: flex; gap: 1rem; margin-bottom: 0.75rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.post-card:hover { box-shadow: 0 16px 40px rgba(91, 46, 230, 0.12); transform: translateY(-4px); }
.post-card .project-visual { min-height: 180px; border-radius: 0; }
.feature-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.feature-img.featured { height: 100%; min-height: 280px; border-radius: 14px; }
.post-body { padding: 1.4rem 1.5rem 1.6rem; }
.post-card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.post-card p { font-size: 0.88rem; color: var(--ink-soft); }

/* Newsletter band */
.newsletter {
  background: linear-gradient(160deg, var(--purple-900), var(--purple-800));
  border-radius: 24px;
  color: #fff;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 4rem;
}
.newsletter h2 { margin-bottom: 0.5rem; font-size: 1.6rem; }
.newsletter p { color: #c9c0e8; font-size: 0.95rem; }
.newsletter form { display: flex; gap: 0.5rem; }
.newsletter input {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.newsletter input::placeholder { color: #b3a8d9; }

/* ============ SINGLE BLOG POST ============ */
.post-hero { max-width: 820px; margin: 0 auto; }
.post-hero .post-tag {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #d5cdf0;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.post-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  color: #c9c0e8;
  font-size: 0.9rem;
}
.post-byline .avatar { width: 38px; height: 38px; }
.post-byline b { color: #fff; font-weight: 600; }

.article-wrap { max-width: 820px; margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 5vw, 2rem) 0; }
.article-cover { width: 100%; border-radius: 18px; margin-bottom: clamp(2rem, 4vw, 3rem); display: block; }
.article-body { font-size: 1.06rem; line-height: 1.8; color: #2f2a3f; }
.article-body h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  margin: 2.5rem 0 0.9rem;
  letter-spacing: -0.02em;
}
.article-body h2 em { font-family: var(--font-accent); font-style: italic; }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul { margin: 0 0 1.5rem 0; padding: 0; list-style: none; }
.article-body ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--purple-500);
}
.article-body a { color: var(--purple-600); font-weight: 600; }
.article-cta {
  background: linear-gradient(160deg, var(--purple-900), var(--purple-800));
  color: #fff;
  border-radius: 20px;
  padding: 2.25rem;
  margin: 3rem 0 1rem;
  text-align: center;
}
.article-cta h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.article-cta p { color: #c9c0e8; margin-bottom: 1.4rem; font-size: 0.97rem; }

.post-nav { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 2rem; }
.post-nav h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); margin-bottom: 1.25rem; }

/* ============ CAREER ============ */
.role-list { margin-top: 3rem; display: flex; flex-direction: column; gap: 1rem; }
.role-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  transition: box-shadow 0.2s ease;
}
.role-row:hover { box-shadow: 0 12px 32px rgba(91, 46, 230, 0.1); }
.role-row h3 { font-size: 1.15rem; }
.role-row .role-meta { font-size: 0.85rem; color: var(--ink-soft); }

/* ============ CONTACT ============ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}
.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { font-size: 0.85rem; font-weight: 600; display: block; margin-bottom: 0.35rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.93rem;
  background: var(--bg);
  color: var(--ink);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--purple-400);
  border-color: transparent;
}
.contact-aside .b-card { margin-bottom: 1.25rem; }
.contact-aside a { color: var(--purple-600); font-weight: 600; }

/* ============ FAQ ============ */
.faq-list { max-width: 720px; margin: 3rem auto 0; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.9rem;
}
.faq-list summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--purple-500); transition: transform 0.2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin-top: 0.8rem; color: var(--ink-soft); font-size: 0.95rem; }

/* ============ CTA BAND ============ */
.cta-band {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 130% at 50% 0%, #4a2bb5 0%, var(--purple-800) 50%, var(--purple-900) 100%);
  color: #fff;
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 1.25rem;
  margin-top: 4rem;
}
.cta-inner { position: relative; }
.cta-band p { color: #d5cdf0; margin: 1rem 0 2rem; }

/* ============ FOOTER ============ */
.site-footer { background: var(--purple-900); color: #b3a8d9; padding: 4rem clamp(1.25rem, 5vw, 4rem) 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}
.footer-grid p { font-size: 0.9rem; margin-top: 0.75rem; max-width: 280px; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-grid a { display: block; font-size: 0.9rem; padding: 0.25rem 0; transition: color 0.2s ease; }
.footer-grid a:hover { color: #fff; }
.footer-grid .logo { display: inline-block; padding: 0; }
.socials { display: flex; gap: 0.75rem; margin-top: 1rem; }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex !important;
  align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.socials a:hover { background: rgba(255,255,255,0.1); }
.copyright { text-align: center; font-size: 0.82rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; max-width: 1200px; margin: 0 auto; }

/* ============ NAV ENTRANCE & CHAT PULSE ============ */
@media (min-width: 769px) {
  .bottom-nav { animation: bn-rise-desktop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
}
@keyframes bn-rise-desktop {
  from { opacity: 0; transform: translateX(-50%) translateY(140%); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes bn-rise-mobile {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}
@keyframes fab-pulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 6px 20px rgba(91, 46, 230, 0.55), 0 0 0 0 rgba(139, 99, 255, 0.45); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 6px 20px rgba(91, 46, 230, 0.55), 0 0 0 12px rgba(139, 99, 255, 0); }
}

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .pm-track { animation: none; }
  .bottom-nav, .bn-fab { animation: none !important; }
  .ai-core-glow, .ai-core-btn, .skel, .mui-bars i, .mui-input .caret, .ai-lines .pulse, .show-visual img { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .project-card, .featured-post, .contact-wrap, .newsletter { grid-template-columns: 1fr; }
  /* Reference disables sticky stacking on mobile — cards flow normally so
     nothing piles up or gets clipped by the fixed tab bar. */
  .stack-card {
    position: static;
    top: auto;
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
    min-height: 0;
  }
  .stack-cards { gap: 1.25rem; }
  .sc-visual {
    min-height: 0;
    height: 230px;
    padding: 0.75rem;
  }
  .sc-device {
    width: auto;
    max-width: none;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  .sc-stats { gap: 2rem; margin: 1.25rem 0; }
  .project-card.flip .project-visual { order: 0; }
  .testimonial-grid { columns: 2; }
  .feature-grid, .icon-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid, .stat-band { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .plan-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .work-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr auto; }
  .service-row p { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .testimonial-grid { columns: 1; }
  .feature-grid, .icon-grid, .blog-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .role-row { grid-template-columns: 1fr; text-align: left; gap: 0.75rem; }
  .newsletter form { flex-direction: column; }
}

/* Keep footer content clear of the fixed mobile tab bar */
@media (max-width: 768px) {
  .site-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
}

/* ============================================================
   AI CHAT WIDGET — live demo of the chatbot service
   ============================================================ */
.fx-panel {
  position: fixed;
  right: 24px;
  bottom: 104px;
  width: 420px;
  max-width: calc(100vw - 32px);
  height: 640px;
  max-height: calc(100vh - 130px);
  background: #14101f;
  border: 1px solid rgba(139, 99, 255, 0.28);
  border-radius: 20px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.fx-panel.open { opacity: 1; visibility: visible; transform: none; }

.fx-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, var(--purple-800), var(--purple-600));
  color: #fff;
  flex-shrink: 0;
}
.fx-head img { width: 34px; height: 34px; border-radius: 9px; }
.fx-head b { display: block; font-size: 0.95rem; line-height: 1.2; }
.fx-head span { font-size: 0.76rem; color: #cfc4f5; display: flex; align-items: center; gap: 0.35rem; }
.fx-dot { width: 7px; height: 7px; border-radius: 50%; background: #43e97b; box-shadow: 0 0 0 0 rgba(67,233,123,0.6); animation: fx-live 2.2s ease-out infinite; }
@keyframes fx-live { 0% { box-shadow: 0 0 0 0 rgba(67,233,123,0.55); } 70% { box-shadow: 0 0 0 7px rgba(67,233,123,0); } 100% { box-shadow: 0 0 0 0 rgba(67,233,123,0); } }
.fx-close {
  margin-left: auto; background: rgba(255,255,255,0.14); border: none; color: #fff;
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 1.05rem; line-height: 1;
}
.fx-close:hover { background: rgba(255,255,255,0.24); }

.fx-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1.1rem 1rem 1.4rem; display: flex; flex-direction: column; gap: 0.75rem; }
.fx-body::-webkit-scrollbar { width: 6px; }
.fx-body::-webkit-scrollbar-thumb { background: rgba(139,99,255,0.4); border-radius: 3px; }
.fx-msg { max-width: 88%; padding: 0.8rem 0.95rem; border-radius: 15px; font-size: 0.9rem; line-height: 1.62; }
.fx-msg.bot br + br { line-height: 0.6; }
.fx-msg.bot { background: #221b38; color: #e9e4fb; border-bottom-left-radius: 4px; align-self: flex-start; }
.fx-msg.me { background: linear-gradient(180deg, #8a55ff, #5b2ee6); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.fx-msg a { color: #b9a5ff; font-weight: 600; }
.fx-msg.bot strong { color: #fff; }

.fx-typing { display: flex; gap: 4px; align-self: flex-start; padding: 0.7rem 0.9rem; background: #221b38; border-radius: 14px; border-bottom-left-radius: 4px; }
.fx-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8d84ad; animation: fx-bounce 1.3s infinite; }
.fx-typing i:nth-child(2) { animation-delay: 0.18s; }
.fx-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes fx-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.55; } 30% { transform: translateY(-5px); opacity: 1; } }

.fx-chips {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  padding: 0.7rem 1rem; flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  max-height: 104px; overflow-y: auto;
}
.fx-chips:empty { display: none; }
.fx-chip {
  background: rgba(139, 99, 255, 0.14); border: 1px solid rgba(139, 99, 255, 0.4);
  color: #c9bcff; border-radius: 999px; padding: 0.42rem 0.8rem;
  font-size: 0.79rem; font-family: var(--font-body); cursor: pointer; transition: background 0.18s ease;
}
.fx-chip:hover { background: rgba(139, 99, 255, 0.3); color: #fff; }

.fx-foot { display: flex; gap: 0.5rem; padding: 0.8rem; border-top: 1px solid rgba(255,255,255,0.09); flex-shrink: 0; }
.fx-foot input {
  flex: 1; background: #0f0c1a; border: 1px solid rgba(255,255,255,0.14); border-radius: 10px;
  padding: 0.62rem 0.8rem; color: #fff; font-family: var(--font-body); font-size: 0.88rem;
}
.fx-foot input::placeholder { color: #6b6390; }
.fx-foot input:focus { outline: 2px solid var(--purple-500); border-color: transparent; }
.fx-send {
  background: linear-gradient(180deg, #8a55ff, #5b2ee6); border: none; color: #fff;
  width: 42px; border-radius: 10px; cursor: pointer; font-size: 1rem;
}
.fx-note { font-size: 0.68rem; color: #6b6390; text-align: center; padding: 0 0.75rem 0.6rem; flex-shrink: 0; }

@media (max-width: 768px) {
  .fx-panel {
    right: 8px; left: 8px; width: auto;
    bottom: calc(104px + env(safe-area-inset-bottom));
    height: min(78vh, 600px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fx-panel { transition: none; }
  .fx-dot, .fx-typing i { animation: none; }
}

/* Floating chat launcher — desktop (mobile uses the notch button) */
.fx-launcher {
  position: fixed;
  right: 30px;
  bottom: 20px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, #8a55ff 0%, #5b2ee6 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 8px 26px rgba(91, 46, 230, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 61;
  transition: transform 0.2s ease, filter 0.2s ease;
  animation: fab-pulse 3.2s ease-in-out 1.5s infinite;
}
.fx-launcher:hover { transform: scale(1.06); filter: brightness(1.1); }
.fx-launcher svg { width: 28px; height: 28px; }
.fx-launcher .fx-x { display: none; }
.fx-launcher.active .fx-x { display: block; }
.fx-launcher.active .fx-bubble { display: none; }
/* unread-style dot to draw the eye */
.fx-launcher::after {
  content: "";
  position: absolute;
  top: 6px; right: 6px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #43e97b;
  border: 2px solid #14101f;
}
.fx-launcher.active::after { display: none; }

@media (max-width: 768px) { .fx-launcher { display: none; } }
@media (prefers-reduced-motion: reduce) { .fx-launcher { animation: none; } }

/* ===========================================================================
   PRICING PAGE
   New components for the restructured pricing page. Built only from the
   existing tokens (--card, --line, --radius, --purple-*, --gold, --ink-soft)
   so nothing here introduces a second visual language.
   =========================================================================== */

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

.hero-billing-note { color: #c9b8ff; font-size: 0.95rem; margin-top: 0.5rem; }
.hero-microcopy { color: #a99ec9; font-size: 0.85rem; margin-top: 1.25rem; }

/* Jump navigation */
.pricing-jump {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  padding: 1.5rem 1.25rem; max-width: 1180px; margin: 0 auto;
}
.pricing-jump a {
  font-size: 0.85rem; font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--line); background: var(--card);
  border-radius: 999px; padding: 0.6rem 1.1rem; text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
  /* WCAG 2.2 target size */
  min-height: 44px; display: inline-flex; align-items: center;
}
.pricing-jump a:hover, .pricing-jump a:focus-visible {
  color: var(--purple-600); border-color: var(--purple-400);
}

/* Currency + billing controls */
.pricing-controls {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 2rem; margin-bottom: 0.75rem;
}
.pricing-control { border: 0; padding: 0; margin: 0; text-align: center; }
.pricing-control legend {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-soft);
  margin-bottom: 0.6rem; padding: 0; text-align: center; width: 100%;
}
.pricing-control .plan-toggle { margin: 0; }
.pricing-control .plan-toggle button { min-height: 44px; }
.pricing-control .plan-toggle button[aria-pressed='true'] {
  background: var(--card); color: var(--purple-600);
  box-shadow: 0 2px 8px rgba(28, 15, 63, 0.12);
}
.pricing-helper {
  color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 2.5rem;
}

/* Plan cards — extends the existing .plan-card */
.price-prefix { font-size: 1.2rem; font-weight: 600; vertical-align: middle; }
.price-period { font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.plan-card.featured .price-period { color: #c9c0e8; }
.price-billed {
  font-size: 0.85rem; line-height: 1.5; color: var(--ink-soft);
  margin-bottom: 1rem; min-height: 3.2em;
}
.plan-card.featured .price-billed { color: #d8d0f0; }
.plan-features {
  list-style: none; padding: 0; margin: 0 0 1.75rem;
  display: flex; flex-direction: column; gap: 0.6rem; flex: 1;
}
.plan-features li {
  position: relative; padding-left: 1.6rem; font-size: 0.92rem; line-height: 1.5;
}
.plan-features li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--purple-600); font-weight: 700;
}
.plan-card.featured .plan-features li::before { color: var(--gold); }
.plan-cta-helper {
  font-size: 0.8rem; color: var(--ink-soft); margin: 0.75rem 0 0; text-align: center;
}
.plan-card.featured .plan-cta-helper { color: #c9c0e8; }

/* Comparison table */
.plan-compare { max-width: 1180px; margin: 4rem auto 0; padding: 0 1.25rem; }
.plan-compare h3 { font-size: 1.5rem; margin-bottom: 1.75rem; }
.plan-compare table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.plan-compare th, .plan-compare td {
  padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.plan-compare thead th {
  font-size: 1rem; color: var(--ink); border-bottom: 2px solid var(--purple-400);
}
.plan-compare thead th:first-child { color: var(--ink-soft); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.08em; }
.compare-price {
  display: block; font-size: 0.78rem; font-weight: 500;
  color: var(--ink-soft); margin-top: 0.25rem;
}
.plan-compare tbody th {
  font-weight: 600; color: var(--ink-soft); width: 22%;
}
.plan-compare tbody tr:last-child th,
.plan-compare tbody tr:last-child td { border-bottom: 0; }

/* Blueprint callout */
.blueprint-callout {
  max-width: 1080px; margin: 0 auto; display: grid;
  grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: center;
  background: linear-gradient(160deg, var(--purple-900), var(--purple-800));
  color: #fff; border-radius: var(--radius); padding: 3rem;
}
.blueprint-callout h2 { font-size: 1.9rem; margin: 0.5rem 0 1rem; }
.blueprint-callout .eyebrow { color: var(--gold); }
.blueprint-callout p { color: #d8d0f0; }
.blueprint-includes { font-size: 0.92rem; margin-top: 1rem; }
.blueprint-credit {
  font-size: 0.85rem; border-left: 2px solid var(--gold);
  padding-left: 0.9rem; margin-top: 1.25rem;
}
.blueprint-price { text-align: center; }
.blueprint-price .price { color: #fff; }
.blueprint-alt { font-size: 0.85rem; margin-bottom: 1.5rem; }

/* Project / AI / care package grids */
.package-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem;
}
.package-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem;
  display: flex; flex-direction: column;
}
.package-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.package-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }
.package-price {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--purple-600); margin-bottom: 0.15rem;
}
.package-alt { font-size: 0.8rem; margin-bottom: 1rem; }
.package-boundary {
  font-size: 0.82rem; border-top: 1px solid var(--line);
  padding-top: 0.85rem; margin-top: auto;
}
.package-link {
  font-weight: 600; font-size: 0.9rem; color: var(--purple-600);
  text-decoration: none; margin-top: 1rem;
  min-height: 44px; display: inline-flex; align-items: center;
}
.package-link:hover { text-decoration: underline; }
.package-microcopy {
  max-width: 760px; margin: 2rem auto 0; text-align: center;
  font-size: 0.85rem; color: var(--ink-soft); padding: 0 1.25rem;
}

.scope-disclaimer {
  max-width: 760px; margin: 2.5rem auto 0; font-size: 0.8rem;
  color: var(--ink-soft); line-height: 1.6; text-align: center;
}
.pricing-reviewed {
  text-align: center; font-size: 0.8rem; color: var(--ink-soft); margin-top: 1rem;
}
.cta-assurance { font-size: 0.85rem; margin-top: 1.25rem; opacity: 0.85; }

@media (max-width: 900px) {
  .blueprint-callout { grid-template-columns: 1fr; padding: 2.25rem 1.5rem; text-align: center; }

  /* Lead with the recommended plan when stacked, so the default choice is
     first rather than requiring a scroll past the entry tier. */
  .plan-grid { display: flex; flex-direction: column; }
  .plan-card { order: 2; }
  .plan-card.featured { order: 1; }
  .plan-compare { padding: 0 1rem; }

  /* One table, restructured — not a duplicated card layout, which screen
     readers would announce twice. Each cell carries its column name. */
  .plan-compare thead { display: none; }
  .plan-compare table, .plan-compare tbody, .plan-compare tr,
  .plan-compare th, .plan-compare td { display: block; width: auto; }
  .plan-compare tbody tr {
    border: 1px solid var(--line); border-radius: 14px;
    padding: 0.5rem 1rem; margin-bottom: 1rem; background: var(--card);
  }
  .plan-compare tbody th {
    width: auto; font-size: 0.95rem; color: var(--ink);
    border-bottom: 1px solid var(--line); padding-left: 0; padding-right: 0;
  }
  .plan-compare tbody td {
    border-bottom: 0; padding: 0.5rem 0 0;
    display: flex; justify-content: space-between; gap: 1rem;
  }
  .plan-compare tbody td::before {
    content: attr(data-plan); font-weight: 600; color: var(--ink-soft);
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .pricing-controls { gap: 1.25rem; }
  .pricing-control .plan-toggle { flex-wrap: wrap; justify-content: center; }
  .blueprint-callout h2 { font-size: 1.5rem; }
}

/* Selected plan carried from /pricing/ into the enquiry form */
.enquiry-context {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem;
  background: #f2eeff; border: 1px solid var(--purple-400);
  border-radius: 14px; padding: 0.9rem 1.15rem; margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.enquiry-context-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--purple-600);
}
.enquiry-context strong { color: var(--ink); }
.enquiry-context a {
  margin-left: auto; color: var(--purple-600); font-weight: 600;
  min-height: 44px; display: inline-flex; align-items: center;
}

/* ===========================================================================
   PRICING — dark tabbed section
   Recreates the reference pricing layout: a dark panel inside the light page,
   two levels of tabs, and cards lit by a diagonal purple gradient.
   Values are matched to the reference, not copied from its stylesheet.
   =========================================================================== */

.dm-section {
  background: #0a0a0a;
  color: #fafafa;
  padding: 5rem 1.25rem 5.5rem;
  margin-top: 3rem;
}
.dm-section .eyebrow { color: #a4d562; }
.dm-section h2 { color: #fafafa; }
.dm-section .section-sub { color: #a3a3a3; }

.dm-pricing { max-width: 1180px; margin: 2.5rem auto 0; }

/* Level one tabs */
.dm-tabbar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
  background: #0a0a0a; border: 1px solid #525252; border-radius: 10px;
  padding: 8px; width: fit-content; margin: 0 auto 2rem;
}
.dm-tab {
  appearance: none; border: 0; background: transparent; color: #fafafa;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  padding: 12px 18px; border-radius: 8px; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  min-height: 44px;
}
.dm-tab:hover { background: rgba(125, 64, 255, 0.18); }
.dm-tab.is-active { background: #7d40ff; color: #fafafa; }

/* Level two: billing cycle + currency */
.dm-subrow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1rem 1.5rem; margin-bottom: 0.85rem;
}
.dm-subtabs, .dm-currency { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dm-subtab, .dm-cur {
  appearance: none; background: #0a0a0a; border: 1px solid #525252;
  color: #a3a3a3; font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  padding: 10px 14px; border-radius: 8px; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  min-height: 44px;
}
.dm-subtab:hover, .dm-cur:hover { color: #fafafa; border-color: #7d40ff; }
.dm-subtab.is-active, .dm-cur.is-active {
  background: #7d40ff; color: #fafafa; border-color: #7d40ff;
}
.dm-subnote { color: #a3a3a3; font-size: 0.85rem; margin: 0; }
.dm-helper { text-align: center; color: #a3a3a3; font-size: 0.85rem; margin: 0 0 2.5rem; }

/* Cards */
.dm-cards {
  /* Explicit counts rather than auto-fit. auto-fit left the fourth package
     alone on a second row at some widths, which reads as a broken grid — 4
     cards go 4-up or 2x2, never 3+1. */
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  /* Stretch, not start. The reference lets its middle card sit shorter because
     it lives in its own wrapper; here the cards share a row, so uneven heights
     just read as misalignment — the buttons and footnotes stop lining up. */
  align-items: stretch;
  margin-top: 2rem;
}
.dm-cards[data-count='4'] { grid-template-columns: repeat(4, 1fr); }

.dm-card {
  position: relative;
  background:
    linear-gradient(162deg, rgba(95,0,224,0.2) 8%, rgba(95,0,224,0) 47%,
                    rgba(95,0,224,0) 80%, rgba(95,0,224,0.2) 100%), #0a0a0a;
  border: 1px solid rgba(82, 82, 82, 0.6);
  border-radius: 24px;
  padding: 72px 32px 32px;
  display: flex; flex-direction: column;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.dm-card:hover {
  transform: translateY(-6px);
  border-color: rgba(127, 33, 255, 0.6);
  box-shadow: 0 18px 40px rgba(23, 11, 38, 0.5);
}
.dm-card.is-middle {
  border: 1px solid rgba(127, 33, 255, 0.6);
  box-shadow: inset 0 8px 24px rgba(255,255,255,0.09), 0 16px 24px rgba(23,11,38,0.1);
}
.dm-flag {
  position: absolute; top: 28px; left: 32px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.11em; color: #0a0a0a; background: #a4d562;
  border-radius: 999px; padding: 0.28rem 0.8rem;
}
.dm-price {
  font-size: 3rem; font-weight: 700; line-height: 1.05; color: #fafafa;
  font-variant-numeric: tabular-nums;
}
.dm-price-sm { font-size: 1.75rem; }
.dm-from { font-size: 1.15rem; font-weight: 600; }
.dm-per { font-size: 1rem; font-weight: 500; color: #a3a3a3; }
.dm-billed {
  color: #a3a3a3; font-size: 0.82rem; line-height: 1.5;
  margin: 0.6rem 0 1.1rem;
  /* Exactly two rows, so the package name below shares a baseline across all
     cards regardless of which billing cycle is showing. */
  min-height: 3em;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.dm-billed span { display: block; }
.dm-billed strong { color: #d4d4d4; font-weight: 600; }
.dm-name {
  font-size: 2rem; font-weight: 700; color: #a4d562; margin: 0;
  /* Two lines reserved. Longer names like "Lead Routing & CRM Automation" wrap
     at narrower card widths; without this the extra line pushed that card's
     button below its neighbours'. */
  min-height: 2.4em; line-height: 1.2;
}

.dm-divider {
  height: 1px; margin: 1.6rem 0;
  background: linear-gradient(90deg, #180037, #43009d 50%, #180037);
}

.dm-features { list-style: none; padding: 0; margin: 0 0 2rem; flex: 1 1 auto; }
.dm-features li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  color: #d4d4d4; font-size: 0.9rem; line-height: 1.5; margin-bottom: 0.85rem;
}
.dm-check { width: 24px; height: 24px; flex-shrink: 0; color: #fafafa; }
.dm-check svg { width: 100%; height: 100%; display: block; }
.dm-check-muted { color: #7d40ff; }

.dm-scope { flex: 1 1 auto; margin-bottom: 2rem; }
.dm-scope p { color: #d4d4d4; font-size: 0.9rem; line-height: 1.55; }
.dm-boundary {
  display: flex; gap: 0.75rem; align-items: flex-start;
  color: #a3a3a3 !important; font-size: 0.82rem !important; margin-top: 1rem;
}

/* Button with the reference's glow layer */
.dm-btn {
  position: relative; overflow: hidden; display: block; text-align: center;
  margin-top: auto;
  background: linear-gradient(#592db5 25%, #7d40ff);
  color: #fafafa; font-weight: 600; font-size: 0.95rem;
  border-radius: 8px; padding: 1rem 1.25rem; text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 44px;
}
.dm-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(125, 64, 255, 0.45); }
.dm-btn-glow {
  position: absolute; inset: -60% -20%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.35), transparent 60%);
  opacity: 0; transition: opacity 0.35s ease, transform 0.6s ease;
  transform: translateY(40%);
}
.dm-btn:hover .dm-btn-glow { opacity: 1; transform: translateY(0); }
.dm-btn-label { position: relative; z-index: 2; }
.dm-cta-helper {
  text-align: center; color: #a3a3a3; font-size: 0.78rem; margin: 0.85rem 0 0;
  /* Reserves three lines. Two was not enough: at narrower widths the longer
     helper wrapped further than the others and pushed its button out of line
     even though the cards were equal height. */
  min-height: 3.8em;
}

@media (max-width: 1200px) {
  .dm-cards[data-count='4'] { grid-template-columns: repeat(2, 1fr); }
}

/* Between the 3-column layout and the single-column stack the cards get to
   ~280px, where "From $2,495/mo" wrapped to a second line and pushed that
   card's package name off the shared baseline. Scale the price to fit. */
@media (max-width: 1080px) {
  .dm-price { font-size: 2.25rem; }
  .dm-price-sm { font-size: 1.5rem; }
  .dm-from { font-size: 1rem; }
  .dm-per { font-size: 0.85rem; }
}

@media (max-width: 900px) {
  .dm-section { padding: 3.5rem 1rem 4rem; }
  .dm-cards,
  .dm-cards[data-count='4'] { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  /* Recommended plan first when stacked */
  .dm-card { order: 2; }
  .dm-card.is-middle { order: 1; }
  .dm-tabbar { width: 100%; justify-content: flex-start; overflow-x: auto; }
  .dm-price { font-size: 2.5rem; }
  .dm-name { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .dm-card, .dm-btn, .dm-btn-glow { transition: none; }
  .dm-card:hover, .dm-btn:hover { transform: none; }
}

/* Code samples inside article bodies */
.post-code { margin: 1.75rem 0; }
.post-code figcaption {
  font-size: 0.78rem; font-weight: 600; color: var(--ink-soft);
  background: #f1eef9; border: 1px solid var(--line); border-bottom: 0;
  border-radius: 10px 10px 0 0; padding: 0.5rem 0.9rem;
}
.post-code pre {
  margin: 0; overflow-x: auto; background: #1c0f3f; color: #e8e2ff;
  border-radius: 10px; padding: 1.1rem 1.25rem;
  font-size: 0.85rem; line-height: 1.6;
}
.post-code figcaption + pre { border-radius: 0 0 10px 10px; }
.post-code code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---- Homepage hero: network canvas + gold shimmer on italic words ---- */
.hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 95%);
}
.hero-network.on { opacity: 1; }
.hero h1 em {
  /* Gold italic words with a light sweep passing over them */
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 38%, #fff3cf 50%, var(--gold) 62%, var(--gold) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-shine 4s ease-in-out infinite;
}
@keyframes hero-shine {
  0%, 30% { background-position: 100% 0; }
  70%, 100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 em { animation: none; background: none; color: var(--gold); }
}

/* ---- Project cards: motion loop over the still + "Watch" lightbox ---- */
.project-visual.has-motion { position: relative; overflow: hidden; }
.pm-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.8s ease;
  pointer-events: none;
}
.pm-video.on { opacity: 1; }
.pm-watch {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.95rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(15, 8, 36, 0.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font: 600 0.8rem/1 inherit; letter-spacing: 0.02em;
  cursor: pointer; transition: background 0.25s ease, transform 0.25s ease;
}
.pm-watch:hover, .pm-watch:focus-visible { background: var(--purple-600, #5b2ee6); transform: translateY(-1px); }
.pm-watch-icon {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); color: #1a0f3a; font-size: 0.55rem; padding-left: 2px;
}
.pm-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 1.25rem;
  background: rgba(8, 4, 20, 0.86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: pm-fade 0.25s ease;
}
.pm-lightbox-inner { position: relative; width: min(1100px, 100%); }
.pm-lightbox-inner video {
  display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px;
  background: #000; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.pm-close {
  position: absolute; top: -44px; right: 0;
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.12); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.pm-close:hover { background: rgba(255,255,255,0.22); }
@keyframes pm-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pm-video { display: none; } }
