.refined{--paper:#f4f3ec;--ink:#243024;--muted:#667060;--orange:#b64a25;--line:#d1d5c8;--surface:#fafaf4;--mono:Consolas,monospace;background:var(--paper);color:var(--ink)}
.refined .wrap{width:min(1200px,calc(100% - 64px));margin-inline:auto}
.refined a:focus-visible,.refined button:focus-visible{outline:2px solid var(--orange);outline-offset:5px}
.intro{display:grid;grid-template-columns:1.03fr 1fr;gap:65px;padding-block:58px 40px;align-items:center}
.intro-eyebrow{font:11px var(--mono);letter-spacing:1.6px;color:var(--muted);margin-bottom:19px}
.refined h1{font-size:clamp(44px,4.7vw,68px);font-weight:850;line-height:1.02;letter-spacing:-.055em;margin:0 0 20px}
.refined h1>span>span{color:#52694c}
.intro-actions{display:flex;align-items:center;gap:28px;margin-top:25px}.refined .button.primary{background:var(--orange);border:1px solid var(--orange);color:#fff;font-size:14px;padding:12px 21px;border-radius:4px;box-shadow:none}.source-link{font-size:14px;font-weight:650}
.intro-license{display:flex;gap:16px;font:10px var(--mono);color:var(--muted);margin-top:19px;flex-wrap:wrap}
.content-band>.wrap{position:relative}.refined .block{padding:34px 0;border:0;margin:0}.section-no{font:11px var(--mono);color:#a15836;display:block;margin-bottom:10px}.refined .block h2,.ecosystem-heading h2{font-size:28px;letter-spacing:-.04em;margin-bottom:12px}.refined .block>p{font-size:14px;line-height:1.7;color:var(--muted)}
.band-skillbridge{padding-top:24px;padding-bottom:15px;background:#fafaf5}.refined .compare{margin-top:24px;font-size:14px;border-collapse:collapse;width:100%}.refined .compare thead th:nth-child(2){background:#e7eddf;border-top:3px solid #718763}.refined .compare tbody td:nth-child(2){background:#edf1e7}.refined .compare th,.refined .compare td{padding:12px 18px;border-color:#d6dbcd}.refined .compare tbody th{width:24%;font-size:13px}.refined .compare code{font-size:12px}.refined #skillbridge .note{font-size:11px;margin-top:12px}
.band-start{border-top:1px solid var(--line);padding-block:12px 20px}.refined #start{display:grid;grid-template-columns:.55fr 1fr;gap:0 45px}.refined #start .section-no{grid-column:1}.refined #start h2{grid-column:1;grid-row:2}.refined #start .note{grid-column:1;grid-row:3;font-size:14px;align-self:start;max-width:320px}.refined #start .code{grid-column:2;grid-row:1/5;overflow:visible;margin-top:10px;border:1px solid #c0c9b3;border-radius:0 4px 4px 4px;box-shadow:4px 5px #d4dcc9;background:#fafbf4;position:relative}.refined #start .code:before{content:'INSTALLATION';position:absolute;top:-22px;left:-1px;height:22px;border:1px solid #c0c9b3;border-bottom:0;border-radius:5px 10px 0 0;padding:3px 12px;font:10px var(--mono);background:#e3e9da;color:#657854}.refined .code-head{background:#e9eddf;font-size:12px}.refined .code pre{font-size:12px;line-height:1.8;overflow:auto;padding:16px 20px}.refined .note a{color:#944726;text-decoration:underline}
.band-docs{background:#ecefe5;border-block:1px solid #cdd6c0}.refined #docs{display:grid;grid-template-columns:.55fr 1fr;gap:0 45px}.refined #docs .section-no,.refined #docs h2{grid-column:1}.refined #docs .links{grid-column:2;grid-row:1/4;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:0 28px}.refined .links li{display:block;padding:12px 0;border-bottom:1px solid #cbd3bf}.refined .links li>a{font-size:16px;font-weight:700}.refined .links li>span{display:block;font-size:12px;margin-top:3px;color:#66735d}
.ecosystem-area{padding-block:40px 30px;--paper:#efeee8;--orange:#b64a25;--ink:#243024;--muted:#667060;--line:#cad0c0;--mono:Consolas,monospace}.ecosystem-heading p{font-size:14px;color:#66735d;margin-bottom:25px}.refined .ecosystem-area .archive{border:1px solid #c3cbb8;background:#eff1e8}.refined .ecosystem-area .collection-bar{padding:16px 20px;gap:12px}.refined .ecosystem-area .collection-bar .eyebrow{display:none}.refined .ecosystem-area .collection-bar button{font-size:12px}
@media(max-width:1000px){.intro{gap:30px;padding-top:40px}.refined .wrap{width:calc(100% - 40px)}.refined h1{font-size:48px}}
@media(max-width:760px){.intro{grid-template-columns:1fr;gap:35px;padding-block:30px}.refined h1{font-size:clamp(42px,8vw,60px)}.refined .block h2,.ecosystem-heading h2{font-size:26px}.refined #start,.refined #docs{display:block}.refined #start .code{margin-top:35px}.refined #start .note{margin-top:25px;max-width:none}.refined #docs .links{margin-top:20px}.refined .compare tbody th{width:100%}.refined .compare td{padding:12px}}
@media(max-width:420px){.refined .wrap{width:calc(100% - 32px)}.refined h1{font-size:42px}.refined #docs .links{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.refined *, .refined *:before, .refined *:after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

/* Revision 2: engineering folios, phosphor display and punched archive cards. */
.intro{padding-top:42px;padding-bottom:30px}
.intro-eyebrow{letter-spacing:.8px;font-size:11px;display:flex;align-items:center;gap:10px}
.intro-eyebrow:before{content:'';width:20px;height:9px;background:repeating-linear-gradient(90deg,#b64a25 0 3px,transparent 3px 5px);flex:none}
.refined h1{position:relative;font-weight:900;letter-spacing:-.06em}
.refined h1>span>span{position:relative;background:linear-gradient(105deg,#52694c 15%,#52694c 36%,#ad582e 48%,#52694c 60%,#52694c 85%);background-size:260% 100%;background-clip:text;-webkit-background-clip:text;color:transparent;animation:title-pass 2.8s ease-out both}
.refined h1:after{content:'';position:absolute;bottom:-9px;left:0;width:76px;height:3px;background:#b64a25;transform-origin:left;animation:rule-reveal 1s ease-out both}.intro-actions{gap:20px}.source-link{font-size:13px}.refined .button.primary{font-size:13px;padding:12px 16px}
@keyframes title-pass{from{background-position:100% 0}to{background-position:0 0}}@keyframes rule-reveal{from{transform:scaleX(0)}to{transform:scaleX(1)}}
/* Reference manuals share one shelf; only the folded spine carries an edge. */
.band-docs{background:linear-gradient(180deg,#e6eadf,#dce3d1);border-top:1px solid #c4cdb9;border-bottom:0}
.refined #docs{display:block;padding-block:28px 34px}.refined #docs .section-no{display:inline-block;margin-right:13px}.refined #docs h2{display:inline-block;margin:0}
.refined #docs .links{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:end;gap:0;margin:27px 0 0;padding:0 8px 11px;counter-reset:manual;border-bottom:2px solid #8b997d;box-shadow:0 5px 0 #cbd3c0,0 9px 12px -8px #526247}
.refined #docs .links li{position:relative;counter-increment:manual;min-height:165px;padding:37px 15px 17px 20px;border:0;background:linear-gradient(90deg,#bfc9b2 0,#edf0e3 3px,#f5f4e9 12px);box-shadow:6px 0 8px -6px #42513566;transition:transform .25s;transform-origin:bottom left;z-index:1}
.refined #docs .links li:nth-child(2n){min-height:151px;background:linear-gradient(90deg,#aebea0,#e3e9d7 5px,#e8eddd 12px)}
.refined #docs .links li:nth-child(3n){min-height:177px}
.refined #docs .links li:before{content:'0' counter(manual);position:absolute;top:12px;left:20px;font:11px Consolas,monospace;color:#9d4f2b;border-bottom:2px solid #9d4f2b;width:26px;padding-bottom:4px}
.refined #docs .links li:after{content:'';position:absolute;bottom:7px;left:13px;right:8px;height:4px;border-block:1px solid #c7cebb}
.refined #docs .links li:hover,.refined #docs .links li:focus-within{transform:translateY(-8px);z-index:2;box-shadow:7px 4px 12px -7px #42513566}
.refined #docs .links li>a{font-size:17px;letter-spacing:-.03em}.refined #docs .links li>span{font-size:12px;line-height:1.6;margin-top:13px}
@media(max-width:1000px){.refined #docs .links{grid-template-columns:repeat(3,minmax(0,1fr))}.intro-actions{flex-wrap:wrap;gap:13px}.intro-eyebrow{font-size:10px;letter-spacing:0}}
@media(max-width:760px){.intro{padding-block:28px}.refined #docs .links{grid-template-columns:repeat(2,minmax(0,1fr))}.refined #docs .links li{min-height:126px}}
@media(max-width:440px){.intro-actions{gap:18px}.source-link{font-size:12px}.intro-eyebrow{font-size:10px}.refined .button.primary{padding-inline:12px}}
@media(prefers-reduced-motion:reduce){.refined h1>span>span{background:none;color:#52694c}.refined #docs .links li:hover{transform:none}}

/* Keep the same physical hierarchy at narrower widths. */
@media(max-width:1000px){.refined #docs .links{gap:20px 0}.refined #docs .links li{min-height:145px}.refined #docs .links li:nth-child(2n){min-height:135px}.refined #docs .links li:nth-child(3n){min-height:155px}}

@media(prefers-reduced-motion:reduce){.refined #docs .links li:hover,.refined #docs .links li:focus-within{transform:none}}
@media(max-width:760px){.intro{gap:25px}}

/* Readable type is part of the routing: one input, a typographic hub, three tools. */
.intro-stage{position:relative;overflow:hidden;isolation:isolate}
.intro{position:relative;display:block;padding-block:44px 36px;min-height:720px}
.intro-copy{position:relative;z-index:1;width:46%;max-width:550px}
.hero-flow{position:absolute;width:min(65%,720px);right:-8%;top:-12px;margin:0;pointer-events:none}
.hero-flow svg{display:block;width:100%;height:auto;overflow:hidden}
.intro-actions{margin-top:20px}
.refined h1>span>span{animation:none;background:none;color:#52694c}
.refined h1:after{display:none}
.band-skillbridge{background:var(--paper);padding-top:12px}
.band-skillbridge>.wrap:before{content:none}
@media(min-width:1400px){.hero-flow{width:760px;right:-12%;top:-25px}.intro{min-height:740px}}
@media(max-width:1100px) and (min-width:761px){.intro-copy{width:49%}.hero-flow{width:59%;right:-8%;top:35px}.intro{min-height:665px}.refined h1{font-size:clamp(42px,4.6vw,51px)}}
@media(max-width:760px){.intro{padding-block:28px 18px;min-height:0}.intro-copy{width:100%;max-width:none}.hero-flow{position:relative;width:115%;right:auto;top:auto;margin:12px -10% 0 -5%}.hero-flow svg{max-height:none}.band-skillbridge{padding-top:0}}
@media(max-width:760px){.hero-flow .system-caption{font-size:19px;letter-spacing:0}}

/* Transit curves: motion follows the topology; names sit outside every path. */
.hero-flow{pointer-events:none;user-select:none}
/* Constant-time compositor animation: no per-frame SVG stroke/fill changes. */
.system-motion{position:absolute;left:0;top:0;width:720px;height:775px;transform-origin:0 0;pointer-events:none}
.system-packet,.system-node-light{position:absolute;display:block;margin:0;border:0;border-radius:50%;background:#d65328;opacity:0;will-change:transform,opacity}
.system-packet{width:9px;height:9px;left:0;top:0}
.system-reduced .system-motion{display:none}
/* Start in the render-blocking stylesheet, before any module or observer runs.
   CSS completes the entrance even if JavaScript fails; no-JS stays static. */
@media(prefers-reduced-motion:no-preference){
  .js .hero-flow .system-routes>.route-draw,.js .hero-flow .system-guides path{stroke-dasharray:100;animation:system-route-reveal .65s ease-out both}
  .js .hero-flow .system-routes>.route-output{animation-duration:1.1s;animation-delay:.65s}
  .js .hero-flow .system-guides .companion-output{animation-duration:1.4s;animation-delay:.35s}
}
@keyframes system-route-reveal{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}



@media(max-width:760px){.hero-flow{margin-bottom:24px}.hero-flow .system-tool{font-size:41px}}
.system-reduced .system-routes>.route-draw,.system-reduced .system-guides path{animation:none;stroke-dasharray:none}
.type-study .intro-actions{margin-top:18px}
.type-study .intro-license{font-size:11px}

/* Large two-line headline, with a single staggered entrance. */
.refined h1.hero-title{font-size:clamp(54px,6.4vw,84px);line-height:1.08;letter-spacing:-.06em;width:138%;max-width:780px;margin-bottom:0}
.refined h1.hero-title .headline-line{display:block;overflow:hidden;padding:0 .04em .12em 0;background:none;color:#243024;animation:none}
.refined h1.hero-title .headline-line+ .headline-line{color:#52694c;margin-top:-.04em}
.hero-title .headline-word{display:block;white-space:nowrap;animation:headline-slide .85s cubic-bezier(.16,1,.3,1) both;animation-delay:.08s}
.hero-title .headline-line+ .headline-line .headline-word{animation-delay:.3s}
@keyframes headline-slide{from{transform:translateX(-64px);opacity:0}to{transform:translateX(0);opacity:1}}
.type-study .intro-actions{margin-top:14px}
.type-study .intro-license{margin-top:14px}
@media(max-width:760px){.refined h1.hero-title{font-size:clamp(39px,12.1vw,76px);width:100%;max-width:none}}
@media(prefers-reduced-motion:reduce){.hero-title .headline-word{animation:none;transform:none;opacity:1}}

/* Two continuous paragraphs; only the core capability names carry emphasis. */
.hero-summary{max-width:510px;margin-top:23px;color:#4f5d47}
.hero-summary p{margin:0;font-size:16px;line-height:1.65;text-wrap:pretty;letter-spacing:0}
.hero-summary p+p{margin-top:17px}
.hero-summary strong{font-size:inherit;font-weight:700;color:#30432b}
.hero-summary p+p strong{font-weight:600}
.type-study .hero-summary+.intro-actions{margin-top:23px}
@media(max-width:1100px){.hero-summary p{font-size:15px;line-height:1.65}}

/* Bring Difference directly under the hero with a full-width archival green band. */
.intro{min-height:min(760px,calc(70vw - 40px));padding-bottom:22px}
.band-skillbridge{background:#e5eadc;padding-block:0 8px;border-top:1px solid #d1d9c6}
.refined .band-skillbridge .block{padding-top:27px;padding-bottom:28px}
@media(min-width:1400px){.intro{min-height:810px}}
@media(max-width:1100px) and (min-width:761px){.intro{min-height:calc(63.5vw + 20px)}}
@media(max-width:760px){.intro{min-height:0;padding-bottom:6px}.hero-flow{margin-bottom:0}.refined .band-skillbridge .block{padding-top:24px}}

/* Shared interface labels and an explicit non-live architecture caption. */
.hero-flow svg :is(.interface-label,.system-caption){font-size:18px;font-weight:600;letter-spacing:1px;fill:#425563}
.hero-flow svg .diagram-footer{fill:#627984;letter-spacing:.6px;font-weight:500}
@media(max-width:760px){.hero-flow svg :is(.interface-label,.system-caption){font-size:21px}.hero-flow svg .diagram-footer{font-size:12px}.hero-flow svg .diagram-footer:first-of-type{font-size:14px}}

/* Reference sections use the same numbered headings and cool technical-paper bands. */
.band-architecture{background:#f0f6fa;border-block:1px solid #c7d9e4}
.band-cite{background:#fff;border-bottom:1px solid #c7d9e4}
.refined #architecture,.refined #cite{padding-block:38px 42px}
.refined #architecture>p{font:inherit;color:inherit}
.refined #cite>p{font:14px/1.75 var(--sans);color:#52616a}
.refined #architecture a{color:#294e63;text-decoration:underline;text-underline-offset:3px}
.refined #cite .code{margin:22px 0;background:#f8fbfc;border:1px solid #c7d9e4}
.refined #cite .code-head{background:#eaf1f5;color:#425563}
.refined #cite .code pre{font:13px/1.8 var(--mono);white-space:pre-wrap;overflow-wrap:anywhere;padding:20px}
@media(max-width:760px){.refined #cite .code pre{font-size:12px;padding:14px}}
