:root {
  --void: #020307;
  --night: #070b14;
  --paper: #f4fbfa;
  --muted: rgba(244, 251, 250, 0.56);
  --line: rgba(244, 251, 250, 0.1);
  --gold: #e8c30a;
  --teal: #14b8a6;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--void);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--void);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--void);
  background: var(--paper);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.orbital-home {
  --dock-space: 136px;
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: var(--void);
}

.video-background,
.video-shade,
.stars,
.haze {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.video-background {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.72) contrast(1.08);
}

.video-shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2, 3, 7, 0.68), rgba(2, 3, 7, 0.3) 42%, rgba(2, 3, 7, 0.84)),
    radial-gradient(circle at 50% 43%, rgba(6, 4, 18, 0.12), rgba(2, 3, 7, 0.78) 74%);
}

.stars {
  z-index: 2;
}

.haze {
  z-index: 3;
  background:
    radial-gradient(circle at 50% 44%, rgba(34, 17, 68, 0.64) 0, rgba(8, 6, 21, 0.45) 30%, transparent 62%),
    radial-gradient(ellipse at 8% 78%, rgba(20, 184, 166, 0.09), transparent 28%),
    radial-gradient(ellipse at 88% 16%, rgba(232, 195, 10, 0.08), transparent 26%);
}

.star {
  position: absolute;
  width: var(--star-size);
  height: var(--star-size);
  border-radius: 50%;
  background: rgba(255, 255, 255, var(--star-alpha));
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
  animation: twinkle var(--star-duration) ease-in-out infinite alternate;
}

@keyframes twinkle {
  to {
    opacity: 0.22;
    transform: scale(0.72);
  }
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 3.3vw, 52px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.signature {
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 27px);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.signature span {
  color: var(--gold);
}

.signature:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 8px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 38px);
}

.instagram-link {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: #fff;
  background: linear-gradient(112deg, #7c3aed 0%, #db2777 47%, #f59e0b 100%);
  box-shadow: 0 0 28px rgba(219, 39, 119, 0.26);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: box-shadow 220ms ease, filter 220ms ease, transform 220ms ease;
}

.instagram-link::before {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 18px;
  height: 1px;
  background: #fbbf24;
  box-shadow: 0 0 10px #f59e0b;
  content: '';
}

.instagram-link b {
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.instagram-link:hover {
  filter: brightness(1.12) saturate(1.12);
  box-shadow: 0 0 38px rgba(219, 39, 119, 0.42);
  transform: translateY(-2px);
}

.instagram-link:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 5px;
}

.map-label,
.guide {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.map-label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.map-label::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 14px var(--teal);
  content: '';
}

.scene {
  position: relative;
  z-index: 5;
  width: min(100%, 1500px);
  height: calc(100svh - 76px);
  min-height: 620px;
  margin: 0 auto;
  outline: none;
  transition: height 360ms cubic-bezier(0.22, 1, 0.36, 1), min-height 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.orbital-home.selection-open .scene {
  height: calc(100svh - 76px - var(--dock-space));
  min-height: 460px;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-7deg);
}

.orbit-inner {
  width: min(41vw, 610px);
  height: min(25vw, 350px);
}

.orbit-outer {
  width: min(70vw, 1050px);
  height: min(41vw, 570px);
  border-color: rgba(255, 255, 255, 0.07);
}

.orbit-far {
  width: min(91vw, 1360px);
  height: min(56vw, 770px);
  border-color: rgba(255, 255, 255, 0.035);
}

.center-copy {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: min(510px, 42vw);
  text-align: center;
  transform: translate(-50%, -52%);
}

.center-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 6vw, 94px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.93;
  text-shadow: 0 0 70px rgba(255, 255, 255, 0.14);
}

.center-copy h1 span {
  color: var(--gold);
}

.center-copy p {
  max-width: 440px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.68;
}

.core {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 195, 10, 0.11), rgba(232, 195, 10, 0.025) 46%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: breathe 5s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

.destination {
  --accent: var(--teal);
  position: absolute;
  z-index: 8;
  display: grid;
  width: 76px;
  height: 76px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  background:
    radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 52%),
    rgba(3, 4, 8, 0.84);
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 20%, transparent), inset 0 0 22px color-mix(in srgb, var(--accent) 11%, transparent);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 280ms, background 280ms;
}

.destination::after {
  position: absolute;
  inset: -9px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 50%;
  content: '';
}

.destination:hover,
.destination:focus-visible,
.destination[aria-pressed='true'] {
  z-index: 9;
  outline: none;
  transform: translate(-50%, -50%) scale(1.16);
  box-shadow: 0 0 48px color-mix(in srgb, var(--accent) 40%, transparent), inset 0 0 30px color-mix(in srgb, var(--accent) 20%, transparent);
}

.destination[aria-pressed='true']::after {
  border-color: color-mix(in srgb, var(--accent) 62%, transparent);
}

.symbol {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
}

.destination-name {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  width: 170px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.destination-mundo {
  --accent: #e8c30a;
  width: 96px;
  height: 96px;
}

.destination-empresas { --accent: #14b8a6; }
.destination-eventos { --accent: #f472b6; width: 68px; height: 68px; }
.destination-como { --accent: #93c5fd; width: 66px; height: 66px; }
.destination-anahata { --accent: #4ade80; width: 64px; height: 64px; }
.destination-almalead { --accent: #a78bfa; width: 70px; height: 70px; }
.destination-terapia { --accent: #fb7185; width: 72px; height: 72px; }
.destination-standup { --accent: #f59e0b; width: 82px; height: 82px; }
.destination-arte { --accent: #ef4444; width: 74px; height: 74px; }
.destination-retiros { --accent: #38bdf8; width: 70px; height: 70px; }

.guide {
  position: absolute;
  right: clamp(22px, 3.3vw, 52px);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
}

.guide::before {
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  content: '';
}

.destination-dock {
  position: fixed;
  z-index: 100;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  min-height: 136px;
  grid-template-columns: 3px minmax(190px, 0.58fr) minmax(280px, 1fr) auto auto;
  gap: clamp(18px, 2.2vw, 36px);
  align-items: center;
  padding: 24px clamp(22px, 3.3vw, 52px) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(3, 4, 8, 0.88);
  box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 240ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.orbital-home.selection-open .destination-dock {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dock-line {
  align-self: stretch;
  background: var(--active, var(--gold));
  box-shadow: 0 0 18px var(--active, var(--gold));
}

.dock-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(23px, 2.1vw, 33px);
  font-weight: 700;
  line-height: 1.06;
}

.dock-copy {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  line-height: 1.68;
}

.enter-destination,
.close-dock {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 16px;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1px solid var(--active, var(--gold));
  color: var(--active, var(--gold));
  background: transparent;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.enter-destination span {
  font-size: 16px;
}

.enter-destination[aria-disabled='true'] {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.45);
  cursor: default;
}

.close-dock {
  border-bottom-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.44);
}

.enter-destination:focus-visible,
.close-dock:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 7px;
}

.no-script-nav {
  position: fixed;
  z-index: 200;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--void);
}

.no-script-nav a {
  border-bottom: 1px solid currentColor;
}

@media (max-width: 900px) {
  .scene {
    min-height: 680px;
  }

  .center-copy {
    width: 48vw;
  }

  .center-copy h1 {
    font-size: clamp(43px, 7.2vw, 66px);
  }

  .destination-dock {
    grid-template-columns: 3px minmax(170px, 0.75fr) minmax(230px, 1fr) auto;
  }

  .dock-copy {
    font-size: 12px;
  }

  .close-dock {
    position: absolute;
    top: 12px;
    right: 18px;
    min-height: 28px;
    border: 0;
    font-size: 9px;
  }
}

@media (max-width: 680px) {
  .orbital-home {
    --dock-space: 142px;
    min-height: 100svh;
  }

  .topbar {
    min-height: 64px;
    padding: 0 20px;
  }

  .topbar-actions {
    gap: 12px;
  }

  .instagram-link {
    min-height: 34px;
    gap: 8px;
    padding: 0 10px;
    font-size: 8px;
    letter-spacing: 0.13em;
  }

  .signature {
    font-size: 19px;
  }

  .map-label {
    font-size: 0;
    letter-spacing: 0;
  }

  .map-label::after {
    font-size: 8px;
    letter-spacing: 0.22em;
    content: 'Explorar';
  }

  .scene {
    height: calc(100svh - 64px);
    min-height: 650px;
  }

  .orbital-home.selection-open .scene {
    height: calc(100svh - 64px - var(--dock-space));
    min-height: 540px;
  }

  .center-copy {
    top: 49%;
    width: 50vw;
  }

  .center-copy h1 {
    font-size: clamp(32px, 10vw, 44px);
    line-height: 0.96;
  }

  .center-copy p {
    max-width: 235px;
    margin-top: 16px;
    font-size: 10.5px;
    line-height: 1.55;
  }

  .core {
    width: 220px;
    height: 220px;
  }

  .orbit {
    top: 49%;
  }

  .orbit-inner {
    width: 62vw;
    height: 38vh;
  }

  .orbit-outer {
    width: 92vw;
    height: 72vh;
  }

  .orbit-far {
    display: none;
  }

  .destination {
    width: 54px;
    height: 54px;
  }

  .destination-mundo { width: 68px; height: 68px; }
  .destination-standup { width: 60px; height: 60px; }
  .destination-eventos,
  .destination-como,
  .destination-anahata { width: 50px; height: 50px; }
  .destination-almalead,
  .destination-terapia,
  .destination-arte,
  .destination-retiros { width: 54px; height: 54px; }

  .symbol {
    font-size: 18px;
  }

  .destination-name {
    top: calc(100% + 11px);
    width: 92px;
    font-size: 6.5px;
    letter-spacing: 0.13em;
  }

  .guide {
    display: none;
  }

  .destination-dock {
    min-height: 142px;
    grid-template-columns: 3px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  }

  .dock-heading h2 {
    max-width: 180px;
    font-size: 21px;
  }

  .dock-copy {
    display: none;
  }

  .enter-destination {
    max-width: 126px;
    white-space: normal;
    line-height: 1.45;
  }

  .close-dock {
    top: 8px;
    right: 12px;
    width: 30px;
    overflow: hidden;
    padding: 0;
    white-space: nowrap;
    color: transparent;
  }

  .close-dock::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.62);
    font-size: 19px;
    content: '×';
  }
}

@media (max-width: 390px) {
  .map-label {
    display: none;
  }

  .center-copy h1 {
    font-size: 31px;
  }

  .center-copy p {
    font-size: 9.5px;
  }

  .destination-name {
    width: 82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
