@font-face{font-family:'RB Rational Neue';src:url('../fonts/RBRationalNeue-NormalRegular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:'RB Rational Neue';src:url('../fonts/RBRationalNeue-NormalMedium.ttf') format('truetype');font-weight:500;font-display:swap}
@font-face{font-family:'RB Rational Neue';src:url('../fonts/RBRationalNeue-NormalBold.ttf') format('truetype');font-weight:700;font-display:swap}
:root{--paper:#fff;--ink:#111;--muted:#4b4b4b;--line:#e8e7e4;--brand-green:#00bc70;--coral:#007a49;--green:#007a49;--dark:#00bc70;--gutter:clamp(24px,4vw,72px);font-family:'RB Rational Neue',system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;scroll-padding-top:100px}
*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer}button,a{-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}a:focus-visible,button:focus-visible,video:focus-visible,summary:focus-visible{outline:3px solid var(--green);outline-offset:5px}::selection{background:#ffd2c4}h1,h2,h3,p{margin:0}button{border:0;background:none}img,video{max-width:100%}[hidden]{display:none!important}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;left:24px;top:-100px;background:var(--ink);color:white;padding:16px;z-index:100}.skip-link:focus{top:12px}.eyebrow{font-size:12px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;display:flex;align-items:center;gap:12px}.site-header{height:84px;position:relative;z-index:5;display:flex;align-items:center;justify-content:space-between;max-width:1720px;padding:0 var(--gutter);margin:auto;border-bottom:1px solid var(--line)}.wordmark{font-size:32px;font-weight:700;letter-spacing:-2px;display:inline-flex;align-items:flex-start}.wordmark>span{font-size:10px;letter-spacing:0;margin:7px 0 0 3px}.site-header nav{display:flex;align-items:center;gap:36px;font-size:14px}.site-header nav>a{min-height:44px;display:flex;gap:12px;align-items:center}.current-label{font-size:11px;color:var(--muted)}.contact-link{border-bottom:1px solid var(--ink)}.contact-link>span{font-size:22px}.hero{max-width:1720px;margin:auto;padding:40px var(--gutter) 0;min-height:calc(100svh - 84px);display:flex;flex-direction:column;justify-content:space-between}.hero-topline{display:flex;justify-content:space-between;gap:20px;align-items:center}.live-dot{display:inline-block;width:8px;height:8px;background:var(--coral);border-radius:50%;box-shadow:0 0 0 5px #ff5c3512}.version{font-size:10px;border:1px solid var(--line);padding:4px 6px;border-radius:4px}.edition{font-size:12px;color:var(--muted)}h1{font-size:clamp(60px,7.2vw,112px);font-weight:400;letter-spacing:-.065em;line-height:1.07;margin:65px 0 55px}.headline-line{display:block;white-space:nowrap}.flap{display:inline-block;transform-origin:center;backface-visibility:hidden}.coral{color:var(--coral)}.green{color:var(--green)}.flipping{animation:flip .6s ease-in-out}@keyframes flip{0%{transform:perspective(600px) rotateX(0)}49%{transform:perspective(600px) rotateX(-88deg);opacity:.15}51%{transform:perspective(600px) rotateX(88deg);opacity:.15}100%{transform:perspective(600px) rotateX(0);opacity:1}}.hero-bottom{display:flex;justify-content:space-between;gap:32px;align-items:center;padding-bottom:58px}.hero-bottom>p{font-size:18px;line-height:1.6;color:var(--muted)}.explore-link{display:flex;gap:18px;align-items:center;font-size:16px}.explore-link small{display:block;font-size:12px;color:var(--muted);margin-top:8px}.arrow-disc{width:60px;height:60px;border:1px solid var(--ink);border-radius:50%;display:grid;place-items:center;font-size:26px;transition:background .2s,transform .2s}.explore-link:hover .arrow-disc{background:var(--coral);transform:translateY(4px);border-color:var(--coral)}.motion-button{font-size:12px;color:var(--muted);min-height:44px;padding:8px 0;display:flex;align-items:center;gap:8px}.hero-index{border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr)}.hero-index a{display:flex;align-items:center;gap:20px;padding:24px 20px 24px 0;font-size:14px}.hero-index a>span:first-child{font:11px ui-monospace,monospace;color:var(--muted)}.hero-index a>span:last-child{margin-left:auto;color:var(--muted);font-size:20px}.hero-index a:hover{color:var(--green)}.hero-index a+a{padding-left:24px;border-left:1px solid var(--line)}
.journey{max-width:1720px;margin:auto;padding:100px var(--gutter) 0}.journey-intro{position:relative;margin-bottom:24px;display:grid;grid-template-columns:1fr 260px;gap:24px}.journey-intro>.eyebrow{grid-column:1/-1}.journey-intro h2{font-size:clamp(42px,4.8vw,76px);font-weight:400;line-height:1.04;letter-spacing:-.055em}.journey-intro h2>span{color:var(--muted)}.intro-aside{align-self:end;justify-self:end;padding-bottom:5px}.intro-count{display:block;font-size:42px;letter-spacing:-2px;margin-bottom:14px}.intro-count i{font-style:normal;color:var(--coral);font-weight:400;margin:0 12px}.intro-aside p{font-size:13px;line-height:1.7;color:var(--muted)}.story-grid{display:grid;grid-template-columns:minmax(0,.36fr) minmax(0,.64fr);gap:52px;position:relative}.chapter{min-height:90vh;display:flex;align-items:center;scroll-margin-top:100px;padding:80px 0}.chapter-copy{max-width:390px}.chapter-kicker{display:flex;gap:18px;align-items:center;font-size:12px;margin-bottom:40px;font-weight:500}.chapter-kicker>span{font:11px ui-monospace,monospace;color:var(--muted)}.chapter h3{font-size:clamp(36px,3.5vw,54px);font-weight:400;letter-spacing:-.055em;line-height:1.05;margin-bottom:26px}.chapter h3 em{font-style:normal;color:var(--green)}.chapter p{font-size:17px;line-height:1.7;color:var(--muted);max-width:350px}.chapter blockquote{margin:32px 0 24px;padding-left:18px;border-left:2px solid var(--coral);font-size:20px;line-height:1.5;letter-spacing:-.02em}.chapter-outcome{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:10px}.chapter-outcome>span{font-size:22px;color:var(--green)}.desktop-stage{min-width:0;padding:95px 0 90px}.stage-sticky{position:sticky;top:70px}.stage-progress{font-size:11px;letter-spacing:.06em;text-transform:uppercase;display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.stage-progress>span:last-child{color:var(--muted)}.stage-progress>span:last-child span{font-size:18px;margin-left:8px}.progress-track{height:2px;background:var(--line);margin-bottom:24px;overflow:hidden}.progress-track>span{display:block;height:100%;background:var(--green);width:25%;transition:width .2s}.player{border:1px solid #d1cfc4;border-radius:12px;background:#f9f8f3;overflow:hidden;box-shadow:0 22px 60px -34px #3b372d45}.player-heading{display:flex;justify-content:space-between;gap:12px;padding:18px 20px;align-items:center}.player-title{font-size:14px;font-weight:500}.player-meta{font:10px ui-monospace,monospace;color:var(--muted)}.player-screen{position:relative;background:#eeeae3;border-top:1px solid #e1dfd6;border-bottom:1px solid #e1dfd6}.player video{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#f4f1eb}.player-actions{display:flex;justify-content:space-between;gap:12px;padding:8px 14px;min-height:56px;align-items:center}.player-actions button{font-size:12px;min-height:44px;padding:8px}.play-toggle{display:flex;align-items:center;gap:9px}.play-toggle>span{color:var(--green)}.expand-button{border-bottom:1px solid var(--line);padding:8px 0!important}.player-choices{margin-top:18px;display:flex;flex-wrap:wrap;gap:8px}.player-choices button{min-height:44px;border:1px solid var(--line);border-radius:24px;padding:10px 15px;font-size:12px;transition:background .2s,color .2s}.player-choices button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}.player-choices button:hover:not([aria-pressed=true]){background:#e8e7dd}.stage-disclaimer{font-size:10px;color:var(--muted);margin-top:18px;text-align:center}.media-error{font-size:13px;line-height:1.6;background:#fff0e8;color:#8a301d;padding:16px}.media-error a{text-decoration:underline}.player-status{font-size:10px;color:var(--muted);margin:8px 0 0;min-height:14px}.mobile-stage{display:none}.no-script-note{padding:24px;border:1px solid var(--line)}html:not(.enhanced) .desktop-stage{display:none}html:not(.enhanced) .story-grid{grid-template-columns:1fr 1fr}html:not(.enhanced) .chapters{display:contents}html:not(.enhanced) .chapter{min-height:0}
.library{background:#e9e9df;padding:100px var(--gutter);border-top:1px solid #d9dace}.library>*{max-width:1576px;margin-left:auto;margin-right:auto}.library-heading{display:grid;grid-template-columns:1fr auto;column-gap:40px;margin-bottom:64px}.library-heading .eyebrow{grid-column:1/-1;margin-bottom:22px}.library-heading h2{font-size:clamp(38px,4.5vw,70px);font-weight:400;letter-spacing:-.055em;line-height:1.1}.library-heading p{font-size:14px;line-height:1.7;color:var(--muted);align-self:end}.library-columns{display:grid;grid-template-columns:1fr 1fr;gap:80px}.library-columns h3{display:flex;align-items:center;justify-content:space-between;font-size:15px;font-weight:400;margin-bottom:20px}.count-pill{font:11px ui-monospace,monospace;border:1px solid #c6c9b9;border-radius:20px;padding:5px 9px}.demo-list{list-style:none;padding:0;margin:0;border-top:1px solid #c7c9bd}.demo-list li{border-bottom:1px solid #c7c9bd}.demo-list a{display:flex;align-items:center;gap:18px;min-height:98px;padding:14px 4px;transition:padding .2s,background .2s}.demo-list a:hover{padding-left:14px;background:#f4f1eb80}.demo-number{font:10px ui-monospace,monospace;color:var(--muted);align-self:flex-start;margin-top:10px}.demo-list a>span:nth-child(2){font-size:20px;letter-spacing:-.025em}.demo-list small{display:block;color:var(--muted);font-size:12px;margin-top:8px;letter-spacing:0}.demo-length{margin-left:auto;font:11px ui-monospace,monospace;white-space:nowrap;color:var(--muted)}.demo-arrow{font-size:24px;margin-left:6px}.library-note{display:flex;gap:18px;align-items:center;margin-top:50px}.library-note>span{font-size:42px;color:var(--green)}.library-note p{font-size:22px;line-height:1.5;letter-spacing:-.035em}.disclosure{font-size:11px;color:var(--muted);line-height:1.8;margin-top:56px;max-width:950px;margin-left:0}.closing{padding:70px var(--gutter) 0;background:var(--dark);color:#f4f1eb}.closing>*{max-width:1576px;margin-left:auto;margin-right:auto}.closing-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:48px}.closing-top .eyebrow{color:#c6d4c7}.closing-symbol{font-size:58px;color:#bce0b0;line-height:1}.closing h2{font-size:clamp(44px,6.2vw,96px);font-weight:400;letter-spacing:-.055em;line-height:1.06}.closing h2>span{color:#bce0b0}.closing-bottom{display:flex;justify-content:space-between;gap:32px;align-items:end;padding:50px 0 64px}.closing-bottom p{font-size:16px;line-height:1.8;color:#c6d4c7}.closing-cta{font-size:24px;letter-spacing:-.025em;border-bottom:1px solid #9fb59f;padding:12px 0;display:flex;gap:40px;align-items:center}.closing-cta>span{font-size:34px}.closing a:focus-visible{outline-color:#bce0b0}.local-note{display:flex;gap:16px;align-items:center;border-top:1px solid #3f5449;padding:32px 0;font-size:12px;color:#c6d4c7;line-height:1.7}.local-note p{flex:1}.local-note strong{font-weight:400;color:#f4f1eb}.local-note a{color:#f4f1eb;min-height:44px;display:flex;align-items:center;gap:20px}.local-dot{width:8px;height:8px;border-radius:50%;background:#bce0b0;flex-shrink:0}.site-footer{padding:32px var(--gutter);display:flex;justify-content:space-between;align-items:center;gap:24px;font-size:12px;color:var(--muted)}.site-footer .wordmark{font-size:26px;color:var(--ink)}.site-footer>a:last-child{min-height:44px;display:flex;align-items:center}
dialog{border:1px solid var(--line);border-radius:16px;padding:24px;width:min(1120px,calc(100% - 40px));max-height:calc(100svh - 40px);background:var(--paper);color:var(--ink);box-shadow:0 30px 100px #0005}dialog::backdrop{background:#16231cce;backdrop-filter:blur(6px)}body.dialog-open{overflow:hidden}.dialog-top{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:20px}.dialog-top .eyebrow{font-size:10px;margin-bottom:10px}.dialog-top h2{font-weight:400;font-size:28px;letter-spacing:-.035em}.dialog-close{display:flex;gap:12px;align-items:center;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:6px;font-size:12px}.dialog-close span{font-size:24px}dialog video{display:block;width:100%;max-height:60svh;aspect-ratio:16/9;background:#ebe7df;border-radius:8px}.dialog-description{display:flex;gap:28px;justify-content:space-between;padding-top:20px}.dialog-description p{font-size:14px;line-height:1.6;max-width:740px}.dialog-description a{font-size:12px;text-decoration:underline;white-space:nowrap;padding-top:3px;min-height:44px}.dialog-note{font-size:10px;color:var(--muted);margin-top:18px}
@media(min-width:1800px){.stage-sticky{top:120px}.chapter{min-height:850px}}
@media(max-width:1100px){.story-grid{gap:30px;grid-template-columns:minmax(0,.35fr) minmax(0,.65fr)}.chapter h3{font-size:38px}.chapter p{font-size:15px}.chapter blockquote{font-size:18px}.hero-bottom{gap:24px}.motion-button{max-width:110px;text-align:left}.library-columns{gap:40px}.demo-list a{gap:12px}.demo-list a>span:nth-child(2){font-size:18px}.stage-sticky{top:40px}}
@media(max-width:900px),(max-height:650px){.story-grid{display:block}.desktop-stage{display:none}.mobile-stage{display:block;width:100%;margin-top:34px}.chapter{display:block;min-height:0;padding:64px 0;border-top:1px solid var(--line)}.chapter-copy{max-width:600px}.chapter h3{font-size:48px}.chapter p{max-width:540px;font-size:17px}.chapter blockquote{font-size:22px}.chapter-kicker{margin-bottom:24px}.journey{padding-top:72px}.journey-intro{margin-bottom:48px}.player video{aspect-ratio:16/9}.stage-disclaimer{text-align:left}.chapter-outcome{font-size:13px}html:not(.enhanced) .story-grid{display:block}html:not(.enhanced) .chapters{display:block}}
@media(max-width:680px){:root{--gutter:24px;scroll-padding-top:24px}.site-header{height:72px}.site-header nav{gap:18px;font-size:12px}.site-header .wordmark{font-size:28px}.current-label{display:none}.contact-link{gap:6px!important}.hero{padding-top:30px;min-height:calc(100svh - 72px)}.hero-topline .edition{display:none}h1{font-size:clamp(44px,11.4vw,72px);letter-spacing:-.06em;line-height:1.08;margin:50px 0 40px}.hero-prefix{display:block}.headline-line{white-space:nowrap}.hero-bottom{display:grid;grid-template-columns:1fr;gap:24px;padding-bottom:30px}.hero-bottom>p{font-size:16px}.explore-link{font-size:14px;gap:14px}.arrow-disc{width:46px;height:46px;font-size:22px}.motion-button{max-width:none;justify-self:start;font-size:11px;min-height:44px}.hero-index{grid-template-columns:1fr 1fr}.hero-index a{font-size:12px;padding:17px 12px 17px 0;gap:12px}.hero-index a+a{padding-left:14px}.hero-index a:nth-child(3){border-left:0;padding-left:0}.hero-index a:nth-child(n+3){border-top:1px solid var(--line)}.journey{padding-top:60px}.journey-intro{display:block}.journey-intro>.eyebrow{margin-bottom:22px}.journey-intro h2{font-size:42px}.intro-aside{display:flex;align-items:center;gap:25px;margin-top:26px}.intro-count{font-size:30px;margin:0}.intro-count i{margin:0 6px}.intro-aside p{font-size:11px}.chapter{padding:44px 0 52px}.chapter h3{font-size:44px}.chapter p{font-size:16px}.chapter blockquote{font-size:19px;margin:24px 0}.chapter-kicker{font-size:11px}.chapter-outcome{font-size:11px;gap:7px}.player{border-radius:8px}.player-heading{padding:13px 12px}.player-title{font-size:12px}.player-meta{font-size:9px}.player-actions{padding:4px 8px;gap:6px}.player-actions button{font-size:11px}.player-choices{gap:6px;margin-top:12px}.player-choices button{font-size:11px;padding:9px 12px}.library{padding:60px var(--gutter)}.library-heading{display:block;margin-bottom:40px}.library-heading h2{font-size:40px}.library-heading p{margin-top:20px}.library-columns{grid-template-columns:1fr;gap:40px}.demo-list a{min-height:90px;gap:10px}.demo-list a>span:nth-child(2){font-size:18px}.demo-list small{font-size:11px}.demo-arrow{font-size:20px;margin-left:0}.demo-length{font-size:10px}.library-note{margin-top:28px}.library-note p{font-size:20px}.disclosure{margin-top:36px}.closing{padding-top:48px}.closing-top{margin-bottom:32px}.closing-top .eyebrow{font-size:10px}.closing-symbol{font-size:40px}.closing h2{font-size:clamp(34px,8.6vw,56px)}.closing-bottom{display:block;padding:32px 0 40px}.closing-bottom p{font-size:14px}.closing-cta{font-size:20px;gap:20px;justify-content:space-between;margin-top:26px}.local-note{display:grid;grid-template-columns:8px 1fr;font-size:11px;gap:12px}.local-note a{grid-column:2}.site-footer{flex-wrap:wrap;gap:12px;font-size:10px;padding-top:24px;padding-bottom:24px}.site-footer .wordmark{flex-basis:100%}.site-footer>a:last-child{margin-left:auto}dialog{width:calc(100% - 24px);padding:16px;border-radius:10px;max-height:calc(100svh - 24px)}.dialog-top{gap:12px}.dialog-top h2{font-size:22px}.dialog-top .eyebrow{font-size:9px}.dialog-close{font-size:0;padding:6px 12px;gap:0}.dialog-close span{font-size:26px}.dialog-description{display:block;padding-top:16px}.dialog-description p{font-size:13px}.dialog-description a{display:inline-flex;align-items:center;margin-top:8px}.dialog-note{line-height:1.7;margin-top:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.motion-paused *,.motion-paused *::before,.motion-paused *::after{animation:none!important;transition:none!important}

/* Keep every stage control visible, including at chapter entry and on shorter laptops. */
.desktop-stage{padding:0}
@media(min-width:901px) and (min-height:651px){
  .desktop-stage video{max-height:calc(100svh - 400px)}
}

/* TheMesh brand alignment: same logo, type hierarchy and green as the main site. */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: #c9f5df; color: var(--ink); }
.wordmark { align-items: center; min-height: 44px; letter-spacing: normal; }
.wordmark img { display: block; width: 120px; height: 32px; object-fit: contain; }
.site-header { background: #fff; }
.site-header nav { font-size: 15px; font-weight: 500; }
.contact-link { background: var(--brand-green); color: var(--ink); padding: 10px 20px; border: 0; border-radius: 8px; }
.contact-link:hover { background: #00a662; }
.hero { background: radial-gradient(ellipse at 55% 30%, #00bc7012, transparent 65%); }
.live-dot { background: var(--brand-green); box-shadow: 0 0 0 5px #00bc7012; }
.version { background: #f0fbf5; border-color: #b4e8ce; color: var(--green); }
h1 { font-size: clamp(44px, 6vw, 80px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.coral, .green { color: #00a662; }
.journey-intro h2, .library-heading h2 { font-size: clamp(32px, 4.5vw, 56px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.journey-intro h2 > span { color: var(--green); }
.chapter h3 { font-size: clamp(32px, 3.2vw, 46px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.chapter p, .hero-bottom > p { color: #4b4b4b; }
.chapter blockquote { border-color: var(--brand-green); letter-spacing: 0; }
.chapter-kicker, .eyebrow { font-weight: 500; }
.arrow-disc { border-color: var(--green); color: var(--green); }
.explore-link:hover .arrow-disc { background: var(--brand-green); border-color: var(--brand-green); color: var(--ink); }
.hero-index a:hover { background: #f0fbf5; }
.progress-track > span { background: var(--brand-green); }
.player { background: #fff; border-color: var(--line); box-shadow: 0 12px 40px -24px #1112; }
.player-screen { background: #f7f8f7; border-color: var(--line); }
.player-choices button { border-radius: 8px; }
.player-choices button[aria-pressed=true] { background: var(--brand-green); border-color: var(--brand-green); color: var(--ink); font-weight: 500; }
.player-choices button:hover:not([aria-pressed=true]) { background: #f0fbf5; }
.library { background: #f0fbf5; border-color: #d5eede; }
.count-pill, .demo-list, .demo-list li { border-color: #c8dfd1; }
.demo-list a:hover { background: #fff; }
.demo-list a > span:nth-child(2) { font-weight: 500; letter-spacing: -.02em; }
.library-note p { letter-spacing: -.02em; }
.closing { background: var(--brand-green); color: var(--ink); }
.closing h2 { font-size: clamp(36px, 5.2vw, 76px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.closing h2 > span { color: var(--ink); }
.closing-top .eyebrow, .closing-symbol, .closing-bottom p, .local-note, .local-note strong, .local-note a { color: var(--ink); }
.closing-cta { background: #111; color: #fff; border: 0; border-radius: 8px; padding: 18px 24px; font-size: 20px; font-weight: 500; letter-spacing: 0; }
.closing-cta:hover { background: #242424; }
.closing a:focus-visible { outline-color: #111; }
.local-note { border-color: #007a49; }
.local-dot { background: #111; }
.dialog-top h2 { font-weight: 700; letter-spacing: -.02em; }
.player-meta, .chapter-kicker > span, .hero-index a > span:first-child, .count-pill, .demo-number, .demo-length { font-family: 'RB Rational Neue', system-ui, sans-serif; }
@media(max-width:680px) {
  .wordmark img { width: 90px; height: 24px; }
  .site-header nav { font-size: 12px; gap: 12px; }
  .contact-link { padding: 9px 12px; }
  h1 { font-size: clamp(36px, 9.6vw, 60px); letter-spacing: -.02em; }
  .journey-intro h2, .library-heading h2 { font-size: 36px; }
  .chapter h3 { font-size: 36px; }
  .closing h2 { font-size: clamp(30px, 7.4vw, 46px); }
  .closing-cta { padding: 14px 16px; font-size: 17px; gap: 12px; }
}

/* Product identities: orange belongs to Mesh Agent; green belongs to Local AI. */
:root { --agent: #ff5c35; --agent-ink: #c43e1f; }
.journey, .library { --green: var(--agent-ink); --brand-green: var(--agent); --coral: var(--agent-ink); }
#demo-dialog { --green: var(--agent-ink); }
.contact-link { background: var(--agent); }
.contact-link:hover { background: #e54a26; }
.player-choices button:hover:not([aria-pressed=true]) { background: #fff0ec; }
.library { background: #fff0ec; border-color: #efded8; }
.count-pill, .demo-list, .demo-list li { border-color: #e4cec6; }
.closing { background: var(--agent); }
.local-note { max-width: none; margin: 0; padding: 32px var(--gutter); background: #f0fbf5; border-color: #c8dfd1; color: #111; scroll-margin-top: 24px; }
.local-note strong { color: var(--green); }
.local-note a { color: var(--green); }
.local-dot { background: var(--brand-green); }

/* Approved hero composition. Shared controls live in site-shell.css. */
.hero.ai-hero { position: relative; z-index: 1; padding: 140px 24px 48px; background: #fff; overflow: hidden; max-width: none; min-height: 78vh; display: flex; flex-direction: row; align-items: center; justify-content: center; line-height: 1.65; }
.hero.ai-hero::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120%; height: 50vh; max-height: 50%; background: radial-gradient(ellipse at 50% 30%, var(--hero-glow) 0%, transparent 70%); opacity: var(--glow-opacity, 1); pointer-events: none; z-index: 0; transition: opacity .1s; }
.hero.ai-hero > * { position: relative; z-index: 1; }
.hero.ai-hero .hero-content { max-width: 820px; margin: 0 auto; text-align: center; }
.hero.ai-hero .hero-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #6b6b6b; margin-bottom: 24px; display: block; }
.hero.ai-hero h1 { font-size: clamp(44px, 6vw, 80px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: #111; margin: 0 0 32px; }
.hero.ai-hero .hero-subheading { max-width: 520px; margin: 0 auto 40px; font-size: 18px; color: #6b6b6b; text-align: center; }
.hero.ai-hero .hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero.ai-hero .ai-hero-line { display: block; white-space: nowrap; }
.hero.ai-hero .ai-flap { display: inline-block; perspective: 400px; transform-origin: center; }
.hero.ai-hero .ai-flap-agent { min-width: 230px; color: #ff5c35; text-align: left; }
.hero.ai-hero .ai-flap-local { min-width: 280px; color: #00a662; text-align: left; }
.hero.ai-hero .ai-flap.flipping { animation: original-flap-down .6s ease-in-out; }
.hero.ai-hero #motion-toggle { position: absolute; right: 24px; bottom: 8px; max-width: none; }
@keyframes original-flap-down {
  0%, 100% { transform: rotateX(0deg); opacity: 1; }
  49.9% { transform: rotateX(-90deg); opacity: 1; }
  50% { transform: rotateX(-90deg); opacity: 0; }
  50.1% { transform: rotateX(90deg); opacity: 0; }
  50.2% { transform: rotateX(90deg); opacity: 1; }
}
@media(max-width:768px) {
  .hero.ai-hero { padding: 100px 24px 64px; }
  .hero.ai-hero h1 { font-size: 28px; }
  .hero.ai-hero .ai-flap-agent, .hero.ai-hero .ai-flap-local { min-width: 0; text-align: center; }
}
@media(max-width:480px) {
  .hero.ai-hero .hero-actions { align-items: stretch; flex-direction: column; }
  .hero.ai-hero .hero-actions .btn { text-align: center; }
}
/* At 320px keep the original two-line composition without clipping the longer phrase. */
@media(max-width:360px) { .hero.ai-hero h1 { font-size: 24px; } }

/* Restore the editorial bridge without changing the original hero above it. */
.journey-bridge {
  --green: var(--agent-ink);
  --coral: var(--agent);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1720px;
  margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  border-bottom: 1px solid var(--line);
}
.journey-bridge > p { color: #4b4b4b; font-size: 20px; line-height: 1.65; }
.journey-bridge .explore-link { justify-self: start; }
.journey-bridge .arrow-disc { flex-shrink: 0; }
.journey-bridge .explore-link:hover .arrow-disc { background: var(--agent); border-color: var(--agent); }
@media(max-width:680px) {
  .journey-bridge { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; padding-bottom: 32px; }
  .journey-bridge > p { font-size: 16px; }
}

/* Quieter hierarchy: product label on the right, no decorative counters. */
.journey { padding-top: 40px; }
.journey-bridge { padding-bottom: 24px; }
.journey-intro { grid-template-columns: minmax(0, 1fr) auto; }
.journey-intro .intro-aside { align-self: center; justify-self: end; margin: 0; padding: 0; display: block; }
.journey-intro h2 > span, .chapter h3 em { color: var(--agent); }
.demo-list .demo-title { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.demo-list a > span.demo-length { font-size: 11px; font-weight: 400; letter-spacing: normal; }
@media(max-width:680px) {
  .journey { padding-top: 32px; }
  .journey-intro { display: grid; grid-template-columns: 1fr; gap: 18px; }
  .demo-list .demo-title { font-size: 18px; }
  .demo-list a > span.demo-length { font-size: 10px; }
}

/* SCRUM-709: one actionable video frame, without an additional application bar. */
.journey .player { border: 0; border-radius: 0; overflow: visible; background: transparent; box-shadow: none; }
.journey .player-screen { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.journey .player-screen:focus-visible { outline: 3px solid var(--agent-ink); outline-offset: 3px; }
.player-expand-cue { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: #111; color: #fff; pointer-events: none; }
.player-expand-cue svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.journey .player-actions { justify-content: flex-start; padding: 4px 0; min-height: 48px; }
.journey .player-hint { font-size: 13px; line-height: 1.6; max-width: none; margin: 0 0 12px; color: #4b4b4b; }
#demo-dialog { padding: 0; border: 0; width: min(1280px, calc(100% - 24px)); max-height: calc(100svh - 24px); background: #000; color: #fff; overflow: auto; }
#demo-dialog .dialog-top { margin: 0; }
#demo-dialog .dialog-close { position: absolute; z-index: 2; right: 8px; top: 8px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: #111; color: #fff; }
#demo-dialog .dialog-close:focus-visible { outline-color: #fff; outline-offset: -5px; }
#demo-dialog .dialog-close span { font: 28px/1 system-ui, sans-serif; }
#dialog-video { max-height: calc(100svh - 24px); border-radius: 0; background: #000; object-fit: contain; }
#dialog-video:fullscreen { width: 100%; height: 100%; max-height: none; background: #000; object-fit: contain; }
#dialog-video::-webkit-full-screen { width: 100%; height: 100%; max-height: none; background: #000; object-fit: contain; }
#demo-dialog #dialog-error { padding: 16px; color: #fff; }
#demo-dialog #dialog-file { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; text-decoration: underline; }

/* Native compact-layout carousel; without enhancement the four chapters stay stacked. */
.chapter-switcher { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.chapter-switcher button { min-height: 44px; min-width: 0; padding: 8px 2px; border-radius: 5px; font-size: 12px; color: #555; }
.chapter-switcher button[aria-pressed="true"] { background: var(--agent); color: #111; font-weight: 500; }
.chapter-switcher button:focus-visible { outline-color: #111; outline-offset: 1px; }
.swipe-journey .journey-intro { margin-bottom: 20px; }
.swipe-journey .chapters { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 24px; align-items: start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding: 0; overscroll-behavior-x: contain; scrollbar-width: none; }
.swipe-journey .chapters::-webkit-scrollbar { display: none; }
.swipe-journey .chapter { min-width: 0; min-height: 0; display: block; padding: 20px 6px 12px; border: 0; scroll-snap-align: start; scroll-snap-stop: always; scroll-margin: 0; }
.swipe-journey .chapter-copy { max-width: none; }
.swipe-journey .chapter-kicker { font-size: 10px; margin-bottom: 12px; }
.swipe-journey .chapter h3 { font-size: clamp(28px, 6.8vw, 36px); margin-bottom: 16px; }
.swipe-journey .chapter-copy > p { font-size: 14px; line-height: 1.55; max-width: none; }
.swipe-journey .chapter blockquote { font-size: 16px; line-height: 1.45; margin: 16px 0 12px; padding-left: 12px; }
.swipe-journey .chapter-outcome { font-size: 11px; }
.swipe-journey .mobile-stage { margin-top: 20px; }
.swipe-journey .player-choices button { min-height: 44px; }
.swipe-journey .player-status { font-size: 10px; line-height: 1.5; margin-top: 10px; }
.swipe-journey .chapter a:focus-visible, .swipe-journey .chapter button:focus-visible { outline-offset: 2px; }
.chapter-swipe-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 20px; border-top: 1px solid var(--line); }
.chapter-swipe-controls > button { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #ccc; border-radius: 50%; font-size: 24px; }
.chapter-swipe-controls > button:hover:not(:disabled) { background: var(--agent); border-color: var(--agent); }
.chapter-swipe-controls > button:disabled { color: #888; border-color: #e8e7e4; }
.chapter-swipe-controls > span { font-size: 11px; color: #555; }
.swipe-cue { font-size: 18px; margin-left: 8px; }
.swipe-journey > .disclosure { margin-top: 0; }
@media(max-width:360px) { .chapter-switcher button { font-size: 10px; } }

.closing { padding: 48px var(--gutter); }
.closing-top { margin-bottom: 24px; }
.closing-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.closing h2 { font-size: clamp(32px, 3.4vw, 54px); line-height: 1.15; }
.closing-copy > p { margin-top: 28px; font-size: 16px; line-height: 1.8; }
.closing-action { min-width: 0; }
.closing-action .closing-cta { margin-top: 24px; width: fit-content; max-width: 100%; min-height: 48px; font-size: 17px; gap: 24px; }
.closing-action .closing-cta > span { font-size: 24px; }
.context-platforms { padding: 0; }
.platforms-heading { margin-bottom: 16px; }
.platforms-heading h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.platforms-heading p { font-size: 13px; line-height: 1.6; margin-top: 8px; }
.platform-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.platform-logos li { min-width: 0; background: #fff; border-radius: 8px; }
.platform-logos figure { margin: 0; padding: 12px 12px 10px; text-align: center; }
.platform-image { height: 40px; display: flex; align-items: center; justify-content: center; }
.platform-image img { display: block; width: 110px; height: auto; max-width: 100%; max-height: 36px; object-fit: contain; }
.platform-image .logo-sage { width: 68px; }
.platform-image .logo-jira { width: 90px; max-height: 100%; }
.platform-image .logo-outlook { width: 36px; height: 36px; }
.platform-logos figcaption { margin-top: 8px; font-size: 10px; line-height: 1.5; color: #4b4b4b; }
.platforms-footnote { margin-top: 16px; }
.platforms-footnote p { font-size: 13px; line-height: 1.6; }
.platforms-footnote small { display: block; margin-top: 8px; font-size: 11px; line-height: 1.6; }
@media (min-width:681px) and (max-width:1000px) {
  .closing-content { grid-template-columns: 1fr; gap: 28px; }
  .closing-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
  .closing-copy > p { margin-top: 0; font-size: 14px; }
}
@media(max-width:680px) {
  .closing { padding-top: 32px; padding-bottom: 32px; }
  .closing-top { margin-bottom: 20px; }
  .closing-content { grid-template-columns: 1fr; gap: 28px; }
  .closing h2 { font-size: clamp(28px, 7.4vw, 34px); }
  .closing-copy > p { margin-top: 20px; font-size: 14px; line-height: 1.7; }
  .closing-action .closing-cta { width: 100%; justify-content: space-between; margin-top: 20px; font-size: 16px; gap: 12px; }
  .platforms-heading h3 { font-size: 22px; }
  .platform-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
