/* "On his watch" home: the opening, her letter, his life over a live map of Laguna Beach, the memories */

/* ---------- opening ---------- */
.st-hero{position:relative;display:grid;min-height:calc(100svh - var(--header-h));background:var(--night);color:var(--on-green);overflow:hidden;isolation:isolate}
.st-hero::before{content:"";position:absolute;left:-10%;right:-10%;bottom:-18%;height:70%;z-index:-1;pointer-events:none;
  background:radial-gradient(60% 70% at 66% 100%,rgba(238,139,87,.5),rgba(238,139,87,.15) 45%,transparent 72%)}
.st-portrait{position:relative;margin:0;min-height:58svh;overflow:hidden}
.st-portrait a{position:absolute;inset:0;display:block}
.st-portrait img{width:100%;height:100%;object-fit:cover;object-position:50% 16%;filter:grayscale(1) contrast(1.08)}
.st-portrait::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:#1f4f86;mix-blend-mode:color;opacity:.28}
.st-portrait::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(11,26,46,0) 42%,rgba(11,26,46,.7) 76%,var(--night) 100%)}
.st-words{position:relative;z-index:2;margin-top:-16svh;padding:0 var(--gutter) clamp(2.2rem,6vh,4rem)}
.st-service{margin:0 0 .5rem;font:500 clamp(.98rem,1.3vw,1.15rem)/1.3 var(--ui);letter-spacing:.03em;color:var(--badge)}
.st-name{margin:0;font:700 clamp(4.4rem,16vw,11rem)/.84 var(--display);text-transform:uppercase;letter-spacing:.01em;color:#fff}
.st-name span{display:block}
.st-dates{margin:1rem 0 0;font:500 clamp(1.05rem,1.6vw,1.35rem)/1.3 var(--ui);letter-spacing:.02em;color:var(--badge-light)}
.st-dedication{margin:1.2rem 0 0;max-width:32ch;font:400 clamp(1.3rem,2.3vw,1.9rem)/1.42 var(--text);color:var(--on-green)}
.st-begin{display:inline-flex;align-items:center;gap:.5rem;margin-top:1.8rem;padding:.4rem 0;color:var(--badge-light);font:500 1.05rem/1 var(--ui);text-decoration:none}
.st-begin .ico{width:1.1rem;height:1.1rem}
@media (min-width:900px) and (min-aspect-ratio:1/1){
  .st-hero{grid-template-columns:minmax(0,44%) minmax(0,1fr);align-items:center}
  .st-portrait{height:100%;min-height:0}
  .st-portrait::after{background:linear-gradient(90deg,rgba(11,26,46,0) 52%,rgba(11,26,46,.72) 84%,var(--night) 100%)}
  .st-words{margin:0;padding:6vh clamp(2rem,5vw,6rem) 6vh clamp(1.5rem,3vw,3rem)}
}
@media (prefers-reduced-motion:no-preference){
  .st-portrait img{animation:st-push 3s cubic-bezier(.2,.65,.2,1) both}
  .st-service{animation:st-up .9s .25s both}
  .st-name span{animation:st-up 1s cubic-bezier(.2,.7,.2,1) .4s both}
  .st-name span+span{animation-delay:.55s}
  .st-dates{animation:st-up .9s .8s both}
  .st-dedication{animation:st-up 1s 1s both}
  .st-begin{animation:st-fade 1s 1.6s both}
  .st-begin .ico{animation:st-bob 2.4s ease-in-out 2.6s infinite}
}
@keyframes st-push{from{transform:scale(1.12);opacity:0}to{transform:none;opacity:1}}
@keyframes st-up{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
@keyframes st-fade{from{opacity:0}to{opacity:1}}
@keyframes st-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(5px)}}

/* ---------- her letter ---------- */
.st-letter{padding-top:clamp(3.5rem,9vh,6rem)}
.st-letter .letter-hint{display:flex;align-items:center;gap:.7rem;margin:0 0 1.8rem;font:500 1rem/1.4 var(--ui);color:var(--brass-deep)}
.st-letter .letter-hint::before{content:"";flex:none;width:1.8rem;height:2px;background:var(--badge)}
.st-letter article{font-size:clamp(1.25rem,1.6vw,1.5rem);line-height:1.8}
.door{color:inherit;text-decoration:none;border-radius:2px;cursor:pointer;
  background-image:linear-gradient(var(--badge),var(--badge));background-repeat:no-repeat;background-position:0 100%;background-size:100% 2px;
  padding-bottom:.08em;transition:background-color .2s ease;-webkit-tap-highlight-color:rgba(214,168,78,.25)}
.door:hover{background-color:rgba(214,168,78,.16)}
.door:focus-visible{outline:2px solid var(--brass-deep);outline-offset:3px}
@media (prefers-reduced-motion:no-preference){
  .st-letter.will-draw .door{background-size:0 2px;transition:background-size 1.1s cubic-bezier(.45,.05,.25,1) calc(var(--i,0) * 200ms + 150ms),background-color .2s ease}
  .st-letter.will-draw.is-drawn .door{background-size:100% 2px}
}

/* ---------- his life, place by place ---------- */
.st-story{position:relative;background:var(--night);color:var(--on-green)}
.st-stage{position:sticky;top:0;z-index:0;height:100vh;height:100svh;margin-bottom:-100vh;margin-bottom:-100svh;overflow:hidden}
.st-stage .st-map{position:absolute!important;inset:0;width:100%;height:100%;background:var(--night)}
.st-stage.no-map .st-map{background:radial-gradient(70% 55% at 30% 55%,rgba(47,143,184,.28),transparent 62%),radial-gradient(55% 45% at 80% 100%,rgba(238,139,87,.2),transparent 62%),var(--night)}
.st-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(11,26,46,.6),rgba(11,26,46,0) 24%,rgba(11,26,46,0) 66%,rgba(11,26,46,.55))}
.st-ember{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity 1.4s ease;background:radial-gradient(46% 40% at 38% 44%,rgba(238,110,60,.42),transparent 70%)}
.st-stage.is-fire .st-ember{opacity:1}
.st-chip{position:absolute;left:var(--gutter);bottom:5vh;margin:0;font:700 clamp(4.5rem,10vw,9rem)/.9 var(--display);color:var(--badge);text-shadow:0 3px 34px rgba(0,0,0,.5);font-variant-numeric:tabular-nums;pointer-events:none;transition:opacity .4s}
.st-chip:empty{opacity:0}
.st-progress{position:absolute;left:0;right:0;top:var(--header-h);height:3px;background:rgba(214,168,78,.16)}
.st-progress span{display:block;height:100%;background:var(--badge);transform-origin:0 50%;transform:scaleX(var(--p,0));transition:transform .7s ease}
.st-stage .mapboxgl-ctrl-top-left,.st-stage .mapboxgl-ctrl-top-right{top:calc(var(--header-h) + 10px)}
.st-stage .mapboxgl-ctrl-attrib{background:rgba(11,26,46,.7)!important}
.st-stage .mapboxgl-ctrl-attrib a{color:#cfd7e3!important}

.st-scenes{position:relative;z-index:1;list-style:none;margin:0;padding:0 var(--gutter)}
/* phones: a window onto the map, then the words */
.st-scene{display:block;padding:64vh 0 4vh;padding:64svh 0 4svh}
.st-scene:first-child{padding-top:0}
.st-card{width:100%;max-width:34rem;background:rgba(11,26,46,.9);-webkit-backdrop-filter:blur(14px) saturate(130%);backdrop-filter:blur(14px) saturate(130%);border:1px solid rgba(214,168,78,.32);border-radius:6px;padding:clamp(1.3rem,3.6vw,2.1rem);box-shadow:0 30px 60px -30px rgba(0,0,0,.65);transition:border-color .5s,box-shadow .5s}
.st-scene.is-active .st-card{border-color:rgba(214,168,78,.65)}
.st-scene-intro{display:flex;align-items:center;min-height:100vh;min-height:100svh}
.st-scene-intro .st-card{max-width:46rem;background:none;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;padding:0;text-shadow:0 2px 24px rgba(0,0,0,.6)}
.st-title{margin:0;font:700 clamp(3.4rem,11vw,7.5rem)/.9 var(--display);text-transform:uppercase;letter-spacing:.01em;color:#fff}
.st-lede{margin:1rem 0 0!important;font:400 clamp(1.3rem,2.6vw,1.7rem)/1.4 var(--text);color:var(--on-green)}
@media (min-width:900px){
  .st-scenes{display:flex;flex-direction:column;align-items:flex-end;padding-right:clamp(2rem,5vw,5rem)}
  .st-scene{display:flex;min-height:100vh;min-height:100svh;align-items:center;padding:12svh 0;width:100%;justify-content:flex-end}
  .st-scene-intro{justify-content:flex-start;padding-left:clamp(0rem,3vw,3rem)}
}
@media (max-width:899px){
  .st-chip{top:calc(var(--header-h) + 44px);bottom:auto;left:var(--gutter);right:auto;font-size:clamp(2.4rem,9vw,3.6rem)}
  .st-card{margin-inline:auto}
}

.st-when{display:flex;flex-wrap:wrap;align-items:baseline;gap:.35rem 1rem;margin:0 0 1rem;padding-bottom:.9rem;border-bottom:1px solid rgba(214,168,78,.35)}
.st-date{font:700 clamp(2.4rem,7vw,3.3rem)/1 var(--display);letter-spacing:.01em;color:var(--badge)}
.st-place{display:inline-flex;align-items:center;gap:.45rem;font:500 1rem/1.3 var(--ui);color:var(--on-green-soft)}
.st-pin-ico{flex:none;width:.8rem;height:1rem;color:var(--badge)}
.st-body{font:400 1.12rem/1.66 var(--text);color:#dfe5ee}
.st-body h3{margin:0 0 .55rem;font:600 clamp(1.75rem,4.6vw,2.35rem)/1.06 var(--display);color:#fff}
.st-body h3:not(:first-child){margin-top:1.6rem}
.st-body h4{margin:1.4rem 0 .3rem;font:600 1.35rem/1.15 var(--display);color:#fff}
.st-body p{margin:0}
.st-body p+p,.st-body p+div,.st-body div+p{margin-top:.8em}
.st-body .eyebrow,.st-body .kicker{margin:0 0 .3rem;font:500 1rem/1.3 var(--ui);color:var(--badge-light)}
.st-body .eyebrow+h3{margin-top:0}
.st-body a{color:var(--badge-light);text-decoration-color:rgba(240,217,162,.5)}
.st-body a:hover{color:#fff}
.st-sub{margin:0 0 1rem!important;font-style:italic;color:var(--on-green-soft)}
.st-more{margin-top:1.3rem!important;font:500 1.02rem/1.4 var(--ui)}
.st-anchor{display:block;height:0}
.st-fig{margin:1.2rem 0}
.st-fig a{display:block;padding:6px;background:#08121f;border:1px solid rgba(214,168,78,.3);border-radius:3px}
.st-fig img{display:block;width:100%;height:auto;max-height:52svh;object-fit:contain}
.st-fig figcaption{margin-top:.55rem;font:italic 400 .92rem/1.45 var(--text);color:var(--on-green-soft)}
.st-fig figcaption strong{font-style:normal;color:#fff}
.st-portrait-fig{max-width:15rem}
.st-pair{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;margin-top:1.2rem}
.st-pair .st-fig{margin:0}
.st-pair .st-fig img{aspect-ratio:3/4;object-fit:cover}
@media (prefers-reduced-motion:no-preference){
  .st-hand img{clip-path:inset(0 100% 0 0);transition:clip-path 2.6s cubic-bezier(.65,.05,.35,1) .2s}
  .st-hand.is-in img{clip-path:inset(0)}
}
.st-quote{margin:0 0 1.3rem;padding:0}
.st-quote p{font:italic 400 clamp(1.35rem,3.6vw,1.7rem)/1.38 var(--text);color:#fff}
.st-quote footer{margin-top:.5rem;font:500 .92rem/1.3 var(--ui);color:var(--badge-light)}
.st-eow{margin:0 0 1rem!important;font:700 clamp(1.7rem,4.4vw,2.2rem)/1 var(--display);text-transform:uppercase;letter-spacing:.06em;color:var(--badge)}
.st-gloria{margin-top:1.5rem;padding-top:1.1rem;border-top:1px solid rgba(214,168,78,.3)}
.st-gloria h4{margin-top:0}
.st-gloria blockquote{margin:.4rem 0 0;font-style:italic;color:#fff}
.st-gloria .gloria-by{margin-top:.7rem;color:var(--on-green-soft)}
.st-cta{display:inline-flex;align-items:center;gap:.6rem;margin-top:.4rem;padding:.9rem 1.3rem;background:var(--badge);color:var(--night)!important;border-radius:3px;font:600 1.05rem/1 var(--ui);text-decoration:none}
.st-cta:hover{background:var(--badge-light)}
.st-cta .ico{width:1rem;height:1rem}
.st-body .talk{margin-top:1.2rem}
.st-body .talk figcaption{color:var(--on-green-soft)}
.st-body .talk-credit{color:#fff}
.st-flash .st-card{animation:st-flash 1.8s ease}
@keyframes st-flash{0%{box-shadow:0 0 0 0 rgba(214,168,78,.7)}40%{box-shadow:0 0 0 6px rgba(214,168,78,.35)}100%{box-shadow:0 30px 60px -30px rgba(0,0,0,.65)}}

/* map pins: Mapbox moves the outer element, the inner one is styled */
.st-pin{position:relative;width:16px;height:16px;border-radius:50%;background:var(--badge);border:3px solid var(--night);box-shadow:0 0 0 1px rgba(214,168,78,.9),0 4px 14px rgba(0,0,0,.5);opacity:.5;transition:opacity .5s,transform .5s}
.st-pin.is-active{opacity:1;transform:scale(1.35)}
.st-pin.is-active::after{content:"";position:absolute;inset:-11px;border-radius:50%;border:2px solid rgba(214,168,78,.85);animation:st-ping 1.9s ease-out infinite}
.st-pin b{position:absolute;left:50%;bottom:calc(100% + 10px);transform:translateX(-50%);white-space:nowrap;padding:.32rem .55rem;border-radius:3px;background:rgba(11,26,46,.88);color:#fff;font:600 .78rem/1 var(--ui);opacity:0;transition:opacity .5s}
.st-pin.is-active b{opacity:1}
@keyframes st-ping{from{transform:scale(.55);opacity:1}to{transform:scale(1.7);opacity:0}}
@media (prefers-reduced-motion:reduce){.st-pin.is-active::after{animation:none;opacity:.6}}

/* ---------- the memories ---------- */
.st-theater{border-top:1px solid rgba(214,168,78,.4)}

/* ---------- large desktop screens such as an iMac ---------- */
@media (min-width:1800px){
  .st-letter article{font-size:1.62rem}
  .st-card{max-width:40rem}
  .st-body{font-size:1.28rem}
  .letter-home .memories>.wrap,.story-home .memories>.wrap{width:min(1640px,calc(100% - 2 * var(--gutter)))}
}
.st-body ul.st-links{margin:.4rem 0 0;padding-left:1.1rem}
.st-body ul.st-links li{margin:.3rem 0}

/* ---------- Nov 24, 2026: a calmer story and a cleaner opening ---------- */
/* long jumps: a short fade instead of dragging the page through the story */
main{transition:opacity .22s ease}
html.is-cut main{opacity:0;transition:opacity .15s ease}
@media (prefers-reduced-motion:reduce){main,html.is-cut main{transition:none}}

/* the map belongs to its story: when the story ends, the map scrolls away with it instead of
   covering the next screen (the overlap was moved from the map's bottom to the cards' top) */
.st-stage{margin-bottom:0}
.st-scenes{margin-top:-100vh;margin-top:-100svh}

/* solid cards: no blur over the live map */
.st-card{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(11,26,46,.96)}
.st-scene-intro .st-card{background:none}

/* phones: a shorter window onto the map before each part of the story */
.st-scene:not(.st-scene-intro){padding-top:40vh;padding-top:40svh}
@media (min-width:900px){
  .st-scene:not(.st-scene-intro){min-height:88vh;min-height:88svh;padding-block:10vh;padding-block:10svh}
}

/* the year fades while a card slides over it */
.st-chip{transition:opacity .25s ease}
.st-chip.is-covered{opacity:0}

/* the way past the map story */
.st-skip-wrap{margin:1.4rem 0 0!important}
.st-skip{display:inline-flex;align-items:center;min-height:2.75rem;font:500 1.02rem/1.3 var(--ui);color:var(--badge-light);text-decoration:underline;text-decoration-color:rgba(240,217,162,.5);text-underline-offset:.28em}
.st-skip:hover{color:#fff}

/* What he left behind: every keepsake and photograph together, each shown whole; tap one to see it large */
.collection{padding:clamp(4rem,8vw,6.5rem) 0;background:var(--ivory-soft,#faf7f1);color:var(--ink,#14202e)}
.collection-head{max-width:46rem;margin-bottom:clamp(1.8rem,4vw,2.8rem)}
.collection-head h2{margin:0 0 1rem;font-size:clamp(2.1rem,4vw,3.3rem);line-height:1.06;letter-spacing:-.01em;color:var(--night,#0b1a2e)}
.collection-head p{margin:0 0 .9rem;font-size:1.08rem;line-height:1.65;color:var(--ink,#14202e)}
.collection-head .relics-more{font:400 1rem/1.4 var(--ui)}
.collection a{color:var(--night,#0b1a2e);text-decoration-color:rgba(214,168,78,.8);text-underline-offset:.22em}
.collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.6rem .9rem;align-items:start;--cols:2;--gap:.9rem}
@media (min-width:1000px){.collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:2.4rem 1.6rem;--cols:3;--gap:1.6rem}}
.tile{margin:0;min-width:0}
.tile-wide{grid-column:span 2}
.collection .tile-frame{position:relative;display:block;aspect-ratio:1/1;overflow:hidden;border:1px solid rgba(214,168,78,.38);border-radius:6px;background:var(--night,#0b1a2e);box-shadow:0 18px 32px -24px rgba(8,18,32,.75);cursor:zoom-in;transition:border-color .25s ease}
.collection .tile-wide .tile-frame{aspect-ratio:2/1}
@supports (height:1cqw){
  .collection-grid{container-type:inline-size}
  .collection .tile-frame,.collection .tile-wide .tile-frame{aspect-ratio:auto;height:calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols))}
}
.collection .tile-frame img{position:absolute;top:.6rem;left:.6rem;width:calc(100% - 1.2rem);height:calc(100% - 1.2rem);max-width:none;object-fit:contain;transition:transform .35s ease}
@media (hover:hover){.collection .tile-frame:hover{border-color:rgba(214,168,78,.9)}.collection .tile-frame:hover img{transform:scale(1.02)}}
.collection .tile-frame:focus-visible{outline:3px solid var(--badge,#d6a84e);outline-offset:3px}
.tile-label{margin:.75rem 0 .2rem;font:600 1rem/1.3 var(--ui);color:var(--night,#0b1a2e)}
.tile figcaption{margin-top:.7rem;font-size:.95rem;line-height:1.5;color:var(--ink-soft,#4a5565)}
.tile .tile-label + figcaption{margin-top:.15rem}
.tile figcaption strong{font-weight:500;color:var(--night,#0b1a2e)}
@media (max-width:999px){.tile-last{grid-column:1/-1;justify-self:center;width:calc((100% - var(--gap)) / 2)}}
@media (max-width:699px){
  .tile-label{font-size:.94rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .tile figcaption{font-size:.88rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
}
.collection-more{display:grid;gap:2rem;margin-top:clamp(2.6rem,5vw,3.6rem);padding-top:clamp(1.8rem,4vw,2.4rem);border-top:1px solid rgba(214,168,78,.6)}
@media (min-width:860px){.collection-more{grid-template-columns:1fr 1fr;gap:3rem}}
.collection-note h3{margin:.2rem 0 .7rem;font:700 clamp(1.5rem,3vw,1.9rem)/1.1 var(--display);color:var(--night,#0b1a2e)}
.collection-note p{margin:0 0 1rem;font-size:1.04rem;line-height:1.6}
.collection-note .photo-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem 1.4rem;margin:0}
.collection-note p:last-child{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem 1.4rem}

/* opening on larger screens: his face and shoulders, never the placard */
@supports (width:1cqh){
  @media (min-width:900px) and (min-aspect-ratio:1/1){
    .st-portrait{container-type:size}
    .st-portrait img{position:absolute;top:0;left:50%;height:auto;max-width:none;object-fit:fill;width:max(100cqw,113.6cqh);margin-left:calc(max(100cqw,113.6cqh) / -2)}
  }
}
/* opening on shorter phones: his face, name, dates, the whole dedication and Begin in the first view */
@media (max-width:899px) and (max-height:760px){
  .st-portrait{min-height:46vh;min-height:46svh}
  .st-words{margin-top:-11vh;margin-top:-11svh;padding-bottom:1.5rem}
  .st-name{font-size:clamp(3rem,13.4vw,4.4rem)}
  .st-name span{display:inline-block}
  .st-dates{margin-top:.7rem}
  .st-dedication{margin-top:.85rem;font-size:1.16rem;max-width:36ch}
  .st-begin{margin-top:.9rem}
}
@media (max-width:899px) and (max-height:600px){
  .st-portrait{min-height:40vh;min-height:40svh}
  .st-name{font-size:clamp(2.8rem,12.5vw,4rem)}
  .st-dedication{font-size:1.1rem}
}

/* ---------- Nov 25, 2026: one event per scroll, the route, the drawings, era chips ---------- */
:root{--tools-h:3.4rem}

/* while the story fills the screen, each scroll settles on the next stop (story.js turns this on
   only then; the sections before and after are the ways in and out) */
html.st-snap{scroll-snap-type:y mandatory;scroll-padding-top:0}
.st-scene{scroll-snap-align:start;scroll-snap-stop:always}
.st-story+section{scroll-snap-align:start}
.st-theater{scroll-snap-align:end}

/* the chips bar must not hang over the next section when the story scrolls away */
.st-story{overflow:clip}

/* era chips and the effects switch ride along at the top of the story */
.st-tools{position:sticky;top:var(--header-h);z-index:3;height:0}
.st-tools-in{position:absolute;left:0;right:0;top:0;box-sizing:border-box;height:var(--tools-h);display:flex;align-items:center;gap:.6rem;padding:.5rem max(var(--gutter),env(safe-area-inset-right)) .5rem max(var(--gutter),env(safe-area-inset-left));background:linear-gradient(180deg,rgba(11,26,46,.94),rgba(11,26,46,.82));border-bottom:1px solid rgba(214,168,78,.25)}
.st-eras{flex:1 1 auto;min-width:0;display:flex;gap:.45rem;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
.st-eras::-webkit-scrollbar{display:none}
.st-eras a{flex:none;display:inline-flex;align-items:center;min-height:2.4rem;padding:.3rem .85rem;border:1px solid rgba(214,168,78,.5);border-radius:999px;color:var(--on-green);font:500 .9rem/1 var(--ui);text-decoration:none;white-space:nowrap}
.st-eras a[aria-current]{background:var(--badge);border-color:var(--badge);color:var(--night)}
.st-eras .st-eras-all{border-style:dashed;color:var(--badge-light)}
.st-eras a:focus-visible,.st-fx:focus-visible,.st-loadmap:focus-visible{outline:3px solid var(--badge-light);outline-offset:2px}
.st-fx,.st-loadmap{flex:none;display:inline-flex;align-items:center;gap:.45rem;min-height:2.4rem;padding:.3rem .8rem;border:1px solid rgba(214,168,78,.5);border-radius:999px;background:transparent;color:var(--on-green-soft);font:500 .85rem/1 var(--ui);cursor:pointer;white-space:nowrap}
.st-loadmap{background:var(--badge);border-color:var(--badge);color:var(--night)}
.st-loadmap[hidden]{display:none}
.st-fx-dot{flex:none;width:.55rem;height:.55rem;border-radius:50%;background:#9fe3ff;box-shadow:0 0 8px rgba(159,227,255,.9)}
.st-fx[aria-pressed="false"] .st-fx-dot{background:transparent;box-shadow:none;border:1px solid var(--on-green-soft)}
@media (max-width:620px){.st-fx [data-fx-label]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.st-fx{padding-inline:.7rem}.st-fx::after{content:"Effects";font:500 .82rem/1 var(--ui)}}

/* the progress line, the year and the map controls sit below the chips */
.st-progress{top:calc(var(--header-h) + var(--tools-h))}
.st-stage .mapboxgl-ctrl-top-left,.st-stage .mapboxgl-ctrl-top-right{top:calc(var(--header-h) + var(--tools-h) + 8px)}
@media (max-width:899px){
  .st-chip{top:calc(var(--header-h) + var(--tools-h) + .6rem)}
  .st-scene:not(.st-scene-intro){padding-top:46vh;padding-top:46svh}
}
@media (min-width:900px){
  .st-scene:not(.st-scene-intro){min-height:100vh;min-height:100svh;padding-block:calc(var(--header-h) + var(--tools-h) + 1.2rem) 6svh}
}

/* phones held sideways and other short screens: the map on the left, the words on the right */
@media (max-height:520px) and (orientation:landscape){
  :root{--tools-h:2.9rem}
  .st-tools-in{padding-block:.3rem}
  .st-eras a,.st-fx,.st-loadmap{min-height:2.15rem;font-size:.82rem}
  .st-scenes{display:flex;flex-direction:column;align-items:flex-end;padding:0 max(.8rem,env(safe-area-inset-right)) 0 max(.8rem,env(safe-area-inset-left))}
  .st-scene,.st-scene:not(.st-scene-intro){display:flex;width:100%;min-height:100vh;min-height:100svh;align-items:flex-start;justify-content:flex-end;padding:calc(var(--header-h) + var(--tools-h) + .5rem) 0 .6rem}
  .st-scene-intro{justify-content:flex-start;align-items:center}
  .st-card{width:min(50%,32rem);max-width:none;margin:0;max-height:calc(100svh - var(--header-h) - var(--tools-h) - 1.2rem);overflow:auto;padding:1rem 1.1rem}
  .st-scene-intro .st-card{width:auto;max-height:none;overflow:visible}
  .st-chip{top:auto;bottom:.5rem;left:max(.8rem,env(safe-area-inset-left));font-size:2.2rem}
  .st-date{font-size:1.8rem}
  .st-body{font-size:1rem;line-height:1.55}
  .st-body h3{font-size:1.45rem}
  .st-fig img{max-height:42svh}
}

/* the small drawings: light lines in gold and icy blue, anchored to the place on the map */
.st-holo{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.st-holo-item{position:absolute;left:0;top:0;width:var(--s,96px);height:var(--s,96px);opacity:0;transition:opacity .5s ease;will-change:transform}
.st-holo-item.is-in{opacity:1}
.st-holo-item.is-out{opacity:0;transition-duration:.3s}
.st-art{display:block;width:100%;height:100%;overflow:visible}
.st-art g{fill:none;stroke-linecap:round;stroke-linejoin:round}
.st-art .g{stroke:#ecc979;stroke-width:2.2}
.st-art .i{stroke:#aee9ff;stroke-width:1.8}
.st-art .w{stroke-width:7;opacity:.17}
.st-art-base{fill:rgba(158,227,255,.1);stroke:rgba(174,233,255,.32);stroke-width:1}
.st-art-live{filter:drop-shadow(0 0 5px rgba(158,227,255,.35))}
@media (prefers-reduced-motion:no-preference){
  .st-holo-item.is-in .st-art-live{animation:st-settle 1.8s cubic-bezier(.2,.7,.2,1) both}
  .st-holo-item.is-in .st-art-live g:not(.w)>*{stroke-dasharray:1 1;stroke-dashoffset:1;animation:st-draw 1.5s cubic-bezier(.45,.05,.25,1) forwards;animation-delay:calc(var(--n,0) * 110ms + 120ms)}
  .st-holo-item.is-in .st-art-live .w{opacity:0;animation:st-glow 2.6s ease .6s forwards}
  .st-holo-item.is-in .st-art-live .pulse{animation:st-draw 1.5s cubic-bezier(.45,.05,.25,1) .2s forwards,st-pulse 2.4s ease-out 1.6s 1 both}
}
@keyframes st-settle{from{transform:translateY(8px) scale(.94)}to{transform:none}}
@keyframes st-draw{to{stroke-dashoffset:0}}
@keyframes st-glow{0%{opacity:0}45%{opacity:.34}100%{opacity:.17}}
@keyframes st-pulse{0%{opacity:1}50%{opacity:.35}100%{opacity:.8}}
.st-holo.is-paused *{animation-play-state:paused!important}
@media (prefers-reduced-motion:reduce){.st-holo-item{transition:none}}
.fx-off .st-holo,.fx-low .st-holo{display:none}
.fx-low .st-art-live{filter:none}

/* when the live map is off or can't load: a still picture of the place, and the story as before */
.st-poster{display:none}
.st-stage.no-map .st-poster{position:absolute;left:0;right:0;top:calc(var(--header-h) + var(--tools-h));height:calc(46svh - var(--header-h) - var(--tools-h));display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;padding:0 1rem;text-align:center}
.st-poster .st-art{width:min(28vw,128px);height:auto}
.st-poster-place{margin:0;max-width:24rem;font:500 1rem/1.3 var(--ui);color:var(--on-green-soft)}
.st-poster-year{display:none}
@media (min-width:900px){.st-stage.no-map .st-poster{top:calc(var(--header-h) + var(--tools-h));bottom:0;right:50%;height:auto}.st-poster .st-art{width:min(16vw,190px)}}
@media (max-height:520px) and (orientation:landscape){.st-stage.no-map .st-poster{top:calc(var(--header-h) + var(--tools-h));bottom:0;right:50%;height:auto}.st-poster .st-art{width:min(18vh,110px)}}

/* ---------- Nov 25, 2026 (second revision): the cover, the childhood photographs, the scene effects ---------- */
/* The cover: Neil and Michelle at Gallatin Ranch. Always the whole photograph, never cropped: both
   riders, both horses and the river. Phones and portrait screens show it full width above his name;
   wide screens show it whole beside his name. */
.st-hero--cover{align-content:start;min-height:0}
.mp-cover{position:relative;z-index:1;margin:0}
.mp-cover-frame{display:block;line-height:0;background:#0d1d33}
.mp-cover img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}
.mp-cover figcaption{padding:.55rem var(--gutter) 0;font:500 .86rem/1.35 var(--ui);color:var(--on-green-soft)}
.mp-cover figcaption strong{font-weight:600;color:var(--badge-light)}
.mp-cover figcaption .mp-cap{display:none}
.st-hero--cover .st-words{margin-top:0;padding-top:clamp(1rem,3.5vh,1.8rem)}
@media (min-width:900px) and (min-aspect-ratio:1/1){
  .st-hero--cover{min-height:calc(100svh - var(--header-h));grid-template-columns:auto minmax(0,1fr);align-items:center;align-content:center;column-gap:clamp(1.2rem,3vw,3.5rem);padding:clamp(1rem,3vh,2.4rem) 0 clamp(1rem,3vh,2.4rem) clamp(1rem,2.6vw,3rem)}
  .mp-cover{width:min(60vw,calc((100svh - var(--header-h) - 2 * clamp(1rem,3vh,2.4rem) - 2.4rem) * 4 / 3))}
  .mp-cover-frame{border-radius:3px;overflow:hidden;box-shadow:0 18px 50px rgba(0,0,0,.45),0 0 0 1px rgba(214,168,78,.35)}
  .mp-cover figcaption{padding:.65rem 0 0}
  .st-hero--cover .st-words{padding:0 clamp(1.5rem,4vw,5rem) 0 0}
  .st-hero--cover .st-name{font-size:clamp(3.2rem,6.2vw,7.6rem)}
  .st-hero--cover .st-dedication{font-size:clamp(1.15rem,1.7vw,1.6rem)}
}
@media (max-width:899px) and (max-height:700px){.st-hero--cover .st-name{font-size:clamp(2.6rem,11vw,3.6rem)}.st-hero--cover .st-dedication{font-size:1.06rem}}
@media (prefers-reduced-motion:no-preference){.mp-cover img{animation:st-fade 1.1s ease both}}

/* Neil as a child and young man, in the first stop of the story */
.mp-story-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;margin:1.1rem 0}
.mp-story-grid .st-fig{margin:0}
.mp-story-grid .st-fig a{display:flex;align-items:center;justify-content:center;aspect-ratio:3/4;padding:4px}
.mp-story-grid .st-fig img{width:100%;height:100%;max-height:none;object-fit:contain}
.mp-story-grid figcaption{margin-top:.35rem;font-size:.78rem;line-height:1.3}
.mp-story-grid figcaption .mp-cap{display:none}

/* Scene effects: small flames for the 1993 fire, a faint crowd for the 1970 Happening. They live in
   the drawing layer, so "Map effects off", slow devices and paused pages treat them the same way. */
.st-fx-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;transition:opacity .32s ease}
.st-fx-svg.is-out{opacity:0}
.st-fx-i{opacity:0;transition:opacity .7s ease}
.st-fx-i.is-on{opacity:1}
.st-fx-b{transform-box:fill-box;transform-origin:50% 100%}
.st-fx-flame .o{fill:rgba(240,122,58,.6);stroke:rgba(248,206,128,.9);stroke-width:.7}
.st-fx-flame .c{fill:rgba(255,216,138,.85)}
.st-fx-fire .st-fx-group{filter:drop-shadow(0 0 3px rgba(255,138,60,.65))}
.st-fx-person{fill:rgba(196,238,255,.62)}
.st-fx-person circle{fill:rgba(226,247,255,.78)}
.st-fx-crowd .st-fx-group{filter:drop-shadow(0 0 2px rgba(158,227,255,.55))}
@media (prefers-reduced-motion:no-preference){
  .st-fx-flame.is-on .st-fx-b{animation:st-flicker 1.5s ease-in-out var(--d,0s) infinite alternate}
  .st-fx-person.is-on .st-fx-b{animation:st-sway 4.4s ease-in-out var(--d,0s) infinite alternate}
}
@keyframes st-flicker{0%{transform:scale(.9,.84);opacity:.72}35%{transform:scale(1.03,1.06);opacity:.95}65%{transform:scale(.95,.96);opacity:.82}100%{transform:scale(1.04,1.1);opacity:1}}
@keyframes st-sway{from{transform:translateY(0)}to{transform:translateY(-1.3px)}}
@media (prefers-reduced-motion:reduce){.st-fx-svg,.st-fx-i{transition:none}}
/* phones held sideways: the whole photograph beside his name, sized to the screen's height */
@media (max-width:899px) and (max-height:520px) and (orientation:landscape){
  .st-hero--cover{grid-template-columns:auto minmax(0,1fr);align-items:center;align-content:center;column-gap:1.1rem;padding:.7rem max(.9rem,env(safe-area-inset-right)) .7rem max(.9rem,env(safe-area-inset-left));min-height:calc(100svh - var(--header-h))}
  .mp-cover{width:calc((100svh - var(--header-h) - 1.4rem - 1.9rem) * 4 / 3);max-width:58vw}
  .mp-cover figcaption{padding:.4rem 0 0;font-size:.78rem}
  .st-hero--cover .st-words{padding:0}
  .st-hero--cover .st-name{font-size:clamp(2.2rem,7vw,3.4rem)}
  .st-hero--cover .st-name span{display:inline-block}
  .st-hero--cover .st-dates{margin-top:.4rem;font-size:.95rem}
  .st-hero--cover .st-dedication{margin-top:.5rem;font-size:.98rem;line-height:1.38}
  .st-hero--cover .st-begin{margin-top:.5rem}
}
