/* The home page walk (2026-10-06): real photographs of Catholic cathedrals and abbeys, given depth and light in
   the browser. Two layouts from one document:
     plain (default): a readable page - each stop is a photograph above its words. No-JS, no-WebGL, reduced data.
     live  (html.cw-live, set by the head script and confirmed by cathedral.js): a fixed stage of living photographs
           behind a tall scroll; each stop raises one card.
   Every class is cw- prefixed so nothing here touches the rest of the site. */
:root{
  --cw-night:#030407; --cw-ivory:#efe7d8; --cw-ivory-2:rgba(239,231,216,.84); --cw-ivory-3:rgba(239,231,216,.6);
  --cw-gilt:#d9b36a; --cw-gilt-2:#f1d79d;
  --cw-f-insc:"Cinzel","Trajan Pro",Georgia,serif;
  --cw-f-lyric:"Cormorant Garamond",Georgia,serif;
  --cw-f-body:"EB Garamond",Georgia,serif;
  --cw-gut:max(16px,5vw);
}
body.cw-home{background:var(--cw-night);color:var(--cw-ivory)}

/* ---------------------------------------------------------------- plain (default) */
.cw-stage,.cw-poster,.cw-marks,.cw-place,.cw-cue-c{display:none}
.cw-walk{position:relative;z-index:2;padding:96px var(--cw-gut) 20px}
.cw-card{max-width:720px;margin:0 auto 72px;font-family:var(--cw-f-body);font-size:19px;line-height:1.55;color:var(--cw-ivory)}
.cw-plate{display:block;width:100%;height:auto;margin:0 0 20px;border-radius:2px;background:#0b0c10}
.cw-plate-cap{display:block;margin:-12px 0 18px;font-family:var(--cw-f-insc);font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--cw-ivory-3)}
.cw-kick{font-family:var(--cw-f-insc);font-size:11.5px;letter-spacing:.32em;text-transform:uppercase;color:var(--cw-gilt);margin:0 0 14px}
.cw-card h1,.cw-card h2{font-family:var(--cw-f-lyric);font-weight:500;margin:0;line-height:1.02;letter-spacing:-.005em;text-wrap:balance;color:var(--cw-ivory)}
.cw-card h1{font-size:clamp(42px,6.2vw,82px)}
.cw-card h2{font-size:clamp(32px,4.2vw,54px)}
.cw-card.cw-fin h2{font-size:clamp(28px,3.1vw,42px)}
.cw-card p{margin:14px 0 0;color:var(--cw-ivory-2)}
.cw-card a{color:inherit}
.cw-lat{font-family:var(--cw-f-lyric);font-style:italic;font-size:clamp(22px,2.4vw,30px);color:var(--cw-ivory)!important;margin-top:0!important}
.cw-ref{font-family:var(--cw-f-insc);font-size:10.5px;letter-spacing:.22em;text-transform:uppercase;margin-top:8px!important}
.cw-more{display:inline-block;margin-top:18px;font-family:var(--cw-f-insc);font-size:11.5px;letter-spacing:.22em;text-transform:uppercase;color:var(--cw-gilt-2)!important;text-decoration:none;border-bottom:1px solid rgba(217,179,106,.45);padding-bottom:3px}
.cw-more:hover,.cw-more:focus-visible{border-bottom-color:var(--cw-gilt-2)}
.cw-micro{font-size:15px;color:var(--cw-ivory-3)!important}
.cw-micro a{color:var(--cw-ivory-2)}
.cw-title{font-family:var(--cw-f-insc);font-weight:500;letter-spacing:.28em;font-size:clamp(26px,4.3vw,58px);margin:0!important;line-height:1.1;color:var(--cw-ivory)!important}
.cw-motto{font-family:var(--cw-f-insc);letter-spacing:.42em;font-size:clamp(11px,1.3vw,14px);color:var(--cw-gilt)!important;margin-top:16px!important;text-transform:uppercase}
.cw-card .dcap-form{margin-top:20px}
.cw-c,.cw-lo,.cw-cue-c{text-align:center}

/* the words after the walk */
.cw-after{position:relative;z-index:3;padding:10vh var(--cw-gut) 40px;background:var(--cw-night)}
.cw-after-in{max-width:880px;margin:0 auto}
.cw-after h2{font-family:var(--cw-f-insc);font-weight:500;font-size:12px;letter-spacing:.3em;text-transform:uppercase;color:var(--cw-gilt);margin:40px 0 14px}
.cw-after p{color:var(--cw-ivory-2);font-size:17px;line-height:1.6;margin:0 0 12px;max-width:72ch}
.cw-after a{color:var(--cw-ivory)}
.cw-credits{list-style:none;margin:0;padding:0;display:grid;gap:7px;font-size:14px;line-height:1.5;color:var(--cw-ivory-3)}
.cw-credits a{color:var(--cw-ivory-2)}

/* ---------------------------------------------------------------- live */
html.cw-live .cw-stage{display:block;position:fixed;inset:0;z-index:0;background:var(--cw-night)}
html.cw-live .cw-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity 1.2s ease}
html.cw-ready .cw-stage canvas{opacity:1}
html.cw-live .cw-poster{display:block;position:absolute;left:50%;bottom:0;transform:translateX(-50%);height:min(78vh,170vw);width:auto;max-width:none;
  transition:opacity 1.2s ease}
html.cw-ready .cw-poster{opacity:0}
html.cw-live .cw-plate,html.cw-live .cw-plate-cap{display:none}
html.cw-live .cw-walk{padding:0;height:1000vh}
/* the threshold's words stand before the walk's script arrives (it then drives every card) */
html.cw-live .cw-card[data-scene="arrival"]{opacity:1}
html.cw-live .cw-card{position:fixed;z-index:10;max-width:min(440px,calc(100vw - 2*var(--cw-gut)));margin:0;opacity:0;pointer-events:none;
  transition:opacity .25s linear;padding:26px 28px;text-shadow:0 1px 18px rgba(0,0,0,.8),0 0 2px rgba(0,0,0,.6)}
html.cw-live .cw-card::before{content:"";position:absolute;z-index:-1;inset:-100px -140px;pointer-events:none;
  background:radial-gradient(closest-side,rgba(2,3,6,.8),rgba(2,3,6,.52) 55%,rgba(2,3,6,0))}
html.cw-live .cw-card.cw-on{pointer-events:auto}
html.cw-live .cw-l{left:var(--cw-gut);top:50%;transform:translateY(-50%)}
html.cw-live .cw-r{right:var(--cw-gut);top:50%;transform:translateY(-50%)}
html.cw-live .cw-c{left:50%;top:calc(76px + env(safe-area-inset-top,0px));transform:translateX(-50%);max-width:min(900px,calc(100vw - 2*var(--cw-gut)))}
html.cw-live .cw-c::before{inset:-40px -90px;background:radial-gradient(closest-side,rgba(2,3,6,.45),rgba(2,3,6,0))}
html.cw-live .cw-cue-c{display:block;left:50%;bottom:calc(2.5vh + env(safe-area-inset-bottom,0px));top:auto;transform:translateX(-50%);padding:0}
html.cw-live .cw-cue-c::before{display:none}
html.cw-live .cw-lo{left:50%;bottom:7vh;transform:translateX(-50%);max-width:min(600px,calc(100vw - 2*var(--cw-gut)))}
html.cw-live .cw-lo::before{inset:-90px -160px -60px;background:radial-gradient(closest-side,rgba(2,3,6,.86),rgba(2,3,6,.6) 55%,rgba(2,3,6,0))}
html.cw-live .cw-after{background:linear-gradient(to bottom,rgba(3,4,7,0),var(--cw-night) 14vh);padding-top:26vh}
.cw-cue{font-family:var(--cw-f-insc);font-size:11px;letter-spacing:.34em;text-transform:uppercase;color:var(--cw-ivory-2)}
.cw-cue i{display:block;width:1px;height:46px;margin:14px auto 0;background:linear-gradient(var(--cw-gilt),transparent);animation:cw-cue 2.4s ease-in-out infinite}
@keyframes cw-cue{0%,100%{transform:scaleY(.35);transform-origin:top;opacity:.4}50%{transform:scaleY(1);opacity:1}}
html.cw-live .cw-place{display:block;position:fixed;z-index:11;left:var(--cw-gut);bottom:calc(18px + env(safe-area-inset-bottom,0px));margin:0;max-width:min(560px,60vw);
  font-family:var(--cw-f-insc);font-size:10.5px;letter-spacing:.22em;text-transform:uppercase;color:var(--cw-ivory-2);
  text-shadow:0 1px 10px rgba(0,0,0,.9);opacity:0;transition:opacity .6s ease}
html.cw-live .cw-place.cw-on{opacity:1}
.cw-place b{font-weight:500;color:var(--cw-gilt-2)}
html.cw-live .cw-marks{display:grid;position:fixed;z-index:12;right:14px;top:50%;transform:translateY(-50%);gap:9px}
.cw-marks span{width:5px;height:5px;border-radius:50%;background:rgba(239,231,216,.25);transition:background .3s,transform .3s}
.cw-marks span.cw-on{background:var(--cw-gilt);transform:scale(1.5)}
/* the site header stands back at the threshold, and never paints a bar over the stage */
html.cw-live.cw-at-door #site-nav .dispatch-nav-mark{opacity:0}
html.cw-live #site-nav .dispatch-nav-mark{transition:opacity .8s ease}

@media (max-width:760px){
  .cw-card{font-size:17.5px}
  .cw-title{letter-spacing:.2em;font-size:38px}
  .cw-motto{letter-spacing:.24em;font-size:12px}
  html.cw-live .cw-l,html.cw-live .cw-r{left:var(--cw-gut);right:var(--cw-gut);top:auto;bottom:calc(5vh + env(safe-area-inset-bottom,0px));transform:none;max-width:none;padding:22px 6px 16px}
  html.cw-live .cw-c,html.cw-live .cw-lo,html.cw-live .cw-cue-c{left:var(--cw-gut);right:var(--cw-gut);transform:none;max-width:none}
  html.cw-live .cw-lo{bottom:calc(4vh + env(safe-area-inset-bottom,0px));padding:20px 6px 14px}
  html.cw-live .cw-l::before,html.cw-live .cw-r::before,html.cw-live .cw-lo::before{inset:-90px calc(-1*var(--cw-gut)) calc(-5vh - 20px);
    background:linear-gradient(to bottom,rgba(2,3,6,0),rgba(2,3,6,.74) 16%,rgba(2,3,6,.88))}
  .cw-card h2{font-size:clamp(30px,8.6vw,42px)}
  .cw-card h1{font-size:clamp(40px,11vw,58px)}
  .cw-card.cw-fin h2{font-size:clamp(26px,7.4vw,34px)}
  .cw-kick{letter-spacing:.24em}
  html.cw-live .cw-place{top:calc(70px + env(safe-area-inset-top,0px));bottom:auto;font-size:9.5px;max-width:calc(100vw - 2*var(--cw-gut))}
  html.cw-live .cw-marks{display:none}
}
@media (prefers-reduced-motion:reduce){.cw-cue i{animation:none}}

/* the FAQ and 'How the work is made', carried over verbatim from the old home page */
.cw-after h3{font-family:var(--cw-f-lyric);font-weight:500;font-size:clamp(24px,2.4vw,30px);line-height:1.15;color:var(--cw-ivory);margin:26px 0 8px}
.cw-faq h2 em{font-style:normal}
.cw-after article p{font-size:17px}

/* over the walk the header is a gradient, not a frosted bar: a backdrop blur over a full-screen canvas is
   re-blurred every frame, which is expensive on phones and draws a hard line across the photograph */
html.cw-live #site-nav{-webkit-backdrop-filter:none;backdrop-filter:none;background:linear-gradient(to bottom,rgba(3,4,7,.78),rgba(3,4,7,0));border-bottom-color:transparent;box-shadow:none}
/* the sign-up inside the walk: one row, the gilt of the photographs */
.cw-card .dcap-form{justify-content:flex-start;gap:8px}
.cw-c .dcap-form,.cw-lo .dcap-form{justify-content:center}
.cw-card .dcap-input{flex:1 1 220px;min-width:0}
.cw-card .dcap-btn{background:linear-gradient(165deg,#f3dba4,#c9994a);color:#1c1406;border:0}
.cw-card .dcap-btn:hover,.cw-card .dcap-btn:focus-visible{filter:brightness(1.07)}
.cw-card .dcap-msg{flex-basis:100%}
/* the site's narrow form stacks into a column; there a flex-basis would become the input's HEIGHT */
@media (max-width:420px){.cw-card .dcap-input{flex:0 0 auto;width:100%}.cw-card .dcap-btn{width:100%;justify-content:center}}

/* ---- the navigator (Will, 10/06: "some sort of tool or slider one can grab and move ... a better indicator") ---- */
.cw-stop{display:block;height:0;scroll-margin-top:0}
.cw-rail,.cw-rail-now{display:none}
html.cw-live .cw-stop{position:absolute;left:0;width:1px;scroll-snap-align:start}
/* Snapping starts with the visitor's own first wheel, touch, key or pointer (html.cw-snap, set in index.html).
   On load it scrolled the page by itself (to the walk's first stop, under the header), which Chrome counts as
   input: the Largest Contentful Paint was never recorded (Lighthouse NO_LCP). The first stop is the top of the
   page, so it needs no snap point at all. */
html.cw-live.cw-snap{scroll-snap-type:y proximity}
html.cw-live #stop-arrival{scroll-snap-align:none}
html.cw-live .cw-walk{height:1000vh}
html.cw-live .cw-rail{display:block;position:fixed;z-index:12;right:18px;top:50%;transform:translateY(-50%);height:min(64vh,560px);width:26px;
  transition:opacity .5s ease}
html.cw-live.cw-past .cw-rail{opacity:0;pointer-events:none}
.cw-rail-track{position:absolute;right:11px;top:0;bottom:0;width:3px;border-radius:2px;background:rgba(239,231,216,.18);cursor:pointer;touch-action:none}
.cw-rail-track::before{content:"";position:absolute;inset:0 -12px}
.cw-rail-fill{position:absolute;left:0;right:0;top:0;height:0;background:linear-gradient(var(--cw-gilt-2),var(--cw-gilt));border-radius:2px}
.cw-rail-thumb{position:absolute;left:50%;top:0;width:15px;height:15px;margin:-7.5px 0 0 -7.5px;transform:rotate(45deg);
  background:var(--cw-gilt);box-shadow:0 0 0 3px rgba(3,4,7,.75),0 0 14px rgba(241,215,157,.55);cursor:grab;touch-action:none}
.cw-rail-thumb:active{cursor:grabbing}
.cw-rail ol{list-style:none;margin:0;padding:0;position:absolute;inset:0;pointer-events:none}
.cw-rail li a{pointer-events:auto}
.cw-rail li{position:absolute;right:0;top:calc(var(--p) * 100%);transform:translateY(-50%)}
.cw-rail li a{display:flex;align-items:center;justify-content:flex-end;gap:10px;height:22px;padding:0 0 0 8px;text-decoration:none;color:var(--cw-ivory-2)}
.cw-rail li a::after{content:"";width:9px;height:9px;margin-right:8px;border-radius:50%;background:rgba(239,231,216,.35);box-shadow:0 0 0 3px rgba(3,4,7,.6);transition:background .3s,transform .3s}
.cw-rail li a span{font-family:var(--cw-f-insc);font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;white-space:nowrap;
  opacity:0;transform:translateX(6px);transition:opacity .25s,transform .25s;text-shadow:0 1px 8px rgba(0,0,0,.9);pointer-events:none}
.cw-rail:hover li a span,.cw-rail li a:focus-visible span,.cw-rail li.cw-on a span{opacity:1;transform:none}
.cw-rail li.cw-on a span{color:var(--cw-gilt-2)}
.cw-rail li.cw-on a::after{background:var(--cw-gilt);transform:scale(1.25)}
.cw-skip{position:absolute;right:0;top:calc(100% + 18px);white-space:nowrap;font-family:var(--cw-f-insc);font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--cw-ivory-2);text-decoration:none;border-bottom:1px solid rgba(217,179,106,.45);padding-bottom:2px}
.cw-skip:hover,.cw-skip:focus-visible{color:var(--cw-gilt-2)}
/* the Enter cue is a real link now */
html.cw-live .cw-card.cw-cue-c{pointer-events:auto;text-decoration:none;cursor:pointer}
.cw-cue:hover,.cw-cue:focus-visible{color:var(--cw-gilt-2)}
/* everything in the house: where Skip lands */
.cw-everything{margin:0 0 30px}
.cw-everything h2{font-family:var(--cw-f-lyric)!important;font-size:clamp(34px,4vw,50px)!important;letter-spacing:0!important;text-transform:none!important;color:var(--cw-ivory)!important;margin:0 0 6px!important;font-weight:500}
.cw-everything .cw-go{display:inline-block;margin:8px 0 6px;font-family:var(--cw-f-insc);font-size:12px;letter-spacing:.22em;text-transform:uppercase;text-decoration:none;
  color:#1c1406!important;background:linear-gradient(165deg,#f3dba4,#c9994a);padding:14px 22px;border-radius:2px}
.cw-grid{list-style:none;margin:18px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.cw-grid a{display:flex;flex-direction:column;gap:4px;height:100%;padding:16px 18px;border:1px solid rgba(239,231,216,.16);border-radius:2px;text-decoration:none;
  background:rgba(239,231,216,.03);transition:border-color .2s,background .2s}
.cw-grid a:hover,.cw-grid a:focus-visible{border-color:rgba(217,179,106,.6);background:rgba(217,179,106,.06)}
.cw-grid b{font-family:var(--cw-f-lyric);font-weight:500;font-size:22px;color:var(--cw-ivory)}
.cw-grid span{font-size:15.5px;line-height:1.45;color:var(--cw-ivory-2)}
@media (max-width:760px){
  html.cw-live .cw-rail{top:calc(64px + env(safe-area-inset-top,0px));left:var(--cw-gut);right:var(--cw-gut);transform:none;height:34px;width:auto}
  .cw-rail-track{left:0;right:0;top:auto;bottom:6px;width:auto;height:3px}
  .cw-rail-track::before{inset:-14px 0}
  .cw-rail-fill{top:0;bottom:0;left:0;height:auto;width:0}
  .cw-rail-thumb{top:50%;left:0}
  .cw-rail ol{display:none}
  html.cw-live .cw-rail-now{display:block;position:absolute;left:0;top:0;margin:0;font-family:var(--cw-f-insc);font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--cw-gilt-2);text-shadow:0 1px 8px rgba(0,0,0,.9)}
  .cw-skip{top:0;right:0}
  html.cw-live .cw-place{top:calc(106px + env(safe-area-inset-top,0px))}
}
/* Skip lands below the sticky header, and the Pass closes the index as one wide card */
.cw-everything{scroll-margin-top:calc(84px + env(safe-area-inset-top,0px))}
.cw-grid li:last-child{grid-column:1/-1}
