/* adaptivemaps.com: plain, utilitarian, terrain first */
:root {
  --bg: #0b0e12;
  --panel: #12161c;
  --line: #232a33;
  --text: #e6e9ec;
  --muted: #8a949f;
  --accent: #e9f0b0;   /* pale summit tone from the DEM ramp */
  --cyan: #3cc4c0;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }

/* ---- Top bar ---- */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(11, 14, 18, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.mark { font: 600 14px/1 var(--sans); letter-spacing: .22em; }
.mark b { font-weight: 300; margin-left: .35em; color: var(--muted); }
.bar nav { display: flex; gap: 24px; font: 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bar nav a:hover { color: var(--text); }

/* ---- Hero: real terrain ---- */
.hero { position: relative; height: min(72vh, 720px); min-height: 380px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(11, 14, 18, .72) 0%, rgba(11, 14, 18, .25) 45%, rgba(11, 14, 18, 0) 70%),
  linear-gradient(0deg, rgba(11, 14, 18, .85) 0%, rgba(11, 14, 18, 0) 45%); }
/* Corner registration ticks */
.ticks i { position: absolute; width: 18px; height: 18px; border-color: rgba(255, 255, 255, .55); border-style: solid; border-width: 0; }
.ticks i:nth-child(1) { top: 16px; left: 16px; border-top-width: 1px; border-left-width: 1px; }
.ticks i:nth-child(2) { top: 16px; right: 16px; border-top-width: 1px; border-right-width: 1px; }
.ticks i:nth-child(3) { bottom: 16px; left: 16px; border-bottom-width: 1px; border-left-width: 1px; }
.ticks i:nth-child(4) { bottom: 16px; right: 16px; border-bottom-width: 1px; border-right-width: 1px; }
.hero-copy { position: relative; }
.hero h1 { margin: 0; font: 600 clamp(40px, 6.5vw, 76px)/1.02 var(--sans); letter-spacing: -.02em; }
.hero-copy p { margin: 12px 0 0; max-width: 520px; font-size: clamp(16px, 1.6vw, 19px); color: #d3d9de; }
.hero-meta { position: relative; display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 28px; padding: 12px 0 30px; border-top: 1px solid rgba(255, 255, 255, .22);
  font: 11px/1.4 var(--mono); letter-spacing: .14em; color: rgba(230, 233, 236, .75); }

/* ---- Sections ---- */
.block { padding-top: 72px; }
h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font: 500 13px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
h2 span { color: var(--cyan); }

/* Project list: one row per project */
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid var(--line); }
.list li > a, .list li > div { display: grid; grid-template-columns: 260px 1fr 150px 24px; gap: 20px; align-items: center; padding: 20px 4px; }
.list li > a:hover { background: var(--panel); }
.list li > a:hover .arrow { color: var(--accent); transform: translateX(3px); }
.name { font-size: 18px; font-weight: 600; }
.desc { color: var(--muted); font-size: 15px; }
.state { display: inline-flex; align-items: center; gap: 8px; font: 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.state i { width: 7px; height: 7px; border-radius: 50%; background: #56606b; }
.state.live { color: var(--cyan); }
.state.live i { background: var(--cyan); box-shadow: 0 0 0 3px rgba(60, 196, 192, .18); }
.state.plan i { background: transparent; border: 1px solid var(--muted); }
.arrow { color: var(--muted); transition: transform .15s, color .15s; }
.off .name { color: #c3c9cf; }

/* Map gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
.gallery figure { margin: 0; }
.gallery a { display: block; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.02); }
.gallery figcaption { padding-top: 10px; }
.gallery figcaption b { display: block; font-weight: 600; font-size: 15px; }
.gallery figcaption span { font: 11px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 90px; padding: 22px 0 34px; border-top: 1px solid var(--line);
  font: 11px/1.4 var(--mono); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

/* ---- Small screens ---- */
@media (max-width: 760px) {
  .bar nav { gap: 16px; }
  .hero { height: 64vh; }
  .hero-img { object-position: 30% 50%; }
  .list li > a, .list li > div { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 18px 2px; }
  .name { grid-column: 1; }
  .state { grid-column: 2; grid-row: 1; }
  .desc { grid-column: 1 / -1; }
  .arrow { display: none; }
  .gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- 404 ---- */
.notfound { min-height: calc(100vh - 52px); height: auto; }
.notfound a.inline { color: var(--accent); border-bottom: 1px solid currentColor; }
