:root {
  --accent: #f4a261;
  --accent-dim: rgba(244, 162, 97, 0.16);
}

/* Image fade-in */
.fade-img {
  opacity: 0;
  transition: opacity 0.45s ease;
}
.fade-img.is-loaded {
  opacity: 1;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero map stage */
.hero {
  padding: 28px 0 36px;
}
.hero-map-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--panel);
  padding: 36px 34px;
  overflow: hidden;
}
.hero-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.78;
}
.map-label {
  font-family: var(--font-disp);
  font-size: 12px;
  fill: var(--ink-dim);
  letter-spacing: 0.08em;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 32px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(28px, 4.1vw, 48px);
  line-height: 1.3;
}
.hero .lead {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-dim);
  max-width: 34em;
}
.hero-actions {
  margin-top: 22px;
}
.hero-pin-photo {
  position: relative;
  justify-self: center;
  width: min(290px, 100%);
}
.pin-stem {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-dim);
  margin: 0 auto 10px;
}
.pin-frame {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(7, 8, 15, 0.72);
}
.pin-frame img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

/* Route simulation */
.sim-board {
  position: relative;
  height: 360px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(circle, var(--dot) 1px, transparent 1.3px) 0 0 / 16px 16px,
    var(--panel);
  overflow: hidden;
}
.sim-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sim-track {
  fill: none;
  stroke: rgba(201, 199, 214, 0.16);
  stroke-width: 2;
  stroke-dasharray: 4 7;
}
.sim-route {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.12s linear;
}
.sim-pins {
  position: relative;
  width: 100%;
  height: 100%;
}
.sim-pin {
  position: absolute;
  transform: translate(-50%, -50%);
}
.sim-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-dim);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.sim-pin.is-active .sim-dot {
  opacity: 1;
  transform: scale(1);
}
.sim-card {
  position: absolute;
  left: 16px;
  top: -26px;
  width: 126px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 8, 15, 0.9);
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.sim-pin.is-card-up .sim-card {
  top: auto;
  bottom: 18px;
}
.sim-pin.is-right .sim-card {
  left: auto;
  right: 16px;
}
.sim-pin.is-open .sim-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.sim-thumb {
  width: 100%;
  height: 68px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}
.sim-city {
  display: block;
  margin-top: 5px;
  font-family: var(--font-disp);
  font-size: 11.5px;
  color: var(--ink-hi);
  letter-spacing: 0.05em;
}

/* Gallery scatter (non-uniform prints) */
.gallery-scatter {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
}
.gallery-print {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--panel);
}
.gallery-print img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}
.gallery-print figcaption {
  padding: 12px 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13.5px;
  color: var(--ink-dim);
}
.gallery-print figcaption strong {
  color: var(--ink-hi);
  font-size: 16px;
}
.gallery-tag {
  font-family: var(--font-disp);
  font-size: 12px;
  color: var(--accent);
}
.exif-data {
  font-family: monospace;
  font-size: 12px;
  color: var(--ink-faint);
}
.gallery-print-sub {
  margin-top: 48px;
}

/* Features as map legend */
.legend-list {
  margin-top: 8px;
}
.legend-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px dotted var(--dot);
}
.legend-row:last-child {
  border-bottom: 1px dotted var(--dot);
}
.legend-pin {
  padding-top: 5px;
  display: flex;
  justify-content: center;
}
.legend-pin span {
  width: 12px;
  height: 12px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--accent);
  display: block;
}
.legend-body h3 {
  font-size: 17px;
  color: var(--ink-hi);
  margin-bottom: 4px;
}
.legend-body p {
  font-size: 14.5px;
  color: var(--ink-dim);
  max-width: 44em;
}

/* Staggered screen prints */
.stagger-prints {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.stagger-prints .shot {
  width: 100%;
}
.stagger-prints .print-b {
  margin-top: 34px;
}
.stagger-prints .print-c {
  margin-top: 14px;
}
.stagger-prints figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 12px 6px 4px;
}
.stagger-prints figcaption strong {
  color: var(--ink-hi);
  font-size: 15px;
}

@media (max-width: 760px) {
  .hero {
    padding: 14px 0 24px;
  }
  .hero-map-stage {
    padding: 20px 18px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero h1 {
    font-size: 27px;
    line-height: 1.32;
  }
  .hero .lead {
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.65;
  }
  .hero-actions {
    margin-top: 14px;
  }
  .hero-pin-photo {
    width: min(240px, 78%);
  }
  .sim-board {
    height: 300px;
  }
  .sim-card {
    width: 108px;
  }
  .sim-thumb {
    height: 56px;
  }
  .gallery-scatter,
  .stagger-prints {
    grid-template-columns: 1fr;
  }
  .gallery-print-sub,
  .stagger-prints .print-b,
  .stagger-prints .print-c {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-img,
  .reveal,
  .sim-route,
  .sim-dot,
  .sim-card {
    transition: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
