/*
Theme Name: Optimum Solution
Theme URI: https://optimsoln.com
Author: Optimum Solution
Description: Optimum Solution agency theme. AI-forward marketing site with live agent console hero, automation visuals, megamenu, full page templates and swappable demo imagery.
Version: 2.0
Requires PHP: 7.4
Text Domain: optimum-solution
*/

:root{
  --ink:#1B1712; --ink-soft:#3A342C; --paper:#FBF7F1; --paper-dim:#F3EDE3;
  --ember:#E8672B; --ember-dark:#C4501C; --gold:#F5A623; --slate:#8A8175;
  --line:#E4DBCB; --white:#FFFFFF; --radius:14px;
  --shadow: 0 20px 50px -25px rgba(27,23,18,0.35);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{font-family:'Inter',sans-serif; background:var(--paper); color:var(--ink); line-height:1.6; -webkit-font-smoothing:antialiased; overflow-x:hidden;}
h1,h2,h3,h4{font-family:'Space Grotesk',sans-serif; color:var(--ink); line-height:1.12; letter-spacing:-0.01em;}
.mono{font-family:'IBM Plex Mono',monospace;}
a{text-decoration:none; color:inherit;}
ul{list-style:none;}
img{max-width:100%; display:block;}
.wrap{max-width:1200px; margin:0 auto; padding:0 32px;}
.eyebrow{font-family:'IBM Plex Mono',monospace; font-size:12.5px; letter-spacing:0.14em; text-transform:uppercase; color:var(--ember-dark); font-weight:600; display:inline-flex; align-items:center; gap:8px;}
.eyebrow::before{content:''; width:14px; height:2px; background:var(--ember); display:inline-block;}
.btn{display:inline-flex; align-items:center; gap:8px; padding:14px 26px; border-radius:999px; font-weight:600; font-size:15px; cursor:pointer; border:1.5px solid transparent; transition:transform .18s ease, box-shadow .18s ease, background .18s ease; white-space:nowrap;}
.btn-primary{background:linear-gradient(135deg,var(--ember),var(--gold)); color:var(--white); box-shadow:0 10px 24px -10px rgba(232,103,43,0.55);}
.btn-primary:hover{transform:translateY(-2px); box-shadow:0 16px 30px -12px rgba(232,103,43,0.6);}
.btn-ghost{background:transparent; color:var(--ink); border-color:var(--line);}
.btn-ghost:hover{border-color:var(--ember); color:var(--ember-dark);}
.btn-dark{background:var(--ink); color:var(--paper);}
.btn-dark:hover{background:#000;}
.placeholder{color:#B3492E; background:rgba(232,103,43,0.08); padding:1px 5px; border-radius:4px; font-family:'IBM Plex Mono',monospace; font-size:0.9em;}

/* ---------- HEADER / MEGAMENU ---------- */
header{position:sticky; top:0; z-index:200; background:rgba(251,247,241,0.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--line);}
.nav-inner{max-width:1200px; margin:0 auto; padding:14px 32px; display:flex; align-items:center; justify-content:space-between; gap:28px;}
.logo-mark img{height:42px; width:auto;}
nav.primary-nav{display:flex; align-items:center; gap:4px;}
.nav-item{position:relative;}
.nav-link{display:flex; align-items:center; gap:5px; padding:10px 14px; font-weight:600; font-size:14.5px; border-radius:8px; color:var(--ink-soft); cursor:pointer; background:none; border:none; font-family:'Inter',sans-serif;}
.nav-link:hover{color:var(--ember-dark); background:var(--paper-dim);}
.nav-link svg{width:11px; height:11px; transition:transform .2s ease; opacity:.6;}
.nav-item:hover .nav-link svg{transform:rotate(180deg);}

.megamenu{position:absolute; top:calc(100% + 14px); left:50%; transform:translateX(-50%) translateY(6px); width:760px; background:var(--white); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); padding:20px; display:grid; grid-template-columns:1fr 1fr 220px; gap:4px; opacity:0; visibility:hidden; transition:opacity .2s ease, transform .2s ease, visibility .2s; z-index:150;}
.nav-item:hover .megamenu{opacity:1; visibility:visible; transform:translateX(-50%) translateY(0);}
.megamenu a.mega-link{display:flex; gap:12px; align-items:flex-start; padding:12px; border-radius:10px;}
.megamenu a.mega-link:hover{background:var(--paper-dim);}
.mega-icon{flex:0 0 auto; width:36px; height:36px; border-radius:9px; background:linear-gradient(135deg, rgba(232,103,43,0.14), rgba(245,166,35,0.14)); display:flex; align-items:center; justify-content:center; color:var(--ember-dark);}
.mega-icon svg{width:18px; height:18px;}
.mega-title{font-weight:700; font-size:14px; color:var(--ink); margin-bottom:2px; display:block;}
.mega-desc{font-size:12.5px; color:var(--slate); line-height:1.4; display:block;}
.mega-panel{grid-column:3; grid-row:1 / span 3; background:linear-gradient(160deg,var(--ink),#2A2118); border-radius:12px; padding:20px; color:#fff; display:flex; flex-direction:column; justify-content:space-between;}
.mega-panel .mp-eyebrow{font-family:'IBM Plex Mono',monospace; font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--gold);}
.mega-panel .mp-num{font-family:'IBM Plex Mono',monospace; font-size:30px; font-weight:600; margin:10px 0 4px; color:#fff;}
.mega-panel .mp-label{font-size:12px; color:rgba(255,255,255,0.65); margin-bottom:16px;}
.mega-panel .mp-btn{font-size:12.5px; font-weight:700; color:var(--gold); display:inline-flex; align-items:center; gap:5px;}

.nav-cta{display:flex; align-items:center; gap:10px;}
.call-link{font-size:13.5px; font-weight:600; color:var(--ink-soft); display:none;}
@media(min-width:1080px){.call-link{display:inline;}}

/* mobile drawer */
.burger{display:none; width:42px; height:42px; border-radius:10px; border:1px solid var(--line); background:var(--white); align-items:center; justify-content:center; cursor:pointer; flex-direction:column; gap:4px;}
.burger span{width:18px; height:2px; background:var(--ink); display:block; transition:.25s;}
.drawer-overlay{position:fixed; inset:0; background:rgba(27,23,18,0.55); z-index:250; opacity:0; visibility:hidden; transition:opacity .25s ease;}
.drawer-overlay.open{opacity:1; visibility:visible;}
.drawer{position:fixed; top:0; right:0; height:100%; width:86%; max-width:360px; background:var(--paper); z-index:260; transform:translateX(100%); transition:transform .3s cubic-bezier(.2,.9,.25,1); overflow-y:auto; box-shadow:-20px 0 40px rgba(0,0,0,0.2);}
.drawer.open{transform:translateX(0);}
.drawer-head{display:flex; justify-content:space-between; align-items:center; padding:20px; border-bottom:1px solid var(--line);}
.drawer-close{width:36px; height:36px; border-radius:50%; background:var(--paper-dim); display:flex; align-items:center; justify-content:center; font-size:18px; cursor:pointer;}
.drawer-nav{padding:12px 10px;}
.drawer-link{display:flex; justify-content:space-between; align-items:center; padding:15px 12px; font-weight:600; font-size:15.5px; border-bottom:1px solid var(--line); cursor:pointer;}
.drawer-sub{max-height:0; overflow:hidden; transition:max-height .3s ease; background:var(--paper-dim); border-radius:10px;}
.drawer-sub.open{max-height:600px; margin:6px 0 10px;}
.drawer-sub a{display:block; padding:12px 18px; font-size:14px; color:var(--ink-soft);}
.drawer-foot{padding:20px; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:12px;}
.drawer-foot .btn{justify-content:center; width:100%;}
@media(max-width:960px){
  nav.primary-nav, .call-link{display:none;}
  .burger{display:flex;}
}

/* ---------- generic sections ---------- */
section{padding:88px 0;}
@media(max-width:700px){section{padding:56px 0;}}
.section-head{max-width:640px; margin-bottom:52px;}
.section-head h2{font-size:clamp(28px,3.4vw,38px); margin-top:14px;}
.section-head p{color:var(--ink-soft); font-size:16px; margin-top:14px;}
.center{text-align:center; margin-left:auto; margin-right:auto;}

.hero{position:relative; padding:96px 0 60px; overflow:hidden;}
@media(max-width:700px){.hero{padding:44px 0 32px;}}
.hero-inner{display:grid; grid-template-columns:1.05fr 0.95fr; gap:64px; align-items:center;}
@media(max-width:920px){.hero-inner{grid-template-columns:1fr;}}
.hero h1{font-size:clamp(32px,4.6vw,56px); margin:18px 0 20px;}
.hero h1 .accent{background:linear-gradient(120deg,var(--ember),var(--gold)); -webkit-background-clip:text; background-clip:text; color:transparent;}
.hero p.sub{font-size:17.5px; color:var(--ink-soft); max-width:480px; margin-bottom:32px;}
.hero-form{display:flex; gap:10px; max-width:480px; margin-bottom:28px; background:var(--white); border:1px solid var(--line); border-radius:999px; padding:6px; box-shadow:var(--shadow);}
@media(max-width:500px){.hero-form{flex-direction:column; border-radius:18px; padding:10px;}}
.hero-form input{flex:1; border:none; outline:none; background:transparent; padding:12px 16px; font-size:14.5px; font-family:'Inter',sans-serif;}
.hero-form button{border:none;}
.trust-row{display:flex; gap:26px; flex-wrap:wrap;}
.trust-item{display:flex; flex-direction:column;}
.trust-num{font-family:'IBM Plex Mono',monospace; font-weight:600; font-size:26px; color:var(--ember-dark);}
.trust-label{font-size:12.5px; color:var(--slate);}

.bars-card{position:relative; background:var(--ink); border-radius:24px; padding:36px; box-shadow:var(--shadow); overflow:hidden;}
.bars-card::before{content:''; position:absolute; inset:0; background:radial-gradient(circle at 80% 0%, rgba(245,166,35,0.25), transparent 55%);}
.bars-head{display:flex; justify-content:space-between; align-items:center; margin-bottom:28px; position:relative;}
.bars-head .dot-row{display:flex; gap:6px;}
.bars-head .dot-row span{width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,0.25);}
.bars-head .label{font-family:'IBM Plex Mono',monospace; font-size:11.5px; color:rgba(255,255,255,0.55); letter-spacing:.08em;}
.bar-track{display:flex; align-items:flex-end; gap:14px; height:190px; position:relative;}
.bar{flex:1; border-radius:8px 8px 3px 3px; background:linear-gradient(180deg, var(--gold), var(--ember)); transform-origin:bottom; animation:rise 1.4s cubic-bezier(.2,.9,.25,1) both; position:relative;}
.bar span{position:absolute; top:-24px; left:0; right:0; text-align:center; font-family:'IBM Plex Mono',monospace; font-size:12px; color:rgba(255,255,255,0.8);}
.bar:nth-child(1){height:38%; animation-delay:.05s;} .bar:nth-child(2){height:56%; animation-delay:.15s;} .bar:nth-child(3){height:46%; animation-delay:.25s;} .bar:nth-child(4){height:78%; animation-delay:.35s;} .bar:nth-child(5){height:100%; animation-delay:.45s; background:linear-gradient(180deg,#FFD37A,var(--ember));}
@keyframes rise{from{transform:scaleY(0);} to{transform:scaleY(1);}}
.bars-foot{margin-top:22px; padding-top:18px; border-top:1px solid rgba(255,255,255,0.1); display:flex; justify-content:space-between; position:relative;}
.bars-foot .foot-label{font-size:12px; color:rgba(255,255,255,0.5);}
.bars-foot .foot-val{font-family:'IBM Plex Mono',monospace; font-size:15px; color:var(--gold); font-weight:600;}
@media (prefers-reduced-motion: reduce){.bar{animation:none;}}

.band{background:var(--ink); color:var(--paper);}
.band .eyebrow{color:var(--gold);} .band .eyebrow::before{background:var(--gold);}
.band h2{color:var(--paper);}
.result-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:rgba(255,255,255,0.1); border-radius:18px; overflow:hidden; margin-top:16px;}
@media(max-width:760px){.result-grid{grid-template-columns:1fr;}}
.result-cell{background:#221D17; padding:34px 30px;}
.result-num{font-family:'IBM Plex Mono',monospace; font-size:38px; font-weight:600; color:var(--gold);}
.result-label{font-size:13.5px; color:rgba(255,255,255,0.6); margin-top:6px;}

.svc-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
@media(max-width:980px){.svc-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:680px){.svc-grid{grid-template-columns:1fr;}}
.svc-card{background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:30px; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;}
.svc-card:hover{transform:translateY(-4px); box-shadow:var(--shadow); border-color:transparent;}
.svc-num{font-family:'IBM Plex Mono',monospace; font-size:12.5px; color:var(--ember-dark); font-weight:600;}
.svc-icon{width:46px; height:46px; border-radius:12px; margin:14px 0 18px; background:linear-gradient(135deg, rgba(232,103,43,0.12), rgba(245,166,35,0.16)); display:flex; align-items:center; justify-content:center; color:var(--ember-dark);}
.svc-icon svg{width:22px; height:22px;}
.svc-card h3{font-size:19px; margin-bottom:10px;}
.svc-card p{font-size:14.5px; color:var(--ink-soft); margin-bottom:16px;}
.svc-link{font-size:13.5px; font-weight:700; color:var(--ember-dark); display:inline-flex; align-items:center; gap:5px;}

.process-list{display:grid; grid-template-columns:repeat(4,1fr); gap:24px;}
@media(max-width:900px){.process-list{grid-template-columns:1fr 1fr;}}
@media(max-width:560px){.process-list{grid-template-columns:1fr;}}
.process-item{padding-top:20px; border-top:2px solid var(--line); position:relative;}
.process-item .pnum{font-family:'IBM Plex Mono',monospace; font-size:13px; color:var(--ember-dark); font-weight:600; background:var(--paper); position:absolute; top:-11px; left:0; padding-right:10px;}
.process-item h4{font-size:17px; margin:10px 0 8px;}
.process-item p{font-size:14px; color:var(--ink-soft);}

.why-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;}
@media(max-width:900px){.why-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:600px){.why-grid{grid-template-columns:1fr;}}
.why-cell{background:var(--white); padding:30px;}
.why-cell h4{font-size:16.5px; margin-bottom:9px; display:flex; align-items:center; gap:9px;}
.why-cell h4 svg{width:18px; height:18px; color:var(--ember-dark); flex:0 0 auto;}
.why-cell p{font-size:14px; color:var(--ink-soft);}

.ai-section{background:linear-gradient(135deg, #1B1712 0%, #2A2118 100%); color:var(--paper); border-radius:28px; position:relative; overflow:hidden;}
.ai-section .wrap{padding:70px 48px;}
@media(max-width:700px){.ai-section .wrap{padding:44px 24px;}}
.ai-grid{display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center;}
@media(max-width:900px){.ai-grid{grid-template-columns:1fr;}}
.ai-stats{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:26px;}
@media(max-width:560px){.ai-stats{grid-template-columns:1fr;}}
.ai-stat{background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:12px; padding:18px;}
.ai-stat .n{font-family:'IBM Plex Mono',monospace; font-size:24px; color:var(--gold); font-weight:600;}
.ai-stat .l{font-size:12px; color:rgba(255,255,255,0.6); margin-top:4px;}
.ai-section h2{color:var(--paper);}
.ai-section p{color:rgba(255,255,255,0.72);}
.ai-list{margin-top:22px; display:flex; flex-direction:column; gap:12px;}
.ai-list li{display:flex; gap:10px; font-size:14.5px; color:rgba(255,255,255,0.85); align-items:flex-start;}
.ai-list svg{flex:0 0 auto; width:16px; height:16px; color:var(--gold); margin-top:3px;}

/* case studies (honest, no fake headshots) */
.case-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
@media(max-width:980px){.case-grid{grid-template-columns:1fr;}}
.case-card{background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:0; overflow:hidden; display:flex; flex-direction:column;}
.case-top{background:var(--ink); padding:22px 24px; color:#fff;}
.case-tag{font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--gold);}
.case-top h4{color:#fff; font-size:17px; margin-top:8px;}
.case-metrics{display:flex; gap:0; border-bottom:1px solid var(--line);}
.case-metric{flex:1; padding:16px; text-align:center; border-right:1px solid var(--line);}
.case-metric:last-child{border-right:none;}
.case-metric .cm-num{font-family:'IBM Plex Mono',monospace; font-size:20px; font-weight:600; color:var(--ember-dark);}
.case-metric .cm-label{font-size:10.5px; color:var(--slate); margin-top:2px; text-transform:uppercase; letter-spacing:.04em;}
.case-body{padding:22px 24px; flex:1; display:flex; flex-direction:column;}
.case-body p{font-size:13.5px; color:var(--ink-soft); margin-bottom:6px;}
.case-body .clabel{font-family:'IBM Plex Mono',monospace; font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--ember-dark); margin-top:10px; margin-bottom:3px;}
.case-note{font-size:12px; color:var(--slate); border-top:1px solid var(--line); padding:14px 24px; background:var(--paper-dim);}

.test-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
@media(max-width:900px){.test-grid{grid-template-columns:1fr;}}
.test-card{background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:28px;}
.stars{color:var(--gold); font-size:14px; letter-spacing:2px; margin-bottom:14px;}
.test-card p{font-size:14.5px; color:var(--ink-soft); margin-bottom:20px;}
.test-person{display:flex; align-items:center; gap:12px;}
.test-avatar{width:42px; height:42px; border-radius:50%; background:linear-gradient(135deg,var(--ember),var(--gold)); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:14px;}
.test-name{font-weight:700; font-size:14px;}
.test-role{font-size:12.5px; color:var(--slate);}

.final-cta{background:linear-gradient(135deg,var(--ember) 0%, var(--gold) 100%); border-radius:28px; padding:70px 48px; text-align:center; color:#fff; position:relative; overflow:hidden;}
@media(max-width:700px){.final-cta{padding:44px 24px;}}
.final-cta h2{color:#fff; font-size:clamp(26px,4vw,42px);}
.final-cta p{color:rgba(255,255,255,0.92); max-width:560px; margin:16px auto 30px; font-size:16px;}

/* FAQ */
.faq-list{display:flex; flex-direction:column; gap:2px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;}
.faq-item{background:var(--white); padding:22px 26px;}
.faq-item h4{font-size:15.5px; margin-bottom:8px;}
.faq-item p{font-size:14px; color:var(--ink-soft);}

/* Pricing */
.price-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
@media(max-width:980px){.price-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:680px){.price-grid{grid-template-columns:1fr;}}
.price-card{background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:28px; display:flex; flex-direction:column;}
.price-card h3{font-size:18px; margin-bottom:6px;}
.price-tag{font-family:'IBM Plex Mono',monospace; font-size:20px; font-weight:600; color:var(--ember-dark); margin-bottom:16px;}
.price-list{display:flex; flex-direction:column; gap:9px; margin-bottom:18px; flex:1;}
.price-list li{display:flex; gap:8px; font-size:13.5px; color:var(--ink-soft); align-items:flex-start;}
.price-list svg{flex:0 0 auto; width:14px; height:14px; color:var(--ember-dark); margin-top:3px;}
.price-meta{font-size:12.5px; color:var(--slate); border-top:1px solid var(--line); padding-top:14px; margin-top:auto;}
.price-meta b{color:var(--ink-soft);}

/* Rating band */
.rating-row{display:flex; gap:32px; flex-wrap:wrap; align-items:center;}
.rating-big{display:flex; flex-direction:column;}
.rating-big .rn{font-family:'IBM Plex Mono',monospace; font-size:44px; font-weight:600; color:var(--gold);}
.rating-big .rs{color:var(--gold); font-size:15px; letter-spacing:2px;}
.rating-big .rl{font-size:12.5px; color:rgba(255,255,255,0.55); margin-top:4px;}
.rating-mini{display:flex; flex-direction:column;}
.rating-mini .rn{font-family:'IBM Plex Mono',monospace; font-size:20px; font-weight:600; color:#fff;}
.rating-mini .rl{font-size:11.5px; color:rgba(255,255,255,0.5);}

/* Review badge strip (Thrive-style) */
.badge-strip{display:flex; gap:14px; flex-wrap:wrap; margin-top:26px;}
.review-badge{display:flex; align-items:center; gap:10px; background:var(--white); border:1px solid var(--line); border-radius:12px; padding:10px 16px;}
.review-badge .rb-icon{width:26px; height:26px; border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:#fff;}
.review-badge .rb-google{background:#4285F4;}
.review-badge .rb-fb{background:#1877F2;}
.review-badge .rb-num{font-family:'IBM Plex Mono',monospace; font-weight:600; font-size:15px; color:var(--ink);}
.review-badge .rb-stars{color:var(--gold); font-size:11px; letter-spacing:1px;}
.review-badge .rb-label{font-size:11px; color:var(--slate);}

/* Rotating headline — words supplied by data-words, cycled in ai.js */
.rotate-wrap{display:inline-block; position:relative; vertical-align:bottom; min-width:1px;}
.rotate-word{display:inline-block; will-change:transform, opacity;}
.rotate-word.out{animation:wordOut .32s cubic-bezier(.4,0,.6,1) forwards;}
.rotate-word.in{animation:wordIn .42s cubic-bezier(.2,.9,.25,1) backwards;}
@keyframes wordOut{to{opacity:0; transform:translateY(-40%);}}
@keyframes wordIn{from{opacity:0; transform:translateY(45%);} to{opacity:1; transform:translateY(0);}}
@media (prefers-reduced-motion: reduce){.rotate-word.out,.rotate-word.in{animation:none; opacity:1; transform:none;}}

/* Big stat case block (Thrive video-testimonial style) */
.stat-case{display:grid; grid-template-columns:280px 1fr; gap:0; background:var(--white); border:1px solid var(--line); border-radius:20px; overflow:hidden; align-items:stretch;}
@media(max-width:860px){.stat-case{grid-template-columns:1fr;}}
.stat-case-visual{background:linear-gradient(155deg,var(--ink),#2A2118); padding:28px; display:flex; flex-direction:column; justify-content:center; gap:20px;}
@media(max-width:860px){.stat-case-visual{flex-direction:row; gap:32px; padding:24px 26px;}}
.stat-case-visual .sc-big{font-family:'IBM Plex Mono',monospace; font-size:36px; font-weight:600; color:var(--gold); line-height:1;}
.stat-case-visual .sc-label{font-size:12.5px; color:rgba(255,255,255,0.6); margin-top:5px;}
.stat-case-body{padding:28px 32px; display:flex; flex-direction:column; justify-content:center;}
@media(max-width:560px){.stat-case-body{padding:24px;}}
.stat-case-body .quote{font-size:15.5px; color:var(--ink); line-height:1.6; margin-bottom:16px;}
.stat-case-body .who{font-weight:700; font-size:14px;}
.stat-case-body .who span{font-weight:400; color:var(--slate); font-size:13px;}

/* compact video row used inside the case card */
.video-strip{display:flex; align-items:center; gap:14px; margin-top:20px; padding:10px 16px 10px 10px; border:1px solid var(--line); border-radius:14px; background:var(--paper); transition:border-color .18s ease, transform .18s ease;}
.video-strip:hover{border-color:var(--ember); transform:translateY(-1px);}
.vs-thumb{position:relative; flex:0 0 auto; width:104px; height:66px; border-radius:9px; overflow:hidden; background:var(--ink);}
.vs-thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.vs-play{position:absolute; inset:0; display:flex; align-items:center; justify-content:center;}
.vs-play span{width:28px; height:28px; border-radius:50%; background:linear-gradient(135deg,var(--ember),var(--gold)); display:flex; align-items:center; justify-content:center; box-shadow:0 6px 14px -6px rgba(0,0,0,.6);}
.vs-play svg{width:12px; height:12px; color:#fff; margin-left:2px;}
.vs-text b{display:block; font-size:14px; color:var(--ink); font-weight:700;}
.vs-text span{display:block; font-size:12.5px; color:var(--slate); margin-top:3px;}
@media(max-width:400px){.vs-thumb{width:78px; height:52px;}}

/* page hero (interior pages, simpler) */
.page-hero{padding:64px 0 20px;}
.page-hero .crumb{font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--slate); margin-bottom:16px;}
.page-hero .crumb a{color:var(--ember-dark); font-weight:600;}
.page-hero h1{font-size:clamp(30px,4.4vw,48px); margin-bottom:16px;}
.page-hero p{font-size:17px; color:var(--ink-soft); max-width:640px;}

.feature-row{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;}
@media(max-width:860px){.feature-row{grid-template-columns:1fr;}}
.feature-row.rev > div:first-child{order:2;}
.feature-list{margin-top:18px; display:flex; flex-direction:column; gap:12px;}
.feature-list li{display:flex; gap:10px; font-size:15px; color:var(--ink-soft); align-items:flex-start;}
.feature-list svg{flex:0 0 auto; width:17px; height:17px; color:var(--ember-dark); margin-top:3px;}
.feature-visual{background:var(--paper-dim); border:1px solid var(--line); border-radius:20px; padding:32px; min-height:280px; display:flex; align-items:center; justify-content:center; overflow:hidden;}
.feature-visual img{width:100%; height:100%; object-fit:cover; border-radius:12px;}
.hero-photo{border-radius:24px; overflow:hidden; box-shadow:var(--shadow);}
.hero-photo img{width:100%; height:100%; object-fit:cover; display:block;}
.page-hero-photo{margin-top:28px; border-radius:20px; overflow:hidden; box-shadow:var(--shadow); max-height:340px;}
.page-hero-photo img{width:100%; height:100%; object-fit:cover; display:block;}

/* ---------- FOOTER (modern) ---------- */
footer{background:var(--ink); color:rgba(255,255,255,0.65); position:relative;}
footer::before{content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--ember),var(--gold));}
.foot-cta{padding:64px 0 48px; border-bottom:1px solid rgba(255,255,255,0.08);}
.foot-cta-inner{display:flex; justify-content:space-between; align-items:center; gap:32px; flex-wrap:wrap;}
.foot-cta h3{color:#fff; font-size:clamp(22px,3vw,32px); max-width:520px;}
.foot-newsletter{display:flex; gap:10px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14); border-radius:999px; padding:6px; max-width:380px; width:100%;}
.foot-newsletter input{flex:1; background:transparent; border:none; outline:none; padding:11px 16px; color:#fff; font-size:14px; font-family:'Inter',sans-serif;}
.foot-newsletter input::placeholder{color:rgba(255,255,255,0.4);}
.foot-newsletter button{border:none; border-radius:999px; padding:11px 20px; background:linear-gradient(135deg,var(--ember),var(--gold)); color:#fff; font-weight:700; font-size:13.5px; cursor:pointer;}
.foot-main{padding:56px 0;}
.foot-grid{display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr 1.1fr; gap:32px;}
@media(max-width:920px){.foot-grid{grid-template-columns:1fr 1fr 1fr;}}
@media(max-width:620px){.foot-grid{grid-template-columns:1fr 1fr;}}
footer .logo-mark img{height:34px; filter:brightness(0) invert(1);}
footer p.tag{font-size:13.5px; margin-top:14px; max-width:260px; color:rgba(255,255,255,0.45);}
footer h5{font-family:'IBM Plex Mono',monospace; font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,0.4); margin-bottom:18px;}
footer ul li{margin-bottom:11px; font-size:14px;}
footer ul li a{position:relative; transition:color .15s;}
footer ul li a:hover{color:var(--gold);}
.foot-socials{display:flex; gap:10px; margin-top:18px;}
.foot-socials a{width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,0.15); display:flex; align-items:center; justify-content:center; transition:.2s;}
.foot-socials a svg{width:16px; height:16px;}
.foot-socials a:hover{border-color:var(--gold); background:var(--gold); color:var(--ink);}
.foot-badges{display:flex; flex-direction:column; gap:10px; margin-top:4px;}
.foot-badge{display:flex; align-items:center; gap:8px; font-size:12.5px; color:rgba(255,255,255,0.55);}
.foot-badge svg{width:15px; height:15px; color:var(--gold);}
.foot-industries{border-top:1px solid rgba(255,255,255,0.08); border-bottom:1px solid rgba(255,255,255,0.08); padding:18px 0;}
.foot-industries-inner{display:flex; align-items:center; gap:18px; flex-wrap:wrap; font-size:12px; color:rgba(255,255,255,0.4);}
.foot-industries-label{font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,0.55); flex:0 0 auto;}
.foot-industries-inner span:not(.foot-industries-label){padding:4px 10px; border:1px solid rgba(255,255,255,0.12); border-radius:999px;}
.foot-bottom{border-top:1px solid rgba(255,255,255,0.08); padding:22px 0; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:12.5px; color:rgba(255,255,255,0.4);}
.foot-bottom-links{display:flex; gap:20px; flex-wrap:wrap;}
.foot-bottom-links a:hover{color:var(--gold);}

/* ==========================================================================
   AI LAYER  —  added in v2.0
   Everything below builds the "AI agency" character on top of the existing
   ember/gold brand: signal grids, the live agent console, automation maps,
   and the floating assistant. Motion is opt-out via prefers-reduced-motion.
   ========================================================================== */

:root{
  --signal:rgba(245,166,35,0.55);
  --mesh:rgba(27,23,18,0.055);
  --mesh-dark:rgba(255,255,255,0.055);
}

/* --- signal grid + glow, used behind dark and light sections ------------- */
.mesh{position:relative; isolation:isolate;}
.mesh::before{
  content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background-image:linear-gradient(var(--mesh) 1px, transparent 1px),
                   linear-gradient(90deg, var(--mesh) 1px, transparent 1px);
  background-size:56px 56px;
  mask-image:radial-gradient(ellipse 90% 70% at 60% 20%, #000 20%, transparent 75%);
  -webkit-mask-image:radial-gradient(ellipse 90% 70% at 60% 20%, #000 20%, transparent 75%);
}
.mesh-dark::before{
  background-image:linear-gradient(var(--mesh-dark) 1px, transparent 1px),
                   linear-gradient(90deg, var(--mesh-dark) 1px, transparent 1px);
}
.orb{position:absolute; border-radius:50%; filter:blur(70px); pointer-events:none; z-index:-1;}
.orb-a{width:420px; height:420px; background:rgba(232,103,43,0.16); top:-120px; right:-80px;}
.orb-b{width:340px; height:340px; background:rgba(245,166,35,0.14); bottom:-140px; left:-100px;}

/* --- status chip --------------------------------------------------------- */
.ai-chip{
  display:inline-flex; align-items:center; gap:9px; padding:7px 15px 7px 12px;
  border:1px solid var(--line); border-radius:999px; background:var(--white);
  font-size:13px; font-weight:600; color:var(--ink-soft); box-shadow:0 4px 14px -8px rgba(27,23,18,.3);
}
.ai-chip .pip{width:8px; height:8px; border-radius:50%; background:var(--ember); position:relative; flex:0 0 auto;}
.ai-chip .pip::after{content:''; position:absolute; inset:-5px; border-radius:50%; border:1.5px solid var(--ember); animation:pip 2.4s ease-out infinite;}
.ai-chip.on-dark{background:rgba(255,255,255,0.06); border-color:rgba(255,255,255,0.16); color:rgba(255,255,255,0.85);}
.ai-chip.on-dark .pip{background:var(--gold);} .ai-chip.on-dark .pip::after{border-color:var(--gold);}
@keyframes pip{0%{transform:scale(.6); opacity:.9;} 100%{transform:scale(1.6); opacity:0;}}

/* --- live agent console (hero signature element) ------------------------- */
.console{
  background:#16120E; border:1px solid rgba(255,255,255,0.10); border-radius:22px;
  box-shadow:0 40px 80px -40px rgba(27,23,18,0.65); overflow:hidden; position:relative;
}
.console-bar{display:flex; align-items:center; gap:12px; padding:14px 18px; border-bottom:1px solid rgba(255,255,255,0.07); background:rgba(255,255,255,0.025);}
.console-bar .dots{display:flex; gap:6px;}
.console-bar .dots i{width:9px; height:9px; border-radius:50%; display:block;}
.console-bar .dots i:nth-child(1){background:var(--ember);} .console-bar .dots i:nth-child(2){background:var(--gold);} .console-bar .dots i:nth-child(3){background:rgba(255,255,255,0.22);}
.console-bar .who{font-family:'IBM Plex Mono',monospace; font-size:12px; color:rgba(255,255,255,0.45); letter-spacing:.04em;}
.console-bar .live{margin-left:auto; display:flex; align-items:center; gap:7px; font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--gold);}
.console-bar .live::before{content:''; width:7px; height:7px; border-radius:50%; background:var(--gold); animation:blink 1.8s ease-in-out infinite;}
@keyframes blink{0%,100%{opacity:1;} 50%{opacity:.25;}}
.console-body{padding:22px; display:flex; flex-direction:column; gap:14px; min-height:330px;}
@media(max-width:520px){.console-body{padding:16px; min-height:300px;}}

.msg{max-width:82%; padding:13px 16px; border-radius:16px; font-size:14.5px; line-height:1.5; opacity:0; transform:translateY(8px); animation:msgIn .45s cubic-bezier(.2,.9,.25,1) forwards;}
.msg.from-customer{align-self:flex-start; background:rgba(255,255,255,0.07); color:rgba(255,255,255,0.88); border-bottom-left-radius:5px;}
.msg.from-agent{align-self:flex-end; background:linear-gradient(135deg,var(--ember),var(--gold)); color:#fff; border-bottom-right-radius:5px; box-shadow:0 12px 26px -14px rgba(232,103,43,.9);}
.msg .stamp{display:block; margin-top:7px; font-family:'IBM Plex Mono',monospace; font-size:10.5px; opacity:.65;}
@keyframes msgIn{to{opacity:1; transform:translateY(0);}}
.typing{align-self:flex-end; display:flex; gap:5px; padding:14px 18px; background:rgba(255,255,255,0.07); border-radius:16px;}
.typing i{width:7px; height:7px; border-radius:50%; background:var(--gold); display:block; animation:bounce 1.2s infinite;}
.typing i:nth-child(2){animation-delay:.15s;} .typing i:nth-child(3){animation-delay:.3s;}
@keyframes bounce{0%,60%,100%{transform:translateY(0); opacity:.45;} 30%{transform:translateY(-5px); opacity:1;}}

.console-foot{border-top:1px solid rgba(255,255,255,0.07); padding:16px 22px; display:flex; align-items:center; gap:14px; flex-wrap:wrap; background:rgba(255,255,255,0.02);}
.console-foot .lead{display:flex; align-items:center; gap:10px; font-size:13px; color:rgba(255,255,255,0.65);}
.console-foot .lead svg{width:17px; height:17px; color:var(--gold); flex:0 0 auto;}
.console-foot .ms{margin-left:auto; font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--gold);}

/* --- platform stream (where customers now search) ----------------------- */
.stream{border-block:1px solid var(--line); background:var(--white); padding:20px 0; overflow:hidden;}
.stream-inner{display:flex; align-items:center; gap:14px; max-width:1200px; margin:0 auto; padding:0 32px;}
.stream-label{flex:0 0 auto; font-size:13px; color:var(--slate); max-width:190px; line-height:1.4;}
.stream-track{overflow:hidden; flex:1; mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);}
.stream-marquee{display:flex; width:max-content; animation:slide 34s linear infinite;}
.stream-run{display:flex; gap:12px; margin-right:12px; flex:0 0 auto;}
.stream:hover .stream-marquee{animation-play-state:paused;}
@keyframes slide{from{transform:translateX(0);} to{transform:translateX(-50%);}}
.stream-pill{display:flex; align-items:center; gap:9px; padding:10px 18px; border:1px solid var(--line); border-radius:999px; font-size:14px; font-weight:600; color:var(--ink-soft); white-space:nowrap; background:var(--paper);}
.stream-pill b{font-family:'IBM Plex Mono',monospace; color:var(--ember-dark); font-weight:600; font-size:12.5px;}
@media(max-width:760px){.stream-label{display:none;}}

/* --- capability grid ----------------------------------------------------- */
.cap-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px;}
@media(max-width:1000px){.cap-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:600px){.cap-grid{grid-template-columns:1fr;}}
.cap{background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.10); border-radius:16px; padding:26px; position:relative; overflow:hidden;}
.cap h4{color:#fff; font-size:16.5px; margin:16px 0 9px;}
.cap p{font-size:14px; color:rgba(255,255,255,0.62); line-height:1.55;}
.cap .cap-icon{width:42px; height:42px; border-radius:11px; background:linear-gradient(135deg, rgba(232,103,43,.25), rgba(245,166,35,.25)); display:flex; align-items:center; justify-content:center; color:var(--gold);}
.cap .cap-icon svg{width:20px; height:20px;}
.cap::after{content:''; position:absolute; top:0; left:-60%; width:60%; height:2px; background:linear-gradient(90deg, transparent, var(--gold), transparent); opacity:0;}
.cap:hover::after{opacity:1; animation:sweep 1.1s ease forwards;}
@keyframes sweep{to{left:110%;}}

/* --- automation flow ----------------------------------------------------- */
.flow{display:grid; grid-template-columns:repeat(5,1fr); gap:12px; align-items:stretch; counter-reset:step;}
@media(max-width:900px){.flow{grid-template-columns:1fr 1fr;}}
@media(max-width:520px){.flow{grid-template-columns:1fr;}}
.flow-node{background:var(--white); border:1px solid var(--line); border-radius:14px; padding:22px 18px; position:relative;}
.flow-node .fn-kicker{font-family:'IBM Plex Mono',monospace; font-size:11.5px; color:var(--ember-dark); font-weight:600;}
.flow-node h4{font-size:15.5px; margin:9px 0 7px;}
.flow-node p{font-size:13.5px; color:var(--ink-soft); line-height:1.5;}
.flow-node:not(:last-child)::after{
  content:''; position:absolute; top:50%; right:-13px; width:14px; height:2px;
  background:linear-gradient(90deg,var(--ember),var(--gold)); z-index:1;
}
@media(max-width:900px){.flow-node::after{display:none;}}

/* --- metric strip -------------------------------------------------------- */
.metrics{display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:16px; overflow:hidden;}
@media(max-width:760px){.metrics{grid-template-columns:1fr 1fr;}}
.metric{background:var(--white); padding:28px 24px;}
.metric .mv{font-family:'IBM Plex Mono',monospace; font-size:32px; font-weight:600; color:var(--ember-dark); line-height:1;}
.metric .ml{font-size:13px; color:var(--slate); margin-top:8px;}
.band .metrics{background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.1);}
.band .metric{background:#221D17;} .band .metric .mv{color:var(--gold);} .band .metric .ml{color:rgba(255,255,255,0.55);}

/* --- media blocks -------------------------------------------------------- */
.media{border-radius:20px; overflow:hidden; border:1px solid var(--line); background:var(--paper-dim); position:relative;}
.media img{width:100%; height:100%; object-fit:cover; display:block;}
.media-tall{aspect-ratio:9/16;}
.media-wide{aspect-ratio:16/10;}
.gallery{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
@media(max-width:760px){.gallery{grid-template-columns:1fr 1fr; gap:14px;}}
.gallery figure{margin:0;}
.gallery figcaption{font-size:13px; color:var(--slate); margin-top:10px;}
.logo-strip{display:flex; align-items:center; justify-content:space-between; gap:28px; flex-wrap:wrap; opacity:.6;}
.logo-strip img{height:40px; width:auto;}

/* --- comparison table ---------------------------------------------------- */
.table-wrap{overflow-x:auto; border:1px solid var(--line); border-radius:16px; background:var(--white);}
table.tidy{width:100%; border-collapse:collapse; min-width:560px;}
table.tidy th, table.tidy td{text-align:left; padding:16px 20px; border-bottom:1px solid var(--line); font-size:14.5px;}
table.tidy th{font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--slate); font-weight:600; background:var(--paper-dim);}
table.tidy td:first-child{font-weight:600;}
table.tidy tr:last-child td{border-bottom:none;}
table.tidy td.yes{color:var(--ember-dark); font-weight:600;}

/* --- timeline ------------------------------------------------------------ */
.timeline{display:flex; flex-direction:column; gap:0; border-left:2px solid var(--line); padding-left:28px; margin-left:8px;}
.tl-item{position:relative; padding:0 0 34px;}
.tl-item:last-child{padding-bottom:0;}
.tl-item::before{content:''; position:absolute; left:-36px; top:4px; width:15px; height:15px; border-radius:50%; background:var(--paper); border:3px solid var(--ember);}
.tl-item .tl-when{font-family:'IBM Plex Mono',monospace; font-size:12.5px; color:var(--ember-dark); font-weight:600;}
.tl-item h4{font-size:17px; margin:7px 0 7px;}
.tl-item p{font-size:14.5px; color:var(--ink-soft);}

/* --- contact form -------------------------------------------------------- */
.form-card{background:var(--white); border:1px solid var(--line); border-radius:20px; padding:32px; box-shadow:var(--shadow);}
@media(max-width:560px){.form-card{padding:22px;}}
.field{display:flex; flex-direction:column; gap:7px; margin-bottom:16px;}
.field label{font-size:13px; font-weight:600; color:var(--ink-soft);}
.field input, .field select, .field textarea{
  padding:13px 15px; border-radius:11px; border:1px solid var(--line); background:var(--paper);
  font-family:'Inter',sans-serif; font-size:14.5px; color:var(--ink); width:100%;
}
.field input:focus, .field select:focus, .field textarea:focus{outline:2px solid var(--ember); outline-offset:1px; background:var(--white);}
.field textarea{resize:vertical; min-height:110px;}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
@media(max-width:560px){.field-row{grid-template-columns:1fr;}}
.form-note{font-size:12.5px; color:var(--slate); margin-top:14px;}
.notice{border-radius:12px; padding:15px 18px; font-size:14.5px; margin-bottom:22px; border:1px solid;}
.notice-ok{background:rgba(232,103,43,0.07); border-color:rgba(232,103,43,0.3); color:var(--ember-dark);}
.notice-bad{background:#FDECEC; border-color:#F3C7C7; color:#A32626;}
.hp-field{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden;}

.skip-link:focus{position:fixed !important; left:16px !important; top:16px !important; z-index:400; width:auto; height:auto; padding:12px 20px; background:var(--ink); color:var(--paper); border-radius:10px; font-weight:600;}
.page-hero.mesh{overflow:hidden;}

/* --- keyboard focus ------------------------------------------------------ */
a:focus-visible, button:focus-visible, .nav-link:focus-visible, .drawer-link:focus-visible{
  outline:2px solid var(--ember); outline-offset:3px; border-radius:6px;
}

/* --- floating AI assistant ---------------------------------------------- */
.ai-fab{
  position:fixed; right:20px; bottom:20px; z-index:300; display:flex; align-items:center; gap:10px;
  padding:13px 20px 13px 15px; border:none; border-radius:999px; cursor:pointer;
  background:linear-gradient(135deg,var(--ember),var(--gold)); color:#fff; font-family:'Inter',sans-serif;
  font-weight:600; font-size:14.5px; box-shadow:0 16px 34px -14px rgba(232,103,43,.85);
  transition:transform .2s ease, box-shadow .2s ease;
}
.ai-fab:hover{transform:translateY(-2px); box-shadow:0 20px 40px -14px rgba(232,103,43,.95);}
.ai-fab svg{width:19px; height:19px;}
.ai-fab .fab-close{display:none;}
.ai-fab.open .fab-open{display:none;} .ai-fab.open .fab-close{display:inline;}
@media(max-width:520px){.ai-fab{right:14px; bottom:14px; padding:13px 17px 13px 14px; font-size:14px;}}

.ai-panel{
  position:fixed; right:20px; bottom:88px; z-index:300; width:370px; max-width:calc(100vw - 32px);
  background:var(--white); border:1px solid var(--line); border-radius:20px; overflow:hidden;
  box-shadow:0 30px 70px -25px rgba(27,23,18,.55); display:flex; flex-direction:column;
  opacity:0; visibility:hidden; transform:translateY(14px) scale(.98);
  transition:opacity .22s ease, transform .22s ease, visibility .22s;
}
.ai-panel.open{opacity:1; visibility:visible; transform:translateY(0) scale(1);}
@media(max-width:520px){.ai-panel{right:14px; left:14px; width:auto; bottom:78px;}}
.ai-panel-head{background:linear-gradient(135deg,var(--ink),#2A2118); color:#fff; padding:18px 20px; display:flex; align-items:center; gap:12px;}
.ai-panel-head .av{width:38px; height:38px; border-radius:11px; background:linear-gradient(135deg,var(--ember),var(--gold)); display:flex; align-items:center; justify-content:center; flex:0 0 auto;}
.ai-panel-head .av svg{width:19px; height:19px; color:#fff;}
.ai-panel-head .nm{font-weight:700; font-size:15px;}
.ai-panel-head .st{font-size:12px; color:rgba(255,255,255,0.6); display:flex; align-items:center; gap:6px;}
.ai-panel-head .st::before{content:''; width:6px; height:6px; border-radius:50%; background:#4ADE80;}
.ai-log{padding:18px; display:flex; flex-direction:column; gap:12px; height:290px; overflow-y:auto; background:var(--paper);}
.ai-log .b{max-width:86%; padding:11px 14px; border-radius:14px; font-size:14px; line-height:1.5;}
.ai-log .b.bot{align-self:flex-start; background:var(--white); border:1px solid var(--line); color:var(--ink-soft); border-bottom-left-radius:4px;}
.ai-log .b.me{align-self:flex-end; background:linear-gradient(135deg,var(--ember),var(--gold)); color:#fff; border-bottom-right-radius:4px;}
.ai-log .b a{color:var(--ember-dark); font-weight:700; text-decoration:underline;}
.ai-log .b.me a{color:#fff;}
.ai-quick{display:flex; gap:8px; flex-wrap:wrap; padding:12px 18px 0; background:var(--paper);}
.ai-quick button{padding:8px 13px; border-radius:999px; border:1px solid var(--line); background:var(--white); font-family:'Inter',sans-serif; font-size:12.5px; font-weight:600; color:var(--ink-soft); cursor:pointer;}
.ai-quick button:hover{border-color:var(--ember); color:var(--ember-dark);}
.ai-input{display:flex; gap:8px; padding:14px 18px; border-top:1px solid var(--line); background:var(--white);}
.ai-input input{flex:1; border:1px solid var(--line); border-radius:999px; padding:11px 16px; font-family:'Inter',sans-serif; font-size:14px; outline:none;}
.ai-input input:focus{border-color:var(--ember);}
.ai-input button{border:none; border-radius:50%; width:42px; height:42px; flex:0 0 auto; background:linear-gradient(135deg,var(--ember),var(--gold)); color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center;}
.ai-input button svg{width:17px; height:17px;}

/* --- entrance for the hero only (one orchestrated moment) --------------- */
.lift{opacity:0; transform:translateY(14px); animation:lift .7s cubic-bezier(.2,.9,.25,1) forwards;}
.lift-1{animation-delay:.05s;} .lift-2{animation-delay:.15s;} .lift-3{animation-delay:.25s;} .lift-4{animation-delay:.35s;}
@keyframes lift{to{opacity:1; transform:translateY(0);}}

@media (prefers-reduced-motion: reduce){
  .lift,.msg{animation:none; opacity:1; transform:none;}
  .stream-marquee{animation:none;}
  .ai-chip .pip::after,.console-bar .live::before,.typing i{animation:none;}
  .cap:hover::after{animation:none; opacity:0;}
  *{scroll-behavior:auto;}
}

/* --- video testimonial links -------------------------------------------- */
.watch-link{
  display:inline-flex; align-items:center; gap:11px; margin-top:18px;
  font-size:14.5px; font-weight:700; color:var(--ember-dark);
}
.watch-link:hover{color:var(--ember);}
.watch-play{
  width:32px; height:32px; border-radius:50%; flex:0 0 auto; display:flex;
  align-items:center; justify-content:center; color:#fff;
  background:linear-gradient(135deg,var(--ember),var(--gold));
  box-shadow:0 8px 18px -8px rgba(232,103,43,.8);
}
.watch-play svg{width:14px; height:14px; margin-left:2px;}
.case-note .watch-link{margin-top:0;}
.band .watch-link{color:var(--gold);}

.video-frame{
  display:block; position:relative; margin-top:28px; border-radius:20px;
  overflow:hidden; box-shadow:var(--shadow); max-height:360px;
}
.video-frame img{width:100%; height:100%; object-fit:cover; display:block;}
.video-overlay{
  position:absolute; inset:0; display:flex; flex-direction:column; gap:14px;
  align-items:center; justify-content:center; text-align:center; padding:24px;
  background:linear-gradient(180deg, rgba(27,23,18,.25), rgba(27,23,18,.72));
  transition:background .2s ease;
}
.video-frame:hover .video-overlay{background:linear-gradient(180deg, rgba(27,23,18,.35), rgba(27,23,18,.8));}
.video-btn{
  width:64px; height:64px; border-radius:50%; display:flex; align-items:center;
  justify-content:center; color:#fff; background:linear-gradient(135deg,var(--ember),var(--gold));
  box-shadow:0 16px 34px -12px rgba(232,103,43,.9); transition:transform .2s ease;
}
.video-frame:hover .video-btn{transform:scale(1.06);}
.video-btn svg{width:26px; height:26px; margin-left:3px;}
.video-label{color:#fff; font-weight:600; font-size:15px; max-width:340px;}


/* --- inline form notices (hero, footer) --------------------------------- */
.inline-notice{
  display:flex; align-items:flex-start; gap:11px; max-width:480px; margin-bottom:18px;
  padding:14px 17px; border-radius:14px; font-size:14.5px; line-height:1.5; border:1px solid;
}
.inline-notice svg{width:18px; height:18px; flex:0 0 auto; margin-top:2px;}
.inline-notice-ok{background:rgba(232,103,43,0.08); border-color:rgba(232,103,43,0.32); color:var(--ember-dark);}
.inline-notice-bad{background:#FDECEC; border-color:#F3C7C7; color:#A32626;}
.foot-notice{max-width:380px; width:100%; margin-bottom:12px;}
.foot-notice.inline-notice-ok{background:rgba(245,166,35,0.12); border-color:rgba(245,166,35,0.4); color:var(--gold);}
.foot-notice.inline-notice-bad{background:rgba(255,255,255,0.06); border-color:rgba(255,255,255,0.2); color:#fff;}
.hero-form-fields{display:flex; flex:1; gap:6px; min-width:0;}
@media(max-width:640px){.hero-form-fields{flex-direction:column; gap:2px;}}
.hero-form-fields input{min-width:0;}
.hero-form-fields input + input{border-left:1px solid var(--line);}
@media(max-width:640px){.hero-form-fields input + input{border-left:none; border-top:1px solid var(--line);}}
