/* A single environment and a single evolving ribbon tell the whole story. */
body[data-page=home]>.header{position:sticky;top:12px;z-index:30;background:color-mix(in srgb,var(--bg) 78%,transparent);width:calc(100% - 48px);margin:12px auto 0;padding-inline:22px;min-height:64px;border:1px solid color-mix(in srgb,var(--text) 14%,transparent);border-radius:999px;box-shadow:0 12px 35px #00000018;backdrop-filter:blur(18px) saturate(120%);-webkit-backdrop-filter:blur(18px) saturate(120%)}
body[data-page=home]>.header nav{gap:8px}
body[data-page=home]>.header nav a{font-weight:500;padding:9px 15px;border-radius:999px;background:linear-gradient(135deg,#eef9b5 0%,#c6e844 52%,#91a94e 100%);color:var(--ink);transition:transform .2s ease,filter .2s ease}
body[data-page=home]>.header nav a:hover{transform:translateY(-1px);filter:saturate(1.08) brightness(1.04)}
.cj-journey{height:650svh;background:var(--bg);color:var(--text)}
.cj-stage{position:sticky;top:76px;height:calc(100svh - 76px);min-height:460px;overflow:hidden;isolation:isolate;background:var(--bg)}
.cj-stage::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 75% 50%,color-mix(in srgb,var(--sage) 11%,transparent),transparent 65%);opacity:.55;transition:opacity 1s}
.cj-stage[data-chapter="3"]::before{opacity:1}.cj-stage[data-chapter="4"]::before,.cj-stage[data-chapter="5"]::before{opacity:.2}
.cj-composition{position:relative;width:min(1280px,calc(100% - 96px));height:100%;margin:auto;display:grid;grid-template-columns:1fr 1.1fr;gap:32px;align-items:center;padding:48px 0 105px}
.cj-story{position:absolute;z-index:2;left:calc(50% - 50vw);top:0;width:50vw;height:100%;perspective:1000px}
.cj-scene{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:left;will-change:transform,opacity;transform-origin:center;padding:32px 10vw 32px 5vw;background:transparent}
.cj-eyebrow{display:none}
.cj-scene h1,.cj-scene h2{font-family:'Space Grotesk',sans-serif;font-size:clamp(46px,5vw,76px);font-weight:500;line-height:1.07;letter-spacing:-.055em;margin:0;color:var(--text)}
.cj-scene em{font-style:normal;color:var(--text)}
.cj-description{font-size:20px;line-height:1.65;color:var(--text);max-width:33ch;margin:24px 0 0;text-wrap:pretty}
.cj-scene .button{margin-top:29px;gap:24px;background:var(--lime);color:var(--ink);font-size:17px}
.cj-scroll-hint{font-size:12px;color:var(--muted);margin-top:24px;display:flex;gap:16px;align-items:center}
.cj-visual{position:absolute;z-index:1;top:0;bottom:0;left:calc(50% - 50vw);width:150vw;display:flex;flex-direction:column;justify-content:center;min-width:0;transform-origin:50% 50%;will-change:transform;pointer-events:none}
.cj-signal{width:100%;height:100%;overflow:hidden;display:block;mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.cj-waypoint circle{fill:var(--bg);stroke:var(--sage);stroke-width:1.5}
.cj-waypoint text{fill:var(--muted);font-family:'Space Grotesk',sans-serif;font-size:12px;letter-spacing:1px}
.cj-waypoint.is-active circle{stroke:var(--text);stroke-width:2}
.cj-ribbon{fill:none;stroke:url(#cj-ribbon);stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.cj-ribbon-band{fill:url(#cj-material);stroke:none}
.cj-ribbon-edge{fill:none;stroke:#f2ffd1;stroke-width:1.2;stroke-linecap:round;opacity:.8}
.cj-ribbon{stroke-width:1;opacity:.25}
.cj-visual{backface-visibility:hidden}
.cj-story{transform-style:preserve-3d}
.cj-ribbon-shadow{fill:none;stroke:var(--sage);stroke-width:30;opacity:.12;stroke-linecap:round;transform:translateY(18px)}
.cj-your-voice{display:none!important}
.cj-traveler{fill:var(--text);stroke:var(--bg);stroke-width:3;filter:drop-shadow(0 0 4px rgb(32 37 27 / .35))}
.cj-voice-labels{position:absolute;left:12%;right:12%;top:12%;display:flex;justify-content:space-between;font-size:11px;color:var(--muted);opacity:0}
.cj-exchange{position:absolute;inset:0;pointer-events:none;opacity:0}.cj-exchange span{position:absolute;font-size:14px;color:var(--text)}.cj-exchange span:first-child{top:14%;left:8%}.cj-exchange span+span{bottom:14%;right:5%}
.cj-caption{height:32px;position:relative;font-size:11px;line-height:1.5;color:var(--muted);text-align:center;margin-top:5px}.cj-caption span{position:absolute;inset:0;opacity:0;transition:opacity .35s}.cj-caption .is-active{opacity:1}
.cj-duration{border:0;padding:0;margin:25px 0 0}.cj-duration legend{font-size:11px;color:var(--muted);margin-bottom:10px}.cj-duration>div{display:flex;gap:8px}.cj-duration button{border:1px solid var(--border);border-radius:50px;padding:10px 18px;background:transparent;color:var(--text);min-height:44px;font-size:16px}.cj-duration button span{font-size:12px}.cj-duration button[aria-pressed=true]{background:var(--text);color:var(--bg);border-color:var(--text)}.cj-selection{font-size:11px;color:var(--muted);margin:10px 0 0}
.cj-bottom{display:none}
.cj-chapters{display:flex;gap:8px}.cj-chapters a{width:38px;height:44px;display:grid;place-items:center;font-size:10px;color:var(--muted);position:relative}.cj-chapters a::after{content:"";position:absolute;bottom:0;left:10px;right:10px;height:2px;background:transparent}.cj-chapters a[aria-current=step]{color:var(--text)}.cj-chapters a[aria-current=step]::after{background:var(--sage)}.cj-position{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.cj-after{width:min(1280px,calc(100% - 96px));margin:auto;display:flex;align-items:center;justify-content:space-between;gap:25px;padding:50px 0}.cj-after p{font-size:20px;margin:0;letter-spacing:-.5px}.cj-after a{font-size:13px;text-decoration:underline;text-underline-offset:6px}
.cj-accent-word{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-weight:600;letter-spacing:-.02em;color:var(--lime)}
.cj-static .cj-journey{height:auto}.cj-static .cj-stage{position:relative;top:auto;height:auto;overflow:visible}.cj-static .cj-composition{display:flex;flex-direction:column;padding-block:55px}.cj-static .cj-story{position:relative;left:auto;top:auto;height:auto;width:100%}.cj-static .cj-scene{position:relative;min-height:420px;padding-block:35px}.cj-static .cj-bottom{display:none}.cj-static .cj-visual{max-width:650px;width:100%}
@media(max-width:900px){.cj-composition{width:calc(100% - 56px);gap:20px}.cj-scene h1,.cj-scene h2{font-size:clamp(38px,5.6vw,55px)}.cj-bottom{left:28px;right:28px}.cj-description{font-size:16px}}
@media(max-width:600px){
 body[data-page=home]>.header{top:10px;width:calc(100% - 28px);margin-top:10px;min-height:56px;padding-inline:15px;gap:9px}body[data-page=home]>.header .brand{font-size:22px}body[data-page=home]>.header nav{margin-left:auto;gap:5px;font-size:11px}body[data-page=home]>.header nav a{padding:8px 10px}body[data-page=home]>.header .theme-button{min-height:36px;width:36px;padding:0}body[data-page=home]>.header .theme-button span{display:none}
 .cj-journey{height:560svh}.cj-stage{top:68px;height:calc(100svh - 68px);min-height:530px}.cj-composition{width:calc(100% - 40px);display:flex;flex-direction:column;justify-content:flex-start;gap:0;padding:18px 0 70px}.cj-story{position:relative;left:auto;top:auto;width:100%;height:335px;flex-shrink:0;z-index:3}.cj-scene{padding:24px 22px}.cj-eyebrow{margin-bottom:20px;font-size:9px}.cj-scene h1,.cj-scene h2{font-size:clamp(37px,10.5vw,52px)}.cj-description{font-size:15px;line-height:1.6;max-width:330px;margin-top:18px}.cj-scene .button{min-height:48px;margin-top:22px;padding:13px 23px;font-size:14px}.cj-scroll-hint{margin-top:16px;font-size:10px}.cj-visual{left:calc(50% - 50vw);top:42%;bottom:0;width:100vw;height:58%;max-width:none}.cj-signal{max-height:none;height:100%;transform:scale(.78);transform-origin:center center}.cj-voice-labels,.cj-exchange{display:none}.cj-caption{font-size:10px;margin-top:0;height:20px}.cj-bottom{bottom:17px;left:20px;right:20px;padding-top:7px}.cj-chapters{gap:0}.cj-chapters a{width:34px}.cj-exchange span{font-size:11px}.cj-voice-labels{font-size:10px}.cj-duration{margin-top:18px}.cj-duration button{padding:8px 16px}.cj-after{width:calc(100% - 40px);display:block;padding:35px 0}.cj-after p{font-size:18px;margin-bottom:17px}
}
@media(max-width:365px){body[data-page=home]>.header nav{font-size:11px;gap:10px}body[data-page=home]>.header .brand{font-size:20px}.cj-scene h1,.cj-scene h2{font-size:36px}}
@media(max-height:700px) and (max-width:600px){.cj-stage{min-height:490px}.cj-story{height:310px}.cj-signal{max-height:115px}.cj-composition{padding-top:12px;padding-bottom:90px}.cj-caption{margin-top:0}.cj-scene h1,.cj-scene h2{font-size:36px}.cj-description{font-size:14px;margin-top:15px}}
@media(prefers-reduced-motion:reduce){.cj-caption span,.cj-stage::before{transition:none}}
@media(max-width:600px){body{overflow-x:hidden}.cj-stage{overflow:hidden}.cj-visual{overflow:hidden;left:4vw;width:92vw;top:34%;height:66%;justify-content:flex-start;padding-top:4%}.cj-signal{overflow:hidden;mask-image:none;transform:scaleY(1.35);transform-origin:center center;height:calc(100% - 42px);flex:none}.cj-caption{height:34px;flex:none;margin-top:0;z-index:2}}

/* Keep the story readable: one headline and one supporting thought at a time. */
.cj-scene h1,.cj-scene h2{line-height:1.12;letter-spacing:-.04em}
.cj-caption{visibility:hidden}
.cj-stage[data-chapter="5"] .cj-caption{visibility:visible;font-size:12px;color:var(--text)}
.cj-duration legend,.cj-selection{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:600px){
 .cj-eyebrow{font-size:11px;letter-spacing:1px}
 .cj-description{font-size:17px;line-height:1.65;max-width:31ch;margin-top:22px}
 .cj-scene h1,.cj-scene h2{font-size:clamp(36px,9.7vw,48px);line-height:1.14;letter-spacing:-.035em}
 .cj-story{height:320px}
}
@media(max-height:700px) and (max-width:600px){.cj-description{font-size:16px}.cj-story{height:300px}}
/* Mobile copy and ribbon occupy separate rows; no viewport-percentage overlap. */
@media(max-width:600px){
 .cj-stage{top:76px;height:calc(100svh - 76px);min-height:600px}
 .cj-composition{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(180px,1fr);align-content:stretch;align-items:stretch;width:100%;padding:20px 0 16px;gap:24px}
 .cj-story{display:block;position:relative;left:auto;top:auto;width:100%;height:350px;min-height:0;transition:height .25s ease}
 .cj-scene{position:absolute;inset:0 0 auto;padding:0 24px;justify-content:flex-start;min-width:0}
 .cj-scene h1,.cj-scene h2{font-size:clamp(32px,9.4vw,44px)}
 .cj-description{font-size:16px;line-height:1.55;margin-top:20px}
 .cj-visual{position:relative;inset:auto;width:100%;height:100%;min-height:0;padding:0;display:grid;grid-template-rows:minmax(0,1fr) 30px;overflow:hidden}
 .cj-signal{width:100%;height:100%;max-height:none;min-height:0;transform:none;overflow:hidden}
 .cj-caption{position:relative;height:30px;margin:0;padding:0 16px}
 .cj-caption span{padding:0 16px}
}
