/* ==========================================================================
   Digital Social — components.css
   Hero, diagrams, cards, assessment, forms, FAQ, CTA, misc components.
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  background: var(--surface);
  color: var(--text);
  position: relative;
  overflow: hidden;
  padding: var(--space-7) 0 var(--space-6);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 60% at 85% 8%, rgba(219, 190, 108, 0.14), transparent 72%),
    radial-gradient(45% 50% at 5% 100%, rgba(219, 190, 108, 0.07), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); align-items: center; }
.hero-title { font-size: clamp(2.1rem, 1.3rem + 4.4vw, 4.1rem); letter-spacing: -0.04em; margin: 0 0 1.1rem; max-width: 16ch; }
.hero-lead { font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.22rem); color: var(--text-muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1.25rem; }
.hero-reassurance { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.hero-reassurance .icon { color: var(--gold-strong); }
.hero-assessment { margin-top: var(--space-6); }

/* ---------- Gradient heading ---------- */
.gradient-text {
  background: linear-gradient(100deg, #B8933B, #DBBE6C 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Automation console (homepage hero visual) ---------- */
.console-wrap { position: relative; max-width: 480px; margin: 0 auto; }

.float-badge {
  display: none;
  position: absolute; z-index: 4;
  align-items: center; gap: 0.35rem;
  font-size: 0.75rem; font-weight: 620; color: var(--white);
  background: rgba(10, 12, 15, 0.92);
  border: 1px solid rgba(219, 190, 108, 0.45);
  border-radius: 999px; padding: 0.35rem 0.7rem;
  box-shadow: var(--shadow-md);
  animation: floatY 6s ease-in-out infinite;
}
.float-badge .icon { color: var(--gold); }
.fb-agent { top: -16px; left: -10px; }
.fb-whatsapp { top: auto; bottom: 64px; right: -14px; animation-delay: 1s; }
.fb-workflow { bottom: -16px; left: 8%; animation-delay: 2s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.automation-console {
  position: relative;
  background: linear-gradient(180deg, #23282F, #16191E);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
/* Faded falling snow in the console background (two depth layers) */
.automation-console::before,
.automation-console::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-repeat: repeat;
}
.automation-console::before {
  background-image:
    radial-gradient(2px 2px at 30px 40px, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 120px 90px, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(2px 2px at 200px 30px, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 70px 170px, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(2px 2px at 180px 150px, rgba(255, 255, 255, 0.45), transparent 60%);
  background-size: 220px 220px;
  animation: acSnowFar 16s linear infinite;
}
.automation-console::after {
  background-image:
    radial-gradient(3px 3px at 60px 80px, rgba(255, 255, 255, 0.28), transparent 60%),
    radial-gradient(2.5px 2.5px at 140px 40px, rgba(255, 255, 255, 0.22), transparent 60%),
    radial-gradient(3px 3px at 40px 160px, rgba(255, 255, 255, 0.26), transparent 60%);
  background-size: 170px 170px;
  animation: acSnowNear 11s linear infinite;
}
@keyframes acSnowFar { from { background-position: 0 0; } to { background-position: 0 220px; } }
@keyframes acSnowNear { from { background-position: 0 0; } to { background-position: 0 170px; } }
.automation-console > * { position: relative; z-index: 1; }

.ac-live { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; animation: acPing 2.4s ease-out infinite; }
@keyframes acPing {
  0% { box-shadow: 0 0 0 0 rgba(219, 190, 108, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(219, 190, 108, 0); }
  100% { box-shadow: 0 0 0 0 rgba(219, 190, 108, 0); }
}

/* Browser chrome */
.ac-chrome {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.ac-dots { display: inline-flex; gap: 5px; flex: none; }
.ac-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.ac-address {
  margin: 0 auto;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-mono); font-size: 0.72rem; color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.28rem 0.65rem;
}
.ac-address .icon { color: #6fcf97; }

.ac-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.8rem; }

.ac-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(219, 190, 108, 0.18); color: var(--gold); flex: none;
}
.ac-check .icon { width: 12px; height: 12px; }

.ac-noti {
  display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.92);
  background: rgba(219, 190, 108, 0.1); border: 1px solid rgba(219, 190, 108, 0.32);
  border-radius: 10px; padding: 0.5rem 0.7rem;
}

.ac-head { display: flex; align-items: center; gap: 0.5rem; }
.ac-brand {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: var(--gold); color: var(--text); font-weight: 720; font-size: 0.7rem; letter-spacing: -0.02em;
}
.ac-head-title { font-weight: 640; font-size: 0.95rem; }
.ac-live-tag { margin-left: auto; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(219, 190, 108, 0.45); border-radius: 999px; padding: 0.15rem 0.5rem; }

.ac-tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.ac-tabs span { font-size: 0.74rem; color: var(--muted-text); padding: 0.32rem 0.6rem; border-radius: 8px; border: 1px solid transparent; }
.ac-tabs span.is-active { color: var(--white); background: rgba(219, 190, 108, 0.14); border-color: rgba(219, 190, 108, 0.45); }

/* KPI cards */
.ac-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.ac-kpi { border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 0.65rem; background: rgba(255, 255, 255, 0.02); display: flex; flex-direction: column; gap: 0.15rem; }
.ac-kpi-label { font-size: 0.66rem; color: var(--muted-text); }
.ac-kpi-num { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; color: var(--gold); }
.ac-kpi-trend { font-size: 0.66rem; color: #6fcf97; display: inline-flex; align-items: center; gap: 0.2rem; }

/* Mini chart */
.ac-chart {
  display: flex; align-items: flex-end; gap: 5px; height: 72px;
  padding: 0.6rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, 0.02);
}
.ac-chart span {
  flex: 1; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--gold), var(--gold-strong));
  transform-origin: bottom;
  height: var(--h, 40%);
  transform: scaleY(var(--bob, 0.7));
  animation: acBob 3.5s ease-in-out infinite;
}
.ac-chart span:nth-child(1) { --h: 40%; --bob: 0.68; animation-delay: 0s; }
.ac-chart span:nth-child(2) { --h: 58%; --bob: 0.78; animation-delay: 0.4s; }
.ac-chart span:nth-child(3) { --h: 34%; --bob: 0.62; animation-delay: 0.8s; }
.ac-chart span:nth-child(4) { --h: 70%; --bob: 0.72; animation-delay: 1.2s; }
.ac-chart span:nth-child(5) { --h: 48%; --bob: 0.66; animation-delay: 1.6s; }
.ac-chart span:nth-child(6) { --h: 82%; --bob: 0.8; animation-delay: 2s; }
.ac-chart span:nth-child(7) { --h: 62%; --bob: 0.64; animation-delay: 2.4s; }
.ac-chart span:nth-child(8) { --h: 90%; --bob: 0.74; animation-delay: 2.8s; }
@keyframes acBob {
  0%, 100% { transform: scaleY(var(--bob, 0.7)); }
  50% { transform: scaleY(1); }
}

/* Live activity */
.ac-activity { padding: 0.85rem 0.9rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.ac-activity-title { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.6rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-text); }
.ac-activity-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; animation: acPing 2.4s ease-out infinite; }
.ac-activity ul { display: flex; flex-direction: column; gap: 0.5rem; }
.ac-activity li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.83rem; color: rgba(255,255,255,0.86); }
.ac-activity li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.3); flex: none; animation: acActivity 5s ease-in-out infinite; }
.ac-activity li:nth-child(1)::before { animation-delay: 0s; }
.ac-activity li:nth-child(2)::before { animation-delay: 1.25s; }
.ac-activity li:nth-child(3)::before { animation-delay: 2.5s; }
.ac-activity li:nth-child(4)::before { animation-delay: 3.75s; }
@keyframes acActivity {
  0%, 12% { background: var(--gold); box-shadow: 0 0 0 4px rgba(219, 190, 108, 0.18); }
  20%, 100% { background: rgba(255,255,255,0.3); box-shadow: none; }
}

@media (min-width: 700px) {
  .float-badge { display: inline-flex; }
}

/* ---------- Cards ---------- */
.service-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  background: var(--surface);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-3px); border-color: var(--gold-strong); box-shadow: var(--shadow-md); }
.service-card-index { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold-strong); margin-bottom: 0.9rem; }
.service-card-title { font-size: 1.22rem; margin-bottom: 0.5rem; }
.service-card-text { color: var(--text-muted); margin-bottom: 1.25rem; }
.service-card .link-arrow { margin-top: auto; }

.cap-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: var(--surface); }
.cap-card-title { font-size: 1.1rem; margin-bottom: 0.4rem; }
.cap-card-text { color: var(--text-muted); margin: 0; font-size: 0.96rem; }
.cap-card .check-list { margin-top: 1rem; }

.value-card { border-top: 2px solid var(--gold); padding-top: 1.1rem; }
.value-index { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
.value-title { font-size: 1.15rem; margin: 0.5rem 0 0.35rem; }
.value-text { color: var(--text-muted); margin: 0; font-size: 0.96rem; }

.industry-card { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.industry-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.industry-card-title { font-size: 1.3rem; margin: 0; }
.industry-card-text { color: var(--text-muted); margin: 0; font-size: 0.96rem; }
.industry-card .link-arrow { margin-top: auto; }

/* ---------- Before / After ---------- */
.before-after { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.ba-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; background: var(--surface); }
.ba-before { background: var(--surface-alt); }
.ba-after { border-color: rgba(219, 190, 108, 0.6); box-shadow: var(--shadow-sm); }
.ba-title { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.ba-after .ba-title { color: var(--gold-strong); }
.ba-list { display: flex; flex-direction: column; gap: 0.65rem; }
.ba-list li { position: relative; display: flex; align-items: flex-start; gap: 0.6rem; color: var(--ink-soft); }
.ba-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-text); margin-top: 0.5rem; flex: none; transition: opacity 0.4s var(--ease); }
.ba-check { color: var(--gold-strong); margin-top: 0.25rem; }

/* Before → After transformation (runs when the block enters view) */
.js .before-after .ba-before .ba-list li { color: var(--text-muted); transition: color 0.4s var(--ease); }
.js .before-after .ba-before .ba-list li::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px;
  background: var(--muted-text); transform: scaleX(0); transform-origin: left center;
  transition: transform 0.42s var(--ease);
}
.js .before-after.is-revealed .ba-before .ba-list li::after { transform: scaleX(1); }
.js .before-after .ba-after .ba-list li .ba-check {
  transform: scale(0); opacity: 0;
  transition: transform 0.34s var(--ease), opacity 0.34s var(--ease);
}
.js .before-after.is-revealed .ba-after .ba-list li .ba-check { transform: scale(1); opacity: 1; }

.js .before-after.is-revealed .ba-before .ba-list li:nth-child(1)::after { transition-delay: 0.20s; }
.js .before-after.is-revealed .ba-before .ba-list li:nth-child(2)::after { transition-delay: 0.28s; }
.js .before-after.is-revealed .ba-before .ba-list li:nth-child(3)::after { transition-delay: 0.36s; }
.js .before-after.is-revealed .ba-before .ba-list li:nth-child(4)::after { transition-delay: 0.44s; }
.js .before-after.is-revealed .ba-before .ba-list li:nth-child(5)::after { transition-delay: 0.52s; }
.js .before-after.is-revealed .ba-before .ba-list li:nth-child(6)::after { transition-delay: 0.60s; }
.js .before-after.is-revealed .ba-before .ba-list li:nth-child(7)::after { transition-delay: 0.68s; }

.js .before-after.is-revealed .ba-after .ba-list li:nth-child(1) .ba-check { transition-delay: 0.30s; }
.js .before-after.is-revealed .ba-after .ba-list li:nth-child(2) .ba-check { transition-delay: 0.38s; }
.js .before-after.is-revealed .ba-after .ba-list li:nth-child(3) .ba-check { transition-delay: 0.46s; }
.js .before-after.is-revealed .ba-after .ba-list li:nth-child(4) .ba-check { transition-delay: 0.54s; }
.js .before-after.is-revealed .ba-after .ba-list li:nth-child(5) .ba-check { transition-delay: 0.62s; }
.js .before-after.is-revealed .ba-after .ba-list li:nth-child(6) .ba-check { transition-delay: 0.70s; }
.js .before-after.is-revealed .ba-after .ba-list li:nth-child(7) .ba-check { transition-delay: 0.78s; }

/* ---------- Website mock + connections ---------- */
.split-visual { display: flex; flex-direction: column; gap: 1.25rem; }
.site-mock { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-md); }
.site-mock-bar { display: flex; gap: 6px; padding: 0.7rem 0.9rem; background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.site-mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: #d8d4c8; }
.site-mock-body { padding: 1.1rem; }
.site-mock-hero { height: 90px; border-radius: 9px; background: linear-gradient(120deg, var(--bg-dark), #262b33); margin-bottom: 0.9rem; }
.site-mock-lines { display: flex; flex-direction: column; gap: 0.5rem; }
.site-mock-lines span { height: 10px; border-radius: 6px; background: var(--light-2); }
.site-mock-lines span:nth-child(1) { width: 80%; }
.site-mock-lines span:nth-child(2) { width: 60%; }
.site-mock-lines span:nth-child(3) { width: 70%; }
.connection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.connection-grid li { font-size: 0.85rem; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 9px; text-align: center; background: var(--surface-alt); color: var(--ink-soft); }

/* ---------- Process timeline ---------- */
.process-timeline { position: relative; display: grid; grid-template-columns: 1fr; gap: 0; counter-reset: step; border-left: 2px solid var(--line); margin-left: 6px; }
/* Gold progress line that draws as the timeline scrolls (JS sets --process-progress). */
.process-timeline::after { content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: 100%; background: var(--gold); border-radius: 2px; }
.js .process-timeline::after { height: calc(var(--process-progress, 0) * 100%); transition: height 0.18s linear; }
.process-step { position: relative; padding: 0 0 2rem 1.6rem; }
.process-step::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--gold); transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease); }
.js .process-step:not(.is-revealed)::before { background: var(--light-2); box-shadow: 0 0 0 2px var(--line); transform: scale(0.82); }
.process-step:last-child { padding-bottom: 0; }
.process-number { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold-strong); }
.process-title { font-size: 1.2rem; margin: 0.25rem 0 0.35rem; }
.process-text { color: var(--text-muted); margin: 0; }

/* ---------- Client logo slider (3 visible, steps every 3s) ---------- */
.logo-slider {
  position: relative;
  overflow: hidden;
  --logo-slide: min(33.333vw, 420px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.logo-slider-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.logo-slide {
  flex: 0 0 var(--logo-slide);
  display: flex; align-items: center; justify-content: center;
  min-height: 230px; padding: 1.5rem 1.25rem;
}
.logo-slide img {
  max-height: 200px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.client-wordmark { font-weight: 620; color: var(--ink-soft); font-size: 1.5rem; text-align: center; letter-spacing: -0.01em; }
@media (min-width: 700px) {
  .logo-slide { min-height: 380px; padding: 2.5rem 2rem; }
  .logo-slide img { max-height: 340px; }
  .client-wordmark { font-size: 2.1rem; }
}

/* ---------- Service pills / tags ---------- */
.service-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.service-pills li { padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid var(--border-gold); font-size: 0.92rem; background: var(--surface); }
.section-dark .service-pills li { background: var(--surface); border-color: var(--border-gold); color: var(--text); }

/* Grid variant: 2 columns on mobile, 3 on desktop */
.service-pills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.service-pills-grid li { text-align: center; }
@media (min-width: 768px) {
  .service-pills-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-cloud li { padding: 0.5rem 0.9rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 0.88rem; }

/* ---------- Check list / problem list ---------- */
.check-list { display: flex; flex-direction: column; gap: 0.6rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.55rem; }
.check-list li .icon { color: var(--gold-strong); margin-top: 0.28rem; flex: none; }
.section-dark .check-list li .icon { color: var(--gold-strong); }
.section-dark .check-list { color: var(--ink-soft); }

.problem-list { display: flex; flex-direction: column; gap: 1rem; }
.problem-list li { padding-left: 1.2rem; position: relative; }
.problem-list li::before { content: ""; position: absolute; left: 0; top: 0.62rem; width: 6px; height: 6px; background: var(--gold-strong); border-radius: 50%; }

.example-list { display: flex; flex-direction: column; gap: 1rem; margin: 1.25rem 0; }
.example-list li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--ink-soft); }
.example-list .icon { color: var(--gold-strong); margin-top: 0.28rem; flex: none; }

.related-industries { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.related-industries a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.65rem 1rem; border: 1px solid var(--border-gold); border-radius: 999px; }
.related-industries a:hover { border-color: var(--gold-strong); }

/* ---------- Flow (system diagram) ---------- */
.flow { display: flex; flex-direction: column; gap: 0.75rem; }
.flow-step { display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.flow-index { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold-strong); flex: none; }
.flow-label { font-weight: 560; }
.flow-step:not(:last-child)::after { content: ""; }

/* ---------- Tag cloud note ---------- */
.note-band-text { font-size: 1.05rem; color: var(--text-muted); border-left: 3px solid var(--gold); padding-left: 1.1rem; margin: 0; }
.section-dark .note-band-text { color: var(--text-muted); }

/* ==========================================================================
   Assessment
   ========================================================================== */
.assessment { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; color: var(--text); box-shadow: var(--shadow-md); }
.assessment-compact { background: linear-gradient(180deg, #FBF9F1, #FFFFFF); border-color: rgba(219, 190, 108, 0.55); }
.assessment-form { display: flex; flex-direction: column; gap: 1rem; }
.assessment-label { font-weight: 620; font-size: 1.05rem; }
.assessment-textarea,
.assessment input[type="text"],
.assessment input[type="tel"],
.assessment input[type="email"],
.assessment select,
.assessment textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.85rem 1rem;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.assessment textarea::placeholder { color: #9aa0a8; }
.assessment input::placeholder { color: #9aa0a8; }
.assessment textarea:focus, .assessment input:focus, .assessment select:focus { border-color: var(--gold-strong); box-shadow: 0 0 0 3px rgba(219,190,108,0.22); outline: none; }
.assessment select option { color: var(--text); }
.assessment-prompt { font-weight: 560; color: var(--text-muted); margin: 0; }

.chip-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.5rem 0.95rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-gold);
  color: var(--ink-soft); font-size: 0.9rem;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease), transform 0.14s var(--ease);
}
.chip:hover { border-color: var(--gold-strong); }
.chip:active { transform: scale(0.95); }
.chip.is-active { background: var(--gold); color: var(--text); border-color: var(--gold); font-weight: 620; animation: chipPop 0.28s var(--ease); }
@keyframes chipPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.09); }
  100% { transform: scale(1); }
}

/* Two-column chip grid: 5 per column, "Other" centred full width (same on mobile) */
.chip-group.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.chip-grid .chip { width: 100%; text-align: center; }
.chip-grid .chip[data-chip="other"] { grid-column: 1 / -1; }

.assessment-submit { align-self: flex-start; }
.assessment-disclaimer { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

.assessment-result { border: 1px solid rgba(219,190,108,0.6); background: #FBF7EA; border-radius: var(--radius); padding: 1.25rem; scroll-margin-top: calc(var(--header-height) + 24px); }
.assessment-result.is-visible { animation: resultIn 0.5s var(--ease) both; }
@keyframes resultIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.assessment-result h3 { font-size: 1.2rem; margin: 0 0 0.5rem; color: var(--gold-strong); }
.assessment-result p { margin: 0 0 0.85rem; color: var(--ink-soft); }
.assessment-result .ar-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 0.4rem; }
.assessment-result ul { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.assessment-result ul li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.95rem; }
.assessment-result ul li .icon { color: var(--gold-strong); margin-top: 0.25rem; flex: none; }
.assessment-result .ar-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.assessment-result.is-error { border-color: rgba(178,59,59,0.45); background: rgba(178,59,59,0.06); }

.assessment-progress { height: 4px; background: rgba(20, 22, 26, 0.1); border-radius: 999px; overflow: hidden; }
.assessment-progress-bar { display: block; height: 100%; width: 25%; background: var(--gold); transition: width 0.3s var(--ease); }
.assessment-step-count { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

.assessment-step { border: none; padding: 0; margin: 0; display: none; }
.assessment-step.is-active { display: block; animation: stepIn 0.42s var(--ease) both; }
.assessment-step.is-active[data-enter="prev"] { animation-name: stepInPrev; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes stepInPrev {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: none; }
}
.assessment-step-title { font-size: 1.15rem; font-weight: 640; padding: 0; margin-bottom: 0.25rem; }
.assessment-step-help { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1rem; }

.option-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.option { display: flex; align-items: center; gap: 0.65rem; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease); }
.option:hover { border-color: var(--gold-strong); background: rgba(219,190,108,0.06); }
.option input { position: absolute; opacity: 0; width: 0; height: 0; }
.option-box { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 6px; flex: none; }
.option-check { opacity: 0; color: var(--text); }
.option:has(input:checked) { border-color: var(--gold-strong); background: rgba(219,190,108,0.14); }
.option:has(input:checked) .option-box { background: var(--gold); border-color: var(--gold); }
.option:has(input:checked) .option-check { opacity: 1; }
.option input:focus-visible + .option-box { outline: 2px solid var(--gold-strong); outline-offset: 2px; }
.option-text { font-size: 0.96rem; }

.assessment-nav { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.assessment-contact { border-top: 1px solid var(--line); padding-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.assessment-contact-title { font-size: 1.25rem; margin: 0; }

.assessment-capture { border-top: 1px solid var(--line); padding-top: 1.25rem; display: flex; flex-direction: column; gap: 0.85rem; }
.assessment-capture-title { font-weight: 620; margin: 0; }

/* ---------- Forms (light) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label { font-size: 0.88rem; font-weight: 560; }
.form-field .req { color: #b23b3b; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 0.8rem 0.95rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--gold-strong); outline: none; box-shadow: 0 0 0 3px rgba(219,190,108,0.25); }
.form-field.has-error input, .form-field.has-error textarea { border-color: #b23b3b; }
.field-error { font-size: 0.82rem; color: #b23b3b; margin: 0; min-height: 1em; }
.assessment .field-error { color: #b23b3b; }
.assessment .form-field label { color: var(--ink-soft); }
.assessment .form-grid { grid-template-columns: 1fr; }

.form-field-full { grid-column: 1 / -1; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.form-status { font-size: 0.92rem; margin: 0; min-height: 1.2em; }
.form-status.is-error { color: #b23b3b; }
.form-status.is-success { color: #2f7d4f; }
.assessment .form-status.is-error { color: #b23b3b; }
.form-success { background: rgba(47,125,79,0.1); border: 1px solid rgba(47,125,79,0.4); color: #2f7d4f; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; }

/* ==========================================================================
   FAQ / testimonials
   ========================================================================== */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.section-dark .faq-list { border-color: var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.section-dark .faq-item { border-color: var(--line); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-icon { transition: transform 0.2s var(--ease); color: var(--gold-strong); }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-answer { padding: 0 0 1.25rem; max-width: 70ch; color: var(--text-muted); }
.section-dark .faq-answer { color: var(--text-muted); }
.faq-answer p { margin: 0; }

.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.testimonial { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; background: var(--surface); }
.testimonial-quote { color: var(--gold-strong); margin-bottom: 0.8rem; }
.testimonial blockquote p { font-size: 1.08rem; margin: 0 0 1rem; }
.testimonial-name { display: block; font-weight: 620; }
.testimonial-meta { display: block; font-size: 0.88rem; color: var(--text-muted); }
.testimonial-stars { color: var(--gold-strong); letter-spacing: 2px; margin-bottom: 0.5rem; font-size: 1.05rem; }
.testimonial-stars .star { opacity: 0.28; }
.testimonial-stars .star.is-on { opacity: 1; }
.testimonial-source { display: block; font-size: 0.82rem; color: var(--text-muted); margin-top: 0.3rem; }
.testimonial-source a { color: inherit; text-decoration: underline; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(180deg, #FBF7EA, #F6F1E2);
  color: var(--text);
  padding: var(--space-7) 0;
  border-top: 1px solid rgba(219, 190, 108, 0.4);
  border-bottom: 1px solid rgba(219, 190, 108, 0.4);
}
.cta-band-inner { max-width: 900px; }
.cta-band-title { font-size: clamp(1.6rem, 1.1rem + 2.6vw, 2.8rem); letter-spacing: -0.03em; max-width: 24ch; }
.cta-band-text { color: var(--text-muted); font-size: 1.1rem; max-width: 56ch; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.cta-band-note { color: var(--text-muted); font-size: 0.9rem; margin-top: 1rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 0.9rem 0; background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: #c3c0b6; }
.breadcrumbs a:hover { color: var(--gold-strong); }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-btn { padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid var(--border-gold); background: var(--surface); font-size: 0.9rem; color: var(--ink-soft); transition: all 0.16s var(--ease); }
.filter-btn:hover { border-color: var(--gold-strong); }
.filter-btn.is-active { background: var(--bg-dark); color: var(--white); border-color: var(--bg-dark); }
.filter-empty { margin-top: 2rem; color: var(--text-muted); }
[hidden] { display: none !important; }

@media (min-width: 600px) {
  .option-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .before-after { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .connection-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-7); }
  .hero { padding: var(--space-8) 0 var(--space-6); }
  .flow-horizontal { flex-direction: row; flex-wrap: wrap; }
  .flow-horizontal .flow-step { flex: 1 1 180px; }
  .option-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .option-grid { grid-template-columns: repeat(3, 1fr); }
  .assessment { padding: 2rem; }
}

/* ==========================================================================
   Website-system connector + sequential activations
   ========================================================================== */
.site-link {
  position: relative;
  height: 26px; width: 2px; margin: 0 auto;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
  overflow: hidden;
}
.site-link-pulse {
  position: absolute; left: 50%; top: -20%; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--gold-strong);
  box-shadow: 0 0 10px rgba(219, 190, 108, 0.7);
  animation: pulseDrop 2.6s var(--ease) infinite;
}

/* Connection chips light up one after another while in view */
.js .connection-grid.is-revealed li { animation: connPulse 5.6s ease-in-out infinite; }
.js .connection-grid.is-revealed li:nth-child(1) { animation-delay: 0s; }
.js .connection-grid.is-revealed li:nth-child(2) { animation-delay: 0.4s; }
.js .connection-grid.is-revealed li:nth-child(3) { animation-delay: 0.8s; }
.js .connection-grid.is-revealed li:nth-child(4) { animation-delay: 1.2s; }
.js .connection-grid.is-revealed li:nth-child(5) { animation-delay: 1.6s; }
.js .connection-grid.is-revealed li:nth-child(6) { animation-delay: 2s; }
.js .connection-grid.is-revealed li:nth-child(7) { animation-delay: 2.4s; }
.js .connection-grid.is-revealed li:nth-child(8) { animation-delay: 2.8s; }
@keyframes connPulse {
  0%, 16% { border-color: var(--line); background: var(--surface-alt); color: var(--ink-soft); }
  24%, 32% { border-color: rgba(219, 190, 108, 0.7); background: rgba(219, 190, 108, 0.16); color: var(--text); }
  42%, 100% { border-color: var(--line); background: var(--surface-alt); color: var(--ink-soft); }
}

/* Flow diagram nodes activate in sequence when the flow enters view */
.js .flow-step.is-revealed { animation: flowActivate 0.6s var(--ease) both; }
.js .flow-step.is-revealed:nth-child(1) { animation-delay: 0s; }
.js .flow-step.is-revealed:nth-child(2) { animation-delay: 0.1s; }
.js .flow-step.is-revealed:nth-child(3) { animation-delay: 0.2s; }
.js .flow-step.is-revealed:nth-child(4) { animation-delay: 0.3s; }
.js .flow-step.is-revealed:nth-child(5) { animation-delay: 0.4s; }
.js .flow-step.is-revealed:nth-child(6) { animation-delay: 0.5s; }
.js .flow-step.is-revealed:nth-child(7) { animation-delay: 0.6s; }
.js .flow-step.is-revealed:nth-child(8) { animation-delay: 0.7s; }
.js .flow-step.is-revealed:nth-child(9) { animation-delay: 0.8s; }
.js .flow-step.is-revealed:nth-child(10) { animation-delay: 0.9s; }
@keyframes flowActivate {
  0% { border-color: var(--line); background: var(--surface); }
  45% { border-color: var(--gold-strong); background: rgba(219, 190, 108, 0.16); box-shadow: 0 6px 18px rgba(219, 190, 108, 0.18); }
  100% { border-color: var(--line); background: var(--surface); box-shadow: none; }
}

/* ==========================================================================
   Pointer spotlight on cards
   ========================================================================== */
.spotlight { position: relative; }
.spotlight::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(219, 190, 108, 0.18), transparent 62%);
  opacity: 0; transition: opacity 0.25s var(--ease);
  pointer-events: none;
  z-index: 2;
}
.spotlight:hover::before { opacity: 1; }

/* Insight card image zoom (work cards already zoom) */
.insight-card-media img { transition: transform 0.4s var(--ease); }
.insight-card:hover .insight-card-media img { transform: scale(1.03); }

/* ==========================================================================
   Hero / page-hero entrance (above the fold, so runs on load)
   ========================================================================== */
.js .hero .eyebrow,
.js .page-hero .eyebrow { animation: heroIn 0.55s var(--ease) both; }
.js .hero-title,
.js .page-hero-title { animation: heroIn 0.6s var(--ease) both; animation-delay: 0.06s; }
.js .hero-lead,
.js .page-hero-lead,
.js .page-hero .section-lead { animation: heroIn 0.6s var(--ease) both; animation-delay: 0.14s; }
.js .hero-actions,
.js .page-hero-actions,
.js .case-facts { animation: heroIn 0.6s var(--ease) both; animation-delay: 0.22s; }
.js .hero-reassurance { animation: heroIn 0.6s var(--ease) both; animation-delay: 0.28s; }
.js .hero-visual { animation: heroIn 0.7s var(--ease) both; animation-delay: 0.1s; }
.js .hero-assessment { animation: heroIn 0.7s var(--ease) both; animation-delay: 0.22s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Unified card system
   One border, radius, shadow and hover behaviour for every card grid.
   ========================================================================== */
.service-card,
.cap-card,
.industry-card,
.price-card,
.insight-card,
.work-card,
.case-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.industry-card:hover,
.insight-card:hover,
.work-card:hover,
.case-card:hover,
.price-card:hover {
  box-shadow: var(--shadow-md);
}

/* Case study cards (homepage featured work) */
.case-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.case-card { display: flex; flex-direction: column; overflow: hidden; transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.case-card:hover { transform: translateY(-3px); }
.case-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--light-2); }
.case-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.case-card:hover .case-card-media img { transform: scale(1.03); }
.case-card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.case-card-meta { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-strong); margin: 0; }
.case-card-title { font-size: 1.3rem; margin: 0; }
.case-card-title a:hover { color: var(--gold-strong); }
.case-card-text { color: var(--text-muted); margin: 0; font-size: 0.96rem; }
.case-card-services { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.case-card .link-arrow { margin-top: auto; padding-top: 0.5rem; }

/* Icon badge used at the top of cards */
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 13px;
  background: rgba(219, 190, 108, 0.16);
  color: var(--gold-strong);
  margin-bottom: 1rem;
  flex: none;
}
.card-icon .icon { width: 22px; height: 22px; }

/* Inline icon in process step titles */
.process-icon { color: var(--gold-strong); vertical-align: -2px; margin-right: 0.1rem; }

/* Compact grid: fewer, calmer tinted bands (single light band per page) */
.section-band { background: var(--surface-alt); }

@media (min-width: 600px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .case-grid { grid-template-columns: repeat(3, 1fr); }
}
