.home-page {
  --night: #06131e;
  --night-line: #b6d7ed38;
  --sun: #e9be82;
  --mist: #cfe0e8;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --home-forest: #1c3229;
  --home-cream: #fff7e9;
  --home-edge: clamp(16px, 3.3vw, 54px);
}

.home-page .header {
  position: relative;
  width: min(1560px, calc(100% - 2 * var(--home-edge)));
  min-height: 64px;
  margin-bottom: clamp(8px, 1vw, 14px);
  padding: 8px clamp(0px, 1.5vw, 24px);
  gap: 4px 20px;
  border: 0;
  --logo-road: var(--paper);
  --logo-cross: var(--gold);
}
.home-page .header-start, .home-page .header > .brand { flex: 0 0 auto; }
.home-page .header nav { gap: clamp(4px, 1.2vw, 18px); }
.home-page .header nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 10px;
  border: 0;
  border-radius: 7px;
}
.home-page .header nav > a:hover { background: var(--blue); color: var(--ink); }
.home-page ::selection { background: var(--sun); color: var(--night); }

.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(510px, 47vw, 690px);
  max-width: 1560px;
  margin-inline: auto;
  width: calc(100% - 2 * var(--home-edge));
  overflow: hidden;
  border-radius: clamp(22px, 3vw, 44px);
  background: #192923;
  color: white;
}

.home-hero-image {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 82%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.home-page-zm .home-hero-image { object-position: center 53%; }
.home-photo-credit.wrap {
  margin: 10px auto 22px;
  color: var(--muted);
  font-size: .8rem;
  text-align: right;
}
.home-photo-credit a { text-decoration: underline; }

.home-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #192923 4%, #192923fa 17%, #192923ea 29%, #192923b8 52%, transparent 74%),
    linear-gradient(0deg, #14251d72, transparent 35%);
}

.home-hero-copy {
  width: min(56%, 690px);
  padding: clamp(26px, 5vw, 78px);
}

.home-hero h1 {
  margin: 0;
  color: inherit;
  font: 500 clamp(3rem, 5.9vw, 6rem) / 1.02 "DM Sans", sans-serif;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.home-hero p {
  max-width: 39ch;
  margin: 21px 0 27px;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: #fff;
}

.home-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--home-cream);
  color: var(--home-forest);
  font-weight: 700;
}

.home-action:hover { background: #ead4ad; color: var(--home-forest); }
.home-hero :focus-visible { outline-color: white; }

/* ---------- Sections under the stage ---------- */
.atlas-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.atlas-about > p { max-width: 36ch; font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.55; }
.atlas-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; margin: 72px 0 0; padding: 0; list-style: none; }
.atlas-steps li { padding-top: 22px; border-top: 1px solid var(--ink); }
.section-night .atlas-steps li { border-color: var(--night-line); }
.atlas-steps h3 { font-size: 20px; }
.atlas-steps p { max-width: 34ch; margin-top: 8px; color: var(--muted); font-size: 15px; }
.section-night .atlas-steps p, .section-night .atlas-about > p { color: var(--mist); }

.section-night { background: var(--night); color: #fff; }
.section-night h2 em { color: #f1cd9b; }
.section-night .section-heading > p { color: var(--mist); }
.atlas-rows { border-top: 1px solid var(--line); }
.atlas-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) auto;
  align-items: center;
  gap: 10px 32px;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.section-night :is(.atlas-rows, .atlas-row) { border-color: var(--night-line); }
.atlas-row h3 { font: 500 clamp(2rem, 4.2vw, 3.4rem)/1.08 'Playfair Display', Georgia, serif; letter-spacing: -.03em; transition: color .2s; }
.atlas-row p { color: var(--muted); font-size: 15px; }
.section-night .atlas-row p { color: var(--mist); }
.atlas-row-go { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.atlas-row-go .icon { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
a.atlas-row:hover h3 { color: var(--gold); }
.section-night a.atlas-row:hover h3 { color: var(--sun); }
a.atlas-row:hover .atlas-row-go .icon { transform: translateX(6px); }
.atlas-row-soon h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--muted); }
.section-night .atlas-row-soon h3 { color: #9fb6c2; }
.atlas-places { display: flex; flex-wrap: wrap; gap: 4px 30px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); list-style: none; font-weight: 500; }
.atlas-places a { display: inline-flex; align-items: center; min-height: 44px; }
.atlas-places a:hover { color: var(--gold); }

.home-page .section-night .author-teaser { border-color: var(--night-line); }
.home-page .section-night .author-teaser p { color: var(--mist); }

.home-map {
  margin-top: 24px;
  padding: 8px clamp(16px, 3vw, 30px);
  background: var(--paper);
  border-radius: 14px;
  border: 1px solid var(--line);
}
.home-map summary {
  padding-block: 14px;
  cursor: pointer;
  font-weight: 700;
}
.home-map summary:hover { color: var(--gold); }
.home-map .stage { display: block; width: 100%; padding: 4px 0 18px; }
.home-map .stage-map { width: 100%; height: clamp(290px, 36vw, 450px); }
.home-map .stage-bar { margin-top: 14px; padding-top: 14px; }

@media (max-width: 760px) {
  .home-hero { min-height: auto; align-items: stretch; }
  .home-hero-image {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1.24;
    object-position: 50% 68%;
  }
  .home-hero::before { display: none; }
  .home-hero-copy { width: 100%; padding: 24px 22px 28px; }
  .home-hero h1 { font-size: clamp(2.1rem, 8.7vw, 3.9rem); text-wrap: wrap; }
  .home-hero p { margin-block: 13px 20px; }
}

@media (max-width: 900px) {
  .atlas-about, .atlas-steps { grid-template-columns: 1fr; }
  .atlas-steps { margin-top: 44px; }
  .atlas-row { grid-template-columns: 1fr; padding-block: 24px; }
}

@media (max-width: 620px) {
  .home-page .header { flex-wrap: wrap; justify-content: center; }
  .home-page .header nav { width: 100%; flex-wrap: wrap; justify-content: center; }
  .home-page .header nav > a { padding-inline: 6px; }
  .home-page .lang-select { max-width: 118px; }
  .home-page .lang-select select { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.home-page) { scroll-behavior: auto; }
  .home-page * { animation: none !important; transition: none !important; }
}
