/* What's beneath your feet? (/beneath): the full-screen stage, search, HUD, panel, depth gauge and the copy below.
   Page from builder/beneath/build_page.py, script from builder/www/src/beneath/ (bundled to /assets/beneath.js?v=dde5d176). Tokens from minerals.css. */
.bn-main { padding: 0; }
.bn-stage { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 50% 35%, #0b1a1c 0%, #05080a 60%, #030507 100%); }
.bn-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: none; }
.bn-stage canvas:active { cursor: grabbing; }
.bn-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(130% 90% at 50% 45%, transparent 55%, rgba(2, 4, 6, .7) 100%), linear-gradient(180deg, rgba(4, 7, 10, .8) 0, transparent 170px); }
.bn-stage > :not(canvas):not(.bn-vignette) { z-index: 3; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bn-glass { background: rgba(6, 11, 13, .74); border: 1px solid var(--line2); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }

/* the opening: heading and search over the globe */
.bn-head { position: absolute; left: 32px; top: 92px; width: min(520px, calc(100% - 32px)); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.bn-head.gone { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.bn-head .crumbs { font-size: 12.5px; color: var(--faint); margin-bottom: 10px; }
.bn-head .crumbs a { color: var(--muted); text-decoration: none; }
.bn-head .crumbs span { margin: 0 4px; }
.bn-head .kick { margin-bottom: 10px; }
.bn-head h1 { font-size: clamp(32px, 4vw, 56px); line-height: 1; letter-spacing: -.035em; text-shadow: 0 2px 30px rgba(0, 0, 0, .6);
  background: linear-gradient(95deg, #fff 0%, #eef3f1 40%, var(--lime) 78%, var(--teal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bn-head .lede { font-size: 15.5px; color: #c9d4d0; margin-top: 14px; line-height: 1.55; text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.bn-search { position: relative; margin-top: 22px; display: flex; }
.bn-search input { flex: 1; font: inherit; font-size: 16px; color: var(--text); height: 54px; padding: 0 58px 0 20px; border-radius: 999px;
  border: 1px solid rgba(220, 255, 60, .35); background: rgba(6, 11, 13, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 0 rgba(220, 255, 60, 0), 0 18px 50px -20px rgba(0, 0, 0, .9); transition: border-color .2s, box-shadow .3s; }
.bn-search input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(220, 255, 60, .14), 0 18px 50px -20px rgba(0, 0, 0, .9); }
.bn-search input::placeholder { color: var(--faint); }
.bn-go { position: absolute; right: 6px; top: 6px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--lime); color: #0b1200; display: grid; place-items: center; cursor: pointer; }
.bn-go svg, .bn-me svg, .bn-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bn-hits { position: absolute; left: 0; right: 0; top: 60px; list-style: none; margin: 0; padding: 6px; border-radius: 18px; z-index: 5;
  background: rgba(6, 11, 13, .94); border: 1px solid var(--line2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.bn-hits[hidden] { display: none; }
.bn-hits li { padding: 9px 12px; border-radius: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.bn-hits li:hover, .bn-hits li:focus { background: rgba(220, 255, 60, .08); }
.bn-hits li b { font-weight: 600; font-size: 14.5px; color: var(--text); }
.bn-hits li span { font-size: 12.5px; color: var(--muted); }
.bn-hits li.none { cursor: default; color: var(--muted); font-size: 13.5px; }
.bn-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.bn-me { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13.5px; font-weight: 500; height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  color: var(--text); background: rgba(95, 224, 200, .12); border: 1px solid rgba(95, 224, 200, .45); }
.bn-me:hover { background: rgba(95, 224, 200, .2); }
.bn-me.busy svg { animation: bn-spin 1.2s linear infinite; }
@keyframes bn-spin { to { transform: rotate(360deg); } }
.bn-or { font: 11px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.bn-try { display: contents; }
.bn-try a { font-size: 13px; color: #c9d4d0; text-decoration: none; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(6, 11, 13, .6); }
.bn-try a:hover { color: var(--lime); border-color: rgba(220, 255, 60, .5); }
.bn-privacy { margin-top: 12px; font: 11.5px var(--mono); color: var(--faint); }

/* HUD once a place is open */
.bn-hud[hidden] { display: none; }
.bn-place { position: absolute; left: 28px; top: 82px; max-width: calc(100% - 520px); pointer-events: none; }
.bn-place b { display: block; font-family: var(--head); font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.03em; color: var(--text); text-shadow: 0 2px 20px rgba(0, 0, 0, .8); }
.bn-place span { font: 12px var(--mono); color: var(--muted); }
.bn-tools { position: absolute; left: 28px; top: 158px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.bn-tools .seg { margin: 0; background: rgba(6, 11, 13, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); --c: var(--lime); }
.bn-tools .seg button[aria-pressed="true"] { background: var(--lime); color: #0b1200; }
.bn-pick { display: inline-flex; flex-direction: column; gap: 1px; padding: 5px 10px 6px; border-radius: 12px; background: rgba(6, 11, 13, .72); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bn-pick[hidden] { display: none; }
.bn-pick span { font: 10px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.bn-pick select { font: inherit; font-size: 13px; color: var(--text); background: transparent; border: 0; padding: 0; cursor: pointer; max-width: 210px; }
.bn-pick select option { background: #0a1013; }
.bn-layers { display: flex; flex-wrap: wrap; gap: 5px; max-width: 300px; }
.bn-layers button { font: inherit; font-size: 12px; padding: 5px 10px; border-radius: 999px; cursor: pointer; color: var(--faint); background: rgba(6, 11, 13, .62);
  border: 1px solid var(--line); text-decoration: line-through; }
.bn-layers button[aria-pressed="true"] { color: var(--text); border-color: rgba(95, 224, 200, .5); text-decoration: none; }
.bn-modes { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; border-radius: 18px;
  background: rgba(6, 11, 13, .76); border: 1px solid var(--line2); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9); }
.bn-modes button { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 104px; padding: 8px 14px 7px; border-radius: 13px;
  border: 0; background: none; color: var(--muted); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.bn-modes button b { font-family: var(--head); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.bn-modes button small { font: 10px var(--mono); color: var(--faint); letter-spacing: .03em; }
.bn-modes button:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.bn-modes button[aria-selected="true"] { color: #0b1200; background: var(--lime); box-shadow: 0 0 28px -4px rgba(220, 255, 60, .6); }
.bn-modes button[aria-selected="true"] small { color: rgba(11, 18, 0, .7); }
.bn-ic-row { position: absolute; right: 24px; top: 84px; display: flex; gap: 6px; }
.has-panel .bn-ic-row { right: 440px; }
.bn-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line2); background: rgba(6, 11, 13, .72); color: var(--muted); cursor: pointer;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: color .2s, border-color .2s; }
.bn-ic:hover { color: var(--lime); border-color: rgba(220, 255, 60, .5); }
.bn-toast { position: absolute; left: 50%; top: 92px; translate: -50% 0; z-index: 9; font-size: 13.5px; padding: 9px 16px; border-radius: 999px; background: var(--lime); color: #0b1200;
  font-weight: 600; animation: bn-fade .3s var(--ease); max-width: 90vw; }
@keyframes bn-fade { from { opacity: 0; transform: translateY(6px); } }

/* labels pinned to the scene */
.bn-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bn-lbl { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; font: 500 11px var(--mono); color: #dfe8e5; }
.bn-lbl.layer { translate: 0 -50%; padding: 3px 8px 3px 6px; border-radius: 7px; background: rgba(4, 8, 10, .74); border: 1px solid rgba(255, 255, 255, .12); font-size: 11.5px; }
.bn-lbl.layer b { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--c); margin-right: 6px; vertical-align: -1px; }
.bn-lbl.layer.deep { font-size: 12.5px; }
.bn-lbl.tick { translate: -100% -50%; color: var(--faint); font-size: 10.5px; padding-right: 6px; }
.bn-lbl.tick::after { content: ""; display: inline-block; width: 8px; height: 1px; background: var(--faint); margin-left: 5px; vertical-align: 3px; }
.bn-lbl.north { translate: -50% -50%; color: var(--lime); font-weight: 600; font-size: 12px; }
.bn-lbl.pin { translate: -50% -100%; padding: 2px 7px; border-radius: 6px; background: rgba(4, 8, 10, .7); font-size: 10.5px; color: #dfe8e5; }
.bn-lbl.pin.ours { color: #ffd966; border: 1px solid rgba(255, 217, 102, .45); font-size: 11.5px; }
[data-view="dive"] .bn-lbl.pin, [data-view="dive"] .bn-lbl.north { display: none !important; }

/* panel */
.bn-panel { position: absolute; right: 14px; top: 76px; bottom: 14px; width: 412px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  border-radius: 22px; padding: 6px 0 18px; background: rgba(6, 11, 13, .84); border: 1px solid var(--line2);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: bp-in .5s var(--ease); font-size: 14px; color: #c9d4d0; }
.bn-panel[hidden] { display: none; }
@keyframes bp-in { from { opacity: 0; transform: translateX(24px) scale(.98); } }
.bp-x { position: sticky; top: 4px; float: right; margin-right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: rgba(6, 11, 13, .9);
  color: var(--muted); font-size: 18px; cursor: pointer; z-index: 3; }
.bp-x:hover { color: var(--text); }
.bp-sec { padding: 14px 20px 6px; border-bottom: 1px solid var(--line); }
.bp-sec:last-child { border-bottom: 0; }
.bp-sec h2 { font-family: var(--head); font-size: 18px; font-weight: 600; letter-spacing: -.015em; color: var(--text); margin: 0 0 6px; }
.bp-item h2 { font-size: 24px; }
.bp-kick { font: 500 11px var(--mono); color: var(--teal); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.bp-lede { margin: 0 0 10px; line-height: 1.5; }
.bp-note { font-size: 12.5px; color: var(--faint); line-height: 1.45; margin: 6px 0 10px; }
.bp-src { font-size: 12px; color: var(--faint); line-height: 1.5; margin: 8px 0; }
.bp-src a, .bp-sec p a { color: var(--lime); }
.bp-swatch::before { content: ""; display: inline-block; width: 16px; height: 16px; border-radius: 4px; background: var(--c); margin-right: 9px; vertical-align: -1px; box-shadow: 0 0 18px var(--c); }
.bn-layers-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bn-layer { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: start; padding: 7px 8px; border-radius: 10px; cursor: pointer; }
.bn-layer:hover { background: rgba(255, 255, 255, .04); }
.bn-layer i { width: 12px; align-self: stretch; min-height: 30px; border-radius: 4px; background: var(--c); }
.bn-layer b { display: block; color: var(--text); font-weight: 600; font-size: 13.5px; }
.bn-layer span { display: block; font-size: 12px; color: var(--muted); }
.bn-layer small { display: block; font-size: 11.5px; color: var(--faint); }
.bn-layer em { font: 11px var(--mono); color: var(--faint); font-style: normal; padding-top: 2px; }
.bp-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--lime); color: #0b1200; text-decoration: none; margin: 4px 0 10px; }
.bp-btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line2); }
.bp-step { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-back { font: inherit; font-size: 12.5px; color: var(--muted); background: none; border: 0; padding: 10px 20px 0; cursor: pointer; }
.bp-back:hover { color: var(--text); }
.bp-list { list-style: none; margin: 0 0 6px; padding: 0; }
.bp-list li > button, .bp-list li > a, .bp-list li > div { display: grid; grid-template-columns: 10px 1fr; column-gap: 9px; width: 100%; text-align: left; font: inherit; background: none; border: 0;
  padding: 7px 8px; border-radius: 10px; cursor: pointer; color: inherit; text-decoration: none; }
.bp-list li > button:not(:has(i)) { grid-template-columns: 1fr; }
.bp-list li > :hover { background: rgba(255, 255, 255, .04); }
.bp-list i { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-top: 4px; box-shadow: 0 0 10px var(--c); }
.bp-list b { color: var(--text); font-weight: 600; font-size: 13.5px; }
.bp-list span { font-size: 12px; color: var(--muted); }
.bp-dl { display: grid; grid-template-columns: 112px 1fr; gap: 6px 12px; margin: 8px 0 10px; font-size: 13.5px; }
.bp-dl dt { color: var(--faint); font: 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.bp-dl dd { margin: 0; color: var(--text); }
.bp-bars { display: flex; align-items: flex-end; gap: 3px; height: 54px; margin: 6px 0 12px; }
.bp-bars span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.bp-bars i { width: 100%; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--lime), var(--teal)); opacity: .85; }
.bp-bars small { font: 9.5px var(--mono); color: var(--faint); }
.bp-legend { display: grid; grid-template-columns: 1fr 1fr 1fr; font: 10.5px var(--mono); color: var(--faint); margin: 6px 0; gap: 3px 0; }
.bp-legend b { grid-column: 1 / -1; height: 8px; border-radius: 4px; }
.bp-legend span:nth-of-type(2) { text-align: center; }
.bp-legend span:nth-of-type(3) { text-align: right; }
.bp-legend em { grid-column: 1 / -1; font-style: normal; }
.bp-legend em i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: #55606a; margin-right: 6px; }
.bp-legend.types { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.bp-legend.types i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--c); margin-right: 5px; }
.bp-marks { list-style: none; margin: 8px 0; padding: 0 0 0 16px; border-left: 1px solid var(--line2); }
.bp-marks li { position: relative; padding: 6px 0 6px 6px; opacity: .45; transition: opacity .4s; }
.bp-marks li::before { content: ""; position: absolute; left: -21px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: #05080a; border: 1px solid var(--faint); }
.bp-marks li.past { opacity: 1; }
.bp-marks li.past::before { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 12px var(--lime); }
.bp-marks b { display: block; color: var(--text); font-size: 13.5px; }
.bp-marks span { font-size: 12px; color: var(--muted); }

/* depth gauge */
.bn-gauge { position: absolute; left: 28px; top: 50%; translate: 0 -50%; height: min(52vh, 440px); width: 64px; pointer-events: none; }
.bn-gauge[hidden] { display: none; }
.bg-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 12px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); }
.bg-bar span { position: absolute; left: 0; right: 0; background: var(--c); opacity: .9; }
.bg-bar i { position: absolute; left: -4px; right: -4px; height: 2px; background: var(--lime); box-shadow: 0 0 12px var(--lime); transition: top .5s var(--ease); }
.bn-gauge b { position: absolute; left: 20px; bottom: -26px; font: 600 13px var(--mono); color: var(--lime); white-space: nowrap; }
[data-view="dive"] .bn-tools, [data-view="core"] .bn-tools { display: none; }

/* tip, loader, credit */
.bn-tip { position: absolute; left: 0; top: 0; pointer-events: none; font-size: 13px; color: #c9d4d0; padding: 8px 12px; border-radius: 12px; max-width: 260px;
  background: rgba(6, 11, 13, .9); border: 1px solid var(--line2); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .9); }
.bn-tip b { display: block; font-family: var(--head); font-size: 14px; color: var(--text); }
.bn-tip span { font: 11px var(--mono); color: var(--muted); }
.bn-tip[hidden] { display: none; }
.bn-load { position: absolute; left: 50%; bottom: 96px; translate: -50% 0; display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 999px;
  font: 12px var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; background: rgba(6, 11, 13, .8); border: 1px solid var(--line2); }
.bn-load[hidden] { display: none; }
.bn-load i { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--lime); animation: bn-spin 1.2s var(--ease) infinite; }
.bn-credit { position: absolute; left: 28px; right: 460px; bottom: 6px; margin: 0; font-size: 10px; line-height: 1.4; color: rgba(154, 167, 163, .7); pointer-events: auto; }
.bn-credit a { color: inherit; }
.bn-down { position: absolute; right: 24px; bottom: 24px; font: 12px var(--mono); color: var(--faint); text-decoration: none; letter-spacing: .04em; }
.bn-down:hover { color: var(--text); }
.has-panel .bn-down { display: none; }

/* no WebGL: the copy and the links still work */
.flat.bn-stage { height: auto; min-height: 0; padding-bottom: 40px; }
.flat .bn-head { position: relative; left: auto; top: auto; padding: 96px 20px 10px; }
.flat canvas, .flat .bn-quick .bn-me, .flat .bn-search { display: none; }

/* copy */
.bn-copy { max-width: 820px; margin: 0 auto; padding: 56px 20px 40px; }
.bn-places { list-style: none; padding: 0; columns: 2 300px; column-gap: 28px; }
.bn-places li { break-inside: avoid; padding: 5px 0; font-size: 14.5px; }
.bn-places li span { display: block; font-size: 13px; color: var(--muted); }
.bn-src li { margin-bottom: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.bn-src b { color: var(--text); }

/* phones: the panel becomes a sheet */
@media (max-width: 760px) {
  .bn-head { left: 16px; top: 76px; width: calc(100% - 32px); }
  .bn-head .lede { font-size: 14.5px; }
  .bn-place { left: 16px; top: 70px; max-width: calc(100% - 32px); }
  .bn-place b { font-size: 21px; }
  .bn-tools { left: 16px; top: 128px; }
  .bn-tools .seg button { padding: 5px 9px; font-size: 12px; }
  .bn-layers { max-width: 220px; }
  .bn-ic-row, .has-panel .bn-ic-row { right: 12px; top: 128px; flex-direction: column; }
  .bn-ic { width: 36px; height: 36px; }
  .bn-panel { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 46vh; border-radius: 20px; }
  .has-panel .bn-modes { bottom: calc(46vh + 16px); }
  .bn-modes button { min-width: 0; padding: 7px 10px 6px; }
  .bn-modes button small { display: none; }
  .bn-gauge { left: 12px; height: 30vh; top: 40%; }
  .bn-credit { right: 16px; left: 16px; display: none; }
  .has-panel .bn-tools { display: none; }
  .bn-load { bottom: 84px; }
}
