/*
 * The public shell. No inline styles anywhere in the rendered page, so this
 * file plus the generated theme stylesheet are the whole presentation.
 */

:root {
  --lpk-accent: #0f766e;
  --lpk-accent-contrast: #ffffff;
  --lpk-bg: #0f1214;
  /* Space the viewer must leave for the header; the script measures it. */
  --lpk-chrome: 9rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--lpk-bg);
  color: #e6edf1;
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.lpk-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Preview only: the public page never renders this element. */
.lpk-preview {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  padding: 0.5rem 1rem;
  background: #f5b301;
  color: #201700;
  font-size: 0.875rem;
}

.lpk-preview strong {
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.lpk-preview a {
  color: inherit;
  text-underline-offset: 2px;
}

.lpk-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 0.75rem;
  background: #ffffff;
  color: #000000;
  z-index: 20;
}

.lpk-skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* The gallery frame: a title, the fitted image, and a toolbar that floats. */
.lpk-head {
  flex: 0 0 auto;
  padding: 0.5rem 1rem 0.25rem;
  text-align: center;
}

.lpk-head__row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lpk-head__title {
  margin: 0;
  padding: 0 2.75rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* The menu is a <details>, so it opens without JavaScript. */
.lpk-menu {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 30;
  transform: translateY(-50%);
}

.lpk-menu__button {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: #e6edf1;
  list-style: none;
  cursor: pointer;
}

.lpk-menu__button::-webkit-details-marker {
  display: none;
}

.lpk-menu__button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.lpk-menu__button:hover,
.lpk-menu[open] .lpk-menu__button {
  background: rgb(255 255 255 / 0.12);
}

.lpk-menu__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 7;
  width: min(22rem, 92vw);
  max-height: 60dvh;
  overflow: auto;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  background: #1d1d1b;
  box-shadow: 0 16px 48px rgb(0 0 0 / 0.55);
  /* The panel is a list of destinations: left-aligned reads faster than the
     centred header it hangs from. */
  text-align: left;
}

.lpk-menu__item {
  display: block;
  padding: 0.5rem 0;
  color: #e6edf1;
  font-size: 0.875rem;
  text-decoration: none;
}

.lpk-menu__item:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Pages live in the menu: a label, then a link per page. */
.lpk-menu__label {
  margin: 0.125rem 0 0.125rem;
  padding-left: 1.125rem;
  color: #8b979e;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lpk-menu__pages {
  display: flex;
  flex-direction: column;
  margin: 0 0 0.5rem;
}

.lpk-menu__item--page {
  position: relative;
  padding: 0.375rem 0 0.375rem 1.125rem;
}

.lpk-menu__item--page[aria-current='page'] {
  color: #ffffff;
  font-weight: 600;
}

/* A submenu: a row that opens to its pages, closed until asked. */
.lpk-menu__group {
  display: block;
}

.lpk-menu__group-summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.375rem 0 0.375rem 1.125rem;
  color: #d7dee3;
  font-size: 0.875rem;
  list-style: none;
  cursor: pointer;
}

.lpk-menu__group-summary::-webkit-details-marker {
  display: none;
}

.lpk-menu__group-summary:hover {
  color: #ffffff;
  text-decoration: underline;
}

.lpk-menu__group[data-current] .lpk-menu__group-summary {
  color: #ffffff;
  font-weight: 600;
}

.lpk-menu__group[data-current] .lpk-menu__group-summary::before {
  content: '';
  position: absolute;
  left: 0.125rem;
  top: 50%;
  width: 0.375rem;
  height: 0.375rem;
  margin-top: -0.1875rem;
  border-radius: 999px;
  background: var(--lpk-accent);
}

.lpk-menu__chevron {
  flex: 0 0 auto;
  width: 0.875rem;
  height: 0.875rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 120ms ease;
}

.lpk-menu__group[open] .lpk-menu__chevron {
  transform: rotate(90deg);
}

/* No display here on purpose: the links are block elements already, and a
   display rule would fight the browser's own rule that hides a closed
   <details> content. */
.lpk-menu__group-pages {
  margin: 0 0 0.375rem 1.125rem;
  padding-left: 0.25rem;
  border-left: 1px solid rgb(255 255 255 / 0.14);
}

/* A dot marks the page you are on, so the list reads at a glance. */
.lpk-menu__item--page[aria-current='page']::before {
  content: '';
  position: absolute;
  left: 0.125rem;
  top: 50%;
  width: 0.375rem;
  height: 0.375rem;
  margin-top: -0.1875rem;
  border-radius: 999px;
  background: var(--lpk-accent);
}

.lpk-about__meta {
  margin: 0 0 0.75rem;
  color: #9fb3bd;
  font-size: 0.8125rem;
}

.lpk-about__group {
  margin-top: 0.75rem;
}

.lpk-about__group summary {
  padding: 0.375rem 0;
  font-size: 0.875rem;
  cursor: pointer;
}

.lpk-about__group summary::-webkit-details-marker {
  display: none;
}

.lpk-about__group summary::before {
  content: "▸";
  display: inline-block;
  width: 1rem;
  color: #9fb3bd;
  transition: transform 120ms ease;
}

.lpk-about__group[open] summary::before {
  transform: rotate(90deg);
}

.lpk-about__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lpk-about__links li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0;
}

.lpk-about__links a {
  color: inherit;
  text-underline-offset: 2px;
}

.lpk-about__pin {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  fill: var(--lpk-accent);
}

.lpk-menu__toggle {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.lpk-menu__toggle[hidden] {
  display: none;
}


.lpk-viewer {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  overflow: hidden;
}

/* The stage shrink-wraps the image, so the SVG overlay is exactly the image
   box at every size, and the whole stage transforms as one unit. */
.lpk-stage {
  position: relative;
  max-width: 100%;
  transform-origin: 0 0;
  touch-action: none;
}

.lpk-stage--zoomed {
  cursor: grab;
}

.lpk-stage--zoomed:active {
  cursor: grabbing;
}

.lpk-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - var(--lpk-chrome));
  user-select: none;
  -webkit-user-drag: none;
}

.lpk-hs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* The image alone decides the stage size; the overlay follows it. */
.lpk-viewer:fullscreen .lpk-img,
.lpk-viewer:fullscreen .lpk-stage {
  max-height: 100dvh;
}

.lpk-viewer:fullscreen {
  background: var(--lpk-bg);
}

.lpk-tools {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgb(20 24 27 / 0.55);
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.35);
  backdrop-filter: blur(10px);
}

.lpk-tools[hidden] {
  display: none;
}

.lpk-tools button {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #e6edf1;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.lpk-tools button:hover,
.lpk-tools button:focus-visible {
  background: rgb(255 255 255 / 0.14);
}

.lpk-tools__level {
  min-width: 3rem;
  text-align: center;
  color: #9fb3bd;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}


/* A profile card: a person, not a popup with a different title. */
.lpk-profile__card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.25rem;
  width: min(92vw, 36rem);
  max-height: 82dvh;
  overflow: auto;
  padding: 1.5rem;
  border-radius: 14px;
  background: #1d1d1b;
  color: #e6edf1;
  box-shadow: 0 16px 48px rgb(0 0 0 / 0.55);
}

.lpk-profile__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #0f1214;
}

.lpk-profile__body {
  min-width: 0;
}

.lpk-profile__body h2 {
  margin: 0 0 0.375rem;
  padding-right: 2rem;
  font-size: 1.25rem;
}

.lpk-profile__bio {
  margin: 0 0 0.875rem;
  color: #c8d3d8;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.lpk-profile__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.lpk-social {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  color: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: lowercase;
}

.lpk-social svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

/* A stroke icon in the same tile: the globe, not a filled shape. */
.lpk-social svg.lpk-icon--stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lpk-social:hover,
.lpk-social:focus-visible {
  background: var(--lpk-accent);
  color: var(--lpk-accent-contrast);
}

.lpk-profile__contact {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
}

.lpk-profile__contact a {
  color: inherit;
  text-underline-offset: 2px;
  margin-right: 0.75rem;
}

.lpk-profile__contact a:last-child {
  margin-right: 0;
}

.lpk-profile__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lpk-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  color: inherit;
  font-size: 0.8125rem;
  text-decoration: none;
}

.lpk-link:hover,
.lpk-link:focus-visible {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.3);
}

.lpk-link__icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 40rem) {
  .lpk-profile__card {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }

  .lpk-profile__photo {
    width: 7rem;
    height: 7rem;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    /* The card is one column on a phone: centre the photo in it. */
    justify-self: center;
    margin-inline: auto;
  }
}

/* A tap on empty space shows where the interactive areas are. */
.lpk-hs--pulse .lpk-hs__shape {
  fill: rgb(255 255 255 / 0.3);
  animation: lpk-pulse 1.2s ease-out;
}

.lpk-hs--pulse .lpk-hs__dot,
.lpk-hs--pulse .lpk-hs__pin path {
  animation: lpk-pulse 1.2s ease-out;
}

@keyframes lpk-pulse {
  0%,
  100% {
    opacity: 1;
    filter: none;
  }

  35% {
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--lpk-accent)) brightness(1.7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lpk-hs--pulse .lpk-hs__shape,
  .lpk-hs--pulse .lpk-hs__dot,
  .lpk-hs--pulse .lpk-hs__pin path {
    animation: none;
  }
}

/* A first load quietly shows where the image is interactive: an accent
   outline on each region and a soft pulse on the markers, twice, then gone.
   Only paint properties move, so nothing shifts and clicking is unaffected. */
.lpk-hs--intro .lpk-hs__shape {
  stroke: var(--lpk-accent);
  stroke-width: 2;
  stroke-opacity: 0;
  vector-effect: non-scaling-stroke;
  animation: lpk-intro-outline 1.6s ease-in-out 2;
}

.lpk-hs--intro .lpk-hs__dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: lpk-intro-dot 1.6s ease-in-out 2;
}

.lpk-hs--intro .lpk-hs__pin {
  animation: lpk-intro-pin 1.6s ease-in-out 2;
}

.lpk-hs--intro .lpk-hs__symbol,
.lpk-hs--intro .lpk-hs__button,
.lpk-hs--intro .lpk-hs__button-text {
  animation: lpk-intro-mark 1.6s ease-in-out 2;
}

@keyframes lpk-intro-mark {
  0%,
  100% {
    opacity: 1;
  }

  45% {
    opacity: 0.55;
  }
}

@keyframes lpk-intro-outline {
  0%,
  100% {
    stroke-opacity: 0;
  }

  45% {
    stroke-opacity: 0.85;
  }
}

@keyframes lpk-intro-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  45% {
    opacity: 0.7;
    transform: scale(1.16);
  }
}

@keyframes lpk-intro-pin {
  0%,
  100% {
    opacity: 1;
  }

  45% {
    opacity: 0.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lpk-hs--intro .lpk-hs__shape,
  .lpk-hs--intro .lpk-hs__dot,
  .lpk-hs--intro .lpk-hs__pin,
  .lpk-hs--intro .lpk-hs__symbol,
  .lpk-hs--intro .lpk-hs__button,
  .lpk-hs--intro .lpk-hs__button-text {
    animation: none;
  }
}

@media (max-width: 40rem) {
  .lpk-head {
    padding: 0.5rem 0.75rem 0.25rem;
  }

  .lpk-head__title {
    font-size: 1rem;
  }

  .lpk-tools {
    right: auto;
    left: 50%;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    transform: translateX(-50%);
  }

  .lpk-tools__wide {
    display: none;
  }
}

.lpk-hs__a {
  cursor: pointer;
}

.lpk-hs__a:focus {
  outline: none;
}

.lpk-hs__shape {
  fill: transparent;
}

/* Symbols and buttons draw themselves inside the box; the box stays the hit
   region, so hover and focus behave exactly like every other hotspot. */
.lpk-hs__symbol {
  fill: none;
  stroke: var(--lpk-accent);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.45));
  pointer-events: none;
}

.lpk-hs__button {
  fill: var(--lpk-accent);
  pointer-events: none;
}

.lpk-hs__button--outline {
  fill: none;
  stroke: var(--lpk-accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.lpk-hs__button--ghost {
  fill: none;
}

.lpk-hs__button-text {
  fill: #ffffff;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.lpk-hs__button-text--outline,
.lpk-hs__button-text--ghost {
  fill: var(--lpk-accent);
}

.lpk-hs__a:hover .lpk-hs__symbol {
  filter: drop-shadow(0 0 0.5px #ffffff) drop-shadow(0 1px 2px rgb(0 0 0 / 0.45));
}

.lpk-hs--hover .lpk-hs__shape {
  transition: fill 120ms ease;
}

.lpk-hs--hover:hover .lpk-hs__shape,
.lpk-hs--hover:focus-visible .lpk-hs__shape {
  fill: rgb(255 255 255 / 0.18);
}

/* Keyboard users always see where they are, even on an "invisible" hotspot. */
.lpk-hs__a:focus-visible .lpk-hs__shape,
.lpk-hs__a:focus-visible .lpk-hs__dot {
  stroke: #ffffff;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.lpk-hs__dot {
  fill: var(--lpk-accent);
  stroke: rgb(0 0 0 / 0.35);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

/* A map action gets a pin, so it reads as a place rather than a dot. */
.lpk-hs__pin path {
  fill: var(--lpk-accent);
  stroke: rgb(0 0 0 / 0.35);
  stroke-width: 1;
}

.lpk-hs__pin circle {
  fill: var(--lpk-bg);
}

.lpk-hs__a:focus-visible .lpk-hs__pin path {
  stroke: #ffffff;
  stroke-width: 2;
}

/* Popups: present in the HTML, hidden until :target. No JavaScript needed. */
.lpk-popup {
  display: none;
}

.lpk-popup:target {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 40;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lpk-popup:target::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.6);
}

.lpk-popup__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 34rem;
  max-height: 80vh;
  overflow: auto;
  padding: 1.5rem;
  border-radius: 12px;
  background: #1d1d1b;
  color: #e6edf1;
}

.lpk-popup__box h2 {
  margin: 0 2rem 0.75rem 0;
  font-size: 1.25rem;
}

.lpk-popup__img {
  display: block;
  width: 100%;
  max-height: 45dvh;
  margin: 0.75rem 0;
  object-fit: contain;
  background: #0f1214;
  border-radius: 8px;
}

.lpk-btn {
  display: inline-block;
  margin: 0.5rem 0.5rem 0 0;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.lpk-btn--primary {
  background: var(--lpk-accent);
  color: var(--lpk-accent-contrast);
}

.lpk-btn--secondary {
  border: 1px solid rgb(255 255 255 / 0.25);
  color: inherit;
}

.lpk-popup__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: inherit;
  text-decoration: none;
  font-size: 1.25rem;
}

.lpk-popup__close:hover {
  background: rgb(255 255 255 / 0.1);
}


.lpk-calendar__when {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.lpk-calendar__text {
  margin: 0 0 0.75rem;
}

.lpk-calendar__choices {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.lpk-calendar__choices .lpk-btn {
  display: block;
  margin: 0;
  text-align: center;
}

.lpk-index a {
  color: #9fb3bd;
}

/* A hover label: a small card beside the hotspot, never a modal. */
.lpk-hover {
  position: fixed;
  z-index: 60;
  max-width: min(18rem, calc(100vw - 1rem));
  padding: 0.75rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 10px;
  background: #14181b;
  color: #e6edf1;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.4);
  pointer-events: none;
}

.lpk-hover[hidden] {
  display: none;
}

.lpk-hover__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.lpk-hover__text {
  margin: 0.25rem 0 0;
  color: #b6c2c9;
  font-size: 0.875rem;
  line-height: 1.45;
  white-space: pre-line;
}

.lpk-hover__img {
  display: block;
  width: 100%;
  max-height: 8rem;
  margin-top: 0.5rem;
  border-radius: 6px;
  background: #0d1012;
  object-fit: contain;
}
