:root {
  --gold: #e8c585;
  --bg: #09131e;
  --bg2: #101e2c;
  --line: #ffffff1a;
  --text: #f5f2eb;
  --muted: #a8b5c5;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
[hidden] { display: none !important; }
.mono { font-family: "Cascadia Code", Consolas, monospace; font-size: 10px; font-weight: 400; letter-spacing: .12em; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; background: var(--gold); color: var(--bg); padding: 12px 20px; }
.skip-link:focus { top: 12px; }
nav { padding: 25px 4%; background: linear-gradient(#07111de6, #07111d00); backdrop-filter: none; transition: background .3s; }
body.scrolled nav { background: #09131ef2; backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.logo { gap: 13px; font-size: 11px; letter-spacing: .12em; color: var(--text); }
.logo small { display: block; font: 400 8px/1.6 var(--body); letter-spacing: .17em; color: #b7c1cc; margin-top: 5px; }
.monogram { width: 43px; height: 43px; border: 1px solid #e8c58566; display: grid; place-content: center; position: relative; font: 700 20px var(--display); letter-spacing: -.08em; }
.monogram span { position: absolute; color: var(--gold); right: 6px; bottom: 6px; }
nav ul { display: flex; gap: 35px; font-size: 12px; }
nav ul a { color: #e0e5eb; }
nav ul a span { color: var(--gold); font: 9px Consolas, monospace; margin-left: 6px; }
.nav-contact { display: flex; gap: 9px; align-items: center; color: #d3dddf; font: 9px Consolas, monospace; letter-spacing: .08em; }
.nav-contact > span, .live-dot { height: 5px; width: 5px; display: inline-block; border-radius: 50%; background: #adc8a3; box-shadow: 0 0 10px #adc8a366; }
.city { position: relative; min-height: 820px; height: 100svh; max-height: 1400px; isolation: isolate; overflow: hidden; background: #102847; }
.city-world { position: absolute; inset: -22px; z-index: -2; transform: translate3d(var(--look-x, 0px), var(--look-y, 0px), 0); will-change: transform; }
.city-photo { width: 100%; height: 100%; object-fit: cover; object-position: 52% 54%; filter: saturate(.72) brightness(.77); transition: filter 1.4s; }
.city-atmosphere { position: absolute; inset: 0; background: linear-gradient(90deg, #04101ec4 0%, #06142150 40%, transparent 65%), linear-gradient(0deg, #09131e 0%, #09131e88 12%, transparent 38%, #08152633 70%, #08152699); transition: background 1.4s; }
.city[data-time="night"] .city-photo { filter: saturate(.65) brightness(.39) hue-rotate(7deg); }
.city[data-time="night"] .city-atmosphere { background: linear-gradient(90deg, #030c1bbf, transparent 70%), linear-gradient(0deg, #09131e, transparent 45%, #06142d55); }
#city-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .7; transition: opacity 1s; }
.city[data-time="night"] #city-stars { opacity: 1; }
.city-grid { position: absolute; inset: 0; background-image: linear-gradient(#d7dfef05 1px, transparent 1px), linear-gradient(90deg, #d7dfef05 1px, transparent 1px); background-size: 120px 120px; mask-image: linear-gradient(transparent 65%, #000); }
.scene-coordinate { position: absolute; top: 132px; left: 4%; display: flex; align-items: center; gap: 12px; color: #c8d0d7; font-size: 9px; }
.coordinate-line { width: 32px; height: 1px; background: #e8c58566; }
.city-intro { position: relative; width: fit-content; margin-left: 7.3%; padding-top: clamp(200px, 24vh, 330px); }
.eyebrow { font: 400 10px/1.5 Consolas, monospace; letter-spacing: .2em; color: var(--gold); display: flex; gap: 12px; align-items: center; }
.eyebrow > span { width: 25px; height: 1px; background: var(--gold); }
.city h1 { font: 700 clamp(64px, 6.8vw, 106px)/1.02 var(--display); letter-spacing: -.045em; margin: 22px 0 23px; text-shadow: 0 3px 40px #04122444; }
.city h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--gold); letter-spacing: -.045em; }
.city-description { color: #d3d9df; font-size: 15px; line-height: 1.8; max-width: 380px; }
.explore-button { display: inline-flex; gap: 13px; align-items: center; margin-top: 29px; padding: 9px 18px 9px 9px; border: 1px solid #e8c58588; border-radius: 3px; background: #0c1a28aa; font-size: 12px; transition: background .25s, border-color .25s; }
.explore-button:hover { background: #e8c58520; border-color: var(--gold); }
.button-icon { display: grid; place-items: center; width: 28px; height: 28px; background: var(--gold); color: #122335; font-size: 20px; }
.button-trail { margin-left: 20px; color: var(--gold); }
.intro-caption { color: #a2afb9; font-size: 8px; margin-top: 21px; letter-spacing: .15em; }
.landmarks { position: absolute; inset: 0; pointer-events: none; }
.landmark { pointer-events: auto; position: absolute; display: flex; flex-direction: column; align-items: center; min-width: 48px; color: #fff; transform: translateX(-50%); }
.landmark-work { left: 35%; bottom: 160px; }
.landmark-journey { left: 53.5%; top: 49%; }
.landmark-contact { left: 80%; top: 66%; }
.landmark-label { display: block; padding: 11px 15px; border: 1px solid #d6dce340; background: #0c1b2bd9; backdrop-filter: blur(12px); border-radius: 3px; transition: border-color .25s, transform .25s, background .25s; box-shadow: 0 6px 25px #0002; }
.landmark-label small { display: block; color: var(--gold); font: 8px/1.5 Consolas, monospace; letter-spacing: .12em; }
.landmark-label strong { display: flex; gap: 22px; align-items: center; font-size: 12px; font-weight: 500; margin-top: 4px; white-space: nowrap; }
.landmark-label strong > span { color: var(--gold); }
.landmark-stem { width: 1px; height: 36px; background: linear-gradient(#e8c58522, var(--gold)); }
.landmark-beacon { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #e8c58577; border-radius: 50%; background: #e8c58513; box-shadow: 0 0 25px #e8c58533; position: relative; }
.landmark-beacon > span { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 10px var(--gold); }
.landmark-beacon::after { content: ""; position: absolute; inset: -7px; border: 1px solid #e8c58555; border-radius: 50%; animation: beacon 3.5s ease-out infinite; }
.landmark-contact .landmark-beacon::after { animation-delay: 1s; }
.landmark-work .landmark-beacon::after { animation-delay: 2s; }
.landmark:hover .landmark-label, .landmark:focus-visible .landmark-label { transform: translateY(-5px); background: #172a3bee; border-color: var(--gold); }
.landmark.visited .landmark-label { border-color: #e8c58580; }
.landmark.visited .landmark-label small::after { content: ""; display: inline-block; width: 4px; height: 4px; margin-left: 7px; border-radius: 50%; background: #b6d5aa; vertical-align: middle; }
.landmark.visited .landmark-beacon { background: var(--gold); }
.landmark.visited .landmark-beacon > span { background: var(--bg); box-shadow: none; }
@keyframes beacon { 0% { transform: scale(.7); opacity: .8; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
.scene-side { position: absolute; right: 28px; top: 36%; writing-mode: vertical-rl; display: flex; align-items: center; gap: 20px; font-size: 8px; color: #cad3dd99; }
.scene-side > span { width: 1px; height: 66px; background: #cad3dd44; }
.scene-toolbar { position: absolute; right: 4%; top: 126px; display: flex; background: #091724b3; backdrop-filter: blur(12px); border: 1px solid #ffffff24; border-radius: 4px; }
.scene-toolbar button { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 11px 13px; border: 0; color: #d2dbe3; background: transparent; cursor: pointer; font-size: 10px; }
.scene-toolbar button + button { border-left: 1px solid #ffffff24; }
.scene-toolbar button:hover { color: var(--gold); background: #ffffff08; }
.sun-icon { font-size: 18px; line-height: 1; color: var(--gold); }
.motion-icon { color: var(--gold); font-size: 15px; line-height: 1; }
.toggle-track { width: 22px; height: 12px; border: 1px solid #e8c58566; border-radius: 20px; position: relative; }
.toggle-track::before { content: ""; position: absolute; width: 6px; height: 6px; top: 2px; left: 2px; border-radius: 50%; background: var(--gold); transition: transform .3s; }
[aria-pressed="true"] .toggle-track::before { transform: translateX(10px); }
.city-bottom { position: absolute; bottom: 66px; left: 4%; right: 4%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid #ffffff26; }
.scene-status { display: flex; align-items: center; gap: 15px; }
.scene-status p { color: var(--gold); font-size: 8px; margin-bottom: 5px; }
.scene-status > div > span { color: #acb9c5; font-size: 11px; }
.scene-compass { width: 46px; height: 46px; position: relative; color: var(--gold); }
.scene-compass > span { position: absolute; left: 20px; top: -9px; font: 8px Consolas, monospace; }
.scene-compass svg { width: 46px; height: 46px; transform: rotate(var(--bearing, 20deg)); }
.scene-progress { display: flex; align-items: center; gap: 12px; color: #aeb8c3; font-size: 9px; }
#explored-count { color: var(--gold); font-size: 14px; }
.progress-track { display: flex; gap: 4px; }
.progress-track i { width: 22px; height: 3px; background: #ffffff26; }
.progress-track i.complete { background: var(--gold); box-shadow: 0 0 9px #e8c58566; }
.city-guide { display: flex; align-items: center; gap: 13px; padding: 12px 16px; border: 1px solid #ffffff40; background: #0c1b2b80; color: #e4e9ec; border-radius: 3px; cursor: pointer; font-size: 9px; }
.city-guide:hover { border-color: var(--gold); color: var(--gold); }
.city-guide svg { height: 17px; width: 17px; fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linejoin: round; }
.city-guide > span { margin-left: 12px; font-size: 16px; color: var(--gold); }
.scroll-cue { position: absolute; bottom: 19px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-size: 8px; color: #a9b5c1; white-space: nowrap; }
.scroll-cue > span { width: 12px; height: 18px; border: 1px solid #a9b5c166; border-radius: 6px; position: relative; }
.scroll-cue > span::after { content: ""; position: absolute; top: 4px; left: 4px; height: 4px; width: 2px; background: var(--gold); }
.city.is-paused *, .city.is-paused *::after { animation-play-state: paused !important; }
.city.is-paused .city-world { will-change: auto; }
.about { border-top: 1px solid var(--line); }
.about .role { margin-bottom: 25px; font-size: 12px; }
.about .lede { max-width: 68ch; }
.about .stats { margin-top: 45px; }
.stat strong { font-size: 40px; }
.stat span { font-size: 12px; }
.marq { padding: 18px 0; }
.marq div { font-size: 15px; }
.ed, .cert, .way { opacity: 1; transform: none; }
.work button:focus-visible, .mini button:focus-visible, .mini a:focus-visible, .way:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.work .panel[inert] { visibility: hidden; }
section:focus { outline: none; }
body:has(dialog[open]) { overflow: hidden; }
dialog { position: fixed; inset: 0; width: min(540px, calc(100% - 32px)); max-height: calc(100svh - 40px); margin: auto; padding: 34px; background: #101e2c; border: 1px solid #e8c58566; color: var(--text); border-radius: 8px; box-shadow: 0 25px 150px #000a; }
dialog::backdrop { background: #020a15b8; backdrop-filter: blur(10px); }
.guide-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 24px; }
.guide-heading button { background: transparent; border: 1px solid var(--line); border-radius: 50%; width: 34px; height: 34px; color: var(--text); font-size: 24px; cursor: pointer; }
dialog h2 { font-size: clamp(28px, 5vw, 42px); }
dialog > p { font-size: 14px; color: var(--muted); margin: 20px 0; }
dialog > a { display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--line); padding: 20px 0; }
dialog > a:hover strong { color: var(--gold); }
dialog > a > span { font: 12px Consolas, monospace; color: var(--gold); }
dialog strong, dialog small { display: block; }
dialog strong { font-size: 16px; font-weight: 500; }
dialog small { font-size: 11px; color: var(--muted); margin-top: 3px; }
dialog > a > b { margin-left: auto; color: var(--gold); font-weight: 400; }
dialog .guide-help { font-size: 9px; line-height: 1.9; margin-bottom: 0; border-top: 1px solid var(--line); padding-top: 20px; }

@media (min-width: 1600px) {
  .city-intro { margin-left: 10%; }
  .landmark-work { left: 39%; }
}
@media (max-width: 1050px) {
  .nav-contact { display: none; }
  .city-intro { margin-left: 6%; }
  .city h1 { font-size: 76px; }
  .landmark-journey { left: 65%; top: 46%; }
  .landmark-work { left: 45%; }
  .landmark-contact { left: 79%; top: 64%; }
  .scene-side { right: 13px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 110px; }
  nav { padding: 17px 6%; flex-wrap: wrap; gap: 14px; }
  .logo { font-size: 10px; }
  .logo small { font-size: 7px; }
  .monogram { width: 34px; height: 34px; font-size: 17px; }
  nav ul { width: 100%; justify-content: space-between; gap: 12px; font-size: 11px; padding-top: 10px; border-top: 1px solid #ffffff1a; }
  .city { min-height: 950px; max-height: none; height: 100svh; }
  .city-photo { object-position: 49% 50%; }
  .city-atmosphere { background: linear-gradient(90deg, #04101ea8, #06142122), linear-gradient(0deg, #09131e 1%, transparent 45%, #08152633 65%, #081526aa); }
  .scene-coordinate { top: 139px; left: 6%; gap: 7px; font-size: 7px; letter-spacing: .04em; }
  .coordinate-line { width: 16px; }
  .city-intro { padding-top: 194px; margin-left: 7%; }
  .eyebrow { font-size: 8px; }
  .city h1 { font-size: clamp(56px, 12vw, 80px); margin-top: 18px; }
  .city-description { font-size: 13px; max-width: 290px; }
  .explore-button { margin-top: 24px; }
  .intro-caption { font-size: 7px; }
  .landmark-label { padding: 9px 11px; }
  .landmark-label small { font-size: 7px; }
  .landmark-label strong { font-size: 10px; gap: 12px; }
  .landmark-journey { left: 68%; top: 58%; }
  .landmark-work { left: 27%; top: 68%; bottom: auto; }
  .landmark-contact { left: 77%; top: 75%; }
  .landmark-stem { height: 22px; }
  .landmark-beacon { width: 20px; height: 20px; }
  .scene-toolbar { right: auto; left: 6%; top: auto; bottom: 133px; }
  .scene-toolbar button { font-size: 9px; padding: 9px 10px; }
  .scene-side, .scene-status { display: none; }
  .city-bottom { left: 6%; right: 6%; bottom: 62px; padding-top: 20px; gap: 12px; }
  .scene-progress { font-size: 7px; gap: 7px; letter-spacing: .04em; }
  .progress-track i { width: 15px; }
  .city-guide { padding: 10px; font-size: 8px; gap: 7px; white-space: nowrap; }
  .city-guide > span { margin-left: 0; }
  .scene-progress > span:last-child { max-width: 70px; }
  .about .role { font-size: 10px; padding: 7px 10px; }
  .about .stats { gap: 25px; display: grid; grid-template-columns: 1fr 1fr; }
  .stat strong { font-size: 32px; }
  .stat span { font-size: 11px; }
  .about .lede { font-size: 16px; }
  dialog { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .city-world { transform: none; will-change: auto; }
}
