/* The harbour experience (assets/js/harbour-experience.js): the wake of a crossing. */

/* ---------- The wake of a crossing: a gold line drawn in the direction of travel ---------- */
.harbour-wake{
  position:fixed;left:50%;top:50%;z-index:10041;width:160vmax;height:2px;pointer-events:none;
  transform:translate(-50%,-50%) rotate(var(--hx-angle,0deg));
  background:linear-gradient(90deg,transparent 0,transparent 30%,var(--hx-world,#f2d99b) 50%,transparent 70%,transparent 100%);
  background-size:220% 100%;opacity:0;box-shadow:0 0 18px var(--hx-world,rgba(242,217,155,.6));
  animation:hxWake 1.1s var(--ease-tide) forwards;
}
/* A page of the log turns: a gilt edge sweeps across the screen */
.harbour-gilt{
  position:fixed;top:0;bottom:0;left:0;width:2px;z-index:10041;pointer-events:none;opacity:0;
  background:linear-gradient(180deg,transparent,#f2d99b 16%,#f2d99b 84%,transparent);
  box-shadow:0 0 18px 2px rgba(242,217,155,.55);animation:hxGilt .95s var(--ease-tide) forwards;
}
.harbour-gilt::before{content:"";position:absolute;top:0;bottom:0;right:2px;width:160px;background:linear-gradient(90deg,transparent,rgba(242,217,155,.13));}
.harbour-gilt.is-rtl{left:auto;right:0;animation-name:hxGiltBack;}
.harbour-gilt.is-rtl::before{right:auto;left:2px;background:linear-gradient(270deg,transparent,rgba(242,217,155,.13));}
@keyframes hxGilt{0%{opacity:0;transform:translateX(-2vw)}14%{opacity:1}86%{opacity:1}100%{opacity:0;transform:translateX(100vw)}}
@keyframes hxGiltBack{0%{opacity:0;transform:translateX(2vw)}14%{opacity:1}86%{opacity:1}100%{opacity:0;transform:translateX(-100vw)}}
/* Arriving in another world: its colour washes over the page and its name is announced */
.harbour-arrival-veil{
  position:fixed;inset:0;z-index:10040;pointer-events:none;
  background:radial-gradient(circle at 50% 42%,color-mix(in srgb,var(--hx-world,#c9aa6a) 38%,transparent),transparent 62%);
  opacity:0;animation:hxVeil 2.2s var(--ease-tide) forwards;
}
.harbour-arrival{
  position:fixed;left:50%;top:22%;z-index:10042;display:flex;align-items:center;gap:14px;max-width:calc(100vw - 32px);
  padding:12px 22px 12px 14px;border:1px solid var(--hx-world,#c9aa6a);border-radius:999px;pointer-events:none;
  color:#fff;background:rgba(7,17,28,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  box-shadow:0 18px 50px rgba(7,17,28,.34),0 0 34px color-mix(in srgb,var(--hx-world,#c9aa6a) 45%,transparent);
  opacity:0;transform:translate(-50%,10px);animation:hxArrival 2.3s var(--ease-sail) forwards;
}
.harbour-arrival img{display:block;width:44px;height:44px;flex:none}
.harbour-arrival span{display:grid;gap:1px;text-align:left}
.harbour-arrival small{color:var(--hx-world,#f2d99b);font-size:9px;font-weight:900;letter-spacing:.26em;text-transform:uppercase}
.harbour-arrival strong{font:italic 600 20px/1.15 "Harbour Serif",Georgia,serif}
.harbour-arrival em{font-size:11px;font-style:normal;letter-spacing:.12em;text-transform:uppercase;opacity:.75}
@keyframes hxVeil{0%{opacity:0}25%{opacity:1}100%{opacity:0}}
@keyframes hxArrival{0%{opacity:0;transform:translate(-50%,10px) scale(.96)}18%{opacity:1;transform:translate(-50%,0) scale(1)}78%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-6px) scale(1)}}
@keyframes hxWake{
  0%{opacity:0;background-position:120% 0}
  20%{opacity:.9}
  100%{opacity:0;background-position:-20% 0}
}

/* ---------- The footer: ivory paper with a gilt edge; three engraved medals, one signed line, and the way out ---------- */
footer.hx-footer{
  --f-ink:#2a3441;--f-muted:rgba(42,52,65,.62);--f-gold:#8f7a4e;--f-line:#c8b184;--f-medal:#fbf8ef;
  position:relative;isolation:isolate;margin-top:56px!important;padding:0 20px 22px!important;color:var(--f-ink);
  display:flex!important;flex-flow:row wrap;justify-content:center;align-items:center;gap:6px 26px;text-align:center;
  border-radius:28px 28px 0 0;border-top:1px solid rgba(200,177,132,.8);
  background:radial-gradient(ellipse 70% 90% at 50% 0%,rgba(255,255,255,.7),transparent 70%),linear-gradient(180deg,#f8f3e6,#efe6d1)!important;
  box-shadow:0 -14px 40px rgba(42,52,65,.07);
}
footer.hx-footer.hx-footer--dark{
  --f-ink:#f4efe4;--f-muted:rgba(244,239,228,.62);--f-gold:#c8b184;--f-line:#c8b184;--f-medal:#f4efe4;
  border-top-color:rgba(200,177,132,.55);box-shadow:none;
  background:radial-gradient(ellipse 70% 90% at 50% 0%,rgba(233,217,180,.12),transparent 70%),linear-gradient(180deg,#1f3042,#14202e)!important;
}
.hx-footer .footer-wave,.hx-footer .footer-copy,.hx-footer .footer-tagline,.hx-footer .theme-footer-message[hidden]{display:none!important;}
.hx-footer__top,.hx-footer__sign{flex:0 0 100%;order:1;}
.hx-footer__sign{order:2;}
.hx-footer__top{width:min(760px,100%);margin:0 auto;padding-top:20px;}
.hx-footer__rule{display:flex;align-items:center;gap:16px;color:var(--f-line);}
.hx-footer__rule i{flex:1;height:1px;background:linear-gradient(90deg,transparent,rgba(143,122,78,.5));}
.hx-footer--dark .hx-footer__rule i{background:linear-gradient(90deg,transparent,rgba(233,217,180,.5));}
.hx-footer__rule i:last-child{transform:scaleX(-1);}
.hx-footer__worlds{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 40px;margin:16px 0 14px;}
.hx-footer__seal{position:relative;display:grid;justify-items:center;gap:6px;min-width:100px;text-decoration:none;color:var(--f-ink)!important;}
.hx-footer__medal{position:relative;display:grid;place-items:center;width:84px;height:84px;transition:transform .45s var(--ease-sail),filter .45s ease;filter:drop-shadow(0 8px 14px rgba(42,52,65,.18));}
.hx-footer__ring{position:absolute;inset:0;width:100%;height:100%;overflow:visible;}
.hx-footer__ring .r-world{stroke:var(--hx-world,#c8b184);stroke-width:1.8;opacity:.85;}
.hx-footer__ring .r-gold{stroke:var(--f-line);stroke-width:.7;opacity:.8;}
.hx-footer__ring .r-here{stroke:var(--hx-world,#c8b184);stroke-width:1;opacity:0;stroke-dasharray:1.5 3;}
.hx-footer__ring .r-text{fill:var(--f-gold);}
.hx-footer__medal img{position:relative;display:block;width:44px;height:44px;padding:8px;border-radius:50%;background:var(--f-medal);object-fit:contain;box-shadow:0 0 0 1px var(--f-line),0 3px 8px rgba(42,52,65,.12);transition:box-shadow .45s ease;}
.hx-footer__seal strong{font:italic 400 16px/1.2 "Harbour Serif",Georgia,"Times New Roman",serif;letter-spacing:.01em;}
.hx-footer__seal:hover .hx-footer__medal,.hx-footer__seal:focus-visible .hx-footer__medal{transform:translateY(-3px) scale(1.04);filter:drop-shadow(0 12px 18px rgba(42,52,65,.22)) drop-shadow(0 0 12px color-mix(in srgb,var(--hx-world,#c8b184) 40%,transparent));}
.hx-footer__seal:hover img,.hx-footer__seal:focus-visible img{box-shadow:0 0 0 2px var(--hx-world,#c8b184);}
.hx-footer__seal:focus-visible{outline:2px solid var(--f-gold);outline-offset:6px;border-radius:14px;}
/* the page you are on: a dotted second ring and a dot below the name */
.hx-footer__seal.is-here .r-here{opacity:.9;}
.hx-footer__seal.is-here strong::after{content:"";display:block;width:5px;height:5px;margin:5px auto 0;border-radius:50%;background:var(--hx-world,var(--f-gold));}
/* the newest world: a small needle above its medal */
.hx-footer__seal.is-newest::before{content:"";position:absolute;top:-9px;left:50%;width:0;height:0;margin-left:-5px;border:5px solid transparent;border-top:8px solid var(--hx-world,var(--f-gold));border-bottom:0;opacity:0;animation:hxNewest .8s var(--ease-sail) .2s forwards;}
@keyframes hxNewest{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
/* the signed line */
.hx-footer__sign{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:2px 12px;margin:0 0 8px;cursor:default;}
.hx-footer__signature{font:italic 400 20px/1.25 "Harbour Serif",Georgia,"Times New Roman",serif;color:var(--f-ink);}
.hx-footer__role{font:800 10px/1 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.3em;text-transform:uppercase;color:var(--f-gold);}
.hx-footer__role::before{content:"◆";margin-right:12px;font-size:6px;vertical-align:middle;letter-spacing:0;}
/* the way out */
.hx-footer>.footer-contact{order:3;}
.hx-footer>.cookie-footer-links{order:4;}
.hx-footer__up{order:5;}
.hx-footer .footer-contact,.hx-footer .cookie-footer-links{margin:0!important;font:700 11px/1 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.16em;text-transform:uppercase;}
.hx-footer .cookie-footer-links{display:flex;gap:26px;}
.hx-footer a:not(.hx-footer__seal),.hx-footer .cookie-footer-links button{color:var(--f-muted)!important;text-decoration:none;border-bottom:1px solid transparent;transition:color .2s ease,border-color .2s ease;}
.hx-footer a:not(.hx-footer__seal):hover,.hx-footer a:not(.hx-footer__seal):focus-visible,.hx-footer .cookie-footer-links button:hover{color:var(--f-ink)!important;border-bottom-color:var(--f-line);}
.hx-footer__up{display:grid;place-items:center;width:30px;height:30px;padding:0;border-radius:50%;cursor:pointer;background:none;color:var(--f-gold);border:1px solid var(--f-line);transition:transform .35s var(--ease-sail),color .25s ease,border-color .25s ease;}
.hx-footer__up:hover,.hx-footer__up:focus-visible{transform:translateY(-2px);color:var(--f-ink);border-color:var(--f-gold);}
.hx-footer__up:focus-visible{outline:2px solid var(--f-gold);outline-offset:3px;}
@media (max-width:640px){
  .hx-footer{margin-top:44px!important;border-radius:22px 22px 0 0;gap:6px 18px;}
  .hx-footer__top{padding-top:18px;}
  .hx-footer__worlds{gap:10px 8px;margin:14px 0 12px;}
  .hx-footer__seal{min-width:0;width:30%;}
  .hx-footer__medal{width:72px;height:72px;}
  .hx-footer__medal img{width:38px;height:38px;padding:7px;}
  .hx-footer__seal strong{font-size:13px;}
  .hx-footer__signature{font-size:18px;}
}
/* The pages that fit on one screen (it, nature, photography, return to harbour): a low footer in one row */
.hx-footer.hx-footer--fit{
  display:grid!important;grid-template-columns:1fr auto 1fr;align-items:center;gap:0 18px;
  margin-top:0!important;min-height:52px;padding:7px 20px!important;border-radius:16px 16px 0 0;
}
.hx-footer--fit .hx-footer__top{display:contents;}
.hx-footer--fit .hx-footer__rule,.hx-footer--fit .hx-footer__role,.hx-footer--fit .hx-footer__up,.hx-footer--fit .r-text,.hx-footer--fit .r-inner{display:none!important;}
.hx-footer--fit .hx-footer__worlds{grid-column:2;grid-row:1;margin:0;gap:0 14px;flex-wrap:nowrap;}
.hx-footer--fit .hx-footer__sign{grid-column:1;grid-row:1;justify-self:start;margin:0;display:block;text-align:left;}
.hx-footer--fit .hx-footer__signature{font-size:13px;}
.hx-footer--fit .hx-footer__links{grid-column:3;grid-row:1;justify-self:end;display:flex;align-items:center;gap:6px 16px;}
.hx-footer--fit .hx-footer__links .footer-contact,.hx-footer--fit .hx-footer__links .cookie-footer-links{order:0;font-size:10px;letter-spacing:.12em;}
.hx-footer--fit .hx-footer__links .cookie-footer-links{gap:16px;}
.hx-footer--fit .hx-footer__seal{min-width:0;gap:0;}
.hx-footer--fit .hx-footer__medal{width:38px;height:38px;filter:none;}
.hx-footer--fit .hx-footer__medal img{width:24px;height:24px;padding:4px;}
.hx-footer--fit .hx-footer__seal strong{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
.hx-footer--fit .hx-footer__seal.is-here strong::after{display:none;}
.hx-footer--fit .hx-footer__seal.is-here::after{content:"";position:absolute;left:50%;bottom:-5px;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:var(--hx-world,var(--f-gold));}
.hx-footer--fit .hx-footer__seal.is-newest::before{top:-6px;border-width:4px;border-top-width:6px;margin-left:-4px;}
/* the sound button of the themed pages sits bottom left: the signature steps aside */
@media (min-width:901px){.hx-footer--fit.has-sound .hx-footer__sign{padding-left:212px;}}
@media (max-width:900px){
  .hx-footer.hx-footer--fit{padding-left:68px!important;}
}
@media (max-width:640px){
  .hx-footer.hx-footer--fit{grid-template-columns:1fr;justify-items:center;gap:8px 0;padding:8px 16px 10px 68px!important;}
  .hx-footer--fit .hx-footer__worlds{grid-column:1;grid-row:1;}
  .hx-footer--fit .hx-footer__links{grid-column:1;grid-row:2;justify-self:center;}
  .hx-footer--fit .hx-footer__sign{grid-column:1;grid-row:3;justify-self:center;text-align:center;}
  .hx-footer--fit .hx-footer__signature{font-size:12px;}
}
/* very low screens: the signature goes first, then the rest stays as small as it can */
@media (max-height:560px){.hx-footer--fit .hx-footer__sign{display:none;}}
@media print{.hx-footer{display:none!important;}}

@media (prefers-reduced-motion:reduce){
  .hx-footer__ring{animation:none!important;}
}

@media (prefers-reduced-motion:reduce){
  .harbour-wake,.harbour-gilt,.harbour-arrival-veil,.harbour-arrival{display:none;}
}
@media print{.harbour-wake,.harbour-gilt,.harbour-arrival-veil,.harbour-arrival{display:none!important;}}
