/* This page shares the home scene's palette and typeface, but lets the story scroll normally. */
.about-page{--journey-gap:48px;--journey-header-height:86px;--journey-accent:#f3bc62;--journey-paper:var(--cream,#fffbe7);--journey-text:#60543f;--journey-subtle:#7a6747;min-height:100svh}
.journey-header{position:sticky;top:0;z-index:20;justify-content:space-between;gap:20px;min-height:calc(var(--journey-header-height) + env(safe-area-inset-top));padding-bottom:8px;background:var(--black,#090b0a)}
.journey-back{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:10px 15px;color:#e8e5d7;border-radius:25px;font-size:15px;font-weight:800;line-height:1.35;flex-shrink:0;transition:color .16s,background .16s}
.journey-back:hover{color:var(--cream,#fffbe7);background:#202319}
.journey-back-arrow,.journey-step-arrow{display:block;width:10px;height:10px;flex-shrink:0;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg)}
.journey-back-arrow,.journey-step-arrow.is-previous{transform:rotate(-135deg)}
.journey{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--journey-gap);align-items:start;width:100%;max-width:1240px;margin:0 auto;padding:18px max(32px,env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(32px,env(safe-area-inset-left));isolation:isolate}
.journey-stage{position:sticky;top:calc(var(--journey-header-height) + env(safe-area-inset-top) + 16px);grid-column:1;grid-row:1;min-width:0;align-self:start;z-index:2}
.journey-scene{position:relative;width:100%;max-width:620px;height:clamp(340px,48svh,540px);margin:0 auto;user-select:none;touch-action:pan-y;isolation:isolate;opacity:1;transition:opacity .18s ease}
.journey-scene canvas{display:block;width:100%;height:100%;outline:none}
.journey-scene-fallback{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.journey-fallback-image{display:block;width:min(80%,340px);height:auto;max-height:90%;object-fit:contain}
.journey-fallback-image[src$="favicon.svg"]{width:72px;height:72px;opacity:.8}
.journey-loader{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.journey-loader span{width:25px;height:18px;border-radius:75% 10% 75% 10%;background:var(--green,#bcd77e);transform:rotate(-25deg);animation:journey-leaf 1.4s ease-in-out infinite}
.journey-location{display:flex;align-items:center;justify-content:center;gap:11px;min-height:44px;margin:5px auto 8px;padding:0 8px;text-align:center;color:var(--cream,#fffbe7)}
.journey-position{flex-shrink:0;color:var(--journey-accent);font-size:13px;font-weight:900;line-height:1.4;white-space:nowrap}
.journey-location p{margin:0;max-width:29ch;font-size:18px;font-weight:800;line-height:1.4;text-wrap:balance}
.journey-route{margin:0 auto;max-width:470px}
.journey-route ol{display:flex;align-items:stretch;justify-content:center;gap:5px;list-style:none;margin:0;padding:0}
.journey-route li{display:flex;min-width:0}
.journey-route a{display:flex;align-items:center;justify-content:center;min-height:46px;padding:10px 14px;border-radius:24px;color:#bfc5b6;font-size:14px;font-weight:800;line-height:1.35;text-align:center;transition:background .16s,color .16s}
.journey-route a:hover{color:var(--cream,#fffbe7);background:#202319}
.journey-route a[aria-current=location],.journey-route a[aria-current=page],.journey-route a[aria-current=true]{background:var(--yellow,#fff0a5);color:#695b3b;box-shadow:0 3px 0 #bba66c}
.journey-route a:focus-visible{outline-offset:4px}

.journey-stories{grid-column:2;grid-row:1;min-width:0;min-height:0;transition:opacity .24s ease;opacity:1;touch-action:pan-y}
.journey-story{position:relative;min-width:0;margin:0 0 32px;padding:36px clamp(27px,3.2vw,44px) 39px;color:var(--journey-text);background:var(--journey-paper);border-radius:45px 51px 43px 48px / 36px 42px 34px 39px;box-shadow:0 4px 0 #d8cfaa;scroll-margin-top:calc(var(--journey-header-height) + env(safe-area-inset-top) + var(--journey-reading-nav,0px) + 24px);overflow-wrap:break-word}
.journey-story:last-of-type{margin-bottom:0}
.journey-story:focus{outline:none}
.journey-story:focus-visible{outline:2px solid #80965e;outline-offset:5px}
.journey-story-heading{margin:0 0 26px}
.journey-story h2{margin:0;font-size:clamp(30px,3.1vw,42px);font-weight:900;line-height:1.12;letter-spacing:-.8px;text-wrap:balance}
.journey-story-location{margin:8px 0 0!important;color:var(--journey-subtle);font-size:15px!important;line-height:1.45!important;font-weight:800!important}
.journey-story p{margin:0 0 22px;font-size:17px;line-height:1.78;font-weight:600}
.journey-story :is(p,ul,ol,blockquote){max-width:62ch}
.journey-story p:last-child{margin-bottom:0}
.journey-story h3{margin:0 0 15px;font-size:23px;line-height:1.3;font-weight:900;letter-spacing:-.25px;text-wrap:balance}
.journey-story h4{margin:27px 0 10px;font-size:18px;line-height:1.4;font-weight:850}
.journey-section,.journey-story :is(h2,h3,h4,[id]){scroll-margin-top:calc(var(--journey-header-height) + env(safe-area-inset-top) + var(--journey-reading-nav,0px) + 24px)}
.journey-section + .journey-section{margin-top:40px}
.journey-story>p+.journey-section{margin-top:36px}
.journey-story .journey-lead{margin-bottom:27px;font-size:20px;line-height:1.6;font-weight:750;max-width:48ch}
.journey-story .journey-chapter-links{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 18px;margin:0 0 34px;padding:10px 0 11px;border-top:1px solid #ddd2b7;border-bottom:1px solid #ddd2b7}
.journey-story .journey-chapter-links a{display:inline-flex;align-items:center;min-height:44px;padding:7px 0;color:#526c37;font-size:14px;font-weight:800;line-height:1.4;text-decoration-thickness:1px;text-underline-offset:4px}
.journey-story .journey-chapter-links a:hover{color:#2c4718;text-decoration-thickness:2px}
.journey-story .journey-chapter-links :is(ol,ul){display:contents;list-style:none;margin:0;padding:0}
.journey-story .journey-chapter-links li{margin:0;padding:0}
.journey-story .journey-quote,.journey-story blockquote{margin:30px 0;padding:2px 0 2px 19px;border-left:3px solid #c4cc91;color:#526342}
.journey-story blockquote p{font-size:19px;line-height:1.65;font-weight:750}
.journey-story blockquote cite{display:block;margin-top:12px;font-size:14px;line-height:1.5;font-weight:650;font-style:normal}
.journey-story a{color:#45652b;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}
.journey-story a:hover{color:#2c4718}
.journey-story a:focus-visible{outline-color:#45652b;outline-offset:3px;border-radius:2px}
.journey-story ul,.journey-story ol{margin:0 0 22px;padding-left:23px;font-size:17px;line-height:1.78;font-weight:600}
.journey-story li+li{margin-top:11px}
.journey-story figure{margin:34px 0}
.journey-story figure img{display:block;width:100%;height:auto;border-radius:23px}
.journey-story figcaption{margin-top:9px;color:var(--journey-subtle);font-size:13px;line-height:1.5}
.journey-story :is(img,video){max-width:100%}
.journey-story :is(strong,b){font-weight:850}
.journey-story hr{margin:36px 0;border:0;border-top:1px solid #ddd2b7}
.journey-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:22px 3px 0}
.journey-step{display:inline-flex;align-items:center;justify-content:center;gap:13px;min-height:48px;min-width:124px;padding:12px 21px;border-radius:28px;background:var(--yellow,#fff0a5);color:#695b3b;box-shadow:0 3px 0 #bba66c;font:800 16px/1.4 Nunito,sans-serif;transition:background .16s,transform .16s}
.journey-step:hover:not(:disabled){background:#ffe68b;transform:translateY(-1px)}
.journey-step:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #bba66c}
.journey-step:disabled{background:#262a20;color:#89917f;box-shadow:none;cursor:default}

/* The canvas stays in place; the globe and vehicles carry the journey. */
.journey[data-enhanced=true]:is([data-journey-state=travelling],[data-journey-state=entering],[data-journey-state=leaving],[data-journey-state=arrived]) .journey-stories{height:0;overflow:hidden;opacity:0;pointer-events:none}
.journey[data-journey-state=travelling] .journey-route{pointer-events:none}
.journey[data-journey-state=loading] .journey-stories,.journey[data-journey-state=error] .journey-stories{opacity:1;transform:none}
.journey[data-stop=zaragoza]{--journey-accent:#f3bc62}
.journey[data-stop=usa]{--journey-accent:#bcd77e}
.journey[data-stop=australia]{--journey-accent:#eeb887}

@keyframes journey-leaf{50%{transform:rotate(-12deg) scale(1.1);opacity:.5}}
@media(max-width:979px){
  .about-page{--journey-header-height:76px;--journey-gap:22px;--journey-reading-nav:60px}
  .journey-header{padding-top:calc(8px + env(safe-area-inset-top))}
  .journey-header .wordmark{width:132px;height:59px}
  .journey{display:flex;flex-direction:column;gap:22px;width:100%;max-width:720px;padding:0 max(26px,env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(26px,env(safe-area-inset-left))}
  .journey-stage{position:relative;top:auto;width:100%;align-self:stretch;transition:none}
  .journey-scene{height:clamp(230px,38svh,340px)}
  .journey[data-journey-state=arrived] .journey-scene,.journey[data-journey-state=arrived] .journey-location{opacity:0;pointer-events:none}
  .journey[data-journey-state=reading] .journey-scene,.journey[data-journey-state=reading] .journey-location{display:none}
  .journey[data-journey-state=reading] .journey-stage{position:sticky;top:calc(var(--journey-header-height) + env(safe-area-inset-top));z-index:10;padding:3px 0 10px;background:var(--black,#090b0a)}
  .journey[data-journey-state=reading] .journey-route{margin:0 auto}
  .journey-location{margin-top:0;margin-bottom:5px}
  .journey-location p{font-size:17px}
  .journey-route a{min-height:44px;padding:9px 14px}
  .journey-stories{width:100%}
  .journey-story{padding:32px 34px 35px;border-radius:38px 44px 36px 42px / 31px 35px 30px 33px}
  .journey-story h2{font-size:35px}
  .journey-story p,.journey-story ul,.journey-story ol{font-size:18px;line-height:1.75}
  .journey-story h3{font-size:23px}
}
@media(max-width:600px){
  .about-page{--journey-header-height:68px}
  .journey-header{padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right));gap:10px;padding-bottom:4px}
  .journey-header .wordmark{width:116px;height:52px}
  .journey-back{min-height:44px;padding:9px 7px;font-size:13px;gap:8px}
  .journey-back-arrow{width:8px;height:8px}
  .journey{gap:22px;padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
  .journey[data-journey-state=reading]{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}
  .journey-scene{width:calc(100% + 36px);max-width:none;margin:0 -18px}
  .journey-location{gap:9px;padding:0 4px}
  .journey-location p{font-size:16px;max-width:25ch}
  .journey-position{font-size:12px}
  .journey-route ol{gap:3px}
  .journey-route li{flex:1}
  .journey-route a{width:100%;padding:9px 8px;font-size:13px;border-radius:23px}
  .journey-story{padding:29px 25px 32px;border-radius:33px 37px 31px 35px / 28px 31px 27px 30px}
  .journey[data-journey-state=reading] .journey-story{padding-left:22px;padding-right:22px}
  .journey-story-heading{margin-bottom:23px}
  .journey-story h2{font-size:32px;letter-spacing:-.65px}
  .journey-story p,.journey-story ul,.journey-story ol{font-size:17px;line-height:1.75}
  .journey-story h3{font-size:22px}
  .journey-story .journey-lead{font-size:19px;line-height:1.58;margin-bottom:24px}
  .journey-story .journey-chapter-links{column-gap:18px;margin-bottom:31px;padding-top:7px;padding-bottom:8px}
  .journey-story .journey-chapter-links a{min-height:44px;font-size:13px}
  .journey-section+.journey-section{margin-top:35px}
  .journey-controls{gap:12px;margin-top:20px}
  .journey-step{min-height:47px;min-width:112px;padding:11px 17px;font-size:15px;gap:11px}
}
@media(max-width:340px){
  .about-page{--journey-reading-nav:68px}
  .journey-header{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}
  .journey-header .wordmark{width:105px;height:47px}
  .journey-back{font-size:12px;gap:7px}
  .journey{padding-left:max(15px,env(safe-area-inset-left));padding-right:max(15px,env(safe-area-inset-right))}
  .journey[data-journey-state=reading]{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
  .journey-scene{width:calc(100% + 30px);margin-left:-15px;margin-right:-15px}
  .journey-route a{padding-left:5px;padding-right:5px;font-size:12px}
  .journey-story{padding:27px 23px 30px}
  .journey[data-journey-state=reading] .journey-story{padding-left:16px;padding-right:16px}
  .journey-story h2{font-size:29px}
  .journey-story p,.journey-story ul,.journey-story ol{font-size:16px}
  .journey-story .journey-lead{font-size:18px}
  .journey-story h3{font-size:21px}
  .journey-story .journey-chapter-links{column-gap:14px}
  .journey-story .journey-chapter-links a{font-size:12px}
  .journey-step{min-width:102px;padding-left:14px;padding-right:14px;font-size:14px}
}
@media(orientation:landscape) and (max-height:600px){
  .about-page{--journey-header-height:54px}
  .journey-header{padding-top:calc(4px + env(safe-area-inset-top));padding-bottom:3px}
  .journey-header .wordmark{width:105px;height:46px}
  .journey-scene{height:clamp(170px,48svh,275px)}
  .journey-location{margin-bottom:2px}
  .journey{padding-top:0}
}
@media(prefers-reduced-motion:reduce){.journey,.journey *,.journey *:before,.journey *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
body.less-motion .journey,body.less-motion .journey *,body.less-motion .journey *:before,body.less-motion .journey *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}

.journey-markers{position:absolute;inset:0;pointer-events:none;z-index:3}
.journey-map-label{position:absolute;transform:translate(-50%,0);padding:5px 10px;border-radius:12px;background:#fffbe7;color:#60543f;font-size:12px;font-weight:850;line-height:1.3;white-space:nowrap;box-shadow:0 2px 0 #bba66c}
.journey-fallback-portrait{width:190px;aspect-ratio:384/512;background-image:url('./assets/miguel-sprites-v4.webp');background-size:400% 200%;background-position:100% 100%;background-repeat:no-repeat}
.journey[data-journey-state=entering] .journey-location,.journey[data-journey-state=entering] .journey-route,.journey[data-journey-state=leaving] .journey-location,.journey[data-journey-state=leaving] .journey-route{opacity:0;pointer-events:none}

/* The map becomes the journal's margin; the page keeps a comfortable measure. */
.journey{max-width:1160px;grid-template-columns:minmax(250px,310px) minmax(0,690px);gap:clamp(32px,4.5vw,62px)}
.journey-story{padding:44px clamp(30px,4.6vw,62px) 48px;border-radius:12px 32px 28px 12px;box-shadow:-6px 0 0 #eadfba,-10px 0 0 #a98451,0 5px 0 #c9be94;background-image:linear-gradient(90deg,#e8ddbf70,transparent 22px)}
.journey-story-heading{padding-bottom:26px;margin-bottom:26px;border-bottom:2px solid #e7dbb9}
.journey-story-heading .journey-story-location{margin:0 0 10px!important;color:#776241}
.journey-story h2{font-size:clamp(32px,3.4vw,44px);line-height:1.16;letter-spacing:-1px}
.journey-story p{font-size:18px;font-weight:600;line-height:1.8}
.journey-story .journey-lead{font-size:21px;font-weight:750;line-height:1.65}
.journey-section+.journey-section{border-top:1px solid #e4d9b9;padding-top:39px;margin-top:39px}
.journey-story h3{font-size:24px;line-height:1.3}
.journey[data-enhanced=true] .journey-chapter-links{display:none}
.journey-contents{margin:20px auto 0;max-width:310px;color:#d0d2c6;border-top:1px solid #32362b}
.journey-contents ol{list-style:none;margin:0;padding:14px 0 6px 12px}
.journey-contents a{display:flex;align-items:center;min-height:44px;padding:9px 13px;border-left:2px solid #363c2e;font-size:15px;line-height:1.4;font-weight:750;color:#bfc5b6;transition:color .15s,background .15s}
.journey-contents a:hover{color:var(--cream);background:#1b2118}
.journey-contents a[aria-current]{color:var(--yellow);border-color:#e0bd60;background:#20251a}
.journey-story .journey-project-link{display:inline-flex;align-items:center;gap:20px;min-height:44px;font-size:16px;font-weight:850;line-height:1.5}
.journey-project-link span[aria-hidden]{font-size:22px}
.journey-story .journey-bridge{margin-top:40px;padding-top:27px;border-top:2px solid #e7dbb9;color:#685532;font-size:19px;font-weight:750;font-style:italic}
.journey-social{display:flex;flex-wrap:wrap;gap:4px 24px}
.journey-social a{display:inline-flex;align-items:center;min-height:44px;font-weight:850}
.journey[data-enhanced=true]:not([data-journey-state=reading]):not([data-journey-state=error]) .journey-contents{display:none}
@media(min-width:980px){
  .journey[data-journey-state=reading] .journey-scene{height:260px}
  .journey-route a{padding:9px 10px;font-size:13px}
  .journey-location{flex-direction:column;gap:3px;margin:0 0 10px}
  .journey-location p{font-size:17px}
  .journey[data-enhanced=true]:is([data-journey-state=entering],[data-journey-state=travelling],[data-journey-state=arrived],[data-journey-state=leaving]){display:block}
  .journey[data-enhanced=true]:is([data-journey-state=entering],[data-journey-state=travelling],[data-journey-state=arrived],[data-journey-state=leaving]) .journey-stage{position:relative;top:auto;max-width:820px;margin:auto}
  .journey[data-enhanced=true]:is([data-journey-state=entering],[data-journey-state=travelling],[data-journey-state=arrived],[data-journey-state=leaving]) .journey-scene{max-width:820px;height:clamp(350px,65svh,630px)}
}
@media(max-width:979px){
  .about-page{--journey-reading-nav:106px}
  .journey{gap:18px;max-width:760px}
  .journey[data-journey-state=reading] .journey-stage{padding-bottom:0}
  .journey-contents{max-width:none;margin:9px 0 0;border-top:1px solid #313827;border-bottom:1px solid #313827;color:#e1e0cf}
  .journey-contents ol{display:flex;flex-wrap:wrap;justify-content:center;gap:0 2px;padding:0}
  .journey-contents a{min-height:44px;padding:9px 10px;border-left:0;border-radius:0;font-size:14px}
  .journey-contents a[aria-current]{box-shadow:inset 0 -2px #e0bd60}
  .journey-story{padding:38px clamp(28px,6vw,52px) 42px}
  .journey-story h2{font-size:36px}
}
@media(max-width:600px){
  .journey[data-journey-state=reading]{padding-left:max(15px,env(safe-area-inset-left));padding-right:max(15px,env(safe-area-inset-right))}
  .journey-story{border-radius:9px 24px 22px 9px;box-shadow:-3px 0 0 #eadfba,-6px 0 0 #a98451,0 4px 0 #c9be94}
  .journey[data-journey-state=reading] .journey-story{padding:28px 25px 32px}
  .journey-story-heading{padding-bottom:21px;margin-bottom:22px}
  .journey-story h2{font-size:31px;letter-spacing:-.7px}
  .journey-story p{font-size:17px;line-height:1.75}
  .journey-story .journey-lead{font-size:19px;line-height:1.65}
  .journey-story h3{font-size:22px}
  .journey-section+.journey-section{padding-top:30px;margin-top:30px}
  .journey-story .journey-bridge{font-size:17px}
}
@media(max-width:340px){
  .journey[data-journey-state=reading] .journey-story{padding:27px 20px 30px}
  .journey-story h2{font-size:28px}
  .journey-story p{font-size:16px}
  .journey-story h3{font-size:21px}
}
@media(orientation:landscape) and (max-height:600px){
  .journey-header{position:relative}
  .journey[data-journey-state=reading] .journey-stage{top:env(safe-area-inset-top)}
  .journey{--journey-header-height:0px}
  .journey-contents{margin-top:5px}
}
@media(prefers-reduced-motion:reduce){.journey-contents a{transition:none}}
.journey[data-journey-state=arrived] .journey-scene,.journey[data-journey-state=arrived] .journey-location{opacity:0;pointer-events:none}
@media(min-width:980px) and (max-height:760px){
  .journey[data-journey-state=reading] .journey-scene{height:150px}
  .journey-contents{margin-top:12px}
}
@media(min-width:980px) and (max-height:560px){.journey-stage{position:relative;top:0}}
/* Measure the real sticky stack so larger text never hides a chapter heading. */
.journey-story,.journey-section,.journey-story :is(h2,h3,h4,[id]){scroll-margin-top:var(--journey-anchor-offset,calc(var(--journey-header-height) + env(safe-area-inset-top) + var(--journey-reading-nav,0px) + 24px))}
@media(min-width:980px){.journey-stage{top:calc(var(--journey-sticky-header-height,var(--journey-header-height)) + 16px)}}
@media(max-width:979px){.journey[data-journey-state=reading] .journey-stage{top:var(--journey-sticky-header-height,calc(var(--journey-header-height) + env(safe-area-inset-top)))}}
@media(min-width:980px) and (max-height:560px){.journey-stage{top:0}}
@media(max-width:340px){.journey-contents a{font-size:13px;padding-left:7px;padding-right:7px}}
