@font-face {
    font-family: 'Thorving Sans';
    src: url('/fonts/ThorvingSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

:root { color-scheme: dark; --paper: #efeee8; --muted: #a0a39d; --background: #111312; --accent: #c3652b; }
* { box-sizing: border-box; scrollbar-width: none !important; }
*::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
html, body { margin: 0; overflow-x: clip; scrollbar-width: none !important; background: var(--background); color: var(--paper); }
body { font-family: 'Thorving Sans', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--paper); }
a:focus-visible, canvas:focus-visible { outline: 1px solid #b7b7a4; outline-offset: 7px; }
h1:focus { outline: none; }

.business-card {
    min-height: 100svh;
    max-width: 1500px;
    margin: auto;
    padding: 0 6%;
    display: flex;
    flex-direction: column;
}
.site-header { height: 112px; display: flex; align-items: center; }
.brand { display: inline-flex; }
.brand img { width: 142px; height: auto; filter: brightness(0) invert(1); opacity: .9; }
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: center; flex: 1; min-height: 450px; }
.introduction { position: relative; z-index: 1; padding: 30px 0 55px; }
h1 { margin: 0 0 28px; font-weight: 400; font-size: clamp(40px, 4vw, 58px); line-height: 1.12; letter-spacing: -.05em; }
h1 .journey-link { display: inline-block; vertical-align: baseline; appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; line-height: inherit; letter-spacing: inherit; cursor: pointer; text-decoration: none; }
.journey-headline-tail { display: inline-grid; max-width: 100%; vertical-align: top; }
.journey-headline-tail > span { grid-area: 1 / 1; }
.journey-earth-title { opacity: calc(1 - var(--journey-moon-weight, 0)); }
.journey-moon-title { opacity: var(--journey-moon-weight, 0); pointer-events: none; }
.journey-moon-accent { color: var(--accent); }
.business-card[data-intro='pending'] { --journey-detail-weight: 100%; }
h1 .journey-link[data-journey-to='address'] { color: color-mix(in srgb, var(--accent) var(--journey-detail-weight, 0%), var(--paper)); }
h1 .journey-link[data-journey-to='orbit'] { color: color-mix(in srgb, var(--accent) calc(100% - var(--journey-detail-weight, 0%)), var(--paper)); }
h1 .journey-link:hover { opacity: .85; }
.journey-link:focus-visible { outline: 1px solid var(--accent); outline-offset: 5px; }
.intro-copy { max-width: 365px; margin: 0 0 26px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.contact-link.mud-button-root { min-width: 0; padding: 8px 0; color: var(--paper); font-size: 13px; text-transform: none; letter-spacing: 0; border-radius: 0; }
.contact-link .mud-button-label { gap: 19px; border-bottom: 1px solid #777e7066; padding-bottom: 5px; }
.contact-link.mud-button-root:hover { background: transparent; color: var(--accent); }
.contact-link:hover .mud-button-label { border-color: var(--accent); }
.contact-link:hover .contact-arrow { color: var(--accent); }
.contact-link .contact-arrow { display: block; width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; color: #a6ad9b; }
.contact-link:hover .contact-arrow, .contact-link:focus-visible .contact-arrow { animation: linkedin-arrow-float 3.6s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes linkedin-arrow-float { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-3px); } }

.moon-viewer { margin: 0; min-width: 0; padding: 10px 0 35px; }
.moon-stage { position: relative; width: 100%; height: clamp(350px, calc(100svh - 250px), 650px); }
.moon-poster, .moon-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.moon-poster { z-index: 1; opacity: 0; }
/* The georeferenced 192 m image spans 1634 screen pixels at the opening zoom. */
.opening-poster { position: absolute; z-index: 2; width: 1634px; height: 1634px; max-width: none; top: 50%; left: 50%; transform: translate(-50%, -50%); object-fit: cover; filter: saturate(.92) brightness(.9); pointer-events: none; }
.moon-stage.scene-ready .opening-poster, .moon-stage[data-scene-status='fallback'] .opening-poster { opacity: 0; }
.moon-stage[data-scene-status='fallback'] .moon-poster { opacity: 1; }
.moon-canvas { z-index: 2; }
.moon-canvas { opacity: 0; touch-action: none; cursor: grab; outline-offset: -8px; }
.moon-canvas:active { cursor: grabbing; }
.moon-stage.scene-ready .moon-canvas { opacity: 1; }
.moon-stage.scene-ready .moon-poster { opacity: 0; pointer-events: none; }
.moon-stage:not(.scene-ready) .moon-canvas { pointer-events: none; }
.site-footer { min-height: 76px; display: flex; align-items: center; justify-content: flex-end; gap: 24px; text-align: right; font-size: 10px; color: #8a9085; }
.footer-details { min-width: 0; display: flex; align-items: baseline; gap: 24px; white-space: nowrap; }
#blazor-error-ui { display: none; position: fixed; bottom: 15px; left: 15px; padding: 12px 18px; border: 1px solid #777e70; background: #1d211c; font-size: 12px; z-index: 5; }
#blazor-error-ui a { text-decoration: underline; }
.not-found { padding: 10vh 0; }

@media (max-width: 850px) and (min-width: 701px) {
    .hero { gap: 10px; grid-template-columns: 1.1fr 1fr; }
    h1 { font-size: 44px; }
    .intro-copy { font-size: 14px; }
}
@media (max-width: 700px) {
    .business-card { padding: 0 7%; }
    .site-header { height: 94px; }
    .brand img { width: 122px; }
    .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; gap: 0; }
    .introduction { padding: 42px 0 0; }
    h1 { font-size: clamp(28px, 8.6vw, 58px); margin-bottom: 24px; }
    .intro-copy { font-size: 14px; max-width: 340px; margin-bottom: 20px; }
    .moon-viewer { padding: 24px 0 34px; }
    .moon-stage { height: auto; aspect-ratio: 1; }
    .site-footer { min-height: 65px; font-size: clamp(6px, 2vw, 9px); gap: 14px; padding-right: 16px; }
    .footer-details { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (prefers-reduced-motion: reduce) {
    .opening-poster { display: none; }
    .moon-stage:not(.scene-ready) .moon-poster { opacity: 1; }
    .business-card[data-intro='pending'] { --journey-detail-weight: 0%; }
}

/* One quiet, reversible journey from lunar orbit to the address. */
.journey-stage { --moon-rocket-cursor: url('/images/moon-rocket-outline-cursor.png') 26 5; isolation: isolate; overflow: hidden; border-radius: 5px; touch-action: none; cursor: grab; -webkit-tap-highlight-color: transparent; }
.journey-stage:active { cursor: grabbing; }
.journey-stage:focus:not(:focus-visible) { outline: none; }
.journey-stage:focus-visible { outline: 1px solid var(--accent); outline-offset: 5px; }
.earth-visual { position: absolute; inset: 0; z-index: 1; }
.earth-map { position: absolute; inset: 0; z-index: 1; opacity: 0; background: transparent; }
.journey-stage.scene-ready .earth-map { opacity: 1; }
.earth-glow {
    position: absolute;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    border-radius: 50%;
    /* The box radius is 1.25 Earth radii: its inner 80% is the globe itself. */
    background: radial-gradient(circle closest-side, transparent 80%, #ffffff14 83%, #ffffff0a 90%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle closest-side, transparent 80.2%, #000 81%);
    mask-image: radial-gradient(circle closest-side, transparent 80.2%, #000 81%);
    mix-blend-mode: screen;
}
.journey-stage .moon-canvas { pointer-events: none; }
.journey-stage .maplibregl-map { background: transparent; font-family: 'Thorving Sans', sans-serif; }
.journey-stage .maplibregl-canvas { outline: none; }
.journey-location { position: absolute; top: 18px; left: 18px; padding: 7px 11px; border-radius: 3px; background: #111312d9; color: #efeee8; font-size: 11px; pointer-events: none; }
.journey-location[hidden], .map-attribution[hidden], .map-fallback[hidden] { display: none; }
.map-attribution a { text-decoration: underline; text-underline-offset: 2px; }
.map-fallback { position: absolute; bottom: 16px; left: 16px; right: 16px; padding: 9px 12px; background: #111312ed; font-size: 10px; text-align: center; }
.map-attribution a:hover, .map-fallback:hover { color: var(--accent); border-color: var(--accent); }
/* Use the same edge fade for the orbital scene and both map journeys. */
.journey-visual, .apollo-map {
    position: absolute;
    inset: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 28%, #000 72%, transparent), linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 28%, #000 72%, transparent), linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
    mask-composite: intersect;
}
.journey-viewer { position: relative; }
.journey-stage.moon-hover { cursor: var(--moon-rocket-cursor), zoom-in; }
.journey-stage[data-apollo-open] {
    -webkit-user-select: none;
    user-select: none;
}
.journey-stage[data-apollo-open]:not([data-apollo-open='ready']) { cursor: var(--moon-rocket-cursor), zoom-out; }
.apollo-view { position: absolute; inset: 0; z-index: 1; }
.apollo-view [hidden], .apollo-view[hidden] { display: none; }
.apollo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.apollo-marker {
    position: absolute;
    padding: 4px 7px;
    border-radius: 3px;
    background: #111312ee;
    font-size: 11px;
    white-space: nowrap;
}
.apollo-flag { transform: translate(24px, -50%); }
.apollo-shadow { transform: translate(calc(-100% - 24px), -50%); }
.apollo-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 18px;
    border-top: 1px solid #ffd5b2;
    filter: drop-shadow(0 1px 1px #000);
}
.apollo-flag::before { right: 100%; }
.apollo-shadow::before { left: 100%; }
.apollo-mission {
    position: absolute;
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 7px 9px;
    border-radius: 3px;
    background: #111312ee;
    pointer-events: none;
}
.apollo-mission h2 { margin: 0 0 4px; font-size: 14px; font-weight: 400; }
.apollo-mission p { margin: 0; color: var(--paper); font-size: 11px; line-height: 1.5; }
.apollo-status { position: absolute; top: 47%; left: 50%; width: max-content; max-width: 90%; margin: 0; transform: translateX(-50%); padding: 7px 10px; border-radius: 4px; background: #111312e8; text-align: center; font-size: 13px; }
.map-attribution { position: fixed; right: 10px; bottom: 10px; margin: 0; font-size: 11px; text-align: left; color: #8a9085; z-index: 3; }
.map-attribution summary { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; cursor: pointer; color: #92998c; list-style: none; border-radius: 50%; }
.map-attribution summary::-webkit-details-marker { display: none; }
.map-attribution summary svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.map-attribution summary:hover { color: var(--accent); }
.map-attribution summary:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.attribution-panel { position: absolute; right: 0; bottom: 34px; display: flex; flex-direction: column; gap: 7px; width: 215px; padding: 13px 15px; background: #1a1d19; border: 1px solid #5d645644; border-radius: 5px; box-shadow: 0 5px 25px #0003; color: #bbc0b3; }
