@font-face {
  font-family: Geist;
  src: url('../atlas/geist-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url('../atlas/geist-600.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
:root {
  --header-height: 72px;
  font-family: Geist, "Helvetica Neue", Arial, sans-serif;
  color:var(--os-text);
  background:var(--os-canvas);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .27em; }
button, select { font: inherit; }
:focus-visible { outline: 3px solid var(--ncc-gold); outline-offset: 3px; }
header {
  height: var(--header-height); padding: 0 clamp(20px, 3vw, 54px); display: flex;
  justify-content: space-between; align-items: center;
  background: var(--ncc-charcoal); color: var(--paper);
}
.builder-brand { display: block; }
header .company-logo { height: calc(var(--header-height) - 12px); width: auto; }
.home { display: inline-flex; gap: .7rem; align-items: center; font-size: .84rem; text-decoration: none; padding: .75rem 0; }
.home span { color: var(--ncc-gold); font-size: 1.2rem; }
.home:hover { text-decoration: underline; }
main { display: grid; grid-template-columns: clamp(320px,29vw,440px) 1fr; min-height: calc(100svh - var(--header-height)); }
aside { padding: clamp(30px,3.5vw,64px) clamp(22px,3vw,48px); min-width: 0; }
.eyebrow {
  display: flex; align-items: center; gap: .7rem; margin: 0; color: var(--ncc-slate);
  font: 600 .65rem/1.4 ui-monospace, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase;
}
aside > .eyebrow::before { content: ''; width: 2.1rem; height: 2px; background: var(--ncc-gold); }
h1, h2 { margin: 0; font-family: Baskerville, "Iowan Old Style", Georgia, serif; font-weight: 400; line-height: 1.02; }
h1 { font-size: clamp(2.85rem,4vw,4.5rem); letter-spacing: -.056em; margin: 1.25rem 0 .9rem; }
h1 em { color: var(--ncc-charcoal); }
h2 { font-size: clamp(1.65rem,2.15vw,2.2rem); letter-spacing: -.045em; margin: .65rem 0; }
.intro, #detail-copy { font-size: .95rem; line-height: 1.6; color: var(--copy); margin: 0; }
label { display: block; font-size: .8rem; font-weight: 600; margin: 1.65rem 0 .45rem; }
select {
  width: 100%; min-height: 46px; padding: 9px 24px 9px 10px;
  font-size: .86rem; color:var(--os-text); background:var(--os-card); border:1px solid var(--os-focus); border-radius: 3px;
}
.details { margin-top: 1.65rem; border-top:1px solid var(--os-rule); padding-top: 1.5rem; }
#inquiry { display: inline-block; margin-top: 1rem; padding: .6rem 0; font-size: .88rem; font-weight: 600; }
#inquiry[hidden], #embed-selection[hidden] { display: none; }
.footnote { color: var(--copy); font-size: .75rem; line-height: 1.6; margin: 1.8rem 0 0; }
.stage {
  position: sticky; top: 0; isolation: isolate; min-width: 0; height: max(390px,calc(100svh - var(--header-height))); overflow: hidden;
  border-left: 1px solid var(--ncc-stone); background: radial-gradient(ellipse at 46% 34%, #faf9f6, #efede8 66%, var(--ncc-stone));
}
.stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(rgb(74 72 79 / .16) .55px, transparent .85px) 0 0 / 10px 10px;
}
canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
canvas.over-place { cursor: pointer; }
canvas.dragging { cursor: grabbing; }
.mode, .controls, .map-caption, #embed-selection { position: absolute; z-index: 2; }
.mode, .controls {
  display: flex; align-items: center; padding: 3px;
  color:var(--os-text); background:var(--os-card); border:1px solid var(--os-rule);
  border-radius: 6px; box-shadow: 0 4px 16px rgb(47 46 51 / .08);
}
.mode { top: 20px; left: 20px; }
.controls { right: 20px; bottom: 20px; }
button {
  border: 0; border-radius: 3px; background: transparent; color: var(--ink); cursor: pointer;
  font-size: .8rem; font-weight: 600; min-height: 42px; padding: 8px 14px;
}
button[aria-pressed=true] { background: var(--ncc-charcoal); color: white; }
button:disabled { opacity: .38; cursor: default; }
.stage button:hover:not(:disabled):not([aria-pressed=true]) { background:var(--os-well); color:var(--os-text); }
.controls button { font: 1.32rem/1 system-ui; padding: 4px 8px; min-width: 42px; }
.map-caption {
  left: 20px; bottom: 25px; display: flex; align-items: center; gap: .55rem; color:var(--os-text);
  background:var(--os-card); padding: 5px 8px; font-size: .78rem; pointer-events: none;
}
.orbit-mark { font-size: 1.1rem; }
#embed-selection {
  top: 12px; right: 12px; padding: .75rem .85rem; color: white; background: var(--ncc-charcoal);
  border-radius: 3px; font-size: .8rem; font-weight: 600; text-decoration: none;
}
#embed-selection:hover { text-decoration: underline; }
.embed header, .embed aside, .keyboard-list { display: none; }
.embed main, .embed .stage { display: block; height: 100svh; min-height: 0; border: 0; }
.embed .mode { left: 12px; top: 12px; }
.embed .controls { bottom: 12px; right: 12px; }
.embed .map-caption { bottom: 17px; left: 12px; }
.embed .keyboard-list { display: block; position: absolute; top: 12px; left: 12px; z-index: 4; background: var(--ncc-charcoal); color: white; padding: 12px; }
.embed .keyboard-list:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 800px) {
  main { display: flex; flex-direction: column; }
  .stage { position: relative; order: -1; height: clamp(315px,60vw,465px); border-left: 0; border-bottom: 1px solid var(--ncc-stone); }
  aside { padding: 28px max(6vw,20px) 40px; }
  h1 { font-size: clamp(2.75rem,7.8vw,4.25rem); margin: .8rem 0; } h1 br { display: none; } h1 em::before { content: ' '; }
}
@media (max-width: 520px) {
  :root { --header-height: 56px; }
  .controls, .embed .controls { bottom: 10px; right: 10px; }
  .mode, .embed .mode { top: 10px; left: 10px; }
  .controls button { min-width: 40px; } button { min-height: 40px; }
  .map-caption, .embed .map-caption { top: 61px; bottom: auto; left: 10px; font-size: .73rem; }
  .orbit-mark { display: none; }
  #embed-selection { top: auto; bottom: 64px; }
}
@media (max-width: 450px) { .embed .map-caption { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  button, select { transition: background-color .2s ease, border-color .2s ease; }
  .home span { transition: transform .2s ease; }
  .home:hover span { transform: translateX(-3px); }
}

.landmark-photo:not([hidden]) {
  display: grid; grid-template-columns: minmax(64px,28%) minmax(0,1fr) auto; align-items: center;
  gap: .7rem; margin-top: 1rem; padding: 7px 11px 7px 7px;
  color:var(--os-text); background:var(--os-card); border:1px solid var(--os-rule); text-decoration: none; cursor: zoom-in;
}
.landmark-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1.45; object-fit: cover; }
.landmark-photo strong { display: block; font: 400 clamp(1.12rem,1.6vw,1.45rem)/1.08 Baskerville, Georgia, serif; }
.landmark-photo small { display: block; margin-top: .3rem; color:var(--os-muted); font-size: .68rem; }
.landmark-open { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border: 1px solid var(--ncc-stone); border-radius: 50%; }
.landmark-photo:is(:hover,:focus-visible) .landmark-open { background: var(--ncc-charcoal); color: white; }
