/* Homepage product-story enhancements. Existing site sections remain unchanged. */
.homepage-refined main>section{position:relative;isolation:isolate}
.homepage-refined main>.section:not(.hero):not(.process)::before,.homepage-refined main>.trust-section::before{content:"";position:absolute;inset-block-start:0;left:50%;width:min(1160px,calc(100% - 40px));height:1px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,#d9e5e2 18%,#d4b263 50%,#d9e5e2 82%,transparent)}
.homepage-refined .feature-strip{background:#fff}
.homepage-refined .service-story{background:#f8f5ee}
.homepage-refined #who{padding-bottom:84px;background:#fff}
.platform-section{background:#fff;padding-top:84px;padding-bottom:84px}
.homepage-refined .platform-section{background:#f1f7f5}
.capability-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.capability-card{min-width:0;display:grid;grid-template-columns:54px 1fr;align-items:start;gap:16px;padding:23px;border:1px solid #e0e8e7;border-radius:22px;background:#fbfcfc;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.capability-card:hover{transform:translateY(-3px);border-color:#c9ded9;box-shadow:0 14px 36px rgba(18,52,79,.07)}
.capability-card-ai{background:#fbf7ed;border-color:#ead9ae}
.capability-icon{width:54px;height:54px;border-radius:16px;background:#f7f2e7;border:1px solid #e8d7aa;color:#a4771f;display:grid;place-items:center}
.capability-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.capability-card h3{margin:1px 0 6px;font-size:17px;color:#12344f}
.capability-card p{margin:0;color:#667b88;font-size:12px;line-height:1.85}

.ask-spotlight{background:#f7f4ed}
.ask-spotlight-card{display:grid;grid-template-columns:1fr minmax(260px,390px);align-items:center;gap:72px;background:#12344f;border-radius:32px;padding:54px 64px;overflow:hidden;position:relative}
.ask-spotlight-card::before{content:"";position:absolute;width:300px;height:300px;border-radius:50%;background:rgba(212,178,99,.12);inset-inline-end:-90px;top:-90px}
.ask-copy{position:relative;z-index:1}.ask-copy .eyebrow{color:#d8bc7d}.ask-copy h2{font-size:clamp(30px,4vw,48px);line-height:1.3;letter-spacing:-1.1px;color:#fff;margin:0 0 15px}.ask-copy>p{margin:0;color:#cbd7df;max-width:620px;font-size:15px}
.ask-points{list-style:none;padding:0;margin:27px 0 0;display:flex;flex-wrap:wrap;gap:10px 20px;color:#e8eff3;font-size:12px}.ask-points li{display:flex;gap:7px;align-items:center}.ask-points span{color:#8ed7c4}
.ai-brief-demo{margin-top:24px;text-align:start;color:#fff}.ai-brief-greeting,.ai-brief-summary,.ai-brief-ask{margin:0}.ai-brief-greeting{font-size:20px;font-weight:600;line-height:1.5}.ai-brief-summary{margin-top:4px;color:#cbd7df;font-size:12px;font-weight:400;line-height:1.65}.ai-brief-reminders{display:flex;flex-wrap:wrap;gap:5px 16px;margin-top:7px;color:#f4f7f8;font-size:12px;font-weight:500;line-height:1.7}.ai-brief-reminder{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap}.ai-brief-ask{margin-top:8px;color:#8ed7c4;font-size:13px;font-weight:600;line-height:1.55}.ai-role-note{margin-top:11px!important;color:#a9beca!important;font-size:10px!important;line-height:1.65!important}
.ask-preview{position:relative;z-index:1;display:flex;justify-content:center}.phone-frame{width:min(100%,390px);aspect-ratio:131/100;border:7px solid #fff;border-radius:29px;background:#eef3f3;overflow:hidden;box-shadow:0 26px 60px rgba(0,0,0,.28)}
.phone-frame img{width:100%;height:100%;object-fit:contain;object-position:center;display:block}
.phone-frame-ai{aspect-ratio:auto;background:linear-gradient(155deg,#fffaf0 0%,#eef5f4 100%);color:#12344f}
.ai-chat-story{height:auto;padding:15px 14px 10px;display:flex;flex-direction:column;gap:9px;text-align:start}
.ai-chat-head{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:9px;padding-bottom:9px;border-bottom:1px solid #dce7e5}.ai-chat-brand{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(145deg,#e8c76e,#c69735);color:#fff;font-size:18px;box-shadow:0 8px 18px rgba(164,119,31,.2)}.ai-chat-head strong,.ai-chat-head small{display:block}.ai-chat-head strong{font-size:12px;color:#a4771f}.ai-chat-head small{font-size:7px;color:#6d818d;margin-top:1px}.ai-chat-replay{border:1px solid #dbc58f;border-radius:999px;background:#fffaf0;color:#9c701b;padding:5px 7px;font:inherit;font-size:7px;cursor:pointer;white-space:nowrap}.ai-chat-replay span{margin-inline-start:2px}
.ai-chat-stream{min-height:0;flex:0 0 auto;display:flex;flex-direction:column;gap:6px;justify-content:flex-start}.ai-chat-message{max-width:84%;border-radius:12px;padding:6px 9px;box-shadow:0 5px 14px rgba(18,52,79,.04)}.ai-chat-message p{margin:2px 0 0;font-size:9px;line-height:1.55}.ai-chat-speaker{display:block;font-size:6px;color:#718592}.ai-chat-resident{align-self:auto;margin-left:auto;margin-right:0;background:#e6f4f1;border:1px solid #a7d8ce}.ai-chat-assistant{align-self:auto;margin-left:0;margin-right:auto;background:#fff;border:1px solid #e3e9e8}.ai-chat-assistant strong{color:#a4771f}.ai-mic{display:inline-grid;place-items:center;width:13px;height:13px;border-radius:50%;background:#167e69;color:#fff;font-size:5px;margin-inline-end:3px;vertical-align:1px}.ai-chat-typing{align-self:auto;margin-left:0;margin-right:auto;display:flex;gap:3px;padding:7px 10px;border:1px solid #e4e9e8;border-radius:11px;background:#fff}.ai-chat-typing i{width:4px;height:4px;border-radius:50%;background:#b28a3c}.ai-chat-note{text-align:center;color:#82949e;font-size:6px}
.ai-story-ready .ai-brief-step,.ai-story-ready .ai-chat-step{opacity:0;transform:translateY(7px)}.ai-story-ready.is-playing .ai-brief-greeting{animation:ai-chat-enter .42s .2s both}.ai-story-ready.is-playing .ai-brief-summary{animation:ai-chat-enter .42s .65s both}.ai-story-ready.is-playing .ai-brief-reminders{animation:ai-chat-enter .42s 1.05s both}.ai-story-ready.is-playing .ai-brief-ask{animation:ai-chat-enter .42s 1.65s both}.ai-story-ready.is-playing .ai-chat-step-welcome{animation:ai-chat-enter .42s 2.45s both}.ai-story-ready.is-playing .ai-chat-step-typing{animation:ai-chat-typing 1.05s 3.05s both}.ai-story-ready.is-playing .ai-chat-step-1{animation:ai-chat-enter .42s 4.15s both}.ai-story-ready.is-playing .ai-chat-step-2{animation:ai-chat-enter .42s 5.55s both}.ai-story-ready.is-playing .ai-chat-step-3{animation:ai-chat-enter .42s 6.45s both}.ai-story-ready.is-playing .ai-chat-step-4{animation:ai-chat-enter .42s 7.75s both}.ai-story-ready.is-playing .ai-chat-step-5{animation:ai-chat-enter .42s 8.65s both}.ai-story-ready.is-playing .ai-chat-typing i{animation:ai-chat-dot .72s infinite alternate}.ai-story-ready.is-playing .ai-chat-typing i:nth-child(2){animation-delay:.16s}.ai-story-ready.is-playing .ai-chat-typing i:nth-child(3){animation-delay:.32s}.ai-story-ready.is-paused .ai-brief-step,.ai-story-ready.is-paused .ai-chat-step,.ai-story-ready.is-paused .ai-chat-typing i{animation-play-state:paused}.ai-story-ready.is-complete .ai-brief-step,.ai-story-ready.is-complete .ai-chat-step{opacity:1;transform:none}.ai-story-ready.is-complete .ai-chat-step-typing{display:none}
@keyframes ai-chat-enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@keyframes ai-chat-typing{0%,100%{opacity:0;transform:translateY(7px)}20%,80%{opacity:1;transform:none}}@keyframes ai-chat-dot{from{opacity:.3;transform:translateY(0)}to{opacity:1;transform:translateY(-2px)}}
/* Every role image begins at the live Demo welcome message. App chrome and
   navigation above that greeting are excluded from the visual story. */

.homepage-refined .explore-section{background:#fff;border-block:0}
.explore-section .explore-layout{grid-template-columns:1.2fr .8fr}
.homepage-refined{max-width:100%;overflow-x:hidden}
.explore-layout{min-width:0}
.role-previews{grid-column:1/-1;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(220px,1fr);gap:14px;width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;padding:8px 2px 14px;scrollbar-color:#c79d48 transparent;scrollbar-width:thin}
.role-preview-card{scroll-snap-align:start;min-width:0;border-radius:22px;background:#fff;border:1px solid #dfe8e6;padding:14px;box-shadow:0 12px 32px rgba(18,52,79,.05)}
.scroll-story-ready .role-preview-card{opacity:.22;transform:translateY(22px) scale(.985);transition:opacity .52s ease,transform .52s cubic-bezier(.2,.7,.2,1),border-color .52s ease,box-shadow .52s ease;transition-delay:calc(var(--story-order,0)*70ms)}
.scroll-story-ready .role-preview-card.is-story-visible{opacity:1;transform:none;border-color:#dcc58e;box-shadow:0 16px 40px rgba(18,52,79,.08),0 0 0 1px rgba(199,157,72,.08)}
.preview-label{display:flex;justify-content:space-between;gap:8px;align-items:end;margin-bottom:12px}.preview-label strong{display:grid;gap:2px;font-size:13px;color:#12344f}.preview-label strong>span,.preview-label>span{font-size:9px;color:#748794;white-space:nowrap}.preview-person{font:700 11px/1.2 Alexandria,Arial,sans-serif;color:#a4771f}
.screen-viewport{height:220px;border-radius:15px;overflow:hidden;background:#eef4f3;border:1px solid #e1e9e8;position:relative}
.screen-viewport img{position:absolute;top:0;left:50%;width:100%;max-width:100%;height:auto;display:block;filter:saturate(.92);transform:translate(-50%,0);will-change:transform}
.role-tour-replay{position:absolute;z-index:2;left:8px;bottom:8px;width:28px;height:28px;border:1px solid #dbc58f;border-radius:50%;display:grid;place-items:center;background:rgba(255,250,240,.94);color:#9c701b;font:700 14px/1 inherit;cursor:pointer;box-shadow:0 5px 14px rgba(18,52,79,.12);opacity:0;transform:scale(.86);transition:opacity .2s ease,transform .2s ease}.role-preview-card.is-tour-complete .role-tour-replay,.role-tour-replay:focus-visible{opacity:1;transform:none}.role-preview-card.is-tour-playing .screen-viewport img{animation:role-preview-pan var(--role-tour-duration,15s) cubic-bezier(.42,0,.2,1) both}.role-preview-card.is-tour-paused .screen-viewport img{animation-play-state:paused}@keyframes role-preview-pan{from{transform:translate(-50%,0)}to{transform:translate(-50%,calc(-1 * var(--preview-travel,0px)))}}

.trust-section{padding:58px 0 76px;background:#f1f7f5}
.trust-strip{border:1px solid #dce9e5;border-radius:22px;background:#fff;padding:22px 26px;display:grid;grid-template-columns:auto 1fr;gap:28px;align-items:center}
.trust-heading{display:flex;align-items:center;gap:12px;min-width:250px}.trust-heading>span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#e5f3ee;color:#167961;font-weight:700}.trust-heading strong,.trust-heading small{display:block}.trust-heading strong{font-size:13px;color:#12344f}.trust-heading small{font-size:9px;color:#748794;margin-top:2px}
.trust-strip ul{list-style:none;padding:0;margin:0;display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.trust-strip li{padding:7px 10px;border-radius:999px;background:#f3f7f7;color:#4d6676;font-size:10px;white-space:nowrap}

html[data-theme=dark] .platform-section{background:#0c1d2b}
html[data-theme=dark] .homepage-refined :is(.feature-strip,#who,.explore-section){background:#0c1d2b}
html[data-theme=dark] .homepage-refined :is(.service-story,.trust-section){background:#102432}
html[data-theme=dark] .homepage-refined main>.section:not(.hero):not(.process)::before,html[data-theme=dark] .homepage-refined main>.trust-section::before{background:linear-gradient(90deg,transparent,#304656 18%,#8b713b 50%,#304656 82%,transparent)}
html[data-theme=dark] :is(.capability-card,.role-preview-card,.trust-strip){background:#162d3d;border-color:#304656;box-shadow:none}
html[data-theme=dark] .capability-card-ai{background:#342d20;border-color:#6c5831}
html[data-theme=dark] :is(.capability-card h3,.preview-label strong,.trust-heading strong){color:#e4edf4}
html[data-theme=dark] :is(.capability-card p,.preview-label span,.trust-heading small){color:#b0c2ce}
html[data-theme=dark] .capability-icon{background:#40351f;border-color:#735e34;color:#dfbd73}
html[data-theme=dark] .ask-spotlight{background:#102432}
html[data-theme=dark] .ask-spotlight-card{background:#142f44}
html[data-theme=dark] .phone-frame-ai{background:linear-gradient(155deg,#2d291f 0%,#152d3c 100%);border-color:#d8e3e8}html[data-theme=dark] .ai-chat-head{border-color:#324858}html[data-theme=dark] .ai-chat-head strong,html[data-theme=dark] .ai-chat-assistant strong{color:#dfbd73}html[data-theme=dark] .ai-chat-head small,html[data-theme=dark] .ai-chat-speaker,html[data-theme=dark] .ai-chat-note{color:#aebfca}html[data-theme=dark] .ai-chat-replay{background:#2f2a1f;border-color:#725d34;color:#dfbd73}html[data-theme=dark] .ai-chat-resident{background:#173f38;border-color:#367d70;color:#e8f3f0}html[data-theme=dark] .ai-chat-assistant,html[data-theme=dark] .ai-chat-typing{background:#162d3d;border-color:#344a59;color:#e5edf2}
html[data-theme=dark] .trust-section{background:#102432}
html[data-theme=dark] .trust-strip li{background:#213c4d;color:#c6d6e0}
html[data-theme=dark] .trust-heading>span{background:#183f38;color:#9ce4cf}
html[data-theme=dark] .role-tour-replay{background:rgba(47,42,31,.94);border-color:#725d34;color:#dfbd73}

@media(max-width:900px){
 .capability-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ask-spotlight-card{grid-template-columns:1fr minmax(220px,300px);gap:38px;padding:42px}
 .role-previews{grid-auto-columns:minmax(230px,42%)}
 .trust-strip{grid-template-columns:1fr}.trust-strip ul{justify-content:flex-start}
}
@media(max-width:620px){
 .homepage-refined main>.section{padding-block:54px}.homepage-refined #who{padding-bottom:54px}.homepage-refined main>.section:not(.hero):not(.process)::before,.homepage-refined main>.trust-section::before{width:calc(100% - 28px)}
 .platform-section{padding-block:64px}.capability-grid{grid-template-columns:1fr;gap:10px}.capability-card{padding:18px;grid-template-columns:48px 1fr}.capability-icon{width:48px;height:48px;border-radius:14px}
 .homepage-refined .ask-spotlight{padding-block:42px}.ask-spotlight-card{grid-template-columns:1fr;padding:24px 22px;gap:16px;border-radius:24px}.ask-copy h2{font-size:30px;margin-bottom:9px}.ask-copy>p{font-size:13px}.ask-points{display:grid;gap:7px;margin-top:20px}.ai-brief-demo{margin-top:13px}.ai-brief-greeting{font-size:18px}.ai-brief-summary{font-size:11px;line-height:1.55}.ai-brief-reminders{gap:3px 13px;margin-top:6px;font-size:11px;line-height:1.6}.ai-brief-ask{margin-top:7px;font-size:12px}.ai-role-note{margin-top:6px!important;font-size:9px!important}.phone-frame{width:100%;max-width:390px;aspect-ratio:131/100}.phone-frame-ai{aspect-ratio:auto}.phone-frame-ai .ai-chat-story{height:auto;min-height:0}.phone-frame-ai .ai-chat-head,.phone-frame-ai .ai-chat-note{flex-shrink:0}.phone-frame-ai .ai-chat-stream{flex:0 0 auto;min-height:auto;justify-content:flex-start}
 .explore-section .explore-layout{grid-template-columns:minmax(0,1fr)}.role-previews{grid-auto-columns:minmax(230px,78%);margin-inline:0;padding:8px 2px 14px}.screen-viewport{height:220px}
 .trust-section{padding:46px 0 56px}.trust-strip{padding:19px}.trust-strip ul{display:grid;grid-template-columns:1fr 1fr;gap:7px}.trust-strip li{white-space:normal;text-align:center;display:grid;place-items:center;min-height:46px}
}
@media(prefers-reduced-motion:reduce){.capability-card,.scroll-story-ready .role-preview-card{transition:none;opacity:1;transform:none}.screen-viewport img{position:static;width:100%;height:100%;object-fit:contain;object-position:center;transform:none!important;animation:none!important;will-change:auto}.role-tour-replay{display:none}.ai-brief-step{animation:none!important;opacity:1!important;transform:none!important}.ai-chat-step{animation:none!important;opacity:1!important;transform:none!important}.ai-chat-step-typing{display:none}}

/* W-9.12.316 — a quieter, story-led opening. */
.homepage-refined .hero{
 background:
  radial-gradient(circle at 18% 22%,rgba(218,173,63,.18),transparent 42%),
  linear-gradient(155deg,#f8f3e8 0%,#fffaf0 55%,#eef5f2 100%);
 border-bottom:1px solid rgba(199,157,72,.16)
}
.homepage-refined .hero-scroll-cue{display:none}
.homepage-refined .btn-contact{background:rgba(255,255,255,.72);color:#12344f;border:1px solid rgba(164,119,31,.28);box-shadow:0 8px 24px rgba(79,62,29,.08)}
.homepage-refined .btn-contact:hover{background:#fff;border-color:rgba(164,119,31,.45)}
html[data-theme=dark] .homepage-refined .hero{
 background:
  radial-gradient(circle at 18% 22%,rgba(212,178,99,.12),transparent 42%),
  linear-gradient(155deg,#172f40 0%,#102838 55%,#12352f 100%);
 border-bottom-color:#304656
}
html[data-theme=dark] .homepage-refined .btn-contact{background:rgba(33,60,77,.78);color:#e4edf4;border-color:#6d5a35;box-shadow:none}
html[data-theme=dark] .homepage-refined .btn-contact:hover{background:#29495c}
@media(max-width:620px){
 .homepage-refined .hero{padding:0;min-height:calc(100svh - 68px);display:grid;overflow:hidden}
 .homepage-refined .hero-grid{min-height:calc(100svh - 68px);display:grid;grid-template-columns:1fr;align-items:center;gap:0;padding-block:clamp(42px,9svh,78px);position:relative}
 .homepage-refined .hero-copy{width:100%;max-width:520px;margin-inline:auto;text-align:center;display:flex;flex-direction:column;align-items:center}
 .homepage-refined .hero .eyebrow,.homepage-refined .hero-proof,.homepage-refined .hero .executive-preview{display:none}
 .homepage-refined .hero h1{font-size:clamp(30px,8vw,34px);font-weight:500;line-height:1.34;letter-spacing:-.45px;margin:0 0 22px;text-wrap:balance}
 .homepage-refined .hero-lead{max-width:29rem;font-size:16px;line-height:1.9;margin:0 0 30px;color:#526b78;text-wrap:balance}
 .homepage-refined .hero-actions{width:min(100%,350px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .homepage-refined .hero-actions .btn{width:100%;min-width:0;min-height:52px;padding:10px 8px;font-size:14px;white-space:nowrap}
 .homepage-refined .hero-scroll-cue{display:block;position:relative;width:44px;height:34px;margin:clamp(28px,5svh,46px) auto 0;color:#12344f}
 .homepage-refined .hero-scroll-cue::before{content:"";position:absolute;top:0;left:50%;width:21px;height:31px;border:2px solid currentColor;border-radius:14px;transform:translateX(-50%)}
 .homepage-refined .hero-scroll-cue::after{content:none}
 .homepage-refined .hero-scroll-cue i{position:absolute;z-index:1;top:8px;left:50%;width:3px;height:7px;border-radius:4px;background:currentColor;transform:translateX(-50%);animation:hero-scroll-dot 1.8s ease-in-out infinite}
 html[data-theme=dark] .homepage-refined .hero-lead{color:#c4d1d9}
 html[data-theme=dark] .homepage-refined .hero-scroll-cue{color:#dfbd73}
}
@keyframes hero-scroll-dot{0%,100%{opacity:.35;transform:translate(-50%,-2px)}50%{opacity:1;transform:translate(-50%,5px)}}
@media(prefers-reduced-motion:reduce){.homepage-refined .hero-scroll-cue i{animation:none}}
