/* Reversible experiment: sources → unified table → enrichment → thesis. */
@media(min-width:769px){
.workflow-first-screen{--workflow-canvas-height:max(760px,calc(100svh - 74px));height:var(--workflow-canvas-height);position:relative;overflow:visible}
.workflow-first-screen .product-hero{height:100%;z-index:2}
.workflow-first-screen .product-hero-message{top:calc(50svh - 72px)}
.workflow-first-screen .hero-staging-table{position:absolute;top:calc(50svh - 282px);left:48px;width:calc(100% - 96px);height:360px;max-height:360px;margin:0;border:1px solid rgba(0,0,0,.1);border-radius:10px;z-index:1;pointer-events:none}
.workflow-first-screen .hero-staging-table:after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at center,#fff 18%,rgba(255,255,255,.97) 42%,rgba(255,255,255,.70) 75%,rgba(255,255,255,.3));pointer-events:none}
.workflow-first-screen .hero-flow-tracks{z-index:0}
.orbit-source-left,.orbit-source-right{top:calc(50svh - 374px)}
.orbit-source-left{left:calc(28% - 90px)}.orbit-source-right{left:calc(72% - 90px)}
.orbit-middle-left,.orbit-middle-right{top:calc(50svh + 118px)}
.orbit-middle-left{left:calc(28% - 90px)}.orbit-middle-right{left:calc(72% - 90px)}
.orbit-inner-left.graph-filter-pill,.orbit-inner-right.graph-filter-pill{top:calc(50svh + 218px)}
.orbit-inner-left.graph-filter-pill{left:28%}.orbit-inner-right.graph-filter-pill{left:72%}
.hero-graph-lines{overflow:visible}
.thesis-section{position:relative}
.thesis-section:before,.thesis-section:after{content:'';position:absolute;top:0;height:48px;width:1px;background:#d5d5d5}
.thesis-section:before{left:28%}.thesis-section:after{left:72%}
}
@media(min-width:769px) and (max-height:760px){
.orbit-source-left,.orbit-source-right{top:24px}
.workflow-first-screen .hero-staging-table{top:120px}
.workflow-first-screen .product-hero-message{top:300px}
.orbit-middle-left,.orbit-middle-right{top:520px}
.orbit-inner-left.graph-filter-pill,.orbit-inner-right.graph-filter-pill{top:620px}
}
@media(min-width:769px) and (max-width:1000px){.orbit-source-left,.orbit-middle-left{left:calc(28% - 80px)}.orbit-source-right,.orbit-middle-right{left:calc(72% - 80px)}}
@media(max-width:768px){
.workflow-first-screen{position:relative;height:920px;padding:0}
.workflow-first-screen .product-hero{height:100%;padding:0;z-index:2}
.workflow-first-screen .product-hero-message{position:absolute;top:240px;left:16px;width:calc(100% - 32px);z-index:3}
.workflow-first-screen .product-hero-message h1{font-size:36px}
.workflow-first-screen .product-hero-message>p{font-size:14px;line-height:1.6}
.workflow-first-screen .hero-staging-table{position:absolute;top:200px;left:16px;width:calc(100% - 32px);height:400px;max-height:400px;margin:0;z-index:1;pointer-events:none}
.workflow-first-screen .hero-staging-table:after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse,#fff 20%,rgba(255,255,255,.95) 50%,rgba(255,255,255,.4));pointer-events:none}
.hero-flow-tracks{position:absolute;inset:0;margin:0;padding:0;height:100%;display:block}
.hero-flow-tracks .graph-card{position:absolute;width:calc(50% - 32px);left:16px;top:64px}
.hero-flow-tracks .orbit-source-right,.hero-flow-tracks .orbit-middle-right,.hero-flow-tracks .orbit-inner-right.graph-filter-pill{left:auto;right:16px}
.hero-flow-tracks .orbit-middle-left,.hero-flow-tracks .orbit-middle-right{top:664px}
.hero-flow-tracks .orbit-inner-left.graph-filter-pill,.hero-flow-tracks .orbit-inner-right.graph-filter-pill{top:792px}
.hero-flow-tracks .graph-card:after{height:72px}
.hero-flow-tracks .orbit-middle-left:before,.hero-flow-tracks .orbit-middle-right:before{content:'';position:absolute;bottom:100%;left:50%;height:64px;border-left:1px solid #ddd}
.hero-flow-tracks .graph-filter-pill:after{height:96px}
.thesis-section{position:relative}
.thesis-section:before,.thesis-section:after{content:'';position:absolute;top:0;height:32px;width:1px;background:#ddd}
.thesis-section:before{left:25%}.thesis-section:after{left:75%}
}

/* Split layout experiment: copy at left, a complete workflow at right. */
.hero-save-audience{position:absolute;display:flex;align-items:center;justify-content:center;gap:12px;background:#fff;border:1px solid rgba(0,0,0,.15);border-radius:10px;padding:12px 24px;height:60px;z-index:2}
.hero-save-audience>span{font-size:24px;color:#666}.hero-save-audience small{display:block;font-size:9px;color:#999;margin-bottom:4px}.hero-save-audience strong{display:block;font-size:12px;font-weight:500}
.thesis-section:before,.thesis-section:after{display:none}
@media(min-width:769px){
.workflow-first-screen{height:max(780px,calc(100svh - 74px));--workflow-canvas-height:max(780px,calc(100svh - 74px));background-image:none}
.workflow-first-screen:after{content:'';position:absolute;left:45%;right:0;top:0;bottom:0;background-image:radial-gradient(rgba(0,0,0,.15) .7px,transparent .8px);background-size:16px 16px;pointer-events:none}
.workflow-first-screen .product-hero-message{left:40px;top:50%;transform:translateY(-50%);width:calc(45% - 64px);max-width:none;text-align:left;justify-items:start;display:flex;flex-direction:column;align-items:flex-start;gap:0}
.workflow-first-screen .product-hero-message h1{font-size:44px;margin:24px 0;line-height:1.12}
.workflow-first-screen .product-hero-message>p{font-size:16px;line-height:1.7;margin:0}
.workflow-first-screen .product-hero-message .desktop-break{display:none}
.workflow-first-screen .product-hero-message .product-actions{margin-top:24px;justify-content:flex-start}
.workflow-first-screen .hero-staging-table{left:48%;top:190px;width:49%;height:240px;max-height:240px;border-radius:10px;z-index:2}
.workflow-first-screen .hero-staging-table:after{display:none}
.workflow-first-screen .hero-staging-table table{min-width:900px;font-size:11px}
.workflow-first-screen .hero-staging-table .staging-table-viewport{overflow:hidden}
.orbit-source-left{left:calc(61% - 80px);top:64px;width:160px}
.orbit-source-right{left:calc(85% - 80px);top:64px;width:160px}
.orbit-middle-left{left:calc(61% - 80px);top:478px;width:160px}
.orbit-middle-right{left:calc(85% - 80px);top:478px;width:160px}
.orbit-inner-left.graph-filter-pill{left:61%;top:578px}
.orbit-inner-right.graph-filter-pill{left:85%;top:578px}
.hero-save-audience{left:73%;top:670px;transform:translateX(-50%);white-space:nowrap}
}
@media(min-width:769px) and (max-width:1000px){
.workflow-first-screen .product-hero-message{left:24px;width:calc(43% - 40px)}
.workflow-first-screen .product-hero-message h1{font-size:36px}
.graph-card.orbit-source-left,.graph-card.orbit-source-right,.graph-card.orbit-middle-left,.graph-card.orbit-middle-right{width:144px}
.orbit-source-left,.orbit-middle-left{left:calc(61% - 72px)}.orbit-source-right,.orbit-middle-right{left:calc(85% - 72px)}
.graph-card.graph-filter-pill{min-width:128px;padding:6px 8px;font-size:9px}
}
@media(max-width:768px){
.workflow-first-screen{height:1240px}
.workflow-first-screen .product-hero-message{top:48px;align-items:flex-start;text-align:left}
.workflow-first-screen .product-hero-message h1{margin:16px 0}
.workflow-first-screen .product-hero-message .product-actions{justify-content:flex-start;margin-top:16px}
.hero-flow-tracks .graph-card.orbit-source-left,.hero-flow-tracks .graph-card.orbit-source-right{top:410px}
.workflow-first-screen .hero-staging-table{top:540px;height:240px;max-height:240px;pointer-events:auto}
.workflow-first-screen .hero-staging-table:after{display:none}
.hero-flow-tracks .orbit-middle-left,.hero-flow-tracks .orbit-middle-right{top:844px}
.hero-flow-tracks .orbit-inner-left.graph-filter-pill,.hero-flow-tracks .orbit-inner-right.graph-filter-pill{top:972px}
.hero-save-audience{top:1110px;left:50%;transform:translateX(-50%);white-space:nowrap}
}
.workflow-first-screen .hero-staging-table{pointer-events:auto}
.workflow-first-screen .hero-staging-table .staging-table-viewport{overflow-x:auto;overflow-y:hidden}
@media(max-width:768px){.hero-graph-lines{display:block}.hero-flow-tracks .graph-card:before,.hero-flow-tracks .graph-card:after{display:none}}

/* The workflow builds its own table, then commits into the full-width Audience. */
.hero-company-table{position:absolute;background:#fff;border:1px solid rgba(0,0,0,.15);border-radius:10px;padding:16px;width:260px;z-index:2}
.company-table-node-heading{display:flex;align-items:center;gap:8px;color:#111}.company-table-node-heading>span{font-size:20px;color:#666}.company-table-node-heading strong{font-size:13px;font-weight:500}.company-table-node-heading small{font-size:9px;color:#999;margin-left:auto}
.company-table-fields{display:flex;gap:16px;margin-top:12px;padding-top:12px;border-top:1px solid rgba(0,0,0,.08);font-size:10px;color:#888}
.hero-audience-table-label{height:40px;flex-shrink:0;padding:12px 24px;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:500;border-bottom:1px solid rgba(0,0,0,.08);background:#fff}
.hero-audience-table-label small{font-size:10px;font-weight:400;color:#888;margin-left:auto}
@media(min-width:769px){
.workflow-first-screen{height:auto;min-height:0;--workflow-canvas-height:560px}
.workflow-first-screen:after{bottom:242px}
.workflow-first-screen .product-hero{height:560px}
.workflow-first-screen .hero-staging-table{position:relative;top:auto;left:auto;width:calc(100% - 96px);height:242px;max-height:242px;margin:0 auto;border-bottom:0;border-radius:10px 10px 0 0}
.workflow-first-screen .hero-staging-table table{min-width:1040px;font-size:12px}
.orbit-source-left,.orbit-source-right{top:48px}
.hero-company-table{left:73%;top:188px;transform:translateX(-50%)}
.orbit-middle-left,.orbit-middle-right{top:340px}
.orbit-inner-left.graph-filter-pill,.orbit-inner-right.graph-filter-pill{top:456px}
}
@media(max-width:768px){
.workflow-first-screen{height:auto}
.workflow-first-screen .product-hero{height:1030px}
.hero-company-table{top:556px;left:50%;transform:translateX(-50%);width:240px}
.hero-flow-tracks .orbit-middle-left,.hero-flow-tracks .orbit-middle-right{top:744px}
.hero-flow-tracks .orbit-inner-left.graph-filter-pill,.hero-flow-tracks .orbit-inner-right.graph-filter-pill{top:900px}
.workflow-first-screen .hero-staging-table{position:relative;top:auto;left:auto;width:calc(100% - 32px);height:242px;max-height:242px;margin:0 auto;border-bottom:0}
.hero-audience-table-label{padding-inline:16px}.hero-audience-table-label small{font-size:9px}
}

/* The staging table uses the same icon-and-label pattern as other nodes. */
.hero-company-table{display:flex;align-items:center;gap:16px;width:224px;height:80px;padding:16px;border-radius:10px}
.staging-node-icon{width:24px;height:24px;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#666}
.staging-node-icon svg{width:24px;height:24px}
.staging-node-copy{flex:1;min-width:0}
.staging-node-copy small{display:block;font-size:9px;color:#999;padding-bottom:6px;margin-bottom:6px;border-bottom:1px solid rgba(0,0,0,.08)}
.staging-node-copy strong{display:block;font-size:13px;font-weight:500;color:#111}
@media(min-width:769px){.workflow-first-screen .hero-staging-table{width:calc(100% - 48px)}}
.hero-company-table{text-align:left}

/* Match the shared node pattern and the header's 32px content inset. */
.hero-company-table{width:160px;height:60px;padding:12px;gap:8px}
.staging-node-icon{width:24px;height:24px}
.staging-node-icon svg{width:20px;height:20px}
.staging-node-copy small{padding:0;margin:0 0 4px;border:0;font-size:9px}
.staging-node-copy strong{font-size:11px;font-weight:500}
@media(min-width:769px){
.workflow-first-screen .product-hero-message{left:31px}
.workflow-first-screen .hero-staging-table{width:calc(100% - 62px)}
}
@media(min-width:769px) and (max-width:1000px){.hero-company-table{width:144px;padding:10px}}
.hero-company-table{gap:12px}.staging-node-copy strong{font-size:12px}
@media(min-width:769px) and (max-width:1000px){.hero-company-table{gap:8px}.staging-node-copy strong{font-size:11px}}
@media(max-width:768px){.workflow-first-screen .product-hero-message{left:19px;width:calc(100% - 38px)}.workflow-first-screen .hero-staging-table{width:calc(100% - 38px)}}

/* Consistent framed icons, using the original local brand assets. */
.hero-flow-tracks .orbit-icon,.hero-company-table .staging-node-icon{width:24px;height:24px;flex:0 0 24px;border:1px solid rgba(0,0,0,.10);border-radius:5px;background:#fff;overflow:hidden}
.hero-flow-tracks .orbit-icon img{display:block;width:100%;height:100%;object-fit:cover}
.hero-flow-tracks .orbit-icon svg,.hero-company-table .staging-node-icon svg{width:16px;height:16px}
.hero-flow-tracks .graph-symbol{font-size:16px;line-height:20px;width:100%;height:100%}
.workflow-run-line{stroke:#2563eb;stroke-width:2;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.2s ease;pointer-events:none}
.workflow-run-line.run-filled{stroke-dashoffset:0}
.workflow-run-status{position:absolute;right:8px;top:-10px;border-radius:999px;padding:3px 7px;font-size:9px;line-height:1.2;background:#fff;color:#888;border:1px solid rgba(0,0,0,.10);white-space:nowrap}
.workflow-run-status:empty{display:none}
.run-triggered{border-color:rgba(37,99,235,.4)!important}
.run-triggered>.workflow-run-status,.run-busy>.workflow-run-status{color:#2563eb;border-color:rgba(37,99,235,.25);background:#f5f8ff}
.run-busy{border-color:rgba(37,99,235,.4)!important}
.run-busy>.workflow-run-status:before{content:'';display:inline-block;width:7px;height:7px;border:1px solid #cbd5e1;border-top-color:#2563eb;border-radius:50%;margin-right:4px;animation:staging-spin .8s linear infinite}
.run-success>.workflow-run-status{color:#16805c;border-color:rgba(16,185,129,.25);background:#f4fbf7}
.run-success>.workflow-run-status:before{content:'✓';margin-right:3px}
.hero-audience-table-label{position:relative}.hero-audience-table-label>.workflow-run-status{top:12px;right:16px}.hero-audience-table-label.run-success small{visibility:hidden}
.workflow-demo-control{position:absolute;right:32px;top:12px;background:#fff;border:1px solid rgba(0,0,0,.1);border-radius:999px;font:400 10px Inter,sans-serif;color:#888;padding:5px 10px;z-index:4;cursor:pointer}
.workflow-demo-control:hover{color:#111;border-color:#aaa}
@media(prefers-reduced-motion:reduce){.workflow-run-line{transition:none}.run-busy>.workflow-run-status:before{animation:none}}
/* Match the progress line to the active node border. */
.workflow-run-line{stroke:rgba(37,99,235,.4)}

/* On larger displays the complete hero fills the space below the header. */
@media(min-width:769px){
.workflow-first-screen{--split-canvas-height:max(560px, calc(100svh - 316px));height:auto;min-height:calc(100svh - 74px)}
.workflow-first-screen .product-hero{height:var(--split-canvas-height)}
.workflow-first-screen:after{bottom:242px}
.orbit-source-left,.orbit-source-right{top:calc(var(--split-canvas-height) * .085714)}
.hero-company-table{top:calc(var(--split-canvas-height) * .335714)}
.orbit-middle-left,.orbit-middle-right{top:calc(var(--split-canvas-height) * .607143)}
.orbit-inner-left.graph-filter-pill,.orbit-inner-right.graph-filter-pill{top:calc(var(--split-canvas-height) * .814286)}
}

/* The Audience sheet rises over the pinned workflow, then hands off to thesis. */
@media(min-width:769px){
.workflow-first-screen{isolation:isolate;overflow:visible}
.workflow-first-screen:after{display:none}
.workflow-first-screen .product-hero{position:sticky;top:72px;z-index:1;background:#fff}
.workflow-first-screen .product-hero:before{content:'';position:absolute;left:45%;right:0;top:0;bottom:0;background-image:radial-gradient(rgba(0,0,0,.15) .7px,transparent .8px);background-size:16px 16px;pointer-events:none}
.workflow-first-screen .hero-staging-table{position:relative;z-index:3;height:calc(100svh - 72px);max-height:none;min-height:562px;border-bottom:1px solid rgba(0,0,0,.1);background:#fff}
.workflow-first-screen .staging-table-viewport{background:repeating-linear-gradient(to bottom,transparent 0,transparent 39px,rgba(0,0,0,.06) 39px,rgba(0,0,0,.06) 40px)}
.thesis-section{background:#fff;position:relative;z-index:4}
}
@media(prefers-reduced-motion:reduce){.workflow-first-screen .product-hero{position:relative;top:auto}}

/* A compact Audience and thesis sheet pauses for a scroll-led reading beat. */
.workflow-reading-sheet{background:#fff}
.workflow-first-screen.reading-scene{height:var(--reading-height);min-height:0}
.reading-scene .workflow-reading-stage{position:sticky;top:72px;height:calc(100svh - 72px);overflow:hidden}
.reading-scene .product-hero{position:absolute;inset:0 0 auto;top:0}
.reading-scene .workflow-reading-sheet{position:absolute;top:0;left:0;right:0;z-index:3;min-height:100%;padding-top:31px;transform:translateY(var(--sheet-offset));will-change:transform}
.reading-scene .hero-staging-table{height:calc((100svh - 72px) / 2 - 31px);min-height:0;max-height:none;border-radius:10px;border-bottom:1px solid rgba(0,0,0,.1)}
.reading-scene .thesis-section{height:calc((100svh - 72px) / 2);padding:32px;gap:24px;border:0;min-height:0;align-items:flex-start;text-align:left;justify-content:center}
.reading-scene .thesis-section h2{font-size:clamp(28px,2.7vw,36px);margin-top:16px;color:var(--thesis-heading,#999)}
.reading-scene .thesis-section .intro-copy p,.reading-scene .thesis-source{color:var(--thesis-copy,#999)}
.reading-scene .thesis-section .intro-copy p{line-height:1.7}
@media(min-height:900px){.reading-scene .thesis-section{gap:32px}}
@media(max-height:760px){.reading-scene .thesis-section{padding:24px 32px;gap:16px}.reading-scene .thesis-section h2{font-size:28px}.reading-scene .thesis-section .intro-copy p+p{margin-top:16px}}

/* Scroll reveals each word from left to right in sentence order. */
.reading-scene .thesis-reading-word{display:inline-block;background:linear-gradient(to right,var(--reading-ink,#111) 0%,var(--reading-ink,#111) var(--word-reveal,0%),#999 var(--word-reveal,0%),#999 100%);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}

.thesis-reading-accent{--reading-ink:#2563eb;color:#2563eb}
.reading-scene .thesis-icon-box{filter:grayscale(1);opacity:.4;transition:filter .15s linear,opacity .15s linear}
.reading-scene .thesis-icon-box.reading-icon-revealed{filter:grayscale(0);opacity:1}
.reading-scene .thesis-icon-box.reading-icon-revealed svg{color:#111}

/* Leave the connector visible above the sheet until it reaches its stop. */
.reading-scene .workflow-reading-sheet{background:linear-gradient(to bottom,transparent 31px,#fff 31px)}
.reading-scene .workflow-reading-sheet:before{content:'';position:absolute;inset:0 0 auto;height:31px;background:#fff;opacity:var(--sheet-cap-opacity,0);pointer-events:none}
