/* Land kit page (Meridian Studio). Dark, glassy, editorial. Generated from the private land-map engine. */
:root {
  --bg: #0b0d10;
  --glass: rgba(14, 16, 21, 0.68);
  --glass-strong: rgba(14, 16, 21, 0.86);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #f3efe7;
  --ink-2: rgba(243, 239, 231, 0.74);
  --ink-3: rgba(243, 239, 231, 0.5);
  --sun: #f5b96a;
  --sun-2: #ffd9a1;
  --shade: #8fa3ff;
  --water: #6cc6ff;
  --mint: #6fd9bf;
  --rose: #f0707a;
  --accent: var(--sun);
  --radius: 22px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --side-w: 360px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  color-scheme: dark;
}
body.mode-terrain { --accent: #e8c79a; }
body.mode-water { --accent: var(--water); }
body.mode-ground { --accent: #d9a066; }
body.mode-build { --accent: #ffd27a; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { display: block; }
b { font-weight: 600; }

#map { position: fixed; inset: 0; }
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 1; background:
  radial-gradient(120% 90% at 50% 42%, transparent 55%, rgba(5, 6, 8, .55) 100%),
  linear-gradient(180deg, rgba(5,6,8,.5) 0%, transparent 20%, transparent 62%, rgba(5,6,8,.62) 100%); }
/* whole-scene colour grade per mode */
.grade { position: fixed; inset: 0; pointer-events: none; z-index: 1; mix-blend-mode: soft-light; opacity: 0; transition: opacity 1.1s var(--ease), background 1.1s var(--ease); }
body.mode-terrain .grade { opacity: .55; background: linear-gradient(160deg, #2a3550, #7a6a58); }
body.mode-sun .grade { opacity: .35; background: radial-gradient(80% 60% at 70% 20%, #ffb36b, transparent 70%); }
body.mode-water .grade { opacity: .7; background: linear-gradient(180deg, #0d3a66, #0a2440); }
body.mode-ground .grade { opacity: .5; background: linear-gradient(180deg, #6b4a2b, #2d1f14); }
body.mode-build .grade { opacity: .4; background: radial-gradient(70% 60% at 50% 55%, #ffcf7a, #3a2350 90%); }

/* ---------- Loading veil ---------- */
.veil { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--bg); transition: opacity 1.2s var(--ease), visibility 1.2s; }
.veil.is-gone { opacity: 0; visibility: hidden; }
.veil-inner { text-align: center; }
.veil-mark { width: 84px; margin: 0 auto 18px; fill: none; stroke: var(--sun); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 120; animation: draw 2.4s var(--ease) infinite; filter: drop-shadow(0 0 10px rgba(245,185,106,.5)); }
@keyframes draw { 0% { stroke-dashoffset: 120; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -120; } }
.veil-title { font-family: var(--serif); font-size: 40px; margin: 0; }
.veil-insight { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.3; max-width: 560px; margin: 12px auto 0; padding: 0 16px; color: var(--ink-2); }
@media (max-width: 720px) { .veil-title { font-size: 30px; } .veil-insight { font-size: 17px; } }
.veil-sub { margin: 6px 0 0; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Brand ---------- */
.brand { position: fixed; z-index: 5; top: 28px; left: 32px; max-width: 440px; pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sun-2); background: rgba(245,185,106,.12); border: 1px solid rgba(245,185,106,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px var(--sun); }
.brand h1 { font-family: var(--serif); font-weight: 400; font-size: 66px; line-height: .95; margin: 14px 0 8px; letter-spacing: -.01em; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.brand-sub { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); text-shadow: 0 1px 12px rgba(0,0,0,.8); }

/* ---------- Tools ---------- */
.tools { position: fixed; z-index: 6; top: 28px; right: 28px; display: flex; gap: 8px; align-items: center; }
.tool, .pill { height: 42px; border-radius: 999px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: background .2s, border-color .2s, transform .2s var(--ease); }
.tool { width: 42px; }
.tool:hover, .pill:hover { background: var(--glass-strong); border-color: var(--line-2); }
.tool:active, .pill:active { transform: scale(.95); }
.tool svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pill { display: flex; gap: 8px; padding: 0 16px 0 12px; font-size: 13px; font-weight: 500; color: var(--sun-2); border-color: rgba(245,185,106,.35); }
.pill svg { width: 15px; height: 15px; fill: var(--sun); }
#compass-needle { transition: transform .1s linear; }
#compass-needle .n { fill: var(--sun); stroke: none; }
#compass-needle .s { fill: rgba(255,255,255,.35); stroke: none; }

/* ---------- Export ---------- */
.export { position: relative; }
.export-menu { position: absolute; top: 52px; right: 0; width: 270px; padding: 12px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--line-2); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 24px 60px -16px rgba(0,0,0,.7); animation: pop .3s var(--ease); z-index: 20; }
.export-menu[hidden] { display: none; }
.export-menu .eyebrow { padding: 2px 8px 8px; }
.export-menu button { display: block; width: 100%; text-align: left; padding: 10px 10px; border-radius: 12px; }
.export-menu button:hover, .export-menu button:focus-visible { background: rgba(255,255,255,.07); outline: none; }
.export-menu b { display: block; font-size: 13.5px; font-weight: 500; }
.export-menu small { font-size: 11.5px; color: var(--ink-3); }
.export-veil { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(11,13,16,.97); text-align: center; }
.export-veil[hidden] { display: none; }
.export-veil p { font-family: var(--serif); font-size: 26px; margin: 0; }
.toast { position: fixed; z-index: 75; left: 50%; top: 24px; translate: -50% 0; padding: 10px 16px; border-radius: 999px; font-size: 13px; background: var(--glass-strong); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: pop .4s var(--ease); max-width: calc(100vw - 32px); }
.toast[hidden] { display: none; }

/* ---------- Cards (right column) ---------- */
.side { position: fixed; z-index: 10; top: 90px; right: 24px; bottom: 24px; width: var(--side-w); display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; pointer-events: none; }
.card { position: relative; pointer-events: auto; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05); }
.card-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; font-size: 21px; line-height: 1; color: var(--ink-2); z-index: 2; }
.card-x:hover { background: rgba(255,255,255,.08); }
.mode-card { display: flex; flex-direction: column; min-height: 0; flex: 0 1 auto; overflow: hidden; }
.sheet-handle { display: none; }
.mc-head { padding: 18px 20px 0; }
.mc-head h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; margin: 4px 0 0; }
.eyebrow { margin: 0; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.mc-body { padding: 14px 20px 18px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.seg { display: flex; gap: 4px; margin: 14px 20px 0; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.seg[hidden] { display: none; }
.seg button { flex: 1; padding: 8px 6px; border-radius: 10px; font-size: 12px; font-weight: 500; color: var(--ink-3); transition: background .25s, color .25s; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.is-on { background: rgba(255,255,255,.1); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }

/* legend pieces */
.ramp { height: 10px; border-radius: 6px; margin: 4px 0 6px; }
.ramp-labels { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.keys { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.keys li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.keys i { flex: none; width: 14px; height: 14px; border-radius: 4px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.keys i.line { height: 3px; border-radius: 2px; }
.keys i.dash { height: 0; border-top: 2px dashed var(--c); background: none; box-shadow: none; }
.lede { font-size: 13px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.lede b { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 0; }
.stats div { padding: 10px 10px 9px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.stats b { display: block; font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span { font-size: 10.5px; color: var(--ink-3); line-height: 1.3; display: block; }
.note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 12px; line-height: 1.5; color: var(--ink-2); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.note.warn { border-color: rgba(255,180,84,.35); background: rgba(255,180,84,.07); }
.note.info { border-color: rgba(108,198,255,.35); background: rgba(108,198,255,.07); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 500; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip.good { color: #9ff0d6; border-color: rgba(111,217,191,.45); background: rgba(111,217,191,.1); }
.chip.mid { color: #ffd9a1; border-color: rgba(245,185,106,.45); background: rgba(245,185,106,.1); }
.chip.bad { color: #ffb3b9; border-color: rgba(240,112,122,.45); background: rgba(240,112,122,.1); }

/* parcel / spot lists */
.list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.row-btn { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.03); text-align: left; transition: background .25s, border-color .25s; }
.row-btn:hover { background: rgba(255,255,255,.07); border-color: var(--line-2); }
.row-btn .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; border: 1px solid var(--line-2); }
.row-btn h4 { margin: 0; font-size: 13.5px; font-weight: 500; }
.row-btn p { margin: 2px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--ink-3); }
.row-btn .stat { text-align: right; font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.row-btn .stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--ink); line-height: 1; }

/* soil list */
.soil { padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.soil h4 { margin: 0 0 2px; font-size: 13px; font-weight: 500; display: flex; gap: 8px; align-items: center; }
.soil h4 i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); flex: none; }
.soil p { margin: 4px 0 8px; font-size: 11.5px; color: var(--ink-3); line-height: 1.45; }

/* ---------- Sun panel (Kestrel Shore) ---------- */
.tl-head { display: flex; align-items: center; gap: 14px; }
.play { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: #1b1206; box-shadow: 0 6px 24px -6px rgba(245,185,106,.7); transition: transform .2s var(--ease); }
.play:active { transform: scale(.92); }
.play svg { width: 18px; height: 18px; fill: currentColor; }
.play .i-pause { display: none; }
.play.is-playing .i-play { display: none; }
.play.is-playing .i-pause { display: block; }
.tl-time { flex: 1; min-width: 0; }
.tl-clock { font-family: var(--serif); font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.tl-clock small { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .08em; margin-left: 6px; color: var(--ink-2); vertical-align: 6px; }
.tl-date { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.sun-state { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 500; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); white-space: nowrap; }
.sun-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px var(--sun); }
.sun-state.is-shade i { background: var(--shade); box-shadow: 0 0 10px var(--shade); }
.sun-state.is-night i { background: #5a6070; box-shadow: none; }
.tl-track-wrap { position: relative; height: 34px; margin-top: 12px; }
.tl-track { position: absolute; left: 11px; right: 11px; top: 13px; height: 8px; border-radius: 8px; overflow: hidden; }
.tl-marks { position: absolute; top: 0; bottom: 0; left: 11px; right: 11px; pointer-events: none; }
.tl-mark { position: absolute; top: 9px; width: 2px; height: 16px; margin-left: -1px; border-radius: 2px; background: rgba(255,255,255,.75); }
.tl-mark.terrain { background: var(--shade); }
.tl-mark.terrain::after { content: ""; position: absolute; left: -3px; top: -6px; width: 8px; height: 4px; border-radius: 2px; background: var(--shade); }
#time { position: absolute; inset: 0; width: 100%; height: 34px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: grab; touch-action: none; }
#time::-webkit-slider-runnable-track { height: 34px; background: transparent; }
#time::-moz-range-track { height: 34px; background: transparent; }
#time::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: 6px; border-radius: 50%; background: #fff; border: 4px solid var(--sun); box-shadow: 0 0 0 6px rgba(245,185,106,.18), 0 4px 14px rgba(0,0,0,.5); }
#time::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--sun); }
.tl-ticks { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3); letter-spacing: .06em; margin-top: 2px; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.presets button { font-size: 11.5px; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); transition: all .2s; }
.presets button:hover { border-color: var(--line-2); color: var(--ink); }
.presets button.is-on { background: rgba(245,185,106,.16); border-color: rgba(245,185,106,.45); color: var(--sun-2); }
.study { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; margin: 14px 0 12px; }
.dial { width: 112px; height: 112px; }
.study-name { font-family: var(--serif); font-size: 22px; line-height: 1.05; margin: 3px 0 2px; }
.study-pos { font-size: 11.5px; color: var(--ink-3); margin: 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.fact { margin: 0; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.fact dt { font-size: 10.5px; color: var(--ink-3); }
.fact dd { margin: 4px 0 2px; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fact small { font-size: 10.5px; color: var(--ink-3); }
.fact.accent { grid-column: 1 / -1; background: linear-gradient(120deg, rgba(143,163,255,.14), rgba(245,185,106,.10)); border-color: rgba(255,255,255,.13); }
.fact.accent dd { font-family: var(--serif); font-size: 23px; font-weight: 400; }

/* ---------- Inspector ---------- */
.inspect { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 18px 20px 16px; animation: pop .45s var(--ease); }
.inspect[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.in-head { padding-right: 30px; }
.in-head h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.05; margin: 4px 0 2px; }
.in-head p { margin: 0; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.in-main { margin-top: 12px; }
.big { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; }
.big b { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.big span { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.bars { display: grid; gap: 9px; margin-top: 10px; }
.bar { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: start; }
.bar > span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.bar .track { height: 5px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 6px; }
.bar .track i { display: block; height: 100%; border-radius: 4px; background: var(--c, var(--accent)); transform-origin: 0 50%; animation: grow .8s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.bar p { margin: 5px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 10px 0 0; font-size: 12.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.kv dd small { display: block; font-size: 10.5px; color: var(--ink-3); }
.more { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 2px; }
.more button { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 7px 4px; border-radius: 10px; text-align: left; font-size: 12px; color: var(--ink-2); }
.more button:hover { background: rgba(255,255,255,.05); color: var(--ink); }
.more svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.more em { font-style: normal; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- Dock: narration + mode dial ---------- */
.dock { position: fixed; z-index: 9; left: 50%; bottom: 22px; translate: calc(-50% - var(--side-w) / 2 - 12px) 0; width: min(720px, calc(100vw - var(--side-w) - 96px)); text-align: center; pointer-events: none; }
.narration { font-family: var(--serif); font-style: italic; font-size: 25px; line-height: 1.25; margin: 0 auto 16px; max-width: 640px; text-shadow: 0 2px 24px rgba(0,0,0,.85), 0 1px 3px rgba(0,0,0,.6); min-height: 1.25em; }
.narration.swap { animation: narr .7s var(--ease); }
@keyframes narr { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.modes { position: relative; display: inline-flex; gap: 2px; padding: 6px; border-radius: 999px; pointer-events: auto; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); box-shadow: 0 20px 60px -20px rgba(0,0,0,.7); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.modes .lens { position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 30px -6px var(--accent); transition: left .55s var(--ease), width .55s var(--ease), box-shadow .55s; }
.mode { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); transition: color .3s; }
.mode:hover { color: var(--ink-2); }
.mode.is-on { color: var(--ink); }
.mode svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.mode.is-on svg { stroke: var(--accent); }
.source { margin: 12px 0 0; font-size: 10.5px; line-height: 1.5; color: rgba(243,239,231,.6); text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.source b { display: block; font-weight: 600; color: rgba(255,217,161,.92); letter-spacing: .02em; }

/* ---------- Hover probe + hint ---------- */
.probe { position: fixed; z-index: 8; pointer-events: none; padding: 8px 11px; border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 12px 30px rgba(0,0,0,.45); transform: translate(16px, -50%); font-size: 12px; white-space: nowrap; }
.probe b { font-weight: 500; font-size: 14px; font-variant-numeric: tabular-nums; }
.probe span { color: var(--ink-3); }
.hint { position: fixed; z-index: 9; left: 50%; top: 96px; translate: -50% 0; padding: 9px 14px; border-radius: 999px; font-size: 12px; color: var(--ink-2); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: pop .6s var(--ease); white-space: nowrap; pointer-events: none; transition: opacity .6s; }
.hint.is-out { opacity: 0; }

/* ---------- Map markers ---------- */
.lbl { pointer-events: none; white-space: nowrap; transition: opacity .6s var(--ease), visibility .6s; }
.lbl.is-hidden { visibility: hidden; }
.lbl-parcel { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #1b1206; background: var(--sun); padding: 5px 10px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.lbl-parcel em { font-style: normal; font-weight: 500; opacity: .7; letter-spacing: .06em; }
.lbl-geo { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.85); text-shadow: 0 1px 8px rgba(0,0,0,.95); }
.lbl-geo.water { color: #bfe6ff; font-style: italic; letter-spacing: .14em; text-transform: none; font-family: var(--serif); font-size: 16px; font-weight: 400; }
.lbl-road { font-size: 10px; font-weight: 600; letter-spacing: .08em; color: #1b1206; background: rgba(243,239,231,.92); padding: 2px 6px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.lbl-soil { font-family: var(--serif); font-size: 18px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.spot { cursor: pointer; display: flex; flex-direction: column; align-items: center; pointer-events: auto; transition: opacity .6s var(--ease); }
.spot-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; color: #1b1206; background: #ffd27a; box-shadow: 0 0 0 6px rgba(255,210,122,.22), 0 0 30px rgba(255,210,122,.7); }
.spot-stem { width: 2px; height: 18px; background: linear-gradient(#ffd27a, transparent); }
.pick { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; background: var(--accent); box-shadow: 0 0 0 5px rgba(255,255,255,.18), 0 0 22px var(--accent); pointer-events: none; animation: pop .4s var(--ease); }
/* show labels only where they help */
.lbl-road, .lbl-soil, .spot, .lbl-geo.water { opacity: 0; }
body.mode-land .lbl-road, body.mode-build .lbl-road { opacity: 1; }
body.mode-water .lbl-geo.water, body.mode-land .lbl-geo.water { opacity: 1; }
body.mode-ground .lbl-soil { opacity: 1; }
body.mode-build .spot { opacity: 1; }
body:not(.mode-build) .spot { pointer-events: none; }
body.mode-sun .lbl-parcel, body.mode-build .lbl-parcel { opacity: 0; }
body.inspecting .mode-card { max-height: 40vh; }

/* Labels on the 3D sun-path arc (Kestrel Shore) */
.arc-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.arc-label { position: absolute; left: 0; top: 0; margin: -24px 0 0 0; translate: -50% 0; font-size: 10px; font-weight: 600; letter-spacing: .04em; color: rgba(255,240,215,.85); text-shadow: 0 1px 6px rgba(0,0,0,.9); white-space: nowrap; will-change: transform; }
.arc-label.compass { margin-top: -6px; font-size: 10.5px; color: rgba(255,255,255,.7); }
.arc-label.compass.north { color: var(--sun-2); }
.arc-label.sun { margin: -46px 0 0 0; padding: 4px 8px; border-radius: 999px; font-size: 11px; color: #1b1206; background: var(--sun-2); box-shadow: 0 4px 16px rgba(0,0,0,.4); text-shadow: none; }

/* ---------- Tour ---------- */
.tour { position: fixed; inset: 0; z-index: 30; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; scrollbar-width: none; }
.tour::-webkit-scrollbar { display: none; }
.tour[hidden] { display: none; }
body.touring .side, body.touring .dock, body.touring .brand, body.touring .tools, body.touring .hint { opacity: 0; pointer-events: none; }
.side, .dock, .brand, .tools { transition: opacity .7s var(--ease); }
.tour-skip { position: fixed; z-index: 31; top: 24px; right: 24px; padding: 10px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tour-progress { position: fixed; z-index: 31; left: 32px; top: 50%; translate: 0 -50%; width: 2px; height: 180px; border-radius: 2px; background: rgba(255,255,255,.14); }
.tour-progress i { display: block; width: 100%; height: 0; border-radius: 2px; background: var(--sun); box-shadow: 0 0 12px var(--sun); }
.chapter { min-height: 100vh; display: flex; align-items: center; padding: 0 0 0 72px; }
.chapter.tall { min-height: 220vh; align-items: flex-start; }
.chapter.tall .ch-card { position: sticky; top: calc(50vh - 150px); }
.ch-card { width: min(430px, calc(100vw - 40px)); padding: 26px 28px 24px; border-radius: 26px; background: var(--glass-strong); border: 1px solid var(--line); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); opacity: .25; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.chapter.is-in .ch-card { opacity: 1; transform: none; }
.ch-card h2 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.02; margin: 8px 0 12px; }
.ch-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 10px; }
.ch-card p b { color: var(--ink); }
.ch-card .cta { margin-top: 10px; display: inline-flex; gap: 8px; align-items: center; padding: 12px 18px; border-radius: 999px; background: var(--sun); color: #1b1206; font-weight: 600; font-size: 14px; }
.ch-card .scroll-cue { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 14px; }
.ch-clock { font-family: var(--serif); font-size: 30px; color: var(--sun-2); margin: 6px 0 0; font-variant-numeric: tabular-nums; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(5,6,8,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(640px, 100%); max-height: 86vh; overflow-y: auto; padding: 28px; border-radius: var(--radius); background: var(--glass-strong); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal-card h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 8px 0 12px; line-height: 1.05; }
.modal-card p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.src { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
.src th { text-align: left; font-weight: 600; color: var(--ink); padding: 9px 12px 9px 0; vertical-align: top; width: 30%; border-top: 1px solid var(--line); }
.src td { color: var(--ink-2); padding: 9px 0; vertical-align: top; line-height: 1.5; border-top: 1px solid var(--line); }
.src a { color: var(--sun-2); }


/* ---------- Listing layer (broker / auction) ---------- */
.badge.is-concept { color: #e9e2ff; background: rgba(160,140,255,.14); border-color: rgba(180,165,255,.4); }
.badge.is-concept i { background: #b9a8ff; box-shadow: 0 0 10px #b9a8ff; }
.deal { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; pointer-events: auto; }
.deal-chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 13px; border-radius: 999px; font-size: 12px; color: var(--ink-2); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.deal-chip b { font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--ink); }
.deal-chip.auction b { color: var(--sun-2); }
.deal-chip.approx { border-color: rgba(255, 196, 120, .55); }
.deal-chip.approx b { color: #ffd59a; font-size: 15px; }
.deal-btn { padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #1b1206; background: var(--sun); box-shadow: 0 8px 26px -8px rgba(245,185,106,.8); transition: transform .2s var(--ease); }
.deal-btn:active { transform: scale(.96); }
.credit { display: block; margin-top: 3px; font-style: normal; font-size: 10px; letter-spacing: .06em; color: rgba(243,239,231,.5); }
.buyer-link { display: block; width: 100%; margin: 14px 0 0; padding: 12px 14px; border-radius: 16px; text-align: left; font-size: 13.5px; font-weight: 500; background: linear-gradient(120deg, rgba(245,185,106,.14), rgba(255,255,255,.03)); border: 1px solid rgba(245,185,106,.32); }
.buyer-link span { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 400; color: var(--ink-3); }
.buyer-link:hover { border-color: rgba(245,185,106,.55); }
.listing-card { width: min(600px, 100%); }
.listing-card > div > .eyebrow:first-child, #about-eyebrow { padding-right: 40px; }
.listing-card .stats { margin-bottom: 4px; }
.buyer { margin: 18px 0 0; padding: 16px 16px 6px; border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.buyer dl { margin: 10px 0 0; display: grid; gap: 12px; }
.buyer dt { font-size: 13px; font-weight: 600; color: var(--ink); }
.buyer dd { margin: 3px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.buyer dd a, .note a, .fine a { color: var(--sun-2); }
.bq { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.bq:last-child { border-bottom: 0; }
.auction-box { margin: 16px 0 0; padding: 14px 16px; border-radius: 16px; background: rgba(245,185,106,.08); border: 1px solid rgba(245,185,106,.3); }
.auction-when { font-family: var(--serif); font-size: 26px; margin: 4px 0 0; }
.auction-days { margin: 2px 0 0; font-size: 12px; color: var(--sun-2); }
.price-line { margin: 14px 0 0; font-size: 12px; color: var(--ink-3); }
.price-line b { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--ink); margin-right: 6px; }
.cta-row { margin-top: 18px; }
.cta-btn { display: inline-block; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; color: #1b1206; background: var(--sun); text-decoration: none; }
.cta-btn.is-off { opacity: .45; cursor: not-allowed; }
.cta-note { margin: 8px 0 0 !important; font-size: 11.5px !important; color: var(--ink-3) !important; }
.fine { font-size: 11.5px !important; color: var(--ink-3) !important; margin-top: 16px !important; }
.credit-line { font-size: 11px !important; letter-spacing: .06em; color: var(--ink-3) !important; text-transform: uppercase; margin-top: 18px !important; }
body.touring .credit { opacity: 0; }

/* MapLibre attribution */
.maplibregl-ctrl-attrib { background: rgba(10,12,15,.6) !important; color: var(--ink-3) !important; font-size: 10px !important; backdrop-filter: blur(8px); border-radius: 10px 0 0 0; }
.maplibregl-ctrl-attrib a { color: var(--ink-2) !important; }
.maplibregl-ctrl-attrib-button { filter: invert(1); }
.maplibregl-ctrl-bottom-right { right: calc(var(--side-w) + 30px) !important; z-index: 4; }

/* ---------- Mid widths ---------- */
@media (max-width: 1180px) {
  :root { --side-w: 330px; }
  .brand h1 { font-size: 52px; }
  .narration { font-size: 21px; }
  .mode { padding: 10px 12px 10px 10px; font-size: 12.5px; }
}
@media (max-width: 980px) and (min-width: 721px) {
  .mode span { display: none; }
  .mode { padding: 10px 12px; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  :root { --side-w: 0px; }
  .brand { top: calc(12px + env(safe-area-inset-top)); left: 16px; right: 120px; }
  .brand h1 { font-size: 34px; margin: 8px 0 0; }
  .brand-sub { font-size: 11.5px; margin-top: 2px; }
  .deal { margin-top: 8px; gap: 6px; }
  .deal-chip { padding: 5px 10px; font-size: 10.5px; }
  .deal-chip b { font-size: 15px; }
  .deal-btn { padding: 7px 12px; font-size: 11.5px; }
  .credit { display: none !important; }
  .modal { padding: 10px; align-items: end; }
  .modal-card { padding: 22px 18px; max-height: 88vh; }
  .listing-card h2 { font-size: 28px; }
  .badge { font-size: 9px; padding: 4px 9px 4px 8px; letter-spacing: .12em; }
  .tools { top: calc(12px + env(safe-area-inset-top)); right: 12px; gap: 6px; flex-wrap: wrap; justify-content: flex-end; width: 100px; }
  .tool { width: 40px; height: 40px; }
  .pill { height: 40px; padding: 0 12px 0 10px; font-size: 12px; order: -1; }
  .pill span { display: none; }
  .pill { width: 40px; padding: 0; justify-content: center; }
  #btn-compass { display: none; }
  .export-menu { position: fixed; top: calc(108px + env(safe-area-inset-top)); right: 12px; left: 12px; width: auto; }

  .dock { left: 0; right: 0; bottom: 0; translate: none; width: auto; padding: 0 12px calc(8px + env(safe-area-inset-bottom)); }
  .narration { font-size: 17px; line-height: 1.3; margin: 0 6px 10px; text-wrap: balance; }
  .modes { display: flex; width: 100%; justify-content: space-between; padding: 5px; gap: 0; }
  .mode { flex: 1; flex-direction: column; gap: 3px; padding: 8px 0 7px; font-size: 10.5px; justify-content: center; }
  .mode svg { width: 20px; height: 20px; }
  .modes .lens { top: 5px; bottom: 5px; }
  .source { margin-top: 7px; font-size: 9.5px; }
  .source span { display: none; }
  .source b { font-size: 9.5px; }

  .side { top: auto; left: 0; right: 0; bottom: var(--dock-h, 150px); width: auto; padding: 0 8px 8px; gap: 8px; }
  .card { border-radius: 20px; }
  .mode-card { max-height: 48vh; transition: max-height .45s var(--ease); }
  .mode-card.is-collapsed { max-height: var(--peek, 64px); }
  .mode-card.is-collapsed .mc-body { overflow: hidden; }
  .sheet-handle { display: block; position: absolute; top: 0; left: 0; right: 0; height: 26px; z-index: 2; }
  .sheet-handle span { position: absolute; left: 50%; top: 8px; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: rgba(255,255,255,.3); }
  .mc-head { padding: 16px 16px 0; display: flex; align-items: baseline; gap: 10px; }
  .mc-head h2 { font-size: 24px; order: -1; }
  .mc-head .eyebrow { font-size: 9.5px; }
  .seg { margin: 10px 12px 0; }
  .mc-body { padding: 12px 16px 14px; }
  .inspect { max-height: 52vh; padding: 16px 16px 14px; }
  .in-head h3 { font-size: 23px; }
  .big b { font-size: 38px; }
  .stats b { font-size: 20px; }
  body.inspecting .mode-card { display: none; }
  .maplibregl-ctrl-bottom-right { right: 0 !important; bottom: calc(var(--dock-h, 150px) + var(--card-h, 70px)) !important; }
  .hint { top: auto; bottom: calc(var(--dock-h, 150px) + var(--card-h, 70px) + 12px); font-size: 11px; white-space: normal; width: max-content; max-width: calc(100vw - 32px); text-align: center; }

  .lbl-parcel { font-size: 9px; padding: 4px 8px; letter-spacing: .12em; }
  .lbl-road { font-size: 9px; }
  .lbl-geo.water { font-size: 14px; }
  .tour-progress { display: none; }
  .tour-skip { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
  .chapter { padding: 0 12px 24px; align-items: flex-end; }
  .chapter.tall .ch-card { top: auto; bottom: 24px; }
  .chapter.tall { align-items: flex-end; }
  .chapter.tall > .ch-card { position: sticky; bottom: 24px; }
  .ch-card { width: 100%; padding: 20px 20px 18px; }
  .ch-card h2 { font-size: 31px; }
  .ch-card p { font-size: 13.5px; }
  .study { grid-template-columns: 96px 1fr; }
  .dial { width: 96px; height: 96px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
