:root {
  color-scheme: dark;
  --bg-base: #12181c;
  --bg-deep: #0d1215;
  --surface-1: #181e22;
  --surface-2: #1d2429;
  --text-primary: #f3f4f2;
  --text-secondary: #a6adb1;
  --text-tertiary: #727b81;
  --accent: #e5823a;
  --accent-hover: #ed9452;
  --border-subtle: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .14);
  --container: 1240px;
  --ease-premium: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: "Instrument Sans", "Inter", system-ui, sans-serif;
}
body::before {
  position: fixed;
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(25, 29, 34, .3) 0%, rgba(25, 29, 34, .52) 52%, rgba(25, 29, 34, .72) 100%),
    linear-gradient(180deg, rgba(25, 29, 34, .38) 0%, rgba(24, 27, 31, .66) 100%),
    url("/landing/photos/landing-body-bg.jpg") center / cover no-repeat;
  content: "";
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.map-page { min-height: 100vh; }
.map-shell { width: min(calc(100% - 64px), var(--container)); margin-inline: auto; }

.top-nav {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 23px clamp(32px, 5vw, 76px);
  border-bottom: 1px solid transparent;
  background: transparent;
  color: rgba(243, 238, 231, .78);
  transition: background-color .42s ease, border-color .42s ease, backdrop-filter .42s ease;
}
.top-nav.is-scrolled {
  border-bottom-color: rgba(226, 232, 229, .06);
  background: linear-gradient(90deg, rgba(11, 16, 18, .46), rgba(15, 21, 23, .34) 50%, rgba(11, 16, 18, .46));
  backdrop-filter: blur(14px) saturate(.88);
}
.brand { display: inline-flex; width: 90px; align-items: center; }
.brand img { width: 100%; height: auto; }
.navlinks { display: flex; align-items: center; gap: 34px; font-size: 15px; font-weight: 500; }
.navlinks a { color: rgba(243, 238, 231, .72); transition: color .2s ease; }
.navlinks a:hover, .navlinks a:focus-visible { color: var(--accent-hover); }
.top-nav .login {
  justify-self: end;
  padding: 10px 16px;
  border: 1px solid rgba(255, 157, 91, .72);
  border-radius: 7px;
  background: rgba(239, 116, 53, .82);
  color: #fff5ee;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.top-nav .login:hover { border-color: rgba(255, 180, 126, .9); background: rgba(239, 116, 53, .95); transform: translateY(-1px); }

.map-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg-deep);
  isolation: isolate;
}
.map-hero-media, .map-hero-shade { position: absolute; inset: 0; }
.map-hero-media { width: 100%; height: 100%; object-fit: cover; }
.map-hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 13, 16, .93) 0%, rgba(8, 13, 16, .7) 28%, rgba(8, 13, 16, .12) 68%, rgba(8, 13, 16, .24) 100%),
    linear-gradient(180deg, rgba(7, 11, 13, .22), transparent 50%, rgba(7, 11, 13, .48));
}
.map-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100svh;
  align-items: center;
  padding-block: 132px 76px;
}
.map-hero-copy { width: min(610px, 52vw); }
.map-eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.map-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(64px, 7vw, 104px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}
.map-hero h1.title-medium { font-size: clamp(54px, 6vw, 88px); }
.map-hero h1.title-long { font-size: clamp(44px, 5vw, 72px); line-height: 1.02; }
.map-hero-tags { margin: 18px 0 0; color: rgba(243, 244, 242, .68); font-size: clamp(17px, 1.6vw, 22px); font-weight: 400; }
.map-hero-meta { display: flex; align-items: center; gap: 18px; margin-top: 30px; color: rgba(243, 244, 242, .88); }
.map-hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.map-hero-meta span + span::before { margin-right: 11px; color: rgba(243, 244, 242, .42); content: "·"; }
.map-hero-meta .material-symbols-outlined { color: var(--accent); font-size: 21px; }
.map-primary-action {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 28px;
  padding: 0 24px;
  border: 1px solid rgba(255, 176, 112, .72);
  border-radius: 9px;
  background: rgba(229, 130, 58, .94);
  color: #fff8f2;
  font-weight: 600;
  transition: background .2s ease, transform .2s ease;
}
.map-primary-action:hover { background: var(--accent-hover); transform: translateY(-1px); }

.map-section { padding: 128px 0; }
.map-section-head { margin-bottom: 38px; text-align: center; }
.map-section-head .map-eyebrow { margin-bottom: 12px; }
.map-section-head h2 { margin: 0; font-size: clamp(36px, 4vw, 52px); font-weight: 500; line-height: 1.08; letter-spacing: -.03em; }
.map-section-head h2::after { display: block; width: 44px; height: 2px; margin: 18px auto 0; background: var(--accent); content: ""; }
.map-section-head p { max-width: 620px; margin: 18px auto 0; color: var(--text-secondary); font-size: 17px; line-height: 1.6; }

.map-gallery {
  display: grid;
  height: min(640px, 55vw);
  min-height: 520px;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  gap: 12px;
  opacity: 0;
  transition: opacity .35s ease;
}
.map-gallery.is-ready { opacity: 1; }
.map-gallery.is-incomplete {
  height: auto;
  min-height: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-rows: clamp(190px, 20vw, 280px);
}
.map-gallery.is-incomplete figure:nth-child(n) { grid-area: auto; }
.map-gallery figure { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--surface-1); cursor: zoom-in; }
.map-gallery figure:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.map-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease-premium), filter .55s var(--ease-premium); }
.map-gallery figure:hover img { filter: brightness(1.04); transform: scale(1.025); }
.map-gallery figure:nth-child(1) { grid-area: 1 / 1 / 6 / 5; }
.map-gallery figure:nth-child(2) { grid-area: 1 / 5 / 8 / 8; }
.map-gallery figure:nth-child(3) { grid-area: 1 / 8 / 6 / 13; }
.map-gallery figure:nth-child(4) { grid-area: 6 / 1 / 9 / 5; }
.map-gallery figure:nth-child(5) { grid-area: 8 / 5 / 13 / 8; }
.map-gallery figure:nth-child(6) { grid-area: 6 / 8 / 9 / 11; }
.map-gallery figure:nth-child(7) { grid-area: 6 / 11 / 13 / 13; }
.map-gallery figure:nth-child(8) { grid-area: 9 / 1 / 13 / 5; }
.map-gallery figure:nth-child(9) { grid-area: 9 / 8 / 13 / 11; }
.map-gallery.is-landscape-heavy figure:nth-child(2) { grid-area: 1 / 5 / 7 / 8; }
.map-gallery.is-landscape-heavy figure:nth-child(5) { grid-area: 7 / 5 / 13 / 8; }

.map-lightbox-open { overflow: hidden; }
.map-gallery-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 9, .66);
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.map-gallery-lightbox.is-open { opacity: 1; pointer-events: auto; }
.map-gallery-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.map-photographer { padding-top: 112px; padding-bottom: 142px; }
.map-photographer-grid { display: grid; grid-template-columns: minmax(320px, 5fr) minmax(0, 7fr); gap: 64px; align-items: stretch; }
.map-photographer-title { padding: 66px 54px 58px 0; border-right: 1px solid rgba(229, 130, 58, .58); }
.map-photographer-title h2 { margin: 42px 0 0; font-size: clamp(45px, 5vw, 68px); font-weight: 400; line-height: 1.08; letter-spacing: -.035em; }
.map-photographer-title h2::after { display: block; width: 64px; height: 3px; margin-top: 34px; background: var(--accent); content: ""; }
.map-photographer-copy {
  max-height: 470px;
  overflow-y: auto;
  padding: 58px 26px 40px 0;
  color: rgba(243, 244, 242, .78);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.72;
  scrollbar-color: rgba(229, 130, 58, .68) rgba(255, 255, 255, .05);
  scrollbar-width: thin;
}
.map-photographer-copy p { margin: 0 0 1.55em; }
.map-photographer-copy p:last-child { margin-bottom: 0; }

.map-final-cta {
  position: relative;
  overflow: hidden;
  padding: 120px 32px 112px;
  background: #0f1419;
  text-align: center;
  isolation: isolate;
}
.map-final-cta::before {
  position: absolute;
  z-index: -2;
  inset: -18vh 0 0;
  background: url("/landing/photos/cta-valley-v3.png") center top / cover no-repeat;
  content: "";
}
.map-final-cta::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(13, 18, 21, .3), rgba(15, 20, 25, .94)); content: ""; }
.map-final-cta h2 { max-width: 980px; margin: 0 auto; font-size: clamp(38px, 5vw, 62px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.map-final-cta > p { max-width: 720px; margin: 16px auto 38px; color: var(--text-secondary); font-size: 17px; line-height: 1.55; }
.map-download-panel {
  display: grid;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 28px 30px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: rgba(13, 18, 21, .78);
  text-align: left;
}
.map-download-panel .map-primary-action { margin-top: 0; }
.map-download-panel small { display: block; margin-bottom: 7px; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.map-download-panel strong { display: block; margin-bottom: 18px; font-size: 24px; font-weight: 500; }
.map-qr { width: 116px; padding-left: 28px; border-left: 1px solid var(--border-subtle); }
.map-qr svg { border-radius: 8px; }
.map-qr span { display: block; margin-top: 8px; color: var(--text-tertiary); font-size: 9px; letter-spacing: .08em; text-align: center; text-transform: uppercase; }

.landing-footer { position: relative; z-index: 1; background: #0f1419; color: var(--text-tertiary); }
.landing-footer-shell { display: grid; width: min(100% - 64px, 1180px); min-height: 112px; margin: 0 auto; padding: 18px 0; grid-template-columns: 1fr auto 1fr; grid-template-areas: "home brand legal" "copyright copyright copyright"; align-items: center; column-gap: 36px; row-gap: 8px; }
.landing-footer-brand { grid-area: brand; display: inline-flex; align-items: center; justify-self: center; }
.landing-footer-brand img { width: 88px; opacity: .88; }
.landing-footer-nav, .landing-footer-legal { display: flex; align-items: center; }
.landing-footer-nav { grid-area: home; justify-self: start; }
.landing-footer-legal { grid-area: legal; justify-self: end; }
.landing-footer a, .landing-footer p { color: var(--text-secondary); font-size: 13px; line-height: 1.4; transition: color .2s ease; }
.landing-footer a:hover, .landing-footer a:focus-visible { color: var(--accent-hover); }
.landing-footer-nav a + a::before, .landing-footer-legal a + a::before { display: inline-block; margin-right: 18px; color: var(--text-tertiary); content: "•"; }
.landing-footer-nav a + a, .landing-footer-legal a + a { margin-left: 18px; }
.landing-footer p { grid-area: copyright; margin: 0; padding-top: 8px; border-top: 1px solid var(--border-subtle); color: var(--text-tertiary); font-size: 11px; text-align: center; }

.landing-scroll-top { position: fixed; z-index: 110; right: 24px; bottom: var(--landing-scroll-top-bottom, 24px); display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--accent-hover); border-radius: 50%; background: rgba(13, 18, 21, .72); color: var(--accent-hover); font-size: 24px; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); backdrop-filter: blur(6px); transition: opacity .28s ease, transform .28s ease, background-color .2s ease; }
.landing-scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.landing-scroll-top:hover, .landing-scroll-top:focus-visible { background: rgba(239, 116, 53, .18); }

@media (max-width: 900px) {
  .map-shell { width: min(calc(100% - 48px), var(--container)); }
  .map-hero-copy { width: min(620px, 75vw); }
  .map-gallery { height: 720px; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(5, minmax(0, 1fr)); }
  .map-gallery figure:nth-child(n) { grid-area: auto; }
  .map-gallery figure:first-child { grid-row: span 2; }
  .map-gallery figure:nth-child(3) { grid-row: span 2; }
  .map-gallery figure:nth-child(7) { grid-row: span 2; }
  .map-gallery.is-incomplete { height: auto; grid-template-columns: repeat(2, 1fr); grid-template-rows: none; grid-auto-rows: 240px; }
  .map-gallery.is-incomplete figure:nth-child(n) { grid-row: auto; }
  .map-photographer-grid { grid-template-columns: 1fr; gap: 0; }
  .map-photographer-title { padding: 0 0 34px; border-right: 0; border-bottom: 1px solid rgba(229, 130, 58, .48); }
  .map-photographer-title h2 { margin-top: 18px; }
  .map-photographer-copy { max-height: none; overflow: visible; padding-top: 36px; }
}

@media (max-width: 680px) {
  .map-shell { width: min(calc(100% - 40px), var(--container)); }
  .top-nav { grid-template-columns: 1fr auto; padding: 18px 20px; }
  .brand { width: 78px; }
  .navlinks { display: none; }
  .top-nav .login { padding: 9px 12px; font-size: 12px; }
  .map-hero-content { align-items: flex-end; padding-bottom: 68px; }
  .map-hero-copy { width: 100%; }
  .map-hero-shade { background: linear-gradient(180deg, rgba(8, 13, 16, .16) 10%, rgba(8, 13, 16, .32) 42%, rgba(8, 13, 16, .94) 100%); }
  .map-hero h1, .map-hero h1.title-medium, .map-hero h1.title-long { font-size: clamp(44px, 15vw, 64px); }
  .map-hero-tags { font-size: 17px; }
  .map-hero-meta { flex-wrap: wrap; gap: 9px 13px; margin-top: 22px; font-size: 14px; }
  .map-hero-meta span + span::before { margin-right: 6px; }
  .map-primary-action { width: 100%; }
  .map-section { padding: 82px 0; }
  .map-section-head { margin-bottom: 28px; }
  .map-section-head p { font-size: 16px; }
  .map-gallery { height: auto; min-height: 0; grid-template-columns: 1fr 1fr; grid-auto-rows: 145px; grid-template-rows: none; grid-auto-flow: dense; gap: 8px; }
  .map-gallery figure:nth-child(n) { grid-row: span 1; }
  .map-gallery figure:nth-child(1), .map-gallery figure:nth-child(4), .map-gallery figure:nth-child(8) { grid-column: 1 / -1; grid-row: span 2; }
  .map-gallery figure:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .map-gallery.is-incomplete { grid-auto-rows: 145px; }
  .map-gallery.is-incomplete figure:nth-child(n) { grid-column: auto; grid-row: auto; }
  .map-gallery.is-incomplete figure:first-child { grid-column: 1 / -1; grid-row: span 2; }
  .map-photographer { padding-block: 70px 88px; }
  .map-photographer-title h2 { font-size: 42px; }
  .map-photographer-copy { padding-right: 0; font-size: 17px; }
  .map-final-cta { padding: 82px 20px 78px; }
  .map-download-panel { grid-template-columns: 1fr; padding: 22px; text-align: center; }
  .map-qr { width: 118px; margin: 0 auto; padding: 22px 0 0; border-top: 1px solid var(--border-subtle); border-left: 0; }
  .landing-footer-shell { width: min(100% - 40px, 1180px); min-height: 0; padding: 20px 0 16px; grid-template-columns: 1fr; grid-template-areas: "brand" "home" "legal" "copyright"; gap: 17px; }
  .landing-footer-nav, .landing-footer-legal { justify-self: center; flex-wrap: wrap; justify-content: center; }
  .landing-scroll-top { right: 16px; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
