/* ============================================================
   FLITZEN — Bespoke AI Solutions (crown-jewel service page)
   Extends styles.css + works.css + services.css + webdesign.css.
   New: "agent at work" console (signature hero visual),
   concrete use-case grid. Strict monochrome. Reuses wd-* grids.
   ============================================================ */

/* ---------- Hero: compact title/lead on the LEFT, the console is the star on the RIGHT ---------- */
.ai-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 4.4vw, 70px);
  align-items: center;
  margin-top: clamp(24px, 2.8vw, 44px);
}
.ai-h1 {
  font-size: clamp(36px, 3.9vw, 60px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-top: clamp(16px, 1.6vw, 24px);
}
.ai-hero-lead .lead {
  max-width: 40ch;
  color: var(--gray-1);
  font-size: clamp(16px, 1.05vw, 18.5px);
  margin-top: clamp(18px, 1.7vw, 26px);
}
.ai-hero-lead .hero-cta { margin-top: clamp(22px, 2.3vw, 32px); }

@media (max-width: 1000px) {
  .ai-hero-row { grid-template-columns: 1fr; gap: clamp(30px, 6vw, 44px); align-items: start; }
  .ai-h1 { font-size: clamp(40px, 9vw, 66px); }
  .ai-hero-lead .lead { max-width: 50ch; }
}

/* ---------- Agent console (signature) ---------- */
.ai-agent {
  position: relative;
  width: 100%;
  background: #101010;
  color: #fff;
  border-radius: 26px;
  padding: clamp(22px, 2vw, 34px);
  box-shadow: 0 50px 90px -36px rgba(14,14,14,0.6), 0 16px 36px -16px rgba(14,14,14,0.45);
  font-feature-settings: "tnum" 1;
  overflow: hidden;
}
.ai-agent::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}
.ai-agent-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.ai-agent-bar { gap: 12px; padding-bottom: 17px; margin-bottom: 18px; }
.ai-agent-bar .lights { display: flex; gap: 7px; }
.ai-agent-bar .lights i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.18); display: block; }
.ai-agent-bar .who {
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  display: flex; align-items: center; gap: 8px;
}
.ai-agent-bar .status {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.ai-agent-bar .status .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #fff;
}
@media (prefers-reduced-motion: no-preference) {
  .ai-agent.run .status .pulse { animation: aiPulse 1.4s ease-in-out infinite; }
}
@keyframes aiPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }

/* task prompt */
.ai-task {
  display: flex; align-items: flex-start; gap: 11px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 15px 17px;
  margin-bottom: 18px;
  min-height: 54px;
}
.ai-task .chev { color: rgba(255,255,255,0.5); font-weight: 700; line-height: 1.5; flex: none; }
.ai-task-line { flex: 1 1 auto; min-width: 0; }
.ai-task .txt {
  font-size: 16.5px; line-height: 1.5; letter-spacing: -0.01em;
  color: #fff;
}
.ai-task .caret {
  display: inline-block; width: 8px; height: 1.05em;
  background: #fff; margin-left: 1px; vertical-align: text-bottom;
  opacity: 0;
}
.ai-agent.run .ai-task .caret { opacity: 1; animation: aiBlink 1s step-end infinite; }
@keyframes aiBlink { 50% { opacity: 0; } }

/* steps */
.ai-steps { display: flex; flex-direction: column; gap: 14px; min-height: 126px; }
.ai-step {
  display: flex; align-items: center; gap: 13px;
  font-size: 15.5px; letter-spacing: -0.01em;
  color: rgba(255,255,255,0.92);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.ai-step.show { opacity: 1; transform: none; }
.ai-step .lbl { flex: 1 1 auto; min-width: 0; }
.ai-step .tick {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,0.30);
  position: relative;
}
.ai-step .tick svg { width: 13px; height: 13px; stroke: #101010; opacity: 0; transition: opacity 0.25s var(--ease); }
.ai-step.done .tick { background: #fff; border-color: #fff; }
.ai-step.done .tick svg { opacity: 1; }
.ai-step .spin {
  position: absolute; inset: -1.5px; border-radius: 50%;
  border: 1.5px solid transparent; border-top-color: rgba(255,255,255,0.8);
  opacity: 0;
}
.ai-step.busy .spin { opacity: 1; animation: aiSpin 0.7s linear infinite; }
@keyframes aiSpin { to { transform: rotate(360deg); } }

/* result */
.ai-result {
  display: flex; align-items: center; gap: 12px;
  margin-top: 18px; padding-top: 17px;
  border-top: 1px solid rgba(255,255,255,0.10);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.ai-result.show { opacity: 1; transform: none; }
.ai-result .badge-done {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #101010;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  padding: 9px 16px; border-radius: 100px;
  white-space: nowrap;
}
.ai-result { flex-wrap: wrap; }
.ai-result .badge-done .d { width: 6px; height: 6px; border-radius: 50%; background: #101010; }
.ai-result .review { font-size: 13px; color: rgba(255,255,255,0.55); }

/* progress dots (which scenario) */
.ai-agent-foot { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.ai-agent-foot i { width: 22px; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.18); display: block; transition: background 0.4s var(--ease); }
.ai-agent-foot i.on { background: #fff; }
.ai-agent-foot .hint { margin-left: auto; font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.02em; }

/* ---------- "What AI can do for you" — concrete use-cases ---------- */
.ai-uses-grid {
  margin-top: clamp(26px, 3vw, 46px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.ai-use {
  background: var(--paper);
  padding: clamp(26px, 2.6vw, 40px);
  display: flex; flex-direction: column;
  transition: background 0.45s var(--ease);
}
.ai-use:hover { background: var(--paper-2); }
.ai-use-ic {
  width: 48px; height: 48px; flex: none;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--ink);
  margin-bottom: clamp(18px, 2vw, 26px);
  transition: transform 0.45s var(--ease), background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.ai-use-ic svg { width: 23px; height: 23px; }
.ai-use:hover .ai-use-ic { transform: rotate(-6deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.ai-use h4 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(19px, 1.7vw, 24px); line-height: 1.1;
  letter-spacing: -0.01em; margin-bottom: 10px;
}
.ai-use p { color: var(--gray-1); font-size: 14.5px; line-height: 1.55; max-width: 38ch; }
.ai-use .impact {
  margin-top: auto; padding-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
}
.ai-use .impact .arr { color: var(--gray-3); }

/* ---------- Proof-of-concept band (inside CTA area) ---------- */
.ai-poc {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  color: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 9px 18px; border-radius: 100px;
  margin-bottom: clamp(22px, 2.4vw, 32px);
  white-space: nowrap;
  max-width: 100%;
}
.ai-poc .d { width: 6px; height: 6px; border-radius: 50%; background: #fff; flex: none; }

@media (max-width: 1000px) { .ai-uses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ai-uses-grid { grid-template-columns: 1fr; } }


/* ============================================================
   AI logo marquee ("Built with the best AI")
   ============================================================ */
.ai-logos { background: var(--paper-2); border-block: 1px solid var(--line); overflow: hidden; }
.ai-logos-head { text-align: center; max-width: 780px; margin: 0 auto clamp(40px, 4.4vw, 70px); }
.ai-logos-head .eyebrow { justify-content: center; white-space: nowrap; }
.ai-logos-head .eyebrow::before { display: none; }
.ai-logos-title {
  font-family: var(--serif); font-weight: var(--display-weight);
  font-size: clamp(36px, 4.6vw, 68px); line-height: 1.0; letter-spacing: -0.025em;
  margin-top: clamp(14px, 1.4vw, 20px);
}
.ai-logos-title em { font-style: italic; }
.ai-logos-head p {
  margin-top: clamp(16px, 1.6vw, 22px);
  color: var(--gray-1); font-size: clamp(15px, 1.05vw, 17px);
  max-width: 52ch; margin-left: auto; margin-right: auto;
}
.ai-marq {
  position: relative; overflow: hidden; display: flex;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ai-marq + .ai-marq { margin-top: clamp(36px, 3.8vw, 60px); }
.ai-marq-track {
  display: flex; align-items: center; flex: none;
  gap: clamp(48px, 5.4vw, 92px); width: max-content;
  padding-right: clamp(48px, 5.4vw, 92px);
  animation: aiMarq 56s linear infinite;
}
.ai-marq.rev .ai-marq-track { animation-direction: reverse; animation-duration: 66s; }
.ai-marq:hover .ai-marq-track { animation-play-state: paused; }
@keyframes aiMarq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ai-logo {
  display: inline-flex; align-items: center; gap: clamp(12px, 1.1vw, 18px); flex: none;
  color: var(--gray-2);
  transition: color 0.45s var(--ease);
}
.ai-logo:hover { color: var(--ink); }
.ai-logo-mark { width: clamp(28px, 2.3vw, 38px); height: clamp(28px, 2.3vw, 38px); flex: none; }
.ai-logo-name {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(23px, 2.4vw, 38px); letter-spacing: -0.025em;
  white-space: nowrap; line-height: 1;
}
@media (prefers-reduced-motion: reduce) {
  .ai-marq { overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
  .ai-marq::-webkit-scrollbar { display: none; }
  .ai-marq-track { animation: none; }
}
