/* ===== Design tokens ===== */
:root {
  --bg: 250 247 242;
  --bg-soft: 242 236 225;
  --bg-sunk: 236 228 214;
  --ink: 43 38 34;
  --ink-soft: 92 85 76;
  --ink-faint: 138 129 117;
  --line: 230 221 207;
  --clay: 138 47 67;
  --clay-deep: 109 34 51;
  --clay-soft: 236 205 210;
  --glow: 176 74 96;
  --night: 34 29 24;
  --night-soft: 46 40 35;
  --on-night: 236 228 214;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: rgb(var(--bg));
  color: rgb(var(--ink));
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ===== Typography ===== */
h1, h2, h3, .display-xl, .display-l, .h2, .h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: rgb(var(--ink));
}
.display-xl { font-size: clamp(2.6rem, 6.5vw, 4.5rem); line-height: 1.04; letter-spacing: -0.02em; }
.display-l { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.07; letter-spacing: -0.018em; }
.h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.12; letter-spacing: -0.012em; }
.h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; color: rgb(var(--ink-soft)); }
.eyebrow {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--clay-deep));
}
.text-soft { color: rgb(var(--ink-soft)); }
.text-faint { color: rgb(var(--ink-faint)); }

/* ===== Layout ===== */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; border-top: 1px solid rgb(var(--line)); }
.section:first-of-type { border-top: none; }
.section-soft { background: rgb(var(--bg-soft)); }
.section-dark {
  background: rgb(var(--night));
  color: rgb(var(--on-night));
  border-top: none;
}
.section-dark h2, .section-dark h3 { color: #fff; }
@media (max-width: 768px) {
  .section { padding: 56px 0; }
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgb(var(--line));
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; }
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.005em;
  color: rgb(var(--ink));
}
.nav-logo img {
  height: 48px;
  width: auto;
}
.nav-links-mask { display: contents; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgb(var(--ink-soft));
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgb(var(--clay));
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.nav-links a:not(.btn):hover { color: rgb(var(--ink)); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }
@media (max-width: 768px) {
  .nav-links-mask {
    display: block;
    position: fixed;
    top: 65px; right: 0;
    width: 260px;
    height: calc(100vh - 65px);
    overflow: hidden;
    pointer-events: none;
  }
  .nav-open .nav-links-mask { pointer-events: auto; }
  .nav-links {
    width: 100%;
    height: 100%;
    background: rgb(var(--bg));
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 32px 24px;
    border-left: 1px solid rgb(var(--line));
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
  }
  .nav-open .nav-links { transform: translateX(0); }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
  }
  .nav-toggle span { width: 22px; height: 2px; background: rgb(var(--ink)); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1.02rem;
  transition: all 0.2s var(--ease);
}
.btn-primary {
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: rgb(var(--clay-soft));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(138, 47, 67, 0.45);
  transition: color 0.45s ease;
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 100%;
  background: rgb(var(--clay));
  transform: skew(30deg);
  transition: transform 0.45s cubic-bezier(0.3, 1, 0.8, 1);
  z-index: -1;
}
.btn-primary:hover { color: rgb(var(--clay-deep)); }
.btn-primary:hover::before { transform: translate3d(100%, 0, 0) skew(30deg); }
@media (prefers-reduced-motion: reduce) {
  .btn-primary, .btn-primary::before { transition: none; }
}
.btn-secondary {
  border: 1px solid rgba(43, 38, 34, 0.15);
  color: rgb(var(--ink));
}
.btn-secondary:hover { border-color: rgba(43, 38, 34, 0.4); transform: translateY(-2px); }
.btn-light { background: #fff; color: rgb(var(--ink)); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(0,0,0,0.3); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(closest-side, rgb(var(--clay) / 0.45), rgb(var(--glow) / 0.18), transparent);
  animation: breathe 10s ease-in-out infinite;
}
.hero-blob-1 { width: 760px; height: 520px; top: -180px; left: 50%; transform: translateX(-50%); }
.hero-blob-2 { width: 360px; height: 360px; top: 40px; left: -140px; animation-delay: -3s; }
.hero-blob-3 { width: 360px; height: 360px; top: 60px; right: -140px; animation-delay: -6s; }
@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.hero-content .eyebrow { display: block; margin-bottom: 20px; }
.hero-content h1 { margin-top: 4px; }
.hero-content .lead { margin: 24px auto 0; max-width: 580px; }
.hero-content .btn-row { justify-content: center; margin-top: 36px; }
.hero-trust {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 0.9rem;
  color: rgb(var(--ink-faint));
}
@media (max-width: 768px) {
  .hero { padding: 72px 0 48px; }
}

/* ===== Hero split layout (text + live visual) ===== */
.hero-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-split .hero-content { text-align: left; margin: 0; max-width: none; }
.hero-split .hero-content .lead { margin-left: 0; }
.hero-split .hero-content .btn-row { justify-content: flex-start; }
.hero-split .hero-trust { justify-content: flex-start; }
.hero-visual { position: relative; z-index: 1; }
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .hero-content { text-align: center; }
  .hero-split .hero-content .btn-row, .hero-split .hero-trust { justify-content: center; }
}

/* ===== Agent log (Hero live visual) ===== */
.agent-log { background: rgb(var(--night)); border-radius: 16px; overflow: hidden; box-shadow: 0 14px 40px -18px rgba(43, 38, 34, 0.18); }
.agent-log-top { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.06); padding: 12px 16px; }
.agent-log-top .adot { width: 9px; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); }
.agent-log-title { color: rgba(236, 228, 214, 0.85); font-weight: 600; font-size: 0.85rem; margin-left: 6px; }
.agent-log .live-badge { margin-left: auto; font-size: 0.72rem; color: rgba(236, 228, 214, 0.8); display: flex; align-items: center; gap: 6px; }
.agent-log .live-badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: #5fe3a1; }
.agent-log-body {
  padding: 18px 20px;
  min-height: 248px;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(236, 228, 214, 0.92);
}
.agent-log-line { opacity: 0; animation: logLineIn 0.35s ease forwards; margin-bottom: 2px; }
.agent-log-line .tag { color: rgba(236, 228, 214, 0.4); }
.agent-log-line .ok { color: #5fe3a1; }
.agent-log-line .human { color: #ecb866; }
@keyframes logLineIn { to { opacity: 1; } }
.agent-log-cursor { display: inline-block; width: 7px; height: 14px; background: rgba(236, 228, 214, 0.7); animation: agentBlink 1s step-end infinite; vertical-align: middle; margin-left: 2px; }
@keyframes agentBlink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .agent-log-line { animation: none; opacity: 1; }
  .agent-log-cursor { animation: none; }
}

/* ===== Section headers ===== */
.section-head { max-width: 640px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head .lead { margin-top: 12px; }
.section-title {
  display: block;
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: rgb(var(--clay-deep));
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  gap: 20px;
  margin-top: 48px;
  grid-template-columns: repeat(4, 1fr);
}
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) {
  .card-grid, .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .card-grid, .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: 1fr; }
}
.card {
  background: #fff;
  border: 1px solid rgb(var(--line));
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(43, 38, 34, 0.04);
  transition: all 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgb(var(--clay) / 0.35); box-shadow: 0 16px 36px -18px rgba(43, 38, 34, 0.22); }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgb(var(--clay) / 0.1);
  color: rgb(var(--clay));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card h3 { margin-top: 4px; }
.card p { margin-top: 8px; font-size: 0.95rem; color: rgb(var(--ink-soft)); line-height: 1.55; }
.card .card-proof {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgb(var(--line));
  font-size: 0.88rem;
  color: rgb(var(--clay-deep));
  font-weight: 500;
}

/* ===== Marquee ===== */
.marquee { overflow: hidden; margin-top: 40px; }
.marquee-track {
  display: flex;
  width: max-content;
  gap: 64px;
  align-items: center;
  animation: scroll-left 28s linear infinite;
}
.marquee-track img { height: 32px; width: auto; object-fit: contain; opacity: 0.85; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Preview cards (dark section, Home page teaser into Work) ===== */
.preview-grid {
  display: grid;
  gap: 20px;
  margin-top: 48px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .preview-grid { grid-template-columns: 1fr; }
}
.preview-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  text-align: left;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.preview-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.4); }
.preview-card-hoverable:hover { transform: none; }
.preview-card .preview-kind { align-self: flex-start; margin-bottom: 14px; }
.preview-flow { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.preview-flow .pf-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgb(var(--bg-soft));
  border: 1px solid rgba(43, 38, 34, 0.12);
  flex-shrink: 0;
}
.preview-flow .pf-line { flex: 1; height: 1.5px; background: rgba(43, 38, 34, 0.15); min-width: 8px; }
.preview-flow .pf-core {
  width: 34px;
  height: 34px;
  background: rgb(var(--clay));
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-flow .pf-core svg { width: 16px; height: 16px; color: #fff; }
.preview-card h3 { font-size: 1.05rem; color: rgb(var(--ink)); }
.preview-card p { margin-top: 8px; font-size: 0.88rem; line-height: 1.5; color: rgb(var(--ink-soft)); flex: 1; }
.preview-link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgb(var(--clay-deep));
}
.preview-link svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.preview-card:hover .preview-link svg { transform: translateX(3px); }

/* ===== Hover preview popup (live demo on "Two-week CRM build" card) ===== */
.preview-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 300px;
  max-width: calc(100vw - 48px);
  padding-bottom: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.25s var(--ease);
  z-index: 20;
}
.preview-card-hoverable:hover .preview-popup,
.preview-card-hoverable:focus-within .preview-popup {
  opacity: 1;
  pointer-events: auto;
}
.preview-popup .app-mock {
  margin-top: 0;
  box-shadow: 0 20px 50px -16px rgba(43, 38, 34, 0.45);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s var(--ease);
}
.preview-card-hoverable:hover .preview-popup .app-mock,
.preview-card-hoverable:focus-within .preview-popup .app-mock {
  transform: scale(1) translateY(0);
}
.preview-popup .carousel-main { min-height: 252px; padding: 0; }
.preview-popup .carousel-slide { padding: 14px 16px; }
.preview-popup .app-mock .amain { padding: 14px 16px; }
.preview-popup .app-mock .atop { padding: 9px 12px; }
.preview-popup .app-mock .att {
  font-size: 0.72rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-popup .app-mock .live-badge { flex-shrink: 0; }
.preview-popup .app-mock .akpis { gap: 6px; }
.preview-popup .app-mock .akpi { padding: 8px 8px; min-width: 0; }
.preview-popup .app-mock .akpi .kn { font-size: 1.02rem; }
.preview-popup .app-mock .akpi .kl { font-size: 0.58rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-popup .app-mock .ar { font-size: 0.78rem; padding: 8px 12px; }
.preview-popup .app-mock .ar.row-in { grid-template-columns: 1fr auto; gap: 8px; }
.preview-popup .app-mock .ar.row-in > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.preview-popup::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #fff;
}
@media (max-width: 760px) {
  .preview-popup { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .preview-popup { transition: opacity 0.25s ease; }
}

/* ===== Timeline (scroll-triggered draw-on animation, ported from Pitch (4).html) ===== */
.timeline { position: relative; margin-top: 56px; }
.timeline-line {
  position: absolute;
  top: 30px;
  left: 16.67%;
  right: 16.67%;
  height: 3px;
  z-index: 0;
  background: rgb(var(--line));
  border-radius: 2px;
  overflow: hidden;
}
.timeline-line-inner {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, rgb(var(--clay-deep)), rgb(var(--clay)) 50%, rgb(var(--glow)));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
}
.timeline-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .timeline-row { grid-template-columns: 1fr; gap: 40px; }
  .timeline-line { display: none; }
}
.timeline-col { text-align: center; }
.timeline-circle {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: rgb(var(--clay));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 7px rgb(var(--clay-soft));
  transform: scale(0);
  opacity: 0;
}
.timeline-week {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--clay-deep));
  margin-bottom: 6px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);
}
.timeline-col h3 { margin-top: 0; opacity: 0; transform: translateY(12px); }
.timeline-col p:not(.timeline-week) {
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgb(var(--ink-soft));
  opacity: 0;
  transform: translateY(12px);
}
@keyframes timelineDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes timelineCirclePop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes timelineFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.timeline.is-active .timeline-line-inner { animation: timelineDraw 1.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards; }
.timeline.is-active .timeline-col:nth-child(1) .timeline-circle { animation: timelineCirclePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s forwards; }
.timeline.is-active .timeline-col:nth-child(2) .timeline-circle { animation: timelineCirclePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.78s forwards; }
.timeline.is-active .timeline-col:nth-child(3) .timeline-circle { animation: timelineCirclePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards; }
.timeline.is-active .timeline-col:nth-child(1) .timeline-week { animation: timelineFadeUp 0.38s ease 0.5s forwards; }
.timeline.is-active .timeline-col:nth-child(1) h3 { animation: timelineFadeUp 0.38s ease 0.6s forwards; }
.timeline.is-active .timeline-col:nth-child(1) p:not(.timeline-week) { animation: timelineFadeUp 0.38s ease 0.68s forwards; }
.timeline.is-active .timeline-col:nth-child(2) .timeline-week { animation: timelineFadeUp 0.38s ease 0.93s forwards; }
.timeline.is-active .timeline-col:nth-child(2) h3 { animation: timelineFadeUp 0.38s ease 1.03s forwards; }
.timeline.is-active .timeline-col:nth-child(2) p:not(.timeline-week) { animation: timelineFadeUp 0.38s ease 1.11s forwards; }
.timeline.is-active .timeline-col:nth-child(3) .timeline-week { animation: timelineFadeUp 0.38s ease 1.35s forwards; }
.timeline.is-active .timeline-col:nth-child(3) h3 { animation: timelineFadeUp 0.38s ease 1.45s forwards; }
.timeline.is-active .timeline-col:nth-child(3) p:not(.timeline-week) { animation: timelineFadeUp 0.38s ease 1.53s forwards; }
@media (prefers-reduced-motion: reduce) {
  .timeline-circle, .timeline-week, .timeline-col h3, .timeline-col p:not(.timeline-week) { opacity: 1; transform: none; animation: none !important; }
  .timeline-line-inner { transform: scaleX(1); }
}

/* ===== FAQ ===== */
.faq { margin-top: 32px; border-top: 1px solid rgb(var(--line)); border-bottom: 1px solid rgb(var(--line)); }
.faq-item { border-bottom: 1px solid rgb(var(--line)); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-weight: 500;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: rgb(var(--clay));
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-item p { padding-bottom: 20px; max-width: 640px; color: rgb(var(--ink-soft)); font-size: 0.97rem; line-height: 1.6; }

/* ===== Footer ===== */
.footer { padding: 40px 0; border-top: 1px solid rgb(var(--line)); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .nav-logo { color: rgb(var(--ink)); }
.footer-links { display: flex; gap: 24px; font-size: 0.9rem; color: rgb(var(--ink-soft)); }
.footer-links a:hover { color: rgb(var(--clay-deep)); }
.footer-copy { width: 100%; margin-top: 16px; font-size: 0.82rem; color: rgb(var(--ink-faint)); }

/* ===== Reveal animation ===== */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-stagger] > * { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-stagger].is-visible > * { opacity: 1; transform: translateY(0); }
[data-stagger].is-visible > *:nth-child(1) { transition-delay: 0s; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: 0.08s; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: 0.24s; }

/* ===== Tag pill ===== */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgb(var(--clay) / 0.3);
  background: rgb(var(--clay) / 0.1);
  color: rgb(var(--clay-deep));
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Example blocks (Work page) ===== */
.example-block { margin-top: 64px; scroll-margin-top: 90px; }
.example-block:first-child { margin-top: 0; }
.example-card {
  background: #fff;
  border: 1px solid rgb(var(--line));
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 1px 2px rgba(43, 38, 34, 0.04);
  scroll-margin-top: 90px;
}
@media (max-width: 768px) { .example-card { padding: 24px; } }
.example-card h3 { margin-top: 14px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); max-width: 580px; }
.example-card-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 14px; }
.example-card-heading-row h3 { margin-top: 0; }
@media (max-width: 640px) { .example-card-heading-row { flex-direction: column; align-items: flex-start; } }
.example-intro { margin-top: 10px; max-width: 600px; color: rgb(var(--ink-soft)); line-height: 1.6; }
.example-caption { margin-top: 24px; text-align: center; font-size: 0.92rem; color: rgb(var(--ink-soft)); }
.example-pair { display: flex; flex-direction: column; gap: 32px; margin-top: 32px; }

/* ===== Live product embed (cropped iframe of uniassoc.fluia.co's own interactive demo) ===== */
.ua-live-label { text-align: center; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: rgb(var(--ink-faint)); margin-top: 28px; margin-bottom: 12px; }
.ua-live-embed { position: relative; overflow: hidden; width: calc(100% + 72px); margin-left: -36px; height: 550px; }
.ua-live-scale { position: absolute; top: 0; left: 0; width: 1200px; transform-origin: top left; transform: scale(0.833); }
.ua-live-scale iframe { position: absolute; top: -659.5px; left: 0; width: 1200px; height: 1500px; border: 0; display: block; overflow: hidden; }
@media (max-width: 768px) {
  .ua-live-embed { width: calc(100% + 48px); margin-left: -24px; }
}

/* ===== Flow-pipe diagram (ported from Pitch (4).html's .pipe component) ===== */
.flow-pipe { display: flex; align-items: flex-start; gap: 0; margin-top: 28px; width: 100%; }
.flow-pipe .pn {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  min-width: 0;
}
.flow-pipe .pn .box {
  width: 100%;
  max-width: 150px;
  min-height: 116px;
  border-radius: 14px;
  border: 1px solid rgb(var(--line));
  background: #fff;
  box-shadow: 0 1px 2px rgba(43, 38, 34, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
}
.flow-pipe .pn .box.io { background: rgb(var(--bg-soft)); }
.flow-pipe .pn .box.core { background: rgb(var(--night)); border-color: rgb(var(--night)); }
.flow-pipe .pn .box.core .ttl { color: #fff; }
.flow-pipe .pn .lbl {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--ink-faint));
  font-weight: 600;
}
.flow-pipe .pn .ttl { font-size: 0.85rem; font-weight: 600; color: rgb(var(--ink)); line-height: 1.3; }
.flow-pipe .pn .box svg { color: rgb(var(--clay)); }
.flow-pipe .pn .box.core svg { color: rgb(var(--clay-soft)); }
.flow-gear {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px dashed rgb(var(--clay-soft));
  animation: flowgearspin 3.2s linear infinite;
}
@keyframes flowgearspin { to { transform: rotate(360deg); } }
.flow-pipe .conn {
  flex: 1;
  height: 2px;
  background: rgb(var(--line));
  position: relative;
  min-width: 20px;
  margin: 58px 4px 0;
}
.flow-pipe .conn .tok {
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgb(var(--clay));
  box-shadow: 0 0 0 3px rgb(var(--clay) / 0.15);
  animation: flowtravel 2.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
@keyframes flowtravel { 0% { left: -2px; opacity: 0; } 14% { opacity: 1; } 86% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@media (max-width: 760px) {
  .flow-pipe { flex-direction: column; align-items: center; gap: 8px; }
  .flow-pipe .pn .box { max-width: 220px; }
  .flow-pipe .conn { width: 2px; min-width: 0; height: 28px; flex: 0 0 28px; margin: 0; }
  .flow-pipe .conn .tok { top: -2px; left: -3px !important; animation-name: flowtravelv; }
}
@keyframes flowtravelv { 0% { top: -2px; opacity: 0; } 14% { opacity: 1; } 86% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .flow-gear { animation: none; }
  .flow-pipe .conn .tok { animation: none; opacity: 0; }
}

/* ===== App mockup (UniAssoc interactive demo, ported from Pitch (4).html's .app-mock) ===== */
.app-mock { border: 1px solid rgb(var(--line)); border-radius: 16px; overflow: hidden; box-shadow: 0 14px 40px -18px rgba(43, 38, 34, 0.18); background: #fff; margin-top: 28px; }
.app-mock .atop { display: flex; align-items: center; gap: 8px; background: rgb(var(--clay)); padding: 12px 16px; }
.app-mock .atop .adot { width: 9px; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.5); }
.app-mock .atop .att { color: #fff; font-weight: 600; font-size: 0.85rem; margin-left: 6px; }
.app-mock .atop .live-badge { margin-left: auto; font-size: 0.72rem; color: rgba(255, 255, 255, 0.85); display: flex; align-items: center; gap: 6px; }
.app-mock .atop .live-badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: #5fe3a1; }
.app-mock .abody { display: grid; grid-template-columns: 150px 1fr; min-height: 280px; }
.app-mock .anav { background: rgb(var(--bg-soft)); border-right: 1px solid rgb(var(--line)); padding: 16px 10px; display: flex; flex-direction: column; gap: 4px; }
.app-mock .anav .ai {
  font: inherit;
  font-size: 0.85rem;
  color: rgb(var(--ink-soft));
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
}
.app-mock .anav .ai b { width: 7px; height: 7px; border-radius: 2px; background: rgb(var(--clay-soft)); flex-shrink: 0; }
.app-mock .anav .ai.on { background: #fff; color: rgb(var(--clay-deep)); font-weight: 600; box-shadow: 0 1px 2px rgba(43, 38, 34, 0.08); }
.app-mock .anav .ai.on b { background: rgb(var(--clay)); }
.app-mock .amain { padding: 20px 22px; }
.app-mock .akpis { display: flex; gap: 10px; margin-bottom: 16px; }
.app-mock .akpi { flex: 1; background: rgb(var(--bg-soft)); border: 1px solid rgb(var(--line)); border-radius: 10px; padding: 11px 13px; }
.app-mock .akpi .kn { font-family: "Fraunces", serif; font-size: 1.25rem; font-weight: 600; color: rgb(var(--clay-deep)); }
.app-mock .akpi .kl { font-size: 0.68rem; color: rgb(var(--ink-faint)); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }
.app-mock .atable { border: 1px solid rgb(var(--line)); border-radius: 10px; overflow: hidden; }
.app-mock .ar { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 8px; padding: 10px 13px; font-size: 0.84rem; border-bottom: 1px solid rgb(var(--line)); align-items: center; }
.app-mock .ar:last-child { border-bottom: none; }
.app-mock .ar.ah { background: rgb(var(--bg-soft)); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: rgb(var(--ink-faint)); font-weight: 600; }
.app-mock .pill-s { justify-self: start; font-size: 0.68rem; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.app-mock .ps-ok { background: #e3f5ee; color: #0e7a57; }
.app-mock .ps-pending { background: rgb(var(--clay-soft)); color: rgb(var(--clay-deep)); }
.app-mock .ps-new { background: #fbe9d9; color: #9a5b1e; }
.app-mock .panel { display: none; }
.app-mock .panel.active { display: block; }
.app-mock .panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.app-mock .panel-title { font-weight: 600; font-size: 0.95rem; color: rgb(var(--ink)); }
.app-mock .ua-btn {
  font-size: 0.76rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(var(--clay));
  color: #fff;
  border: none;
}
.app-mock .ua-btn.ghost { background: none; border: 1px solid rgb(var(--line)); color: rgb(var(--ink-soft)); }
.app-mock .ua-bar-actions { display: flex; gap: 8px; }
@media (max-width: 640px) {
  .app-mock .abody { grid-template-columns: 1fr; }
  .app-mock .anav { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid rgb(var(--line)); gap: 6px; }
  .app-mock .anav .ai { width: auto; flex-shrink: 0; white-space: nowrap; }
  .app-mock .amain { padding: 16px; }
  .app-mock .akpis { gap: 6px; }
  .app-mock .akpi { padding: 8px 6px; min-width: 0; }
  .app-mock .akpi .kn { font-size: 1.02rem; }
  .app-mock .akpi .kl { font-size: 0.58rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .app-mock .ar { grid-template-columns: 1.2fr 0.9fr 0.7fr; gap: 4px; font-size: 0.72rem; padding: 10px 8px; }
  .app-mock .ar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-mock .pill-s { padding: 3px 7px; }
}
/* ===== App mockup variants: no sidebar, single panel ===== */
.app-mock-single .abody { grid-template-columns: 1fr; min-height: 0; }

/* ===== App mockup variant: hero live visual (single panel) ===== */
.app-mock-hero { margin-top: 0; }
.app-mock-hero .abody { grid-template-columns: 1fr; min-height: 0; }
.app-mock-hero .amain { padding: 18px 20px; }
.app-mock-hero .atable { min-height: 196px; }

/* ===== Screenshot carousel ("Demonstrated results", Home page) ===== */
.carousel-main { position: relative; min-height: 248px; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transform: translateY(6px); transition: opacity 0.5s ease, transform 0.5s ease; pointer-events: none; }
.carousel-slide.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.carousel-dots { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.carousel-dots .dot { width: 7px; height: 7px; border-radius: 999px; background: rgba(236, 228, 214, 0.25); transition: background 0.3s; }
.carousel-dots .dot.is-active { background: rgb(var(--clay-soft)); }
@media (prefers-reduced-motion: reduce) {
  .carousel-slide { transition: none; }
}
/* ===== Live feed dashboard (n8n automation example, Work page) ===== */
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.row-in { animation: rowIn 0.4s ease both; }
@keyframes kpiBump { 0% { transform: scale(1); } 30% { transform: scale(1.1); color: rgb(var(--clay)); } 100% { transform: scale(1); } }
.kpi-bump .kn { display: inline-block; animation: kpiBump 0.5s ease; }
@media (prefers-reduced-motion: reduce) {
  .row-in { animation: none; }
  .kpi-bump .kn { animation: none; }
}

/* ===== n8n canvas recreation (Lead Reactivation example, Work page) ===== */
.n8n-frame { margin-top: 28px; }
.n8n-canvas {
  position: relative;
  overflow: auto;
  border: 1px solid rgb(var(--line));
  border-radius: 16px;
  background-color: rgb(var(--bg-soft));
  background-image: radial-gradient(rgb(var(--line)) 1px, transparent 1px);
  background-size: 16px 16px;
  padding: 28px;
  cursor: grab;
  user-select: none;
  scrollbar-width: thin;
}
.n8n-canvas.dragging { cursor: grabbing; scroll-behavior: auto; }
.n8n-stage { position: relative; width: 1320px; height: 400px; }
.n8n-exec-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  background: rgb(var(--clay));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 10px -4px rgba(138, 47, 67, 0.5);
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.n8n-exec-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -4px rgba(138, 47, 67, 0.55); }
.n8n-exec-btn svg { width: 12px; height: 12px; }
.n8n-node { position: absolute; width: 96px; text-align: center; }
.n8n-node .nbox {
  width: 96px;
  height: 76px;
  border-radius: 12px;
  border: 1.5px solid rgb(var(--line));
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 6px rgba(43, 38, 34, 0.06);
}
.n8n-node .nbox svg { width: 26px; height: 26px; color: rgb(var(--clay)); }
.n8n-node.core .nbox { background: rgb(var(--night)); border-color: rgb(var(--night)); }
.n8n-node.core .nbox svg { color: rgb(var(--clay-soft)); }
.n8n-node.sub { width: 64px; }
.n8n-node.sub .nbox { width: 64px; height: 64px; border-radius: 999px; }
.n8n-node.sub .nbox svg { width: 20px; height: 20px; }
.n8n-node.sub .nlabel { font-size: 0.64rem; margin-top: 6px; font-weight: 500; color: rgb(var(--ink-soft)); }
.n8n-node .nlabel { margin-top: 8px; font-size: 0.72rem; font-weight: 600; color: rgb(var(--ink)); line-height: 1.25; }
.n8n-svg { position: absolute; top: 0; left: 0; width: 1320px; height: 400px; pointer-events: none; }
.n8n-svg line, .n8n-svg path { stroke: rgb(var(--ink-faint)); stroke-width: 1.5; fill: none; }
.n8n-svg .dash { stroke-dasharray: 3 3; }
.n8n-svg circle { fill: rgb(var(--ink-faint)); stroke: none; }
.n8n-scroll-hint { display: none; margin-top: 12px; font-size: 0.82rem; color: rgb(var(--ink-faint)); text-align: center; }
@media (max-width: 760px) {
  .n8n-scroll-hint { display: block; }
}
.n8n-node .nbox.n8n-pulse { animation: n8nPulse 0.65s ease; }
@keyframes n8nPulse {
  0% { box-shadow: 0 2px 6px rgba(43, 38, 34, 0.06); border-color: rgb(var(--line)); }
  35% { box-shadow: 0 0 0 6px rgb(var(--clay) / 0.22), 0 4px 14px rgba(43, 38, 34, 0.18); border-color: rgb(var(--clay)); }
  100% { box-shadow: 0 2px 6px rgba(43, 38, 34, 0.06); border-color: rgb(var(--line)); }
}
.n8n-node.core .nbox.n8n-pulse {
  animation-name: n8nPulseCore;
}
@keyframes n8nPulseCore {
  0% { box-shadow: 0 2px 6px rgba(43, 38, 34, 0.06); }
  35% { box-shadow: 0 0 0 6px rgb(var(--clay-soft) / 0.4), 0 4px 14px rgba(0, 0, 0, 0.25); }
  100% { box-shadow: 0 2px 6px rgba(43, 38, 34, 0.06); }
}
.n8n-toast {
  position: absolute;
  background: #0e7a57;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
  z-index: 2;
}
.n8n-toast.show { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .n8n-node .nbox.n8n-pulse, .n8n-node.core .nbox.n8n-pulse { animation: none; }
}

/* ===== AR agent timeline (Accounts Receivable example, Work page) ===== */
.arw-track { position: relative; display: flex; justify-content: space-between; margin: 28px 8px 0; }
.arw-rail { position: absolute; top: 20px; left: 21px; right: 21px; height: 3px; border-radius: 3px; background: rgb(var(--line)); }
.arw-rail-fill { position: absolute; top: 20px; left: 21px; height: 3px; border-radius: 3px; background: rgb(var(--clay)); width: 0; transition: width 0.5s var(--ease); }
.arw-node { position: relative; z-index: 1; background: none; border: none; cursor: pointer; text-align: center; width: 100px; padding: 0; }
.arw-ball {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgb(var(--line)); background: #fff; color: rgb(var(--ink-faint));
  font-family: "Fraunces", Georgia, serif; font-size: 16px; line-height: 40px; margin: 0 auto 12px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.arw-node:hover .arw-ball { border-color: rgb(var(--clay)); color: rgb(var(--clay)); transform: translateY(-2px); }
.arw-node.is-active .arw-ball { transform: scale(1.08); box-shadow: 0 6px 16px rgba(138, 47, 67, 0.22); background: rgb(var(--clay)); border-color: rgb(var(--clay)); color: #fff; }
.arw-node.is-past .arw-ball { border-color: rgb(var(--clay)); color: rgb(var(--clay)); }
.arw-node:focus-visible { outline: none; }
.arw-node:focus-visible .arw-ball { outline: 2px solid rgb(var(--clay)); outline-offset: 3px; }
.arw-node-label { font-size: 0.8rem; color: rgb(var(--ink-faint)); transition: color 0.25s ease; }
.arw-node.is-active .arw-node-label { color: rgb(var(--clay)); font-weight: 600; }

.arw-panel {
  background: rgb(var(--bg-soft)); border: 1px solid rgb(var(--line)); border-radius: 14px;
  padding: 32px; margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; min-height: 220px;
}
.arw-panel.is-swapping .arw-fade { opacity: 0; transform: translateY(6px); }
.arw-fade { transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.arw-step-kicker { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgb(var(--ink-faint)); font-weight: 600; margin-bottom: 10px; }
.arw-step-title { font-family: "Fraunces", Georgia, serif; font-weight: 500; color: rgb(var(--clay-deep)); font-size: 1.2rem; margin-bottom: 10px; }
.arw-step-text { font-size: 0.92rem; line-height: 1.6; color: rgb(var(--ink-soft)); }
.arw-visual { min-height: 140px; display: flex; align-items: center; justify-content: center; }

.arw-table-wrap { width: 100%; border: 1px solid rgb(var(--line)); border-radius: 10px; overflow: hidden; background: #fff; }
.arw-mini-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.arw-mini-table th { background: rgb(var(--clay)); color: #fff; font-weight: 600; text-align: left; padding: 8px 12px; }
.arw-mini-table td { background: #fff; border-bottom: 1px solid rgb(var(--line)); padding: 8px 12px; color: rgb(var(--ink)); }
.arw-mini-table tr:last-child td { border-bottom: none; }
.arw-badge { display: inline-block; font-size: 0.68rem; font-weight: 600; color: #fff; background: rgb(var(--clay)); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.arw-chip { display: inline-block; font-size: 0.68rem; font-weight: 600; padding: 3px 11px; border-radius: 999px; border: 1px solid rgb(var(--line)); white-space: nowrap; }
.arw-chip.t1 { background: rgb(var(--bg-sunk)); color: rgb(var(--ink-soft)); }
.arw-chip.t2 { background: rgb(var(--ink-faint)); color: #fff; border-color: rgb(var(--ink-faint)); }
.arw-chip.t3 { background: rgb(var(--glow)); color: #fff; border-color: rgb(var(--glow)); }
.arw-chip.t4 { background: rgb(var(--clay)); color: #fff; border-color: rgb(var(--clay)); }

.arw-thumbs { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.arw-thumb { border: 1px solid rgb(var(--line)); background: #fff; font-size: 0.78rem; border-radius: 10px; overflow: hidden; }
.arw-thumb-bar { background: rgb(var(--bg-soft)); border-bottom: 1px solid rgb(var(--line)); padding: 6px 12px; color: rgb(var(--ink-faint)); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }
.arw-thumb-body { padding: 10px 12px; line-height: 1.5; color: rgb(var(--ink)); }
.arw-thumb-body .muted { color: rgb(var(--ink-faint)); }

@media (max-width: 680px) {
  .arw-panel { grid-template-columns: 1fr; padding: 22px; gap: 20px; }
  .arw-node { width: auto; }
  .arw-node-label { font-size: 0.7rem; }
  .arw-ball { width: 36px; height: 36px; line-height: 34px; font-size: 14px; }
  .arw-rail, .arw-rail-fill { top: 17px; left: 18px; }
  .arw-rail { right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .arw-rail-fill, .arw-ball, .arw-fade, .arw-node-label { transition: none; }
}

/* ===== Lead Finder agent timeline (Lead Generation example, Work page) ===== */
.lgw-track { position: relative; display: flex; justify-content: space-between; margin: 28px 8px 0; }
.lgw-rail { position: absolute; top: 20px; left: 21px; right: 21px; height: 3px; border-radius: 3px; background: rgb(var(--line)); }
.lgw-rail-fill { position: absolute; top: 20px; left: 21px; height: 3px; border-radius: 3px; background: rgb(var(--clay)); width: 0; transition: width 0.5s var(--ease); }
.lgw-node { position: relative; z-index: 1; background: none; border: none; cursor: pointer; text-align: center; width: 100px; padding: 0; }
.lgw-ball {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgb(var(--line)); background: #fff; color: rgb(var(--ink-faint));
  font-family: "Fraunces", Georgia, serif; font-size: 16px; line-height: 40px; margin: 0 auto 12px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.lgw-node:hover .lgw-ball { border-color: rgb(var(--clay)); color: rgb(var(--clay)); transform: translateY(-2px); }
.lgw-node.is-active .lgw-ball { transform: scale(1.08); box-shadow: 0 6px 16px rgba(138, 47, 67, 0.22); background: rgb(var(--clay)); border-color: rgb(var(--clay)); color: #fff; }
.lgw-node.is-past .lgw-ball { border-color: rgb(var(--clay)); color: rgb(var(--clay)); }
.lgw-node:focus-visible { outline: none; }
.lgw-node:focus-visible .lgw-ball { outline: 2px solid rgb(var(--clay)); outline-offset: 3px; }
.lgw-node-label { font-size: 0.8rem; color: rgb(var(--ink-faint)); transition: color 0.25s var(--ease); }
.lgw-node.is-active .lgw-node-label { color: rgb(var(--clay)); font-weight: 600; }

.lgw-panel {
  background: rgb(var(--bg-soft)); border: 1px solid rgb(var(--line)); border-radius: 14px;
  padding: 32px; margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; min-height: 220px;
}
.lgw-panel.is-swapping .lgw-fade { opacity: 0; transform: translateY(6px); }
.lgw-fade { transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.lgw-step-kicker { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgb(var(--ink-faint)); font-weight: 600; margin-bottom: 10px; }
.lgw-step-title { font-family: "Fraunces", Georgia, serif; font-weight: 500; color: rgb(var(--clay-deep)); font-size: 1.2rem; margin-bottom: 10px; }
.lgw-step-text { font-size: 0.92rem; line-height: 1.6; color: rgb(var(--ink-soft)); }
.lgw-visual { min-height: 140px; display: flex; align-items: center; justify-content: center; }

.lgw-doc { width: 100%; border: 1px solid rgb(var(--line)); border-radius: 10px; overflow: hidden; background: #fff; font-size: 0.78rem; }
.lgw-doc-bar { background: rgb(var(--bg-soft)); border-bottom: 1px solid rgb(var(--line)); padding: 6px 12px; color: rgb(var(--ink-faint)); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }
.lgw-doc-body { padding: 12px 14px; line-height: 1.7; color: rgb(var(--ink)); }
.lgw-doc-body .k { color: rgb(var(--ink-faint)); }

.lgw-funnel { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.lgw-funnel-row { display: flex; align-items: center; gap: 12px; }
.lgw-funnel-bar { height: 26px; border-radius: 999px; background: rgb(var(--bg-sunk)); display: flex; align-items: center; padding: 0 12px; font-size: 0.78rem; color: rgb(var(--ink)); white-space: nowrap; }
.lgw-funnel-row:nth-child(2) .lgw-funnel-bar { background: rgb(var(--glow)); color: #fff; }
.lgw-funnel-row:nth-child(3) .lgw-funnel-bar { background: rgb(var(--clay)); color: #fff; }

.lgw-leads { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.lgw-lead { display: flex; gap: 12px; align-items: flex-start; border: 1px solid rgb(var(--line)); border-radius: 10px; background: #fff; padding: 10px 12px; font-size: 0.78rem; }
.lgw-fit { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.25rem; color: rgb(var(--clay)); line-height: 1; padding-top: 2px; min-width: 22px; text-align: center; }
.lgw-fit small { display: block; font-family: "Inter", sans-serif; font-weight: 600; font-size: 0.56rem; letter-spacing: 0.08em; color: rgb(var(--ink-faint)); margin-top: 2px; }
.lgw-lead-name { font-weight: 600; color: rgb(var(--ink)); margin-bottom: 2px; }
.lgw-lead-why { color: rgb(var(--ink-faint)); line-height: 1.45; }
.lgw-pill { margin-left: auto; flex-shrink: 0; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; background: rgb(var(--bg-soft)); color: rgb(var(--clay)); border: 1px solid rgb(var(--line)); }

.lgw-thumbs { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.lgw-thumb { border: 1px solid rgb(var(--line)); background: #fff; font-size: 0.78rem; border-radius: 10px; overflow: hidden; }
.lgw-thumb-bar { background: rgb(var(--bg-soft)); border-bottom: 1px solid rgb(var(--line)); padding: 6px 12px; color: rgb(var(--ink-faint)); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }
.lgw-thumb-body { padding: 10px 12px; line-height: 1.5; color: rgb(var(--ink)); }
.lgw-thumb-body .muted { color: rgb(var(--ink-faint)); }

@media (max-width: 680px) {
  .lgw-panel { grid-template-columns: 1fr; padding: 22px; gap: 20px; }
  .lgw-node { width: auto; }
  .lgw-node-label { font-size: 0.7rem; }
  .lgw-ball { width: 36px; height: 36px; line-height: 34px; font-size: 14px; }
  .lgw-rail, .lgw-rail-fill { top: 17px; left: 18px; }
  .lgw-rail { right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .lgw-rail-fill, .lgw-ball, .lgw-fade, .lgw-node-label { transition: none; }
}

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-channels { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 560px) { .contact-channels { flex-direction: row; } }
@media (min-width: 900px) { .contact-channels { flex-direction: column; } }
.contact-trust {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgb(var(--line));
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-trust-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-trust-item .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-trust-item h3 { font-size: 1rem; font-weight: 600; font-family: "Inter", sans-serif; letter-spacing: 0; }
.contact-trust-item p { margin-top: 4px; font-size: 0.92rem; color: rgb(var(--ink-soft)); line-height: 1.5; }
.form-card { background: #fff; border: 1px solid rgb(var(--line)); border-radius: 14px; padding: 32px; box-shadow: 0 1px 2px rgba(43,38,34,0.04); }
@media (max-width: 768px) { .form-card { padding: 24px; } }
.form-field { margin-top: 18px; }
.form-field:first-of-type { margin-top: 24px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 500; color: rgb(var(--ink)); margin-bottom: 6px; }
.form-input, .form-textarea {
  width: 100%;
  border: 1px solid rgb(var(--line));
  border-radius: 8px;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: rgb(var(--ink));
  background: rgb(var(--bg));
  transition: border-color 0.2s var(--ease);
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: rgb(var(--clay)); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-submit { margin-top: 24px; width: 100%; }

/* ===== Hero typewriter (Home page h1) ===== */
.hero-headline { font-size: clamp(2rem, 5.5vw, 3.4rem); }
/* Reserve the line's width (min-width set in JS to the widest phrase) and keep it
   left-aligned, so typing only extends the trailing edge. This prevents the line
   from re-centering and jittering on every keystroke on centered layouts. */
.hero-type {
  display: inline-block;
  text-align: left;
  white-space: nowrap;
  color: rgb(var(--clay));
}
.hero-type::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 4px;
  background: rgb(var(--clay));
  vertical-align: -0.08em;
  animation: heroCaretBlink 1s step-end infinite;
}
@keyframes heroCaretBlink { 50% { opacity: 0; } }
.hero-outcome {
  display: block;
  margin-top: 14px;
  font-size: 0.95rem;
}
.hero-split .hero-content .hero-outcome { margin-left: 0; }
@media (prefers-reduced-motion: reduce) {
  .hero-type::after { animation: none; }
}

/* Founder LinkedIn button (About page) */
.fc-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgb(var(--line));
  background: rgb(var(--bg-soft));
  color: rgb(var(--ink));
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease);
}
.fc-linkedin svg { color: #0A66C2; }
.fc-linkedin:hover { color: rgb(var(--clay-deep)); border-color: rgb(var(--clay) / 0.4); background: #fff; }

/* ===== About page (ported from about-options-preview.html, Option I) ===== */
.results-hero { background: rgb(var(--night)); padding: 88px 0 72px; }
.results-super {
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 16px;
}
.results-sub { font-size: 1rem; color: rgba(236, 228, 214, 0.5); max-width: 520px; line-height: 1.7; }
.results-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 640px) {
  .results-stat-row { grid-template-columns: 1fr; }
}
.rstat { background: rgb(var(--night)); padding: 32px 28px; }
.rstat-num {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: rgb(var(--clay));
  line-height: 1;
}
.rstat-label { font-size: 0.84rem; color: rgba(236, 228, 214, 0.55); margin-top: 8px; line-height: 1.5; }
.rstat-source { font-size: 0.7rem; color: rgba(236, 228, 214, 0.22); margin-top: 6px; font-style: italic; }

.founders-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
@media (max-width: 680px) {
  .founders-split { grid-template-columns: 1fr; }
}
.fc { background: #fff; border: 1px solid rgb(var(--line)); border-radius: 16px; padding: 30px; }
.fc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.fc-top img { border-radius: 12px; }
.fc-name { font-family: "Fraunces", serif; font-size: 1.08rem; font-weight: 500; }
.fc-role { font-size: 0.72rem; color: rgb(var(--clay-deep)); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }
.fc p { font-size: 0.9rem; color: rgb(var(--ink-soft)); line-height: 1.72; }
.f-badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.f-badge { display: inline-flex; align-items: center; gap: 7px; background: rgb(var(--bg-soft)); border: 1px solid rgb(var(--line)); border-radius: 999px; padding: 4px 12px; font-size: 0.72rem; font-weight: 600; color: rgb(var(--ink-soft)); }
.f-badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: rgb(var(--clay)); }

/* ===== Language switch (EN / FR segmented pill, sits before the nav CTA) ===== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgb(var(--bg-soft));
  border: 1px solid rgb(var(--line));
  border-radius: 999px;
  padding: 3px;
}
.nav-links .lang-switch a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  color: rgb(var(--ink-soft));
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links .lang-switch a::after { content: none; }
.nav-links .lang-switch a.is-active {
  background: rgb(var(--clay));
  color: #fff;
}
.nav-links .lang-switch a.is-active:hover { color: #fff; }

/* French hero phrases run longer than English; keep the typed line on one line */
html[lang="fr"] .hero-headline { font-size: clamp(1.9rem, 4.8vw, 3rem); }
