@font-face { font-family: 'Instrument Sans'; src: url('assets/instrument-sans.woff') format('woff'); font-weight: 400 700; font-display: swap; }
:root { color-scheme: light; --entry-duration: 10s; background: #fff; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; background: #fff; color: #183a34; font-family: 'Instrument Sans', system-ui, sans-serif; }
.entry-scene { background: #fff; position: relative; display: grid; place-items: start center; min-height: 100vh; min-height: 100svh; padding: clamp(24px, 4.2vh, 52px) clamp(10px, 2vw, 25px) 0; isolation: isolate; overflow: hidden; }
.intro-composition { position: relative; isolation: isolate; display: grid; justify-items: center; align-content: center; gap: clamp(8px, 1.35vh, 16px); width: min(100%, 1180px); min-width: 0; }
.map-frame { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; width: 100%; height: min(67vh, 650px); height: min(67svh, 650px); min-width: 0; min-height: 0; }
.network-map { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; transform-origin: 50% 54%; transform: perspective(1100px) rotateX(17deg) rotateY(-4deg) rotateZ(-1deg); }
.intro-brand { display: flex; align-items: center; justify-content: center; gap: clamp(9px, 1vw, 14px); width: max-content; margin-inline: auto; padding-bottom: 3px; }
.intro-brand > img { display: block; width: clamp(40px, 4.3vw, 57px); height: auto; flex: none; }
.intro-brand-name { display: grid; gap: 4px; justify-items: start; }
.intro-brand-name strong { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; line-height: .95; letter-spacing: -.055em; color: #183a34; white-space: nowrap; }
.intro-brand-name em { font-style: normal; color: #378677; }
.intro-brand-name span { color: #527468; font-size: clamp(.72rem, 1.1vw, .9rem); font-weight: 650; letter-spacing: .42em; }
.entry-skip { position: fixed; inset: 12px auto auto 12px; z-index: 2; display: block; padding: .85em 1.1em; background: white; color: #183a34; border: 1px solid #b5cfc0; border-radius: 5px; transform: translateY(calc(-100% - 20px)); font-family: system-ui, sans-serif; text-decoration: none; }
.entry-skip:focus { transform: none; outline: 2px solid #438675; outline-offset: 2px; }
body:not(.is-running) :is(.map-frame,.intro-brand) { opacity: 0; }
.is-running .map-frame { animation: map-reveal .2s ease-out both; }
.is-running .intro-brand { animation: brand-reveal .85s cubic-bezier(.16,.75,.22,1) 3.8s both; }
.is-running .entry-scene { animation: scene-fade var(--entry-duration) linear both; }
@keyframes map-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes brand-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scene-fade { 0%, 90% { opacity: 1; } 100% { opacity: 0; } }
@media (max-aspect-ratio: 1/1) { .entry-scene { padding: clamp(26px, 5vh, 50px) 10px 0; } .intro-composition { gap: clamp(12px, 2vh, 24px); } .map-frame { width: 100%; height: auto; aspect-ratio: 596/521; } .intro-brand-name strong { font-size: clamp(1.9rem, 7vw, 3rem); } }
@media (max-height: 480px) and (orientation: landscape) { .map-frame { height: 65vh; height: 65svh; } .intro-brand-name strong { font-size: 1.9rem; } .intro-brand > img { width: 40px; } .intro-composition { gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .is-running .intro-brand { animation: brand-reveal-gentle .6s ease 3.8s both; } }
@keyframes brand-reveal-gentle { from { opacity: 0; } to { opacity: 1; } }
@keyframes map-reveal-static { from { opacity: 0; } to { opacity: 1; } }
@media (scripting:none) { body:not(.is-running) :is(.map-frame,.intro-brand) { opacity: 1; } }

.ground-plane { position: absolute; z-index: -1; top: calc(100% - clamp(54px, 7vh, 80px)); left: 50%; transform: translateX(-50%); width: min(1000px, 114vw); aspect-ratio: 1; border-radius: 50%; pointer-events: none; opacity: 0; }
.world-globe { display: block; width: 100%; height: 100%; border-radius: 50%; opacity: .68; }
.is-running .ground-plane { animation: map-reveal 1.05s ease-out 2.72s both; }
@media (max-aspect-ratio: 1/1) { .ground-plane { top: calc(100% - 30px); width: 124vw; } }
@media (max-height: 480px) and (orientation: landscape) { .entry-scene { padding-top: 12px; } .map-frame { height: 57svh; } .ground-plane { top: calc(100% - 60px); width: min(820px, 100vw); } }
@media (scripting:none) { .ground-plane { display: none; } }

/* A smaller perspective angle keeps the seven province labels readable on narrow screens. */
@media (max-aspect-ratio: 1/1) { .network-map { transform: perspective(820px) rotateX(13deg) rotateY(-2deg) rotateZ(-.7deg); } }

/* Billboards: province names stay perfectly front-facing while the map lies in 3D perspective. */
.front-province-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.front-province-name { position: absolute; transform: translate(-50%, -50%); color: #234f47; font-family: 'Instrument Sans', system-ui, sans-serif; font-weight: 650; letter-spacing: -.018em; line-height: 1; white-space: nowrap; opacity: 0; text-shadow: -1.3px -1.3px 0 #fff, 0 -1.3px 0 #fff, 1.3px -1.3px 0 #fff, -1.3px 0 0 #fff, 1.3px 0 0 #fff, -1.3px 1.3px 0 #fff, 0 1.3px 0 #fff, 1.3px 1.3px 0 #fff; }
.front-province-name.is-hub { font-weight: 700; color: #164d42; }
.front-labels-active .concept-province-label { visibility: hidden !important; }
