:root {
  color-scheme: dark;
  --bg: #080c14;
  --text: #edf0f3;
  --muted: #98a2b3;
  --accent: #b2bcea;
  --line: #ffffff1c;
  --ground-height: clamp(95px, 15svh, 135px);
  --character-scale: 1;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: #59639b; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 30; padding: 12px; background: var(--bg); }
.skip-link:focus { top: 18px; }
#sky, .atmosphere { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#sky { z-index: 0; }
.atmosphere { background: radial-gradient(ellipse at 55% 70%, #30354f1a, transparent 65%); }
.site-header { position: relative; z-index: 12; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 5vw; }
.wordmark { font-size: 21px; font-weight: 650; letter-spacing: -1px; white-space: nowrap; }
.wordmark span { color: var(--muted); font-weight: 400; }
.wordmark i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin: 0 0 3px 7px; }
nav { display: flex; gap: 30px; font-size: 13px; }
nav a { color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; }
nav a:hover, nav a[aria-current] { color: var(--text); border-color: var(--accent); }
.destination { position: relative; min-height: 650px; padding: 90px 8vw; }
.destination-content { position: relative; z-index: 6; width: 100%; max-width: 980px; margin: auto; }
.centered { max-width: 760px; text-align: center; }
.eyebrow { font: 10px/1.8 Consolas, monospace; letter-spacing: 2px; color: var(--muted); margin: 0 0 25px; }
.signal { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin: 0 10px 2px 0; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.08; letter-spacing: -.06em; }
h1 { font-size: clamp(58px, 7.8vw, 108px); }
h2 { font-size: clamp(44px, 5vw, 68px); }
h1 > span, h2 > span { color: var(--accent); }
.alias { margin: 13px 0 0; color: var(--muted); font-size: 18px; letter-spacing: .03em; }
.alias span { color: #c8cee0; }
.identity { font-size: 18px; color: #c2c8d4; margin: 28px 0 0; }
.about .identity { margin-top: 16px; }
.about .intro { margin-bottom: 12px; }
.intro { font-size: 15px; line-height: 1.8; color: var(--muted); margin: 18px 0 28px; }
.home-links { display: flex; justify-content: center; gap: 38px; align-items: center; margin-top: 32px; }
.about .home-links { margin-top: 16px; }
.primary-link, .quiet-link { display: inline-flex; gap: 30px; align-items: center; font-size: 13px; padding: 13px 0; }
.primary-link { border-bottom: 1px solid #aab6e86b; }
.quiet-link { color: var(--muted); }
.primary-link:hover, .quiet-link:hover { color: var(--accent); }
.primary-link span, .quiet-link span { font-size: 18px; }
.project-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.project-copy .eyebrow { margin-bottom: 18px; }
.project-description { font-size: 14px; line-height: 1.85; color: var(--muted); margin: 22px 0; }
.tag-status { letter-spacing: 1px; font-size: 9px; border: 1px solid #b2bcea30; border-radius: 2px; padding: 4px 7px; margin-left: 10px; color: var(--accent); white-space: nowrap; }
.tag-status.muted { color: var(--muted); }
.tags { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; }
.tags li { font: 10px Consolas, monospace; padding: 6px 9px; border: 1px solid var(--line); color: #a6b1c4; }
.text-note { color: var(--muted); font-size: 12px; margin-top: 30px; }
.project-display { position: relative; height: 310px; border: 1px solid #77829f32; border-bottom: 3px solid #46536d; background: #0b111db3; }
.enhanced .project::before, .enhanced .project::after { content: ""; position: absolute; bottom: var(--ground-height); width: 5px; height: 190px; background: linear-gradient(#46536d, #1b2333); pointer-events: none; }
.enhanced .project::before { right: 35vw; }
.enhanced .project::after { right: 15vw; }
.display-label { position: absolute; top: 18px; left: 20px; font: 9px Consolas, monospace; color: #8b98b0; letter-spacing: 1.7px; }
.art-caption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font: 8px Consolas, monospace; letter-spacing: 1.6px; color: #8b98b0; }
.dice { position: absolute; left: 50%; top: 48%; width: 100px; height: 100px; transform: translate(-50%, -50%) rotate(-19deg); border-radius: 16px; background: linear-gradient(135deg, #dbe0f0, #8796bc); box-shadow: 7px 10px 0 #4b5878; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 17px; gap: 8px; }
.dice i { border-radius: 50%; background: #29344e; }
.dice i:nth-child(2) { grid-column: 3; }
.dice i:nth-child(3) { grid-column: 2; grid-row: 2; }
.dice i:nth-child(4) { grid-column: 1; grid-row: 3; }
.dice i:nth-child(5) { grid-column: 3; grid-row: 3; }
.orbit { position: absolute; top: 48%; left: 50%; border: 1px solid #a4b2e323; border-radius: 50%; transform: translate(-50%, -50%) rotate(-25deg); }
.orbit-one { width: 280px; height: 145px; }
.orbit-two { width: 185px; height: 245px; }
.planet { position: absolute; top: 50%; left: 50%; width: 110px; height: 110px; border: 1px solid #a3afd53b; border-radius: 50%; transform: translate(-50%, -50%); background: linear-gradient(120deg, #65729244, #131a27 75%); }
.planet-ring { position: absolute; top: 50%; left: 50%; width: 250px; height: 60px; border: 1px solid #a3afd540; transform: translate(-50%, -50%) rotate(-25deg); border-radius: 50%; }
.constellation-art svg { width: 100%; height: 100%; padding: 15px 25px 35px; }
.constellation-art path { fill: none; stroke: #aab6e84a; stroke-width: 1; }
.constellation-art circle { fill: #b7c3e2; }
.contact-links { list-style: none; padding: 0; margin: 28px auto 18px; max-width: 410px; text-align: left; }
.contact-links li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.link-placeholder { color: var(--muted); font-size: 11px; }
.landmark-label { display: none; position: absolute; bottom: calc(var(--ground-height) + 14px); right: 8vw; padding: 7px 10px; border-left: 1px solid #8a9bbc55; font: 9px Consolas, monospace; letter-spacing: 1.7px; color: #a0acc0; }
.landscape, .ground, #traveller, .world-footer { display: none; }

/* JavaScript turns one viewport into the camera. Without it the document stays readable. */
.enhanced, .enhanced body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.enhanced body { height: 100svh; }
.enhanced .site-header { position: fixed; inset: 0 0 auto; background: linear-gradient(var(--bg), #080c1400); }
.enhanced .world-camera { position: fixed; inset: 0; overflow: hidden; z-index: 5; contain: layout paint; }
.enhanced .world { position: absolute; inset: 0; width: 100%; height: 100svh; touch-action: pan-y pinch-zoom; }
.enhanced .destination { position: absolute; left: 0; top: 0; width: 100%; height: 100%; min-height: 0; will-change: transform; padding: 100px 8vw calc(var(--ground-height) + 155px); display: flex; align-items: center; }
.enhanced .destination-content { flex-shrink: 0; margin: 0 auto; overflow: visible; padding: 8px; transform: scale(var(--content-scale, 1)); transform-origin: center; }
.enhanced .landmark-label { display: block; }
.enhanced .landscape { display: block; position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.far-hills, .near-hills { position: absolute; bottom: var(--ground-height); pointer-events: none; background-repeat: repeat-x; background-position: bottom; }
.far-hills { left: -512px; width: calc(100% + 1024px); height: 160px; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20160%22%3E%3Cpath%20fill%3D%22%23121a28%22%20d%3D%22M0%20112%20Q45%2095%2095%20110%20Q130%2070%20175%20105%20Q225%20130%20270%2090%20Q310%2055%20365%2095%20Q410%20135%20460%20100%20Q490%2090%20512%20112%20V160%20H0Z%22%2F%3E%3C%2Fsvg%3E"); background-size: 512px 160px; }
.near-hills { left: -420px; width: calc(100% + 840px); height: 78px; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20420%2078%22%3E%3Cpath%20fill%3D%22%23182231%22%20d%3D%22M0%2045%20Q60%2010%20105%2045%20T210%2052%20T315%2036%20Q370%2018%20420%2045%20V78%20H0Z%22%2F%3E%3Cpath%20fill%3D%22%231d2a30%22%20d%3D%22M78%2051l5-9%206%2010z%20M274%2046l4-12%202%2011%205-6%201%2013z%22%2F%3E%3C%2Fsvg%3E"); background-size: 420px 78px; }
.enhanced .ground { display: block; position: fixed; inset: auto 0 0; height: var(--ground-height); z-index: 8; pointer-events: none; border-top: 2px solid #536859; background: linear-gradient(#202a27 0 5px, #141c21 5px 20px, #10171d 60%); }
.ground-detail { width: calc(100% + 230px); height: 35px; position: absolute; left: -115px; top: 5px; background: repeating-linear-gradient(110deg, transparent 0 49px, #8193820f 50px 53px, transparent 54px 115px); }
.enhanced .world-footer { display: flex; position: fixed; inset: auto 5vw 18px; z-index: 12; align-items: center; justify-content: space-between; gap: 24px; padding: 11px 18px; border: 1px solid #b2c0d024; border-radius: 7px; background: #0d17245c; }
.control-hint, .footer-note { font: 9px Consolas, monospace; letter-spacing: 1.2px; color: #9ba8b9; margin: 0; }
.divider { margin: 0 8px; color: #67798e; }
kbd { font: inherit; border: 1px solid #ffffff26; padding: 3px 5px; margin: 0 2px; }
.journey-controls { display: flex; align-items: center; gap: 18px; }
.journey-controls button { color: #d1daeb; border: 1px solid #ffffff30; width: 36px; height: 36px; background: #111a21; border-radius: 50%; cursor: pointer; }
.journey-controls button:hover { border-color: var(--accent); background: #26303d; }
.journey-controls button:disabled { opacity: .35; cursor: default; }
.mobile-hint { display: none; }

/* Cuboid faces use local skin crops. No WebGL or runtime CDN required. */
.enhanced #traveller.ready { display: block; }
#traveller { position: fixed; left: 35%; bottom: var(--ground-height); width: 80px; height: 128px; z-index: 7; pointer-events: none; perspective: 800px; transform: translateX(-50%) scale(var(--character-scale)); transform-origin: center bottom; }
.character { position: absolute; left: 40px; top: 0; transform-style: preserve-3d; transform: rotateY(-20deg); }
.character-shadow { position: absolute; bottom: -2px; left: -2px; width: 84px; height: 5px; background: #03080ba6; border-radius: 50%; }
.part { position: absolute; transform-style: preserve-3d; transform-origin: 50% 0; }
.face { position: absolute; backface-visibility: hidden; image-rendering: pixelated; background-color: var(--block-color); }
.face.back { filter: brightness(.82); }
.face.left, .face.right { filter: brightness(.76); }
.face.top { filter: brightness(1.07); }
.face.bottom { filter: brightness(.65); }
.head { --block-color: #b4a38b; }
.torso { --block-color: #788ba3; }
.arm { --block-color: #b4a38b; }
.leg { --block-color: #394860; }
.overlay .face { background-color: transparent; }
.head > .front::after { content: ""; position: absolute; left: 22%; top: 45%; width: 12%; height: 12%; background: #263144; box-shadow: 16px 0 #263144; }
.skinned .head > .front::after, .overlay > .front::after { display: none; }
.idle .head { animation: look 8s infinite ease-in-out; }
.idle .torso { animation: breathe 4s infinite ease-in-out; }
@keyframes look { 0%, 70%, 100% { transform: rotateY(0); } 85% { transform: rotateY(8deg); } }
@keyframes breathe { 50% { transform: translateY(-.6px); } }

@media (max-width: 760px) {
  :root { --ground-height: 90px; --character-scale: .7; }
  .site-header { padding: 22px 6vw; gap: 16px; }
  .wordmark { font-size: 18px; }
  nav { gap: 16px; font-size: 11px; }
  .enhanced .destination { padding: 86px 6vw calc(var(--ground-height) + 105px); }
  h1 { font-size: clamp(40px, 10vw, 66px); }
  h2 { font-size: clamp(34px, 8vw, 50px); }
  .eyebrow { font-size: 8px; letter-spacing: 1.4px; margin-bottom: 18px; }
  .alias { font-size: 15px; }
  .identity { font-size: 15px; margin-top: 24px; }
  .intro { font-size: 13px; }
  .home-links { gap: 28px; }
  .primary-link, .quiet-link { font-size: 12px; gap: 18px; }
  .project-layout { grid-template-columns: 1fr; gap: 22px; }
  .project-description { font-size: 12px; line-height: 1.75; margin: 15px 0; }
  .tags { margin-bottom: 7px; gap: 5px; }
  .tags li { font-size: 8px; padding: 5px 7px; }
  .project-display { height: 155px; }
  .enhanced .project::before { right: 75vw; }
  .enhanced .project::after { right: 22vw; }
  .display-label { top: 12px; left: 12px; font-size: 7px; }
  .art-caption { bottom: 12px; font-size: 6px; letter-spacing: 1px; }
  .dice { width: 66px; height: 66px; padding: 12px; gap: 5px; border-radius: 11px; box-shadow: 5px 7px 0 #4b5878; }
  .orbit-one { width: 180px; height: 85px; }
  .orbit-two { width: 130px; height: 125px; }
  .planet { width: 70px; height: 70px; }
  .planet-ring { width: 175px; height: 42px; }
  .text-note { margin: 15px 0 0; font-size: 11px; }
  .contact-links { margin-top: 20px; }
  .contact-links li { font-size: 12px; padding: 13px 0; }
  .link-placeholder { font-size: 10px; }
  .landmark-label { font-size: 8px; right: 6vw; bottom: calc(var(--ground-height) + 12px); }
  .enhanced .world-footer { inset: auto 6vw 24px; gap: 16px; }
  .mobile-hint { display: inline; }
  .control-hint { font-size: 8px; letter-spacing: .8px; }
  .journey-controls { gap: 12px; }
  .journey-controls button { width: 34px; height: 34px; }
  .far-hills { height: 105px; }
  .near-hills { height: 48px; }
}
@media (max-width: 390px) {
  .site-header { padding-inline: 5vw; gap: 12px; }
  nav { gap: 12px; font-size: 10px; }
}
@media (max-height: 700px) {
  :root { --ground-height: 76px; --character-scale: .6; }
  .enhanced .destination { padding-top: 76px; padding-bottom: calc(var(--ground-height) + 86px); }
  .eyebrow { margin-bottom: 12px; }
  h1 { font-size: clamp(40px, 6.5vw, 72px); }
  h2 { font-size: clamp(32px, 5vw, 56px); }
  .alias { margin-top: 8px; }
  .identity { margin-top: 15px; }
  .intro { margin-block: 12px; }
  .home-links { margin-top: 12px; }
  .project-display { height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* The compact banner remains translucent over the terrain. */
#destination-name { min-width: 90px; text-align: center; font: 11px Consolas, monospace; color: var(--accent); }
.account-name { color: var(--accent); }
.moon { position: fixed; right: 13%; top: 14%; width: 76px; height: 76px; z-index: 1; pointer-events: none; }
.moon img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 18px #c4d7f323); }
.moon-cloud { position: absolute; left: -45px; top: 49px; width: 165px; height: 18px; border-radius: 50%; background: linear-gradient(90deg, transparent, #8596b324 40%, #8495b319 65%, transparent); filter: blur(4px); transform: rotate(-5deg); }
.moon-cloud::after { content: ""; position: absolute; left: 65px; top: 12px; width: 130px; height: 10px; border-radius: 50%; background: #8394ae15; }
@media(max-width:760px) { .moon { right: 8%; top: 12%; width: 52px; height: 52px; } .moon-cloud { top: 34px; width: 125px; left: -30px; } .enhanced .world-footer { inset: auto 5vw 16px; padding: 9px 12px; gap: 10px; } .desktop-hint,.footer-note { display: none; } #destination-name { font-size: 10px; min-width: 74px; } .journey-controls { gap: 7px; } .journey-controls button { width: 30px; height: 30px; } }
@media(max-width:760px) and (max-height:700px) { .project-display { height: 100px; } .project-layout { gap: 12px; } .art-caption { bottom: 7px; } .display-label { top: 7px; } .contact-links li { padding: 10px 0; } .eyebrow { letter-spacing: 1px; } }
@media(max-height:480px) and (min-width:600px) { .project-layout { grid-template-columns: 1fr 1fr; gap: 4vw; } .project-display { height: 120px; } .enhanced .destination { padding-top: 65px; padding-bottom: 130px; } :root { --ground-height: 62px; --character-scale: .45; } .contact-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; max-width: 600px; margin-top: 12px; } .contact-links li { padding: 8px 0; } }

.character { transition: transform .18s ease-out; }
.arm,.leg { transition: transform .16s ease-out; }
.walking .arm,.walking .leg { transition: none; }
