/* Ten Pound Feather — the destinations.
   Five places, five films. Each one opens like its own first scene:
   the Observatory at night, the Forge banked low, the Rookery at first light,
   the Archive in lamplight, and the Waystation where every journey says "shall we?" */

:root{
  --paper:#e9dcc9;
  --card:#f6eede;
  --ink:#26221b;
  --ink-soft:#5c5546;
  --coral:#e14b66;
  --coral-bright:#f2708a;
  --gold:#c89b55;
  --gold-soft:#e1bd7d;
  --bone:#eae1cf;
  --bone-soft:rgba(234,225,207,.75);
  --display:"Fraunces",Georgia,serif;
  --text:"Source Serif 4",Georgia,serif;
  --sans:"Archivo",-apple-system,sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body.dest{
  min-height:100svh;
  font-family:var(--text);
  font-size:17.5px;line-height:1.62;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
/* the same whisper of paper grain that lies over the whole realm */
body.dest::after{
  content:"";position:fixed;inset:0;z-index:70;pointer-events:none;opacity:.12;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .17 0 0 0 0 .12 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
img,svg,canvas{display:block;max-width:100%}
a{color:inherit}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

h1,h2,h3{font-family:var(--display);font-weight:500;line-height:1.06;letter-spacing:-.01em}
h1{font-size:clamp(2.9rem,6.5vw,5.4rem);max-width:14ch}
h1 em{font-style:italic}
.eyebrow{
  font-family:var(--sans);font-size:.72rem;font-weight:600;
  letter-spacing:.26em;text-transform:uppercase;margin-bottom:1.1rem;
}
.dest__lede{max-width:52ch;margin-top:1.7rem;font-size:clamp(1.08rem,1.9vw,1.3rem)}
.dest__hint{
  margin-top:2.2rem;font-family:var(--display);font-style:italic;
  font-size:1.05rem;opacity:.62;
}

/* ── chrome: the few honest bits of interface ── */
.dest__header{
  position:fixed;top:0;left:0;right:0;z-index:40;
  display:flex;justify-content:space-between;align-items:center;
  padding:1.3rem clamp(1.25rem,4vw,2.5rem);
  pointer-events:none;
}
.dest__header a{pointer-events:auto}
.dest__wordmark{
  font-family:var(--sans);font-weight:600;font-size:.8rem;
  letter-spacing:.2em;text-transform:uppercase;text-decoration:none;
}
.dest__maplink{
  font-family:var(--sans);font-size:.78rem;font-weight:500;letter-spacing:.06em;
  text-decoration:none;opacity:.78;transition:opacity .2s;
}
.dest__maplink:hover{opacity:1}

.dest__stage{position:relative;min-height:100svh;overflow:hidden;display:flex;align-items:center}
.dest__scene{position:absolute;inset:0;z-index:0;pointer-events:none}
.dest__scene canvas{position:absolute;inset:0;width:100%;height:100%}
.dest__content{
  position:relative;z-index:5;width:min(1120px,100%);
  margin:0 auto;padding:clamp(6.5rem,15vh,9rem) clamp(1.4rem,6vw,4rem) clamp(7rem,16vh,10rem);
}

/* the foot: compass home, walk on, sound */
.dest__foot{
  position:fixed;left:0;right:0;bottom:0;z-index:40;
  display:flex;justify-content:space-between;align-items:flex-end;
  padding:0 clamp(1.1rem,3.5vw,2.25rem) 1.15rem;
  pointer-events:none;
}
.dest__foot > *{pointer-events:auto}
.dest__compass{
  display:flex;align-items:center;gap:.65rem;text-decoration:none;
  font-family:var(--sans);font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;
  opacity:.82;transition:opacity .25s;
}
.dest__compass:hover{opacity:1}
.dest__compass img{width:44px;height:44px;transition:transform 1.2s cubic-bezier(.2,.8,.2,1)}
.dest__compass:hover img{transform:rotate(360deg)}
.dest__walk{
  font-family:var(--display);font-style:italic;font-size:1.05rem;
  text-decoration:none;opacity:.85;transition:opacity .25s,letter-spacing .4s;
  padding-bottom:.35rem;
}
.dest__walk:hover{opacity:1;letter-spacing:.02em}
.dest__walk span{display:inline-block;transition:transform .4s cubic-bezier(.2,.9,.3,1.4)}
.dest__walk:hover span{transform:translateX(6px)}
.dest__sound{
  width:44px;height:44px;border-radius:50%;cursor:pointer;
  display:grid;place-items:center;background:transparent;
  border:1px solid currentColor;color:inherit;opacity:.65;transition:opacity .25s;
}
.dest__sound:hover{opacity:1}
.dest__sound svg{width:19px;height:19px}
.dest__sound .is-on{display:none}
.dest__sound[aria-pressed="true"] .is-on{display:block}
.dest__sound[aria-pressed="true"] .is-off{display:none}
.dest__sound[aria-pressed="true"]{opacity:1}

/* ── arrival: lines settle onto the page, one after another ── */
.js .settle{opacity:0;transform:translateY(22px);animation:settle .9s cubic-bezier(.2,.7,.2,1) forwards}
.js .settle:nth-child(1){animation-delay:.25s}
.js .settle:nth-child(2){animation-delay:.4s}
.js .settle:nth-child(3){animation-delay:.55s}
.js .settle:nth-child(4){animation-delay:.7s}
.js .settle:nth-child(5){animation-delay:.85s}
@keyframes settle{to{opacity:1;transform:none}}

/* the veil — every journey passes through paper */
.veil{
  position:fixed;inset:0;z-index:80;background:var(--paper);
  opacity:0;pointer-events:none;transition:opacity .34s ease;
}
html.arriving .veil{opacity:1;transition:none}
html.leaving .veil{opacity:1;pointer-events:auto}

/* ════════════════ THE OBSERVATORY ════════════════ */
.dest--observatory{
  color:var(--bone);
  background:
    radial-gradient(120% 90% at 78% -10%,#1d3a6b 0%,transparent 55%),
    linear-gradient(168deg,#050b1a 0%,#0a1730 46%,#16294e 100%);
}
.dest--observatory .eyebrow{color:var(--gold-soft)}
.dest--observatory h1 em{color:var(--gold-soft)}
.dest--observatory .dest__lede{color:var(--bone-soft)}
.dest--observatory .dest__sound,.dest--observatory .dest__compass,.dest--observatory .dest__walk{color:var(--bone)}

/* the dome slice — a great curve of brass-edged shadow across the top */
.obs__dome{
  position:absolute;left:50%;top:-58vmin;width:160vmin;height:80vmin;
  transform:translateX(-50%);border-radius:50%;
  background:linear-gradient(180deg,#03060f 74%,#0b1426 100%);
  box-shadow:0 6px 0 rgba(200,155,85,.28),0 22px 60px rgba(0,0,0,.55);
}
/* the lens that follows you — inside it, the sky sharpens */
.obs__lens{
  position:absolute;z-index:4;width:min(46vmin,340px);height:min(46vmin,340px);
  left:0;top:0;border-radius:50%;pointer-events:none;
  transform:translate(-50%,-50%);
  border:1px solid rgba(200,155,85,.55);
  box-shadow:0 0 0 6px rgba(9,14,28,.45),inset 0 0 40px rgba(200,155,85,.12),0 0 60px rgba(120,150,220,.12);
  backdrop-filter:brightness(1.38) contrast(1.05);
  -webkit-backdrop-filter:brightness(1.38) contrast(1.05);
  opacity:0;transition:opacity .8s ease;
}
.obs__lens.is-live{opacity:1}
.obs__lens::after{
  content:"";position:absolute;inset:-14px;border-radius:50%;
  border:1px dashed rgba(200,155,85,.28);
}
/* charted skies — visible only through the lens */
.obs__charts{
  position:absolute;inset:0;z-index:3;pointer-events:none;opacity:0;
  -webkit-mask-image:radial-gradient(circle min(23vmin,170px) at var(--mx,50%) var(--my,40%),#000 62%,transparent 100%);
  mask-image:radial-gradient(circle min(23vmin,170px) at var(--mx,50%) var(--my,40%),#000 62%,transparent 100%);
  transition:opacity .8s ease;
}
.obs__charts.is-live{opacity:1}
.obs__charts svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.obs__charts path{fill:none;stroke:rgba(255,246,220,.75);stroke-width:1.1;stroke-dasharray:3 8;stroke-linecap:round}
.obs__charts circle{fill:rgba(255,248,226,.95)}
.obs__charts text{
  font-family:var(--display);font-style:italic;font-size:15px;
  fill:rgba(225,189,125,.95);letter-spacing:.04em;
}
.obs__charts .uncharted text{fill:rgba(234,225,207,.6)}
.obs__charts .uncharted path{stroke:rgba(234,225,207,.35)}
.dest--observatory .dest__content{pointer-events:none}
.dest--observatory .dest__content a{pointer-events:auto}

/* ════════════════ THE FORGE ════════════════ */
.dest--forge{
  color:#f0e3cf;cursor:pointer;
  background:linear-gradient(180deg,#0b0705 0%,#140b07 58%,#241009 100%);
}
.dest--forge .eyebrow{color:#e5915a}
.dest--forge h1 em{color:#f2a75f}
.dest--forge .dest__lede{color:rgba(240,227,207,.82)}
/* the hearth breathes with --heat (0..1, set by JS) */
.forge__glow{
  position:absolute;inset:0;
  background:
    radial-gradient(78% 58% at 50% 108%,rgba(255,138,52,calc(.44 + var(--heat,0) * .5)) 0%,rgba(214,84,25,calc(.22 + var(--heat,0) * .3)) 40%,transparent 74%),
    radial-gradient(42% 28% at 50% 104%,rgba(255,214,140,calc(.32 + var(--heat,0) * .6)) 0%,transparent 70%);
  transition:background .25s linear;
}
.forge__anvil{
  position:absolute;left:50%;bottom:-2px;transform:translateX(-50%);
  width:min(52vmin,420px);opacity:.9;
}
.forge__anvil path{fill:#050302}
.forge__castings{
  margin-top:clamp(2.4rem,5vh,3.6rem);
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 2.6rem;
  max-width:820px;
}
.forge__castings article{
  padding:1.15rem 0 1.3rem;border-top:1px solid rgba(240,227,207,.22);
  opacity:calc(.28 + var(--heat,0) * .72);
  transition:opacity .3s linear;
}
.forge__castings h3{
  font-size:clamp(1.2rem,2vw,1.5rem);
  color:#f6c98a;
  text-shadow:0 0 calc(var(--heat,0) * 22px) rgba(255,158,64,.75);
  transition:text-shadow .3s linear;
}
.forge__castings p{margin-top:.4rem;font-size:.98rem;color:rgba(240,227,207,.75)}
.forge__hint{color:#f2a75f}
.dest--forge .dest__sound,.dest--forge .dest__compass,.dest--forge .dest__walk{color:#f0e3cf}

/* ════════════════ THE ROOKERY ════════════════ */
.dest--rookery{
  color:var(--ink);
  background:
    radial-gradient(90% 60% at 82% 6%,rgba(255,244,214,.75),transparent 55%),
    linear-gradient(172deg,#b9b4c6 0%,#cfc4c4 34%,#e6d6bd 72%,#eee0c6 100%);
}
.dest--rookery .eyebrow{color:#8a6a9c}
.dest--rookery h1 em{color:var(--coral)}
.dest--rookery .dest__lede{color:#453e33}
.rook__wire{position:absolute;left:0;right:0;top:13%;height:120px;opacity:.55}
.rook__wire path{fill:none;stroke:#3a3227;stroke-width:1.4}
.rook__wire .bird{fill:#3a3227;stroke:none}
.rook__ps{
  margin-top:2.6rem;font-family:var(--display);font-style:italic;
  font-size:1.12rem;color:#6d6355;
}

/* ════════════════ THE ARCHIVE ════════════════ */
.dest--archive{
  color:var(--ink);
  background:
    radial-gradient(120% 100% at 50% -20%,rgba(255,240,205,.5),transparent 60%),
    linear-gradient(180deg,#cdbb95 0%,#d9c8a6 100%);
}
.dest--archive::before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:1;
  background:radial-gradient(120% 120% at 50% 42%,transparent 40%,rgba(58,44,22,.35) 100%);
}
.dest--archive .eyebrow{color:#8d5d2a}
.dest--archive h1 em{color:#8d5d2a}
.dest--archive .dest__lede{color:#4c4132}
.arch__plates{
  margin-top:clamp(2.6rem,6vh,4rem);
  display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:clamp(1.1rem,2.6vw,2rem);
}
.arch__plate{
  position:relative;display:block;width:100%;text-align:left;cursor:pointer;
  background:linear-gradient(168deg,#f6eede 0%,#eee0c4 100%);
  border:1px solid rgba(58,44,22,.3);border-radius:3px;
  padding:1.1rem 1.1rem 1.2rem;color:var(--ink);font-family:inherit;font-size:inherit;
  box-shadow:0 14px 30px rgba(48,34,14,.26);
  transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition:box-shadow .3s ease;
  will-change:transform;
}
.arch__plate:hover{box-shadow:0 22px 44px rgba(48,34,14,.34)}
.arch__plate:focus-visible{outline:2px solid #8d5d2a;outline-offset:4px}
.arch__plate figure{position:relative;aspect-ratio:1;display:grid;place-items:center;overflow:hidden;
  background:radial-gradient(circle at 50% 42%,#fbf4e4 0%,#efe2c8 100%);border:1px solid rgba(58,44,22,.18)}
.arch__plate img{width:82%;height:82%;object-fit:contain}
.arch__plate--realm img{width:100%;height:100%;object-fit:cover}
.arch__no{
  font-family:var(--sans);font-size:.62rem;font-weight:600;letter-spacing:.24em;
  text-transform:uppercase;color:#8d5d2a;margin:.9rem 0 .2rem;
}
.arch__plate h3{font-size:1.18rem}
.arch__plate p{margin-top:.3rem;font-size:.9rem;color:var(--ink-soft);font-style:italic;font-family:var(--display)}
.arch__note{margin-top:2.4rem;font-family:var(--display);font-style:italic;color:#6d5b3f}

/* the examination table */
.arch__exam{
  position:fixed;inset:0;z-index:60;display:none;place-items:center;
  background:rgba(24,17,8,.78);padding:clamp(1rem,4vw,3rem);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
}
.arch__exam.is-open{display:grid}
.arch__exam figure{
  max-width:min(860px,94vw);max-height:82vh;display:flex;flex-direction:column;gap:1rem;
  background:linear-gradient(168deg,#f6eede,#eee0c4);padding:clamp(1rem,3vw,2rem);
  border-radius:3px;box-shadow:0 40px 90px rgba(0,0,0,.5);
  animation:examIn .45s cubic-bezier(.2,.8,.2,1);
}
@keyframes examIn{from{opacity:0;transform:translateY(26px) scale(.97)}to{opacity:1;transform:none}}
.arch__exam img{max-height:58vh;width:auto;max-width:100%;margin:0 auto;object-fit:contain}
.arch__exam figcaption{font-family:var(--display);font-style:italic;font-size:1.08rem;color:#4c4132;text-align:center}
.arch__exam-close{
  position:absolute;top:1rem;right:1.1rem;width:46px;height:46px;border-radius:50%;
  border:1px solid rgba(246,238,222,.5);background:transparent;color:#f6eede;
  font-size:1.3rem;cursor:pointer;
}

/* ════════════════ SHALL WE? ════════════════ */
.dest--shallwe{
  color:var(--ink);
  background:
    radial-gradient(circle at 76% 20%,rgba(255,255,255,.42),transparent 30%),
    linear-gradient(165deg,#f4ecdc 0%,#ead9ba 60%,#e0cba4 100%);
}
.dest--shallwe .dest__content{text-align:left}
.shall__title{font-size:clamp(4.4rem,12vw,9.5rem);line-height:.95;position:relative;width:max-content;max-width:100%}
.shall__title em{font-style:italic;color:var(--coral)}
/* the underline the feather draws */
.shall__stroke{
  display:block;width:100%;height:14px;margin-top:.4rem;overflow:visible;
}
.shall__stroke path{
  fill:none;stroke:var(--ink);stroke-width:3;stroke-linecap:round;
  stroke-dasharray:1000;stroke-dashoffset:1000;
}
.js .shall__stroke path{animation:strokeIn 1.1s ease .45s forwards}
@keyframes strokeIn{to{stroke-dashoffset:0}}
.shall__copy{max-width:560px;margin-top:2rem;font-size:clamp(1.1rem,2vw,1.38rem);line-height:1.55}
.shall__button{
  display:inline-flex;margin-top:2.6rem;padding:.85rem 1.4rem;
  border:1px solid rgba(38,34,27,.55);text-decoration:none;
  font-family:var(--sans);font-size:.72rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  transition:background .2s ease,color .2s ease,transform .2s ease;
}
.shall__button:hover,.shall__button:focus-visible{background:var(--ink);color:var(--paper);transform:translateY(-2px)}
.shall__email{display:block;width:max-content;margin-top:1.1rem;font-family:var(--sans);font-size:.74rem;letter-spacing:.055em;text-decoration:none;opacity:.68}
.shall__email:hover{opacity:1}
.shall__ps{margin-top:3rem;font-family:var(--display);font-style:italic;color:#6d6355;font-size:1.08rem}
.shall__feather{position:absolute;z-index:6;width:54px;height:auto;pointer-events:none;opacity:0}
.shall__feather path{fill:var(--ink)}

/* ── reduced motion: still scenes, nothing withheld ── */
@media (prefers-reduced-motion:reduce){
  .js .settle{opacity:1;transform:none;animation:none}
  .js .shall__stroke path{animation:none;stroke-dashoffset:0}
  .veil{display:none}
  .obs__lens{display:none}
  .obs__charts{opacity:1;-webkit-mask-image:none;mask-image:none}
  .obs__charts.is-live{opacity:.85}
  .dest--forge{--heat:.7}
  .arch__plate{transform:none}
  html{scroll-behavior:auto}
}

@media (max-width:720px){
  .dest__header{position:absolute}
  .dest__content{padding-top:clamp(5.6rem,13vh,7rem);padding-bottom:3rem}
  .forge__castings{grid-template-columns:1fr;gap:.4rem}
  /* on small screens the foot walks behind the content instead of floating over it */
  .dest__foot{position:static;padding:0 1.25rem 1.5rem;align-items:center}
  .dest__compass span{display:none}
  .dest__compass img{width:38px;height:38px}
  .shall__title{width:auto}
  .arch__plates{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:460px){
  .arch__plates{grid-template-columns:1fr}
}
