@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/nunito-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/nunito-latin-700-normal.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  color: #111111;
  font-family: "Nunito", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow: hidden;
}

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

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

button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: fixed;
  top: 12px;
  right: 12px;
  /* Above metro so lang dropdown + burger fullscreen menu cover the rail */
  z-index: 140;
  display: flex;
  align-items: center;
  gap: 8px;
  /* Do NOT add transform/isolation here — it traps position:fixed .site-menu
     inside the header box and turns the full-page menu into a tiny dropdown. */
}

/* Vertical “metro line” page stops */
.metro {
  --metro-index: 0;
  --metro-step: 110px;
  --metro-dot: 11px;
  --metro-gap: 99px;
  --metro-pad: 12px;
  position: fixed;
  right: 12px;
  top: 0;
  bottom: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  padding: 8px 4px;
  pointer-events: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.metro__track {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--metro-gap);
  padding: var(--metro-pad) 0;
  pointer-events: auto;
}

.metro__line {
  position: absolute;
  top: calc(var(--metro-pad) + 5.5px);
  bottom: calc(var(--metro-pad) + 5.5px);
  right: calc(var(--metro-dot) / 2 - 1px);
  width: 2px;
  background: rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  pointer-events: none;
}

.metro__beacon {
  position: absolute;
  top: var(--metro-pad);
  right: 0;
  width: var(--metro-dot);
  height: var(--metro-dot);
  border-radius: 50%;
  background: #58a0e8;
  box-shadow: 0 0 0 3px rgba(88, 160, 232, 0.22);
  -webkit-transform: translateY(0);
  transform: translateY(0);
  -webkit-transition: -webkit-transform 0.78s ease;
  transition: transform 0.78s ease;
  pointer-events: none;
  z-index: 2;
}

.metro__stop {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  height: var(--metro-dot);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  color: inherit;
}

.metro__label {
  position: absolute;
  right: calc(var(--metro-dot) + 10px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: rgba(17, 17, 17, 0.42);
  white-space: nowrap;
  text-align: right;
  transition: color 0.2s ease;
  /* Keep labels inside the stop button hit-target */
  pointer-events: auto;
  padding: 8px 0 8px 10px;
}

.metro__dot {
  flex: 0 0 auto;
  width: var(--metro-dot);
  height: var(--metro-dot);
  min-width: var(--metro-dot);
  min-height: var(--metro-dot);
  border-radius: 50%;
  border: 1.5px solid rgba(17, 17, 17, 0.35);
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.metro__stop:hover .metro__label,
.metro__stop:focus-visible .metro__label {
  color: #58a0e8;
}

.metro__stop:hover .metro__dot,
.metro__stop:focus-visible .metro__dot {
  border-color: #58a0e8;
}

.metro__stop:focus-visible {
  outline: none;
}

/* Stops stay hollow — only the traveling blue beacon fills the active stop */
.metro__stop.is-active .metro__dot {
  border-color: rgba(17, 17, 17, 0.2);
  background: transparent;
}

.metro__stop.is-active .metro__label {
  color: #58a0e8;
  font-weight: 600;
}

body.menu-open .metro,
body.map-pseudo-fullscreen .metro {
  visibility: hidden;
  pointer-events: none;
}

/* Metro only when there is enough width AND height so labels never cover the visual. */
@media (max-width: 1299px), (max-height: 720px) {
  .metro {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .metro__beacon {
    -webkit-transition: -webkit-transform 0.15s ease;
    transition: transform 0.15s ease;
  }
}

.lang-picker {
  position: relative;
  z-index: 2;
  display: block;
  margin: 0;
}

.lang-picker__btn,
.menu-toggle {
  position: relative;
  z-index: 2;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.22);
  background: #fff;
  color: rgba(17, 17, 17, 0.55);
  display: grid;
  place-items: center;
  cursor: pointer;
  transform-origin: center center;
  scale: 1;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    scale 0.28s cubic-bezier(0.22, 1.4, 0.36, 1);
}

.lang-picker__btn {
  min-width: 58px;
  padding: 0 12px;
  grid-auto-flow: column;
  gap: 6px;
  font: 700 0.8rem/1 system-ui, sans-serif;
  letter-spacing: 0.04em;
}

.menu-toggle {
  width: 44px;
  padding: 0;
}

.lang-picker__btn:hover,
.lang-picker__btn:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: #58a0e8;
  background: #58a0e8;
  color: #fff;
  scale: 1.12;
  outline: none;
}

.lang-picker__btn:active,
.menu-toggle:active {
  background: #4a90d4;
  border-color: #4a90d4;
  scale: 1.05;
}

.lang-picker__btn[aria-expanded="true"] {
  border-color: #58a0e8;
  background: #58a0e8;
  color: #fff;
}

.lang-picker__caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.lang-picker__btn[aria-expanded="true"] .lang-picker__caret {
  transform: translateY(2px) rotate(225deg);
}

.lang-picker__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 3;
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 72px;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.1);
}

.lang-picker__menu[hidden] {
  display: none;
}

.lang-picker__option {
  width: 100%;
  display: block;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(17, 17, 17, 0.55);
  font: 700 0.8rem/1 system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  transform-origin: center center;
  scale: 1;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    scale 0.28s cubic-bezier(0.22, 1.4, 0.36, 1);
}

.lang-picker__option:hover,
.lang-picker__option:focus-visible {
  background: #58a0e8;
  color: #fff;
  scale: 1.08;
  outline: none;
}

.lang-picker__option.is-active {
  /* Soft metro-blue, same opacity family as the hollow stop rings */
  background: rgba(88, 160, 232, 0.35);
  color: rgba(17, 17, 17, 0.82);
}

.lang-picker__option.is-active:hover,
.lang-picker__option.is-active:focus-visible {
  background: #58a0e8;
  color: #fff;
}

body.menu-open .menu-toggle {
  border-color: #58a0e8;
  background: #58a0e8;
  color: #fff;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  display: block;
  position: relative;
  transition: transform 0.2s ease, top 0.2s ease, background 0.2s ease;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__bars::before {
  top: -6px;
}

.menu-toggle__bars::after {
  top: 6px;
}

body.menu-open .menu-toggle__bars {
  background: transparent;
}

body.menu-open .menu-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

body.menu-open .menu-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.site-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-menu[hidden]:not(.is-open) {
  display: none;
}

.site-menu.is-open[hidden] {
  display: grid;
}

.site-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
  display: grid;
  gap: 1.2rem;
}

.site-menu__list a {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  transform-origin: center center;
  scale: 1;
  transition:
    color 0.2s ease,
    scale 0.28s cubic-bezier(0.22, 1.4, 0.36, 1);
}

.site-menu__list a:hover,
.site-menu__list a:focus-visible {
  color: #58a0e8;
  scale: 1.12;
  outline: none;
}

.site-menu__list a:active {
  scale: 1.05;
}

/* Full screens switched by transform */
.shell {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  --panel-drag: 0px;
  --panel-slide-ms: 780ms;
  --panel-slide-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transition: transform var(--panel-slide-ms) var(--panel-slide-ease);
  will-change: transform;
}

.shell.is-dragging .screen {
  transition: none;
}

/* Home stays put; later panels slide over it so the logo passes under the shutter */
.screen--home {
  transform: translate3d(0, 0, 0);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Extra top pad so the logo isn’t flush with the viewport edge */
  padding: 48px 20px 28px;
  box-sizing: border-box;
}

/* Short viewports: keep content reachable from the top */
@media (max-height: 720px) {
  .screen--home {
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 36px;
  }
}

.screen--map,
.screen--news,
.screen--contact,
.screen--owner {
  transform: translate3d(0, calc(100% + var(--panel-drag)), 0);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px 16px 52px;
  box-sizing: border-box;
}

.shell[data-panel="map"] .screen--home,
.shell[data-panel="news"] .screen--home,
.shell[data-panel="contact"] .screen--home,
.shell[data-panel="owner"] .screen--home {
  transform: translate3d(0, 0, 0);
  pointer-events: none;
}

.shell[data-panel="map"] .screen--map {
  transform: translate3d(0, var(--panel-drag), 0);
}

.shell[data-panel="map"] .screen--news,
.shell[data-panel="map"] .screen--contact,
.shell[data-panel="map"] .screen--owner {
  transform: translate3d(0, calc(100% + var(--panel-drag)), 0);
}

.shell[data-panel="news"] .screen--map {
  transform: translate3d(0, calc(-100% + var(--panel-drag)), 0);
}

.shell[data-panel="news"] .screen--news {
  transform: translate3d(0, var(--panel-drag), 0);
}

.shell[data-panel="news"] .screen--owner,
.shell[data-panel="news"] .screen--contact {
  transform: translate3d(0, calc(100% + var(--panel-drag)), 0);
}

.shell[data-panel="owner"] .screen--map {
  transform: translate3d(0, calc(-200% + var(--panel-drag)), 0);
}

.shell[data-panel="owner"] .screen--news {
  transform: translate3d(0, calc(-100% + var(--panel-drag)), 0);
}

.shell[data-panel="owner"] .screen--owner {
  transform: translate3d(0, var(--panel-drag), 0);
}

.shell[data-panel="owner"] .screen--contact {
  transform: translate3d(0, calc(100% + var(--panel-drag)), 0);
}

.shell[data-panel="contact"] .screen--map {
  transform: translate3d(0, calc(-300% + var(--panel-drag)), 0);
}

.shell[data-panel="contact"] .screen--news {
  transform: translate3d(0, calc(-200% + var(--panel-drag)), 0);
}

.shell[data-panel="contact"] .screen--owner {
  transform: translate3d(0, calc(-100% + var(--panel-drag)), 0);
}

.shell[data-panel="contact"] .screen--contact {
  transform: translate3d(0, var(--panel-drag), 0);
}

.home {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.home__logo-wrap {
  position: relative;
  z-index: 1;
  width: min(72vw, 340px);
  margin: 0 auto;
  /* No negative pull — keep clear air between logo art and the title */
  margin-bottom: 0;
  pointer-events: none;
}

.home__logo {
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.home__body {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Compact stack: title → copy → download → stores */
  gap: 8px;
  margin-top: 18px;
}

.home__tagline {
  margin: 0 auto;
  max-width: 30rem;
  font-size: clamp(1.05rem, 2.8vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: rgba(17, 17, 17, 0.72);
  text-wrap: pretty;
}

.home__support {
  margin: 0 auto;
  max-width: 36rem;
  font-size: clamp(0.82rem, 2.1vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.4;
  color: rgba(17, 17, 17, 0.42);
  text-wrap: pretty;
}

.home__download,
.home__donation-note {
  margin: 0 auto;
  max-width: 30rem;
  font-size: clamp(0.82rem, 2.1vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.4;
  color: rgba(17, 17, 17, 0.42);
  text-wrap: pretty;
}

.home__download {
  color: #58a0e8;
}

.home__donation-note {
  /* Clear breath between store buttons and the donation pitch */
  margin-top: 28px;
}

/* Large screens: scale home hero so it fills the viewport better */
@media (min-width: 960px) and (min-height: 721px) {
  .home {
    max-width: min(52vw, 720px);
  }

  .home__logo-wrap {
    width: min(28vw, 420px);
    margin-bottom: 0;
  }

  .home__body {
    gap: 8px;
    margin-top: 22px;
  }

  .home__tagline {
    max-width: 34rem;
    font-size: clamp(1.25rem, 1.55vw, 1.65rem);
  }

  .home__support {
    max-width: 42rem;
    font-size: clamp(0.95rem, 1.05vw, 1.1rem);
  }

  .home__download,
  .home__donation-note {
    max-width: 38rem;
    font-size: clamp(0.95rem, 1.05vw, 1.1rem);
  }

  .home__donation-note {
    margin-top: 32px;
  }

  .donate,
  .store {
    padding: 10px 26px;
    font-size: clamp(0.9rem, 1vw, 1.02rem);
  }

  .home__body > .pager {
    margin-top: clamp(20px, 3vh, 36px);
  }
}

@media (min-width: 1400px) and (min-height: 800px) {
  .home {
    max-width: min(48vw, 780px);
  }

  .home__logo-wrap {
    width: min(26vw, 460px);
  }

  .home__tagline {
    font-size: clamp(1.4rem, 1.4vw, 1.75rem);
  }

  .home__support {
    font-size: clamp(1rem, 1vw, 1.15rem);
  }

  .home__download,
  .home__donation-note {
    font-size: clamp(1rem, 1vw, 1.15rem);
  }
}

.home__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
  margin-bottom: 0;
}

.donate,
.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 10px 26px;
  border: 1px solid rgba(17, 17, 17, 0.22);
  border-radius: 999px;
  background: transparent;
  color: rgba(17, 17, 17, 0.55);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  transform-origin: center center;
  /* Prefer independent `scale` so parent panel transforms can’t mute hover */
  scale: 1;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    scale 0.28s cubic-bezier(0.22, 1.4, 0.36, 1),
    padding 0.28s cubic-bezier(0.22, 1.4, 0.36, 1),
    font-size 0.28s cubic-bezier(0.22, 1.4, 0.36, 1);
}

a.donate:hover,
a.donate:focus-visible {
  border-color: rgba(220, 170, 40, 0.45);
  background: #ffd989;
  color: rgba(17, 17, 17, 0.82);
  scale: 1.12;
  padding: 12px 30px;
  font-size: 0.98rem;
}

a.store:hover:not(.store--soon),
a.store:focus-visible:not(.store--soon) {
  border-color: #58a0e8;
  background: #58a0e8;
  color: #fff;
  scale: 1.12;
  padding: 12px 30px;
  font-size: 0.98rem;
}

a.donate:active {
  background: #f0c96a;
  scale: 1.05;
  padding: 11px 28px;
  font-size: 0.94rem;
}

a.store:active:not(.store--soon) {
  background: #4a8fd4;
  border-color: #4a8fd4;
  color: #fff;
  scale: 1.05;
  padding: 11px 28px;
  font-size: 0.94rem;
}

.home__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home__body > .pager {
  margin-top: 24px;
}

@media (max-width: 520px) {
  .home__logo-wrap {
    width: min(64vw, 280px);
    margin-bottom: 0;
  }

  .home__body {
    margin-top: 16px;
    gap: 7px;
  }

  .home__donation-note {
    margin-top: 24px;
  }

  .home__body > .pager {
    margin-top: 20px;
  }

  .home__tagline {
    max-width: 18rem;
  }

  .home__support {
    max-width: 17rem;
  }
}

@media (max-width: 380px) {
  .home__logo-wrap {
    width: min(58vw, 240px);
    margin-bottom: 0;
  }

  .home__body {
    margin-top: 14px;
  }
}

.store--soon {
  opacity: 0.55;
  pointer-events: none;
}

.pager {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: rgba(17, 17, 17, 0.35);
}

.pager:hover,
.pager:focus-visible {
  color: rgba(17, 17, 17, 0.55);
  outline: none;
}

.pager__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: transparent;
  pointer-events: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

/* True semicircles for up / down page controls */
.pager--top,
.pager--bottom {
  width: 44px;
  height: 24px;
  transform-origin: center center;
  scale: 1;
  transition:
    color 0.2s ease,
    scale 0.28s cubic-bezier(0.22, 1.4, 0.36, 1);
}

.pager--top .pager__ring {
  inset: 0;
  border-radius: 999px 999px 0 0;
  border-bottom: 0;
  /* Soften the flat cut so fill + border dissolve inward */
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 42%,
    rgba(0, 0, 0, 0.45) 72%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 42%,
    rgba(0, 0, 0, 0.45) 72%,
    transparent 100%
  );
}

.pager--bottom .pager__ring {
  inset: 0;
  border-radius: 0 0 999px 999px;
  border-top: 0;
  -webkit-mask-image: linear-gradient(
    to top,
    #000 0%,
    #000 42%,
    rgba(0, 0, 0, 0.45) 72%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to top,
    #000 0%,
    #000 42%,
    rgba(0, 0, 0, 0.45) 72%,
    transparent 100%
  );
}

.pager--top:hover,
.pager--top:focus-visible,
.pager--bottom:hover,
.pager--bottom:focus-visible {
  scale: 1.18;
  color: rgba(17, 17, 17, 0.62);
  outline: none;
}

.pager--top:active,
.pager--bottom:active {
  scale: 1.08;
}

.pager--top:hover .pager__ring,
.pager--top:focus-visible .pager__ring,
.pager--bottom:hover .pager__ring,
.pager--bottom:focus-visible .pager__ring {
  background: #58a0e8;
  border-color: #58a0e8;
}

.pager--top:hover .pager__ring,
.pager--top:focus-visible .pager__ring {
  border-bottom: 0;
}

.pager--bottom:hover .pager__ring,
.pager--bottom:focus-visible .pager__ring {
  border-top: 0;
}

.pager__chevrons {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.pager__chevron {
  display: block;
  border-style: solid;
  border-color: currentColor;
  border-width: 0;
  box-sizing: border-box;
}

.pager--top .pager__chevron--up {
  margin-top: 2px;
}

.pager--bottom .pager__chevron--down {
  margin-bottom: 2px;
}

/* Wider / flatter ^ */
.pager__chevron--up {
  border-top-width: 1.5px;
  border-left-width: 1.5px;
  width: 10px;
  height: 10px;
  transform: scaleX(1.35) rotate(45deg);
}

/* Wider / flatter inverted ^ */
.pager__chevron--down {
  border-bottom-width: 1.5px;
  border-right-width: 1.5px;
  width: 10px;
  height: 10px;
  transform: scaleX(1.35) rotate(45deg);
}

/* Horizontal < / > (same flat style) */
.pager__chevrons--row {
  flex-direction: row;
  gap: 5px;
}

.pager__chevron--left {
  border-bottom-width: 1.5px;
  border-left-width: 1.5px;
  width: 10px;
  height: 10px;
  transform: scaleY(1.35) rotate(45deg);
}

.pager__chevron--right {
  border-top-width: 1.5px;
  border-right-width: 1.5px;
  width: 10px;
  height: 10px;
  transform: scaleY(1.35) rotate(45deg);
}

.screen--map > .pager--top,
.screen--news > .pager--top,
.screen--contact > .pager--top,
.screen--owner > .pager--top {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.screen--map > .pager--bottom,
.screen--news > .pager--bottom,
.screen--contact > .pager--bottom,
.screen--owner > .pager--bottom {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

/* Home pager stays in normal flow under the store buttons */
.home .pager--bottom {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  z-index: 1;
  margin-top: 32px;
}

.pager--side {
  position: absolute;
  top: 42%;
  z-index: 6;
  background: rgba(255, 255, 255, 0.72);
}

.pager--prev {
  left: 10px;
}

.pager--next {
  right: 10px;
}

.pager--side[disabled] {
  opacity: 0.25;
  pointer-events: none;
}

.map-heading {
  margin: 0 0 14px;
  flex: 0 0 auto;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.owner__intro {
  margin: -6px 0 12px;
  max-width: 26rem;
  padding: 0 12px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(17, 17, 17, 0.55);
  text-align: center;
  text-wrap: balance;
}

.map-box,
.news-box {
  width: min(100%, 1100px);
  /* Fixed viewport height (not flex-grow) so the screen can truly center the block. */
  flex: 0 1 auto;
  height: min(70dvh, calc(100dvh - 200px));
  max-height: calc(100% - 72px);
  min-height: 280px;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  overflow: hidden;
  background: #f6f1e6;
}

/* Prevent the embedded map UI from dropping into “phone mode” when
   the marketing iframe ends up too narrow — but never force overflow. */
@media (min-width: 900px) {
  .map-box,
  .news-box {
    min-width: min(760px, 100%);
  }
}

.map-box {
  position: relative;
  background: #fff;
}

/* iPhone / browsers without Fullscreen API: expand iframe over the viewport */
body.map-pseudo-fullscreen {
  overflow: hidden;
}

body.map-pseudo-fullscreen .topbar,
body.map-pseudo-fullscreen .screen--map > .pager,
body.map-pseudo-fullscreen .screen--map > .map-heading,
body.map-pseudo-fullscreen .screen--map > .visually-hidden {
  visibility: hidden;
  pointer-events: none;
}

body.map-pseudo-fullscreen .map-box {
  position: fixed;
  inset: 0;
  z-index: 200;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
  background: #fff;
}

body.map-pseudo-fullscreen .map-box__frame,
body.map-pseudo-fullscreen .map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.map-box__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.map-box__frame.is-ready {
  opacity: 1;
}

.map-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: #fff;
  text-align: center;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.map-loading.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.map-loading__logo {
  width: min(42vw, 168px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  pointer-events: none;
  border: 0;
  outline: none;
  box-shadow: none;
  background: #fff;
  /* Hide browser/video hairlines + residual edge pixels */
  clip-path: inset(1.5% round 0);
  -webkit-clip-path: inset(1.5% round 0);
}

.map-loading__title {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
}

.map-loading__hint {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: #666;
}

.map-loading__track {
  width: min(70%, 280px);
  height: 6px;
  border-radius: 999px;
  background: rgba(88, 160, 232, 0.18);
  overflow: hidden;
}

.map-loading__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: #58a0e8;
  transition: width 0.35s ease;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.screen--map,
.screen--news,
.screen--owner {
  padding-bottom: 56px;
}

.screen--contact {
  justify-content: center;
  padding-bottom: 56px;
}

.contact {
  width: min(100%, 420px);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.contact__about {
  margin: -4px 0 0;
  max-width: 28rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(17, 17, 17, 0.55);
}

.contact__about .contact__names {
  color: #58a0e8 !important;
  font-weight: 600;
  white-space: nowrap;
}

.contact__reach {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid #58a0e8;
}

.site-copy {
  margin: 10px 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: #888;
  letter-spacing: 0.01em;
}

.contact__lead {
  margin: 0;
  max-width: 22rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: #444;
}

.contact__email {
  display: inline-block;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  text-decoration: none;
  border-bottom: none;
  padding-bottom: 0;
  transform-origin: center center;
  scale: 1;
  transition:
    color 0.2s ease,
    scale 0.28s cubic-bezier(0.22, 1.4, 0.36, 1);
}

.contact__email:hover,
.contact__email:focus-visible {
  color: #58a0e8;
  scale: 1.12;
  outline: none;
}

.contact__email:active {
  scale: 1.05;
}

.contact__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
}

.contact__social-link {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.22);
  display: grid;
  place-items: center;
  color: rgba(17, 17, 17, 0.55);
  background: transparent;
  transform-origin: center center;
  scale: 1;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    scale 0.28s cubic-bezier(0.22, 1.4, 0.36, 1);
}

.contact__social-link:hover,
.contact__social-link:focus-visible {
  border-color: rgba(220, 170, 40, 0.45);
  background: #ffd989;
  color: rgba(17, 17, 17, 0.82);
  scale: 1.12;
  outline: none;
}

.contact__social-link:active {
  background: #f0c96a;
  scale: 1.05;
}

.contact__icon {
  width: 24px;
  height: 24px;
  display: block;
}

.news-box {
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* Large desktop: wider surface, keep the visual block vertically centered. */
@media (min-width: 1280px) {
  .screen--map,
  .screen--news,
  .screen--owner {
    padding-left: 22px;
  }

  .map-box,
  .news-box {
    /* Stay inside the padded screen — never size from 100vw or labels get covered */
    width: min(100%, 1560px);
    flex: 0 1 auto;
    height: min(74dvh, calc(100dvh - 190px));
    max-height: calc(100% - 72px);
    min-height: 360px;
  }
}

/*
  Metro gutter — MUST come after any `padding:` shorthand on .screen--*
  (those reset padding-right and were wiping the reserved space).
*/
@media (min-width: 1300px) and (min-height: 721px) {
  .screen--home {
    padding-right: max(20px, 11.5rem);
  }

  .screen--map,
  .screen--news,
  .screen--contact,
  .screen--owner {
    padding-right: max(24px, 11.5rem);
  }

  .map-box,
  .news-box {
    width: min(100%, 1560px);
    max-width: 100%;
    box-sizing: border-box;
  }
}

.news-carousel {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.news-carousel__viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.news-carousel__track {
  height: 100%;
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.news-card {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
  min-width: 0;
}

.news-card__media {
  flex: 1;
  min-height: 0;
  background: #f3f0ea;
  overflow: hidden;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.news-card__media--logo {
  display: grid;
  place-items: center;
  background: #f7f5f1;
  padding: 28px 36px;
}

.news-card__media--logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.news-card__body {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 16px 18px 18px;
  background: #fcfaf4;
  border-top: none;
}

/* Soft upward cast shadow onto the carousel image */
.news-card__body::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 32px;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(17, 17, 17, 0.14) 0%,
    rgba(17, 17, 17, 0.06) 40%,
    transparent 100%
  );
}

.news-card__source {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 500;
  color: #777;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.news-card__title {
  margin: 0 0 8px;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.news-card__desc {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: #444;
}

.news-card__cta {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
  border-bottom: 1px solid rgba(17, 17, 17, 0.25);
}

.news-card:hover .news-card__cta,
.news-card:focus-visible .news-card__cta {
  border-bottom-color: #111;
}

.news-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 14px;
  background: #fcfaf4;
}

.news-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(88, 160, 232, 0.35);
  cursor: pointer;
}

.news-dot.is-active {
  background: #58a0e8;
}

@media (prefers-reduced-motion: reduce) {
  .shell {
    --panel-slide-ms: 1ms;
  }

  .screen,
  .news-carousel__track {
    transition: none;
  }

  .donate,
  .store {
    transition:
      border-color 0.15s ease,
      background 0.15s ease,
      color 0.15s ease,
      scale 0.15s ease,
      padding 0.15s ease,
      font-size 0.15s ease;
  }
}
