/* A scroll-scrubbed city journey: three layered scenes with native scrolling. */
.hero-journey { position:relative; height:320svh; background:#ece6f7; }
.journey-viewport {
  --journey-progress:0; --journey-ink:#241c31; --journey-muted:#62566d;
  --journey-panel:rgba(255,255,255,.5); --journey-border:rgba(255,255,255,.7);
  --journey-accent:#6037c8;
  position:sticky; top:0; height:100svh; overflow:hidden; isolation:isolate;
  color:var(--journey-ink); background:#ece6f7; min-height:600px;
}
.journey-scenes,.journey-scene { position:absolute; inset:0; z-index:-3; }
.journey-scene { opacity:0; overflow:hidden; will-change:opacity; }
.journey-scene-day { opacity:1; background:radial-gradient(ellipse at 18% 28%,#fafbe1,transparent 50%),#e5dcf5; }
.journey-scene-night { background:#23143c; }
.journey-scene-sidewalk { background:radial-gradient(ellipse at 15% 30%,#f5f7de,transparent 65%),#e8ead8; }
.scene-art { position:absolute; inset:0; will-change:transform; }
.scene-art img { width:100%; height:100%; object-fit:cover; }
.journey-scene-day .scene-art { left:27%; right:-12%; top:8%; bottom:3%; }
.journey-scene-day .scene-art img { object-fit:cover; object-position:center; filter:saturate(1.08) contrast(1.04); mask-image:radial-gradient(ellipse 70% 66% at 58% 55%,#000 49%,transparent 98%); }
.journey-scene-night .scene-art { inset:-9%; }
.journey-scene-night .scene-art img { object-position:67% center; filter:saturate(1.2) brightness(.92); }
.journey-scene-night:after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,rgba(24,11,43,.9),rgba(31,16,54,.54) 35%,rgba(31,16,54,.06) 75%),linear-gradient(0deg,rgba(24,11,43,.7),transparent 50%); }
.journey-scene-sidewalk .scene-art { left:33%; right:-9%; top:-8%; bottom:-8%; }
.journey-scene-sidewalk .scene-art img { filter:saturate(1.15) contrast(1.02); object-position:60% center; mask-image:linear-gradient(90deg,transparent,#000 37%); }
.journey-scene-sidewalk:after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,rgba(240,242,222,.25),transparent 65%),linear-gradient(0deg,rgba(229,232,207,.58),transparent 50%); }
.scene-glow { position:absolute; border-radius:50%; filter:blur(30px); pointer-events:none; will-change:transform; }
.glow-one { width:44vw; height:44vw; right:-14vw; bottom:-18vw; background:radial-gradient(circle,rgba(142,94,218,.47),transparent 70%); }
.glow-two { width:36vw; height:36vw; left:-15vw; top:18%; background:radial-gradient(circle,rgba(241,255,183,.55),transparent 70%); }
.glow-night { width:45vw; height:45vw; right:-20vw; top:-20vw; background:radial-gradient(circle,rgba(166,104,251,.35),transparent 70%); }
.journey-grain { position:absolute; inset:0; z-index:-1; opacity:.10; pointer-events:none; background-image:repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(77,50,113,.05) 3px); }
.journey-heading { position:absolute; top:17%; left:var(--pad); z-index:4; will-change:transform; }
.journey-heading>.eyebrow { margin-bottom:23px; font-size:9px; color:var(--journey-muted); letter-spacing:.12em; }
.journey-dot { width:7px; height:7px; background:var(--journey-accent); border-radius:50%; box-shadow:0 0 0 4px color-mix(in srgb,var(--journey-accent) 10%,transparent); }
.journey-heading h1 { font-size:clamp(69px,8vw,137px); line-height:.99; letter-spacing:-.072em; font-weight:800; }
.journey-word { display:block; overflow:hidden; padding:0 10px 13px 0; margin-bottom:-10px; }
.journey-word>span { display:block; animation:journey-letter-rise 1.15s cubic-bezier(.16,1,.3,1) both; }
.journey-word:last-child>span { color:var(--journey-accent); animation-delay:.12s; }
.journey-intro { position:absolute; bottom:21%; left:var(--pad); width:clamp(250px,25vw,340px); z-index:5; padding-top:20px; border-top:1px solid color-mix(in srgb,var(--journey-ink) 18%,transparent); will-change:transform; }
.journey-intro-label { font-family:var(--display); font-size:21px; line-height:1.35; letter-spacing:-.025em; color:var(--journey-ink); margin-bottom:14px; }
.journey-intro>p:not(.journey-intro-label) { font-size:12px; line-height:1.65; max-width:275px; color:var(--journey-muted); }
.journey-cta { display:inline-flex; position:relative; overflow:hidden; align-items:center; gap:38px; margin-top:21px; padding:14px 20px; color:#241c31; border:1px solid rgba(255,255,255,.67); border-radius:12px; background:rgba(236,243,180,.85); box-shadow:0 8px 30px rgba(48,26,87,.11); font-size:12px; font-weight:700; transition:transform .3s,box-shadow .3s; }
.journey-cta:before { content:''; position:absolute; inset:0; background:#fff; transform:translateX(-102%); transition:transform .7s cubic-bezier(.16,1,.3,1); }
.journey-cta>span { z-index:1; }
.journey-cta>span:last-child { font-size:24px; line-height:1; }
.journey-cta:hover { transform:translateY(-3px); box-shadow:0 15px 35px rgba(48,26,87,.18); }
.journey-cta:hover:before { transform:translateX(0); }
.journey-note { position:absolute; right:var(--pad); top:18%; width:210px; z-index:5; padding:22px; border:1px solid var(--journey-border); border-radius:22px; background:var(--journey-panel); backdrop-filter:blur(22px) saturate(1.25); -webkit-backdrop-filter:blur(22px) saturate(1.25); box-shadow:0 18px 50px rgba(30,14,58,.13),inset 0 1px 0 rgba(255,255,255,.4); }
.journey-note-top { display:flex; align-items:center; gap:11px; font-size:8px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; margin-bottom:21px; color:var(--journey-muted); }
.journey-note-rule { height:1px; width:24px; background:currentColor; opacity:.4; }
.journey-note h2 { font-size:25px; line-height:1.14; letter-spacing:-.055em; color:var(--journey-ink); margin-bottom:14px; }
.journey-note p { font-size:10px; line-height:1.65; color:var(--journey-muted); }
.journey-chapter-link { display:flex; justify-content:space-between; gap:14px; align-items:center; margin-top:21px; padding-top:14px; border-top:1px solid color-mix(in srgb,var(--journey-ink) 15%,transparent); font-size:9px; font-weight:700; }
.journey-chapter-link>span { font-size:19px; line-height:1; }
.journey-note.chapter-copy-enter .journey-note-top,.journey-note.chapter-copy-enter h2,.journey-note.chapter-copy-enter p,.journey-note.chapter-copy-enter .journey-chapter-link { animation:journey-note-copy-rise .28s cubic-bezier(.22,1,.36,1) both; }
.journey-note.chapter-copy-enter h2 { animation-delay:.035s; }
.journey-note.chapter-copy-enter p { animation-delay:.07s; }
.journey-note.chapter-copy-enter .journey-chapter-link { animation-delay:.105s; }
.walking-scene { position:absolute; inset:0; pointer-events:none; z-index:3; }
.foreground-crossing { position:absolute; bottom:12%; left:33%; width:90%; height:18%; display:flex; gap:4%; perspective:600px; opacity:.18; mix-blend-mode:soft-light; transform:perspective(800px) rotateX(52deg) rotateZ(-12deg) translateX(var(--crossing-x,0px)); transform-origin:50% 100%; will-change:transform; }
.foreground-crossing span { flex:1; background:linear-gradient(0deg,rgba(255,255,255,.8),rgba(255,255,255,.45)); border-radius:2px; box-shadow:0 5px 15px rgba(65,44,81,.06); }
.walking-route { position:absolute; left:33%; right:-12%; bottom:15%; height:1px; border-bottom:1px dashed color-mix(in srgb,var(--journey-ink) 24%,transparent); opacity:.25; transform:rotate(-10deg); }
.floating-wayfinding { position:absolute; left:73%; bottom:24%; display:flex; gap:16px; align-items:center; padding:14px 20px; border:1px solid var(--journey-border); border-radius:16px; background:var(--journey-panel); backdrop-filter:blur(20px); box-shadow:0 18px 45px rgba(37,18,63,.15); font-size:10px; line-height:1.6; transform:translateY(var(--wayfinding-y,0px)) rotate(6deg); }
.wayfinding-arrow { font-size:30px; color:var(--journey-accent); }
.journey-footer { position:absolute; bottom:5%; left:var(--pad); right:var(--pad); display:flex; gap:24px; align-items:center; justify-content:space-between; z-index:6; color:var(--journey-muted); }
.journey-scroll-cue { display:flex; align-items:center; gap:13px; font-size:9px; letter-spacing:.06em; text-transform:uppercase; }
.journey-scroll-cue>span:first-child { display:grid; place-items:center; width:40px; height:40px; border:1px solid color-mix(in srgb,var(--journey-ink) 22%,transparent); border-radius:50%; font-size:21px; animation:journey-cue 2.4s ease-in-out infinite; }
.journey-chapters { display:flex; gap:7px; }
.journey-chapters button { min-height:44px; border:1px solid color-mix(in srgb,var(--journey-ink) 13%,transparent); color:var(--journey-muted); background:var(--journey-panel); padding:11px 15px; border-radius:24px; font-size:9px; font-weight:600; display:flex; align-items:center; gap:9px; transition:background .3s,color .3s,border-color .3s; }
.journey-chapters button>span { font-size:8px; opacity:.6; }
.journey-chapters button[aria-pressed="true"] { background:var(--journey-ink); color:var(--journey-panel-text,#fff); border-color:var(--journey-ink); }
.journey-chapters button:hover { border-color:var(--journey-accent); }
.journey-count { font-size:9px; letter-spacing:.08em; white-space:nowrap; }
.journey-progress { position:absolute; bottom:0; height:4px; left:0; right:0; z-index:8; background:rgba(255,255,255,.12); }
.journey-progress>span { display:block; height:100%; width:100%; transform-origin:left; transform:scaleX(var(--journey-progress)); background:var(--journey-accent); }
.effects-off .journey-word>span,.effects-off .journey-scroll-cue>span:first-child { animation:none; }
.effects-off .journey-note,.effects-off .floating-wayfinding { backdrop-filter:none; -webkit-backdrop-filter:none; }
@keyframes journey-letter-rise { from{transform:translateY(120%);opacity:0}to{transform:translateY(0);opacity:1} }
@keyframes journey-note-copy-rise { from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)} }
@keyframes journey-cue { 0%,100%{transform:translateY(0)}50%{transform:translateY(5px)} }
@media(min-width:1600px){.journey-note{width:245px;padding:27px}.journey-note h2{font-size:30px}.journey-note p{font-size:12px}.journey-heading{top:18%}.journey-intro-label{font-size:25px}.journey-intro>p:not(.journey-intro-label){font-size:14px}}
@media(max-width:1100px) and (min-width:761px){.journey-note{right:35px;width:185px;padding:19px}.journey-note h2{font-size:23px}.journey-heading h1{font-size:8.4vw}.journey-intro{width:245px}.journey-intro-label{font-size:19px}.journey-chapters button{padding:10px 12px;font-size:8px}.journey-footer{gap:15px}.floating-wayfinding{left:72%;padding:12px 16px}}
@media(max-width:760px){
  .hero-journey{height:290svh}.journey-viewport{min-height:650px}
  .journey-heading{top:15%;left:var(--pad);right:var(--pad)}
  .journey-heading>.eyebrow{font-size:7px;margin-bottom:20px;letter-spacing:.08em}
  .journey-heading h1{font-size:clamp(47px,13vw,80px);line-height:1.02;letter-spacing:-.065em}
  .journey-word{padding-bottom:10px;margin-bottom:-7px}
  .journey-scene-day .scene-art{left:-25%;right:-49%;top:15%;bottom:17%;opacity:.8}
  .journey-scene-sidewalk .scene-art{left:-9%;right:-26%;top:-8%;bottom:-8%}
  .journey-scene-sidewalk .scene-art img{mask-image:linear-gradient(0deg,#000,transparent 85%)}
  .journey-scene-night:after{background:linear-gradient(180deg,rgba(23,10,39,.75),rgba(23,10,39,.2) 65%,rgba(23,10,39,.65))}
  .journey-heading{z-index:5}
  .journey-intro{bottom:19%;left:var(--pad);width:44%;padding-top:14px}
  .journey-intro-label{font-size:16px;line-height:1.35;margin-bottom:11px}
  .journey-intro>p:not(.journey-intro-label){font-size:10px;line-height:1.6}
  .journey-cta{font-size:10px;gap:20px;padding:11px 13px;margin-top:15px;border-radius:10px}
  .journey-cta>span:last-child{font-size:20px}
  .journey-note{top:37%;right:var(--pad);width:155px;padding:15px;border-radius:17px}
  .journey-note-top{font-size:6px;gap:8px;margin-bottom:13px}.journey-note-rule{width:18px}
  .journey-note h2{font-size:19px;margin-bottom:10px}.journey-note p{font-size:8px;line-height:1.5}
  .journey-chapter-link{font-size:8px;margin-top:13px;padding-top:10px}
  .foreground-crossing{left:24%;width:110%;bottom:16%;height:15%;gap:5%}
  .floating-wayfinding{display:none}.walking-route{bottom:18%;left:25%;right:-30%}
  .journey-footer{bottom:4%;left:var(--pad);right:var(--pad);display:grid;grid-template-columns:1fr auto;gap:14px}
  .journey-scroll-cue{font-size:7px;gap:10px}.journey-scroll-cue>span:first-child{width:31px;height:31px;font-size:17px}
  .journey-count{font-size:8px}
  .journey-chapters{grid-column:1/-1;grid-row:2;gap:6px;width:100%}
  .journey-chapters button{flex:1;justify-content:center;padding:10px 9px;font-size:8px;gap:6px;min-height:42px}
  .journey-chapters button>span{font-size:7px}
  .scene-glow{filter:blur(20px)}.glow-one{width:85vw;height:85vw;right:-35vw;bottom:-25vw}.glow-two{width:70vw;height:70vw;left:-35vw;top:22%}
}

/* Keep the pinned canvas within the real viewport, including landscape phones. */
.journey-viewport { min-height:0; }
@media(max-width:760px) {
  .journey-note { top:34%; }
  .journey-note p { display:none; }
  .journey-intro { bottom:22%; }
  .journey-footer { bottom:10%; }
}
@media(max-height:520px) {
  .journey-viewport { min-height:0; }
  .journey-heading { top:25%; right:auto; width:46%; }
  .journey-heading>.eyebrow { font-size:7px; margin-bottom:12px; }
  .journey-heading h1 { font-size:clamp(32px,5.8vw,69px); }
  .journey-intro { width:32%; bottom:20%; border-top:0; padding-top:0; }
  .journey-intro-label,.journey-intro>p:not(.journey-intro-label) { display:none; }
  .journey-cta { margin-top:0; padding:11px 15px; font-size:10px; gap:25px; }
  .journey-note { top:25%; width:160px; padding:14px; }
  .journey-note-top { margin-bottom:12px; }
  .journey-note h2 { font-size:20px; }
  .journey-note p { display:none; }
  .journey-chapter-link { margin-top:12px; padding-top:10px; }
  .foreground-crossing { bottom:18%; height:13%; }
  .floating-wayfinding { display:none; }
  .journey-footer { bottom:5%; display:flex; justify-content:flex-start; }
  .journey-scroll-cue,.journey-count { display:none; }
  .journey-chapters { width:auto; max-width:65%; grid-row:auto; gap:7px; }
  .journey-chapters button { flex:none; min-height:39px; font-size:8px; padding:10px 13px; }
}

/* Independent scroll offsets reveal depth between existing glass layers. */
.journey-note { transform:translate3d(0,var(--note-y,0px),0); will-change:transform; }
.floating-wayfinding { transform:translate3d(var(--wayfinding-x,0px),var(--wayfinding-y,0px),0) rotate(6deg); will-change:transform; }
@media(max-height:520px) {
  .journey-note { left:auto; right:var(--pad); }
}
