/* =========================================================================
   UNË PËR TETOVËN — design tokens
   Palette drawn from the city itself: river teal, tile terracotta,
   stone parchment, mountain slate, fresco saffron.
   ========================================================================= */
:root {
  --petrol: #1b3a3a;
  --petrol-soft: #2f4f4f;
  --parchment: #ede4d3;
  --parchment-deep: #e2d4b4;
  --terracotta: #b6562f;
  --terracotta-deep: #8f4322;
  --slate: #5c7a78;
  --saffron: #d9a23b;
  --paper-line: rgba(27, 58, 58, 0.14);

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Lora", Georgia, serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--parchment);
  color: var(--petrol);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================================
   Masthead
   ========================================================================= */
.masthead {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--paper-line);
}

.masthead-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.masthead h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 44px);
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
}

.coords {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--slate);
  margin: 10px 0 2px;
}

.tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 17px;
  color: var(--petrol-soft);
  margin: 0;
}

.masthead--sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.back-link {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  border-bottom: 1px solid transparent;
}

.back-link:hover {
  border-bottom-color: var(--terracotta-deep);
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.about-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  border-bottom: 1px solid transparent;
}

.about-link:hover {
  border-bottom-color: var(--terracotta-deep);
}

.about-link--hero {
  color: var(--parchment);
  border: 1.5px solid var(--parchment);
  background: rgba(27, 58, 58, 0.35);
  backdrop-filter: blur(3px);
  border-radius: 3px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}

.about-link--hero:hover {
  background: var(--parchment);
  color: var(--petrol);
}

/* =========================================================================
   Language switcher — stamped buttons
   ========================================================================= */
.lang-switcher {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 11px;
  border: 1.5px solid var(--petrol);
  background: transparent;
  color: var(--petrol);
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-btn:hover {
  background: var(--petrol);
  color: var(--parchment);
}

.lang-btn.is-active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--parchment);
}

/* =========================================================================
   Full-bleed hero (landing)
   ========================================================================= */
.body--hero {
  background: var(--petrol);
}

.hero-layout {
  display: flex;
  align-items: stretch;
  height: 100vh;
  min-height: 520px;
}

.hero {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--petrol);
}

/* Blurred copy of the map fills any space around the (uncropped) map itself */
.hero-bg {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  filter: blur(22px) saturate(0.9);
  display: block;
}

/* Darkening scrim so the masthead stays legible over the blurred backdrop */
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom,
      rgba(27, 58, 58, 0.6) 0%,
      rgba(27, 58, 58, 0.25) 30%,
      rgba(27, 58, 58, 0.25) 65%,
      rgba(27, 58, 58, 0.7) 100%
    );
}

/* The map is fitted whole inside the hero (never cropped) so icon positions,
   given as percentages of the map, always line up. --stage-unit is 1% of the
   map's rendered width. On phones the map fills the height instead and the
   hero scrolls sideways. */
.hero-scroller {
  position: absolute;
  inset: 0;
  container-type: size;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  --stage-unit: min(1cqw, 1.7769cqh);
}

.hero-stage {
  position: absolute;
  inset: 0;
  margin: auto;
  width: calc(100 * var(--stage-unit));
  height: calc(100 * var(--stage-unit) * 941 / 1672);
}

.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.hero-hotspots {
  position: absolute;
  inset: 0;
}

/* Overlaid masthead */
.hero-masthead {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px clamp(20px, 4vw, 52px);
  z-index: 5;
}

.hero-titles h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 60px);
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
  color: var(--parchment);
  text-shadow: 0 2px 18px rgba(27, 58, 58, 0.6);
}

.tagline--hero {
  color: var(--parchment);
  opacity: 0.92;
  margin: 6px 0 0;
  font-size: clamp(15px, 2.4vw, 19px);
  text-shadow: 0 1px 10px rgba(27, 58, 58, 0.7);
}

.lang-switcher--hero .lang-btn {
  border-color: var(--parchment);
  color: var(--parchment);
  background: rgba(27, 58, 58, 0.35);
  backdrop-filter: blur(3px);
}

.lang-switcher--hero .lang-btn:hover {
  background: var(--parchment);
  color: var(--petrol);
}

.lang-switcher--hero .lang-btn.is-active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--parchment);
}

/* Bottom overlay bar */
.hero-footbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px clamp(20px, 4vw, 52px);
  z-index: 5;
}

.hero-explore {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.6vw, 14px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--parchment);
  border-left: 3px solid var(--terracotta);
  padding-left: 12px;
}

/* =========================================================================
   Landmark icons (on hero map)
   ========================================================================= */
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: calc(var(--hw) * var(--stage-unit));
  height: calc(var(--hh) * var(--stage-unit) * 941 / 1672);
  z-index: 3;
  display: block;
  outline-offset: 4px;
}

/* The icon is positioned inside the hover box (inline left/top/width set in
   js/map.js) and centred on its own point; clicks/hover use the box. */
.hotspot-iconwrap {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* The map itself is flat artwork with the landmarks drawn in; each icon is
   fitted over its drawn object and only fades in on hover/focus, so it
   looks like the object lifts off the map. On touch screens (no hover) a
   first tap sets .is-active (see js/map.js) and a second tap opens the page. */
.hotspot-icon {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transform-origin: 50% 85%;
  filter: drop-shadow(0 6px 7px rgba(27, 58, 58, 0.4));
  transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

.hotspot:hover .hotspot-icon,
.hotspot:focus-visible .hotspot-icon,
.hotspot.is-active .hotspot-icon {
  opacity: 1;
  transform: translateY(-4px) scale(1.03);
  filter: drop-shadow(0 12px 12px rgba(27, 58, 58, 0.5));
}

/* Name pill under each icon, always visible so every landmark is
   identifiable at a glance. */
.hotspot-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: -4px;
  width: max-content;
  max-width: clamp(84px, calc(var(--stage-unit) * 10.5), 130px);
  text-align: center;
  background: rgba(237, 228, 211, 0.95);
  border: 1px solid var(--parchment-deep);
  border-radius: 4px;
  padding: 3px 6px;
  box-shadow: 0 3px 12px rgba(27, 58, 58, 0.35);
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(7.5px, calc(var(--stage-unit) * 0.9), 11px);
  line-height: 1.2;
  color: var(--petrol);
  transition: background-color 0.16s ease, color 0.16s ease;
}

.hotspot:hover,
.hotspot:focus-visible {
  z-index: 4;
}

.hotspot:hover .hotspot-label,
.hotspot:focus-visible .hotspot-label,
.hotspot.is-active .hotspot-label {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--parchment);
}

/* Names only on hover/tap when the map is displayed too small to fit them all
   (toggled by js/map.js). */
.labels-on-hover .hotspot-label {
  opacity: 0;
  transition: opacity 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.labels-on-hover .hotspot:hover .hotspot-label,
.labels-on-hover .hotspot:focus-visible .hotspot-label,
.labels-on-hover .hotspot.is-active .hotspot-label {
  opacity: 1;
}

/* Phones: the map is larger than the screen and drags in any direction */
@media (max-width: 720px) {
  .hero-scroller {
    overflow: auto;
    --stage-unit: 2.2cqh;
    -webkit-overflow-scrolling: touch;
  }
}

/* =========================================================================
   Legend
   ========================================================================= */
.legend-section {
  max-width: 1120px;
  margin: 28px auto 0;
  padding: 0 24px;
}

.legend-section--hero {
  max-width: none;
  width: clamp(280px, 27vw, 400px);
  flex: none;
  height: 100%;
  margin: 0;
  padding: 28px clamp(16px, 2vw, 28px);
  background: var(--parchment);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.legend-section--hero .legend-list {
  max-width: none;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.legend-section--hero h2 {
  max-width: none;
  margin: 0 0 12px;
  flex: none;
}

/* Mobile only (matches the hotspot breakpoint above) -- below this width
   the sidebar has no room to breathe next to the map, so stack the legend
   below it as a normal scrolling section instead. Tablet and desktop both
   keep the side-by-side layout. */
@media (max-width: 720px) {
  .hero-layout {
    flex-direction: column;
    height: auto;
    min-height: 0;
  }

  .hero {
    flex: none;
    height: 100vh;
    min-height: 520px;
  }

  .legend-section--hero {
    width: auto;
    height: auto;
    max-height: none;
    padding: 32px clamp(20px, 4vw, 52px) 8px;
    overflow: visible;
  }

  .legend-section--hero .legend-list {
    flex: none;
    overflow-y: visible;
  }
}

.legend-section h2 {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 12px;
  border-bottom: 1px solid var(--paper-line);
  padding-bottom: 8px;
}

.legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px 18px;
}

.legend-list li {
  border-bottom: 1px solid var(--paper-line);
}

.legend-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 4px;
}

.legend-list a:hover .legend-name {
  color: var(--terracotta-deep);
  text-decoration: underline;
}

.legend-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--terracotta);
  font-size: 14px;
  min-width: 22px;
}

.legend-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  flex: 1;
}

.legend-cat {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  color: var(--slate);
  letter-spacing: 0.03em;
}

/* =========================================================================
   Footer
   ========================================================================= */
/* =========================================================================
   Landmark page
   ========================================================================= */
.landmark {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 8px;
}

.landmark-icon {
  display: block;
  width: 84px;
  height: auto;
  margin: 0 auto 16px;
  filter: drop-shadow(0 8px 10px rgba(27, 58, 58, 0.25));
}

.landmark-heading {
  text-align: center;
}

.landmark-heading .eyebrow {
  justify-content: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  margin: 0 0 8px;
}

.eyebrow-num {
  color: var(--terracotta);
  font-weight: 700;
  font-size: 15px;
}

.eyebrow-cat {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  border: 1px solid var(--slate);
  padding: 2px 9px;
  border-radius: 3px;
}

.landmark h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 46px);
  margin: 0 0 24px;
  text-transform: uppercase;
}

.panorama-frame {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panorama-scene-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0;
}

.more-panoramas {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 36px;
}

.more-panoramas:empty {
  margin-top: 0;
}

.panorama-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.streetview-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border: 1px solid var(--slate);
  color: var(--terracotta-deep);
  padding: 5px 11px;
  border-radius: 3px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.streetview-link:hover {
  background: var(--parchment-deep);
  border-color: var(--terracotta);
}

.panorama-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1.5px solid var(--petrol);
  border-radius: 4px;
  background: var(--petrol-soft);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.panorama-viewport.is-dragging {
  cursor: grabbing;
}

.panorama-viewport canvas.panorama-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.panorama-fallback-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Flat artefact photos (no 360°) -- unlike the panorama viewport, this
   isn't cropped to a fixed 16:9 box, since there's no drag/pan to reveal
   the cropped parts. The full photo shows at its own aspect ratio. */
.panorama-viewport--photo {
  aspect-ratio: auto;
  cursor: default;
  touch-action: auto;
}

.panorama-viewport--photo .panorama-fallback-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.panorama-status {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--terracotta-deep);
  margin: 0;
}

/* Click-to-play overlay for the deferred "extra" panorama scenes -- a
   plain flat preview of the same photo until clicked, so the heavy
   WebGL/texture-load cost of a full 360° viewer is only paid for scenes a
   visitor actually opens. */
.panorama-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--parchment);
}

.panorama-play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(27, 58, 58, 0.72);
  border: 2px solid var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.panorama-play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--parchment);
}

.panorama-play-btn:hover .panorama-play-icon,
.panorama-play-btn:focus-visible .panorama-play-icon {
  background: var(--terracotta);
  transform: scale(1.08);
}

.panorama-play-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* Shown between clicking play and the full-size 360° photo arriving */
.panorama-viewport.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 3px solid rgba(237, 228, 211, 0.3);
  border-top-color: var(--parchment);
  animation: panorama-spin 0.9s linear infinite;
  pointer-events: none;
}

@keyframes panorama-spin {
  to {
    transform: rotate(360deg);
  }
}

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

.landmark-description {
  margin-top: 32px;
  font-size: 17.5px;
  line-height: 1.7;
}

.landmark-description p {
  margin: 0 0 16px;
}

.landmark-description p:last-child {
  margin-bottom: 0;
}

/* =========================================================================
   Landmark feature section (lead, facts, cards, highlight, timeline, closing)
   -- sits above the 360°/photo viewer, built from the same description text.
   ========================================================================= */
.feature {
  margin-top: 28px;
}

.feature-lead {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: none;
  margin: 0 auto 32px;
  text-align: center;
  color: var(--petrol-soft);
}

.feature-lead::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--terracotta);
  margin: 24px auto 0;
}

.feature-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
}

.feature-fact {
  background: var(--parchment);
  padding: 16px 14px;
  text-align: center;
}

.feature-fact small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 4px;
}

.feature-fact strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
}

.feature-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.feature-card {
  background: var(--parchment);
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 24px 26px;
}

.feature-card .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: 6px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  margin: 0 0 12px;
  line-height: 1.3;
}

.feature-card p {
  margin: 0 0 12px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.feature-card p:last-child {
  margin-bottom: 0;
}

.feature-card ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.feature-card li {
  padding: 6px 0 6px 20px;
  position: relative;
  border-top: 1px dashed var(--paper-line);
  font-size: 0.92rem;
}

.feature-card li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--terracotta);
  font-size: 0.65rem;
}

.feature-highlight {
  border-left: 4px solid var(--terracotta);
  padding: 4px 0 4px 24px;
  margin: 0 0 40px;
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--petrol-soft);
  max-width: none;
}

.feature-timeline-wrap {
  margin-bottom: 40px;
}

.feature-timeline-wrap .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: 4px;
}

.feature-timeline-wrap h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0 0 6px;
}

.feature-timeline-wrap > p {
  color: var(--slate);
  max-width: none;
  margin: 0;
}

.feature-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: feature-step;
}

.feature-timeline li {
  counter-increment: feature-step;
  position: relative;
  padding-top: 42px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.feature-timeline li::before {
  content: counter(feature-step);
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--petrol);
  color: var(--parchment);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
}

.feature-timeline li::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 38px;
  right: -8px;
  height: 1px;
  background: var(--paper-line);
}

.feature-timeline li:last-child::after {
  display: none;
}

.feature-timeline li:last-child::before {
  background: var(--terracotta);
}

.feature-closing {
  background: var(--petrol);
  color: var(--parchment);
  border-radius: 8px;
  padding: 26px 28px;
  margin-bottom: 8px;
}

.feature-closing .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 6px;
}

.feature-closing p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: none;
}

@media (max-width: 720px) {
  .feature-lead {
    font-size: 1.1rem;
  }
  .feature-facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-cols {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .feature-card {
    padding: 20px 18px;
  }
  .feature-timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .feature-timeline li {
    padding: 4px 0 20px 46px;
  }
  .feature-timeline li::after {
    top: 34px;
    left: 14px;
    right: auto;
    bottom: 0;
    width: 1px;
    height: auto;
  }
}

.not-found-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
}

/* =========================================================================
   About page
   ========================================================================= */
.about {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.about h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 46px);
  text-transform: uppercase;
  margin: 0 0 28px;
}

.about-body {
  font-size: 17.5px;
  line-height: 1.75;
}

.about-body p {
  margin: 0 0 18px;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-funded {
  margin-top: 40px;
  padding: 24px 28px;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  background: var(--card, var(--parchment));
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.about-funded-text .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin: 0 0 4px;
}

.about-funded-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.about-funded-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  flex: none;
  background: var(--petrol);
  border-radius: 6px;
}

.about-funded-logo img {
  height: 84px;
  width: auto;
  display: block;
}

.about-funded-logo--own {
  background: none;
}

.about-funded-logo--own img {
  width: 108px;
  height: 108px;
  border-radius: 6px;
}

.about-funded-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 1px solid transparent;
}

.about-funded-link:hover {
  color: var(--terracotta-deep);
  border-bottom-color: var(--terracotta-deep);
}

.about-impl {
  margin-top: 16px;
}

/* =========================================================================
   Gallery page
   ========================================================================= */
.gallery {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.gallery h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 46px);
  text-transform: uppercase;
  margin: 0 0 28px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-item {
  padding: 0;
  border: 0;
  background: var(--petrol-soft);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

@media (max-width: 560px) {
  .gallery {
    padding: 28px 12px 48px;
  }
  .gallery-grid {
    gap: 6px;
  }
}

body.lb-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 30, 30, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.lightbox[hidden] {
  display: none;
}

.lb-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  padding: 56px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lb-img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
}

.lb-count {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--parchment);
}

.lb-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--parchment);
  background: rgba(27, 58, 58, 0.55);
  color: var(--parchment);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-btn:hover,
.lb-btn:focus-visible {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.lb-close {
  top: 14px;
  right: 14px;
}

.lb-prev {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 560px) {
  .lb-figure {
    padding: 56px 8px;
  }
  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 12px;
    transform: none;
  }
}

/* =========================================================================
   Pager (prev / next)
   ========================================================================= */
.landmark-pager {
  max-width: 1120px;
  margin: 36px auto 40px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .landmark-pager {
    grid-template-columns: 1fr;
  }
}

.pager-link {
  border: 1px solid var(--petrol);
  border-radius: 4px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background-color 0.15s ease;
}

.pager-link:hover {
  background: var(--parchment-deep);
}

.pager-next {
  text-align: right;
  flex-direction: row-reverse;
}

.nav-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: none;
}

.nav-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.nav-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
}

.nav-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .panorama-viewport.is-loading::after {
    animation: none;
  }
  .hotspot-icon,
  .hotspot-label,
  .lang-btn,
  .pager-link {
    transition: none;
  }
}
