/* Scoped connection study, adapted from the supplied kinetic review. */
.connection-intro { background: #1a1a1a; color: #fff; padding: 72px 0; }
.connection-intro .container { display: grid; grid-template-columns: 1.5fr 1fr; align-items: end; gap: 56px; }
.connection-eyebrow { color: #ff899c; font-size: 11px; letter-spacing: .16em; margin-bottom: 20px; }
.connection-intro h2 { font-size: clamp(36px, 4.5vw, 64px); line-height: 1.05; letter-spacing: -.04em; }
.connection-intro h2 span { color: #b7bbc0; }
.connection-intro p:not(.connection-eyebrow) { color: #c8cbd0; margin-bottom: 24px; }
.connection-intro a { color: #fff; font-size: 12px; letter-spacing: .08em; text-underline-offset: 6px; }
#connection-study { --study-header: 148px; color: #252b31; background: #e8e9e6; scroll-margin-top: var(--study-header); }
#connection-study .narrative { height: 245vh; position: relative; }
#connection-study .sticky { position: sticky; top: var(--study-header); height: calc(100svh - var(--study-header)); min-height: 420px; overflow: hidden; }
#connection-study .stage { position: absolute; inset: 0 0 0 21%; background: radial-gradient(ellipse at 55% 42%, #fcfcf9, #e4e6e1 70%); }
#connection-study canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
#connection-study .stage.dragging canvas { cursor: grabbing; }
#connection-study .scene-top { position: absolute; top: 24px; left: 4%; right: 4%; display: flex; justify-content: space-between; gap: 16px; pointer-events: none; font: 10px monospace; letter-spacing: .05em; }
#connection-study .chapters { position: absolute; left: 4%; top: 17%; width: 200px; pointer-events: none; }
#connection-study .chapter { opacity: .3; margin-bottom: 26px; transition: opacity .4s; }
#connection-study .chapter.active { opacity: 1; }
#connection-study .chapter b { color: #9a0c23; font-size: 10px; letter-spacing: .1em; }
#connection-study .chapter h2 { font-size: 23px; letter-spacing: -.03em; line-height: 1.1; margin: 8px 0; }
#connection-study .chapter p { font-size: 12px; line-height: 1.6; color: #505c65; }
#connection-study .hud { position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 16px; border: 1px solid #b8bec0; border-radius: 4px; background: #f8f9f5f2; max-width: 94%; z-index: 5; }
#connection-study button { min-height: 44px; border: 1px solid #899398; border-radius: 3px; padding: 10px 12px; background: transparent; color: #252b31; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
#connection-study button:hover { background: #e1e4df; }
#connection-study button:disabled { opacity: .45; cursor: default; }
#connection-study #kinetic-toggle { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
#connection-study input { width: 130px; min-height: 44px; accent-color: var(--primary-color); }
#connection-study .control-row { display: flex; gap: 8px; }
#connection-study .scene-note { position: absolute; bottom: 14px; left: 4%; right: 4%; display: flex; justify-content: space-between; gap: 20px; font: 10px monospace; color: #4b555b; pointer-events: none; }
#connection-study .scene-note span:last-child { max-width: 310px; text-align: right; }
#connection-study .rail { position: absolute; bottom: 0; width: 100%; height: 3px; background: #d3d8d0; }
#connection-study .rail i { display: block; height: 100%; width: 0; background: var(--primary-color); }
#connection-study .mobile-leaders { display: none; position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
#connection-study .mobile-leaders line { stroke: #c8102e; stroke-width: 1; stroke-opacity: .65; }
#kinetic-callouts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#connection-study .callout { position: absolute; left: 0; top: 0; display: flex; align-items: center; white-space: nowrap; opacity: 0; pointer-events: none; font: 11px Arial, sans-serif; }
#connection-study .callout.l { flex-direction: row-reverse; }
#connection-study .callout .dot { width: 6px; height: 6px; border-radius: 50%; background: #c8102e; flex: none; }
#connection-study .callout .lead { width: 25px; height: 1px; background: #c8102e80; flex: none; }
#connection-study .callout .txt { padding: 5px 8px; background: #f8f9f2ed; border: 1px solid #bbc1b7; border-radius: 3px; }
#connection-study .tip { position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; padding: 9px 12px; background: #252b31; color: #fff; font-size: 12px; z-index: 6; }
#connection-study .tip b { display: block; }
#connection-study .tip span { color: #d3d8da; font-size: 11px; }
#connection-study .fallback { position: absolute; left: 10%; right: 10%; top: 35%; padding: 24px; background: #f8f9f2; border-left: 3px solid var(--primary-color); font-size: 16px; }
#connection-study.ready .fallback { display: none; }
#connection-study:not(.ready) canvas, #connection-study.unavailable canvas { visibility: hidden; }
#connection-study.unavailable .fallback { display: block; }
#connection-study:not(.ready) .narrative, #connection-study.unavailable .narrative { height: calc(100svh - var(--study-header)); min-height: 520px; }
#connection-study :is(button, input):focus-visible, .connection-intro a:focus-visible { outline: 3px solid #c8102e; outline-offset: 4px; }
@media (max-width: 1000px) {
    #connection-study .stage { inset: 150px 0 185px; }
    #connection-study .chapters { left: 5%; right: 5%; top: 55px; width: auto; }
    #connection-study .chapter { display: none; }
    #connection-study .chapter.active { display: block; }
    #connection-study .chapter h2 { font-size: 21px; margin: 3px 0; }
    #connection-study .chapter h2 br { display: none; }
    #connection-study .chapter p { max-width: 450px; }
    #connection-study .hud { flex-wrap: wrap; width: max-content; bottom: 65px; gap: 6px; padding: 8px; }
    #connection-study .hud button { padding: 8px; font-size: 11px; }
    #connection-study .control-row { justify-content: center; flex-wrap: wrap; gap: 6px; }
    #connection-study .scene-note { font-size: 8px; gap: 16px; }
    #connection-study .scene-note span { max-width: 48%; }
    #connection-study .tip { display: none; }
    #connection-study .callout { font-size: 9.5px; white-space: normal; }
    #connection-study .callout .txt { max-width: 124px; padding: 3px 4px; line-height: 1.15; }
    #connection-study .callout .dot, #connection-study .callout .lead { display: none; }
    #connection-study .mobile-leaders { display: block; }
    #connection-study .fallback { top: 10%; font-size: 13px; padding: 12px; }
}
@media (max-width: 768px) {
    .connection-intro { padding: 48px 0; }
    .connection-intro .container { grid-template-columns: 1fr; gap: 24px; }
    #connection-study .scene-top { font-size: 8px; top: 18px; }
    #connection-study .narrative { height: 200vh; }
}
@media (prefers-reduced-motion: reduce) {
    #connection-study .narrative { height: calc(100svh - var(--study-header)); min-height: 520px; }
    #connection-study .chapter { transition: none; }
}
