:root {
  color-scheme: dark;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  background: #02090f;
  color: #f7f2e7;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.experience {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #02090f;
}

.composition { position: relative; width: 100%; }
.artwork-window { position: relative; width: 100%; overflow: hidden; }
.artwork { display: block; width: 100%; height: auto; }
.orbital-nav { position: absolute; inset: 0; outline: none; }

.mobile-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.orbit-button {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 45%;
  color: #f7f2e7;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  outline-offset: 4px;
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.orbit-button::before {
  content: "";
  position: absolute;
  width: 38%;
  aspect-ratio: 1;
  left: 50%;
  top: 43%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 254 234 / 22%), rgb(120 212 255 / 9%) 35%, transparent 72%);
  filter: blur(2px);
  opacity: .6;
  pointer-events: none;
  animation: breathe 6s ease-in-out infinite;
}

.orbit-button:hover {
  border-color: rgb(174 221 255 / 26%);
  background: radial-gradient(ellipse at 50% 43%, rgb(99 193 255 / 12%), transparent 68%);
  box-shadow: 0 0 30px rgb(102 191 251 / 9%);
}

.orbit-button:focus-visible { outline: 2px solid #fff4d0; background-color: rgb(4 24 39 / 16%); }
.orbit-button:active { background-color: rgb(133 209 255 / 10%); }
.orbit-button .button-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* Hotspots use the source image's 1672 × 941 coordinate system. */
.orbit-oracol { left: 10.6%; top: 9.2%; width: 12%; height: 18.4%; }
.orbit-univers { left: 5.7%; top: 28.3%; width: 12.2%; height: 20%; }
.orbit-cunoastere { left: 11.2%; top: 49.7%; width: 13.8%; height: 20%; }
.orbit-biblioteca { left: 78.4%; top: 9.4%; width: 12.4%; height: 18.3%; }
.orbit-despre { left: 82.7%; top: 28.2%; width: 12.7%; height: 20.2%; }
.orbit-contact { left: 77.2%; top: 49.5%; width: 13.5%; height: 20%; }
.orbit-univers::before, .orbit-despre::before { animation-delay: -2s; }
.orbit-cunoastere::before, .orbit-contact::before { animation-delay: -4s; }

.light-field { position: absolute; inset: 0; pointer-events: none; }
.spark { position: absolute; display: block; width: 3px; height: 3px; border-radius: 50%; background: #fff1bd; box-shadow: 0 0 9px 2px rgb(255 215 145 / 35%); animation: glimmer 8s ease-in-out infinite; }
.spark-one { left: 23.2%; top: 13.9%; }
.spark-two { left: 25.8%; top: 64.5%; animation-delay: -3s; }
.spark-three { left: 76.5%; top: 51.8%; animation-delay: -6s; }
.spark-four { left: 62.7%; top: 72.1%; background: #bdeaff; box-shadow: 0 0 9px 2px rgb(141 213 255 / 35%); animation-delay: -1s; }
.spark-five { left: 85%; top: 27.1%; animation-delay: -4s; }

.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 20; padding: .8rem 1rem; border-radius: .4rem; background: #f8edcc; color: #081522; transform: translateY(-180%); font-size: 1rem; }
.skip-link:focus { transform: translateY(0); outline: 2px solid white; outline-offset: 3px; }
.noscript-message { margin: 1rem; font-size: 1rem; text-align: center; }

.section-dialog {
  width: min(90vw, 26rem);
  padding: 2rem;
  border: 1px solid rgb(158 209 240 / 36%);
  border-radius: 1rem;
  background: linear-gradient(145deg, #102436, #07111b);
  color: #f7f2e7;
  box-shadow: 0 0 80px rgb(45 126 186 / 18%);
}
.section-dialog::backdrop { background: rgb(0 5 10 / 78%); backdrop-filter: blur(8px); }
.section-dialog h2 { margin: 0 0 1rem; font-size: 1.6rem; font-weight: 500; letter-spacing: .04em; }
.section-dialog p { margin: 0 0 1.7rem; font-size: 1rem; line-height: 1.6; color: #c9d5df; }
.dialog-close { min-height: 44px; padding: .65rem 1.25rem; border: 1px solid #8caabd; border-radius: .5rem; color: #f7f2e7; background: #183044; cursor: pointer; }
.dialog-close:hover { background: #22435b; }
.dialog-close:focus-visible { outline: 2px solid #fff4d0; outline-offset: 4px; }

@keyframes breathe { 0%, 100% { opacity: .3; } 50% { opacity: .85; } }
@keyframes glimmer { 0%, 100% { opacity: .12; transform: scale(.65); } 50% { opacity: .85; transform: scale(1.1); } }

@media (max-width: 1150px) {
  .experience { display: block; padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
  .composition { width: min(100%, 46rem); margin-inline: auto; }
  .artwork-window { height: min(100vw, 35rem); }
  .artwork { position: absolute; height: 130%; width: auto; max-width: none; left: 50%; top: 0; transform: translateX(-50%); }
  .artwork-window::after { content: ""; position: absolute; inset: auto 0 0; height: 20%; background: linear-gradient(transparent, #02090f); }
  .light-field { display: none; }
  .mobile-heading { position: static; width: auto; height: auto; padding: 0 1.3rem; margin: -.25rem 0 1.75rem; overflow: visible; clip: auto; white-space: normal; text-align: center; }
  .mobile-heading h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.6rem, 5.7vw, 2.75rem); line-height: 1.35; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; text-wrap: balance; }
  .tagline { margin: .9rem 0; font-size: 1rem; line-height: 1.65; letter-spacing: .05em; color: #e4e6e5; }
  .invitation { margin: 0; font-size: 1rem; line-height: 1.6; color: #aebdca; }
  .orbital-nav { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; padding: 0 1.25rem; }
  .orbit-button { position: relative; inset: auto; width: auto; height: auto; min-height: 70px; padding: 1rem .5rem; border: 1px solid #34516a; border-radius: .75rem; background: linear-gradient(135deg, rgb(18 49 73 / 65%), rgb(5 19 31 / 82%)); box-shadow: inset 0 1px rgb(167 219 255 / 7%); font-size: 1rem; }
  .orbit-button::before { left: 50%; top: 50%; width: 65%; height: 100%; aspect-ratio: auto; opacity: .2; }
  .orbit-button .button-label { position: relative; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; text-align: center; }
  .orbit-button:hover { border-color: #9dc6e3; background: #112d43; }
  .orbit-button:focus-visible { outline-offset: 3px; background-color: #112d43; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
