:root {
  --sun: #f7ad25;
  --sun-deep: #df7f0c;
  --sky: #4db7e7;
  --sea: #1f8f88;
  --leaf: #77ba6a;
  --coral: #f37c62;
  --cream: #fff8e9;
  --paper: #ffffff;
  --ink: #164c46;
  --muted: #638984;
  --soft-edge: rgba(255, 255, 255, 0.72);
  --sun-wash: rgba(247, 173, 37, 0.22);
  --sky-wash: rgba(77, 183, 231, 0.18);
  --leaf-wash: rgba(119, 186, 106, 0.18);
  --coral-wash: rgba(243, 124, 98, 0.16);
  --shadow: 0 26px 60px rgba(98, 111, 88, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  min-width: 320px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: "Sora", sans-serif;
  background: #ffffff;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

.portal-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 40;
  display: flex;
  width: min(1180px, calc(100% - 36px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transform: translateX(-50%);
  pointer-events: none;
}

.portal-mark,
.header-actions {
  pointer-events: auto;
}

.portal-mark {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 220ms ease, filter 220ms ease;
}

.portal-mark:hover,
.portal-mark:focus-visible {
  transform: translateY(-4px) rotate(-5deg) scale(1.04);
  filter: drop-shadow(0 14px 22px rgba(223, 127, 12, 0.24));
}

body[data-view="home"] .portal-mark {
  opacity: 0;
  pointer-events: none;
}

.portal-mark img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.round-button,
.cart-toggle,
.admin-link,
.soft-actions a,
.soft-actions button,
.text-button,
.button,
.add-button,
.category-bar button,
.story-orb,
.planet-link,
.mini-planet,
.primary-orb,
.secondary-orb,
.menu-close,
.icon-button {
  min-width: 0;
  border: 0;
  text-decoration: none;
  transition: transform 210ms ease, background 210ms ease, color 210ms ease, box-shadow 210ms ease, filter 210ms ease;
}

.round-button,
.cart-toggle,
.soft-actions a,
.soft-actions button,
.text-button,
.button,
.add-button,
.category-bar button,
.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(255, 253, 246, 0.72);
  box-shadow: 0 10px 26px rgba(104, 117, 90, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.round-button:hover,
.round-button:focus-visible,
.cart-toggle:hover,
.cart-toggle:focus-visible,
.soft-actions a:hover,
.soft-actions a:focus-visible,
.soft-actions button:hover,
.soft-actions button:focus-visible,
.text-button:hover,
.text-button:focus-visible,
.button:hover,
.button:focus-visible,
.add-button:hover,
.add-button:focus-visible,
.category-bar button:hover,
.category-bar button:focus-visible,
.admin-link:hover,
.admin-link:focus-visible {
  transform: translateY(-4px) scale(1.03);
  color: #fffdf6;
  background: var(--sea);
  box-shadow: 0 16px 34px rgba(31, 143, 136, 0.2);
}

.menu-button {
  background: rgba(255, 253, 246, 0.82);
}

.shop-entry,
.button-orange {
  color: #fffdf6;
  background: linear-gradient(135deg, var(--coral), var(--sun));
  box-shadow: 0 16px 34px rgba(223, 127, 12, 0.22);
}

.shop-entry:hover,
.shop-entry:focus-visible,
.button-orange:hover,
.button-orange:focus-visible {
  background: linear-gradient(135deg, var(--sea), var(--sky));
}

.cart-toggle span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: 7px;
  place-items: center;
  border-radius: 50%;
  color: var(--sun-deep);
  background: #fffdf6;
  font-size: 0.76rem;
}

.view-stage {
  position: relative;
  z-index: 1;
  height: 100dvh;
  overflow: hidden;
}

.intro-stage {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #ffffff;
  transition: opacity 680ms ease, visibility 680ms ease;
}

.intro-stage::before,
.intro-stage::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.intro-stage::before {
  width: min(84vmin, 760px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(77, 183, 231, 0.12), transparent 64%);
  
}

.intro-stage::after {
  right: 8%;
  bottom: 12%;
  width: 120px;
  aspect-ratio: 1;
  background: rgba(247, 173, 37, 0.12);
  
}

.earth-stage {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(68vmin, 600px);
  min-width: 280px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  perspective: 900px;
  transition: opacity 980ms ease, transform 980ms cubic-bezier(.2, .8, .2, 1), filter 980ms ease;
}

.earth-canvas,
.earth-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.earth-canvas {
  display: block;
  touch-action: none;
  cursor: grab;
}

.earth-canvas.is-dragging {
  cursor: grabbing;
}

.earth-fallback {
  object-fit: contain;
  touch-action: none;
  cursor: grab;
  filter: drop-shadow(0 26px 42px rgba(31, 143, 136, 0.18));
  will-change: transform;
}

.earth-fallback.is-dragging {
  cursor: grabbing;
}

.logo-stage {
  position: absolute;
  z-index: 4;
  display: grid;
  width: min(44vmin, 390px);
  aspect-ratio: 1;
  place-items: center;
  padding: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 24%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, var(--sun), var(--sun-deep));
  box-shadow: 0 26px 58px rgba(223, 127, 12, 0.22);
  opacity: 0;
  transform: translate3d(0, 20px, 0) scale(0.72);
  filter: drop-shadow(0 28px 44px rgba(223, 127, 12, 0.18));
  transition: opacity 900ms ease, transform 980ms cubic-bezier(.2, .8, .2, 1);
}

.logo-stage img {
  width: 72%;
}

.intro-copy {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 9%;
  width: min(90vw, 540px);
  color: var(--sea);
  text-align: center;
  transform: translateX(-50%);
}

.intro-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.18rem;
  font-weight: 800;
}

.intro-next {
  position: absolute;
  right: max(24px, 6vw);
  bottom: max(24px, 6vh);
  z-index: 6;
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 900;
  background: linear-gradient(145deg, var(--sun), var(--coral));
  box-shadow: 0 18px 36px rgba(223, 127, 12, 0.22);
  transition: transform 210ms ease, background 210ms ease, box-shadow 210ms ease;
  
}

.intro-next:hover,
.intro-next:focus-visible {
  transform: translateY(-8px) scale(1.08) rotate(4deg);
  background: linear-gradient(145deg, var(--sky), var(--sea));
  box-shadow: 0 22px 46px rgba(31, 143, 136, 0.2);
}

.intro-logo .earth-stage {
  opacity: 0.34;
  transform: scale(1.08);
  filter: saturate(0.84);
}

.intro-logo .logo-stage {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.intro-done .intro-stage {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.intro-pending .portal-header,
.intro-pending .portal-footer {
  opacity: 0;
  pointer-events: none;
}

.menu-offer {
  position: relative;
  z-index: 3;
  display: grid;
  width: 100%;
  grid-column: 1 / -1;
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  gap: 54px;
  align-items: center;
  opacity: 1;
  transition: opacity 700ms ease, transform 760ms cubic-bezier(.2, .8, .2, 1);
}

.intro-pending .menu-offer {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
}

.portal-view {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 54px;
  align-items: center;
  padding: 118px max(24px, calc((100vw - 1180px) / 2)) 82px;
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 28px, 0) scale(0.985);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(.2, .8, .2, 1);
}

.portal-view.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.portal-view::after {
  position: absolute;
  right: -140px;
  bottom: -180px;
  z-index: -1;
  width: 420px;
  height: 420px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  filter: blur(4px);
}

.home-view {
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  overflow: hidden;
}

.home-copy,
.page-copy,
.home-planetarium,
.orbital-content,
.news-cloud,
.shop-space {
  position: relative;
  z-index: 2;
}

.reveal-stack > * {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sea);
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.orange {
  color: var(--sun-deep);
}

.eyebrow.blue {
  color: var(--sky);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 8.6ch;
  font-size: 6.45rem;
  line-height: 0.88;
}

h2 {
  max-width: 9.5ch;
  font-size: 5.5rem;
  line-height: 0.88;
}

.lead {
  max-width: 46ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.72;
}

.pulse-line {
  width: fit-content;
  max-width: 42ch;
  margin: 22px 0 0;
  padding: 13px 17px;
  border-radius: 999px;
  color: var(--sea);
  font-size: 0.9rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.64);
}

.home-actions,
.soft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.landing-sequence {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.landing-sequence span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.landing-sequence b,
.landing-row span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--sun-deep);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(247, 173, 37, 0.16);
  box-shadow: 0 12px 26px rgba(104, 117, 90, 0.1);
}

.landing-brief {
  display: grid;
  width: min(100%, 860px);
  gap: 22px;
  justify-self: center;
}

.landing-brief h2 {
  max-width: min(11ch, 100%);
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.92;
}

.landing-index {
  display: grid;
  gap: 0;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.landing-index li {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

.landing-row {
  display: grid;
  grid-template-columns: 54px minmax(150px, 0.38fr) minmax(0, 1fr);
  gap: 16px 22px;
  align-items: center;
  padding: 18px 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 143, 136, 0.13);
}

.landing-row strong {
  font-size: 1rem;
  line-height: 1.2;
}

.landing-row small {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.56;
}

.landing-row:hover,
.landing-row:focus-visible {
  color: var(--tone);
  transform: translateX(10px);
}

.landing-row:hover span,
.landing-row:focus-visible span {
  color: #ffffff;
  background: var(--tone);
}

.primary-orb,
.secondary-orb {
  display: inline-grid;
  width: 152px;
  min-height: 152px;
  place-items: center;
  padding: 24px;
  border-radius: 50%;
  color: #fffdf6;
  font-weight: 800;
  line-height: 1.18;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(145deg, var(--sun), var(--sun-deep));
  box-shadow: 0 22px 42px rgba(223, 127, 12, 0.2);
}

.secondary-orb {
  width: 132px;
  min-height: 132px;
  background: linear-gradient(145deg, var(--sky), var(--sea));
  box-shadow: 0 22px 42px rgba(31, 143, 136, 0.18);
}

.primary-orb:hover,
.primary-orb:focus-visible,
.secondary-orb:hover,
.secondary-orb:focus-visible {
  transform: translateY(-7px) scale(1.06) rotate(3deg);
  filter: saturate(1.08);
}

.home-planetarium {
  min-height: 620px;
  display: grid;
  place-items: center;
  transform: translateY(138px);
}

.planetarium-center {
  position: relative;
  z-index: 3;
  display: grid;
  width: 280px;
  height: 280px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 24%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 32%),
    linear-gradient(145deg, var(--sun), var(--sun-deep));
  box-shadow: var(--shadow);
  
}

.planetarium-center::before,
.planetarium-center::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.planetarium-center::before {
  inset: -62px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.planetarium-center::after {
  inset: -142px;
  box-shadow: inset 0 0 0 1px rgba(31, 143, 136, 0.12);
}

.planetarium-center img {
  width: 72%;
}

.mini-orbit {
  position: absolute;
  z-index: 4;
  display: block;
  top: 50%;
  left: 50%;
  width: min(660px, 92%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.mini-planet {
  position: absolute;
  left: calc(50% + (var(--x) * 1%));
  top: calc(50% + (var(--y) * 1%));
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  padding: 12px;
  border-radius: 50%;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 253, 246, 0.76);
  box-shadow: 0 14px 30px rgba(104, 117, 90, 0.12);
  transform: translate(-50%, -50%);

}

.mini-planet:hover,
.mini-planet:focus-visible,
.mini-planet.is-current {
  transform: translate(-50%, -50%) translateY(-8px) rotate(-4deg) scale(1.06);
  color: #fffdf6;
  background: var(--sea);
}

.planet-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: opacity 300ms ease;
}

.planet-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.menu-close,
.icon-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--sun-deep);
  font-size: 1.55rem;
  line-height: 1;
  background: rgba(255, 253, 246, 0.82);
  box-shadow: 0 12px 28px rgba(104, 117, 90, 0.13);
}

.menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
}

.menu-close:hover,
.menu-close:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  transform: scale(1.08) rotate(8deg);
  color: #fffdf6;
  background: var(--coral);
}

.menu-sun {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 260px;
  height: 260px;
  place-items: center;
  padding: 42px;
  border-radius: 50%;
  text-align: center;
  background: linear-gradient(145deg, var(--sun), var(--sun-deep));
  box-shadow: var(--shadow);
  transform: scale(0.82);
  transition: transform 420ms cubic-bezier(.2, .8, .2, 1);
}

.planet-menu.is-open .menu-sun {
  transform: scale(1);
}

.menu-sun img {
  width: 100%;
}

.menu-sun p {
  margin: 16px 0 0;
  color: #fffdf6;
  font-size: 0.82rem;
  font-weight: 800;
}

.planet-orbit {
  position: relative;
  width: min(780px, 88vw, calc(100dvh - 32px));
  aspect-ratio: 1;
}

.planet-orbit::before,
.planet-orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.planet-orbit::before {
  inset: 1.5%;
  box-shadow: inset 0 0 0 1px rgba(31, 143, 136, 0.12);
}

.planet-orbit::after {
  inset: 27.5%;
  box-shadow: inset 0 0 0 1px rgba(247, 173, 37, 0.18);
}

.planet-link {
  position: absolute;
  left: calc(50% + (var(--x) * 1%));
  top: calc(50% + (var(--y) * 1%));
  display: grid;
  width: 122px;
  min-height: 122px;
  place-items: center;
  padding: 16px;
  border-radius: 50%;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  background: rgba(255, 253, 246, 0.8);
  box-shadow: 0 18px 42px rgba(104, 117, 90, 0.14);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
}

.planet-link span {
  color: var(--sun-deep);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
}

.planet-link strong {
  display: block;
  font-size: 0.8rem;
  line-height: 1.12;
}

.planet-link:hover,
.planet-link:focus-visible,
.planet-link.is-current {
  color: #fffdf6;
  background: var(--tone);
  transform: translate(-50%, -50%) scale(1.08) rotate(-4deg);
}

.tone-sun {
  --tone: var(--sun);
  --tone-deep: var(--sun-deep);
}

.tone-sky {
  --tone: var(--sky);
  --tone-deep: var(--sea);
}

.tone-sea {
  --tone: var(--sea);
  --tone-deep: #247d78;
}

.tone-leaf {
  --tone: var(--leaf);
  --tone-deep: var(--sea);
}

.tone-coral {
  --tone: var(--coral);
  --tone-deep: var(--sun-deep);
}

.topic-view.tone-sun {
  background: transparent;
}

.topic-view.tone-sky,
.news-view {
  background: transparent;
}

.topic-view.tone-leaf {
  background: transparent;
}

.topic-view.tone-sea {
  background: transparent;
}

.topic-view.tone-coral,
.shop-view {
  background: transparent;
}

.orbital-content {
  display: grid;
  min-height: 620px;
  grid-template-columns: minmax(190px, 220px) minmax(320px, 1fr);
  grid-template-areas:
    "planet detail"
    "list list";
  gap: 26px 42px;
  align-items: start;
}

.big-planet {
  position: relative;
  grid-area: planet;
  z-index: 1;
  display: grid;
  width: min(21vw, 220px);
  height: min(21vw, 220px);
  min-width: 170px;
  min-height: 170px;
  place-items: center;
  justify-self: center;
  padding: 34px;
  border-radius: 50%;
  color: #fffdf6;
  text-align: center;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 30%),
    linear-gradient(145deg, var(--tone), var(--tone-deep));
  box-shadow: var(--shadow);
  
}

.big-planet span {
  font-family: "DM Mono", monospace;
  font-size: 0.92rem;
}

.big-planet strong {
  font-family: "Instrument Serif", serif;
  font-size: 1.78rem;
  font-weight: 400;
  line-height: 0.92;
}

.story-orbit {
  position: relative;
  grid-area: list;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  width: 100%;
  counter-reset: story;
  gap: 12px 24px;
}

.blog-card,
.product-card,
.material-river a,
.dashboard-card {
  border-radius: 46% 54% 49% 51% / 56% 44% 56% 44%;
}

.story-orb {
  position: relative;
  display: flex;
  min-height: 82px;
  flex-direction: column;
  justify-content: center;
  border: 0;
  padding: 8px 0 10px 74px;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  background: transparent;
  box-shadow: none;
}

.story-orb::before {
  position: absolute;
  left: 0;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--sun-deep);
  content: counter(story, decimal-leading-zero);
  counter-increment: story;
  font-family: "DM Mono", monospace;
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(247, 173, 37, 0.16);
  box-shadow: 0 12px 26px rgba(104, 117, 90, 0.1);
  transform: translateY(-50%);
  transition: transform 220ms ease, background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.product-card:nth-child(2),
.blog-card:nth-child(2) {
  border-radius: 54% 46% 53% 47% / 43% 58% 42% 57%;
}

.product-card:nth-child(3),
.blog-card:nth-child(3) {
  border-radius: 58% 42% 46% 54% / 48% 42% 58% 52%;
}

.story-orb:hover,
.story-orb:focus-visible,
.story-orb.is-selected,
.product-card:hover,
.blog-card:hover,
.material-river a:hover,
.material-river a:focus-visible,
.dashboard-card:hover,
.dashboard-card:focus-visible {
  transform: translateY(-8px) rotate(1.5deg);
  box-shadow: 0 24px 54px rgba(31, 143, 136, 0.16);
}

.story-orb:hover,
.story-orb:focus-visible,
.story-orb.is-selected {
  transform: translateX(12px);
  box-shadow: none;
}

.story-orb:hover::before,
.story-orb:focus-visible::before,
.story-orb.is-selected::before {
  color: #ffffff;
  background: var(--tone);
  box-shadow: 0 15px 30px rgba(31, 143, 136, 0.16);
  transform: translateY(-50%) scale(1.13) rotate(-5deg);
}

.story-orb.is-selected {
  color: var(--ink);
  background: transparent;
}

.story-orb.is-selected span,
.story-orb.is-selected small {
  color: var(--muted);
}

.story-orb span,
.product-category,
.post-meta,
.blog-card-bottom span,
.admin-list-title {
  color: var(--sky);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.story-orb strong {
  margin-top: 6px;
  font-family: "Instrument Serif", serif;
  font-size: 1.48rem;
  font-weight: 400;
  line-height: 1;
}

.story-orb small {
  max-width: 42ch;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.38;
}

.detail-bubble {
  position: relative;
  grid-area: detail;
  z-index: 3;
  width: 100%;
  padding-left: 62px;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.detail-bubble::before {
  position: absolute;
  left: 0;
  top: 8px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  content: "";
  background: rgba(77, 183, 231, 0.2);
  box-shadow: 0 12px 26px rgba(31, 143, 136, 0.12);
}

.detail-badge,
.detail-pill {
  color: var(--sky);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-bubble h3 {
  margin-top: 12px;
  font-size: 2rem;
  line-height: 1;
}

.detail-bubble p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.62;
}

body:not([data-view="home"]) .portal-footer {
  justify-content: flex-end;
}

body:not([data-view="home"]) .portal-footer span {
  display: none;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.detail-pill,
.detail-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(247, 173, 37, 0.14);
}

.detail-link {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  background: var(--sea);
  transition: transform 210ms ease, background 210ms ease;
}

.detail-link:hover,
.detail-link:focus-visible {
  transform: translateY(-4px) scale(1.05);
  background: var(--coral);
}

.news-view,
.shop-view {
  grid-template-columns: minmax(280px, 0.72fr) minmax(480px, 1.28fr);
}

.news-cloud,
.shop-space {
  max-height: calc(100dvh - 180px);
  overflow: auto;
  padding: 8px 4px 24px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 20px;
}

.blog-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 27px;
  background: rgba(255, 253, 246, 0.68);
  box-shadow: 0 18px 42px rgba(104, 117, 90, 0.12);
}

.blog-card h3 {
  margin-top: 16px;
  font-size: 2rem;
  line-height: 0.94;
}

.blog-card p:not(.post-meta) {
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.6;
}

.blog-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.blog-card-bottom .text-button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--sea);
  background: rgba(255, 255, 255, 0.58);
}

.material-river {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.material-river a {
  display: grid;
  min-height: 112px;
  flex: 1 1 170px;
  place-items: center;
  padding: 18px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.26;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 253, 246, 0.66);
  box-shadow: 0 14px 30px rgba(104, 117, 90, 0.1);
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.category-bar button {
  min-height: 42px;
  padding: 0 15px;
  color: var(--sea);
  background: rgba(255, 253, 246, 0.72);
}

.category-bar button.active {
  color: #fffdf6;
  background: var(--sun);
  transform: translateY(-2px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 24px;
  background: rgba(255, 253, 246, 0.7);
  box-shadow: 0 18px 42px rgba(104, 117, 90, 0.12);
}

.product-image {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 26%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, rgba(247, 173, 37, 0.24), rgba(77, 183, 231, 0.18));
}

.product-image img {
  width: 76%;
  max-height: 76%;
  object-fit: contain;
  transition: transform 260ms ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05) rotate(-3deg);
}

.product-category {
  margin: 20px 0 8px;
  color: var(--sun-deep);
}

.product-card h3 {
  font-size: 2rem;
  line-height: 0.94;
}

.product-description {
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.58;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.price {
  color: var(--sun-deep);
  font-weight: 800;
}

.add-button {
  min-height: 42px;
  padding: 0 14px;
  color: var(--sun-deep);
  background: rgba(255, 255, 255, 0.58);
}

.add-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.cart-empty {
  max-width: 34ch;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.65;
}

.portal-footer {
  position: fixed;
  right: 24px;
  bottom: 16px;
  left: 24px;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(22, 76, 70, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  pointer-events: none;
}

.portal-footer > * {
  pointer-events: auto;
}

.admin-link {
  min-height: 36px;
  padding: 0 13px;
  color: var(--sun-deep);
  font-size: 0.72rem;
  background: rgba(255, 253, 246, 0.58);
}

.cart-panel {
  position: fixed;
  z-index: 70;
  top: 14px;
  right: 14px;
  width: min(100% - 28px, 430px);
  height: calc(100dvh - 28px);
  padding: 28px;
  border-radius: 42px;
  background: rgba(255, 253, 246, 0.92);
  box-shadow: -18px 20px 70px rgba(104, 117, 90, 0.2);
  transform: translateX(112%);
  transition: transform 320ms cubic-bezier(.2, .8, .2, 1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cart-panel.open {
  transform: translateX(0);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-head h2 {
  font-size: 3rem;
  color: var(--sun-deep);
}

.cart-items {
  display: grid;
  gap: 13px;
  margin: 28px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 248, 235, 0.68);
}

.cart-item img {
  width: 62px;
  height: 62px;
  padding: 8px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff7df;
}

.cart-item h3 {
  font-family: "Sora", sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
}

.cart-item p {
  margin: 5px 0 0;
  color: var(--sun-deep);
  font-size: 0.8rem;
  font-weight: 800;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quantity-controls button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--sun-deep);
  background: #fffdf6;
}

.quantity-controls button:hover,
.quantity-controls button:focus-visible {
  color: #fffdf6;
  background: var(--sea);
}

.cart-total,
.checkout-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--muted);
  font-weight: 700;
}

.cart-total strong,
.checkout-summary strong {
  color: var(--sun-deep);
}

.cart-panel > .button {
  width: 100%;
}

.modal {
  width: min(94vw, 700px);
  max-height: 92dvh;
  padding: 0;
  border: 0;
  border-radius: 38px;
  color: var(--ink);
  background: rgba(255, 253, 246, 0.96);
  box-shadow: 0 28px 80px rgba(104, 117, 90, 0.24);
}

.modal::backdrop {
  background: rgba(238, 250, 248, 0.72);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.modal-card {
  max-height: 92dvh;
  padding: 32px;
  overflow: auto;
}

.modal-note,
.admin-intro {
  margin: 14px 0 22px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.65;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stack-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 13px;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 247, 232, 0.78);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

input:focus,
textarea:focus,
select:focus {
  outline-color: rgba(31, 143, 136, 0.32);
}

fieldset {
  margin: 20px 0;
  padding: 14px;
  border: 0;
  border-radius: 26px;
  background: rgba(255, 247, 232, 0.62);
}

legend {
  padding: 0 8px;
  color: var(--sun-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.shipping-options {
  display: grid;
  gap: 10px;
}

.shipping-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.72);
}

.shipping-option label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.shipping-option input {
  width: auto;
}

.shipping-option small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
}

.payment-note {
  display: grid;
  gap: 5px;
  padding: 16px;
  border-radius: 24px;
  color: var(--sea);
  background: rgba(237, 249, 251, 0.76);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.55;
}

.form-message {
  min-height: 1.3em;
  margin: 12px 0 0;
  color: var(--sun-deep);
  font-size: 0.85rem;
  font-weight: 800;
}

.admin-modal {
  width: min(96vw, 1080px);
}

.admin-card {
  padding: 36px;
}

.admin-tools {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 20px;
  color: var(--sun-deep);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-tools small {
  display: block;
  margin-top: 4px;
  color: var(--sky);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.admin-tabs button {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 247, 232, 0.74);
  font-weight: 800;
}

.admin-tabs button:hover,
.admin-tabs button:focus-visible,
.admin-tabs button.active {
  color: #fffdf6;
  background: var(--sea);
  transform: translateY(-2px);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.dashboard-card {
  min-height: 132px;
  padding: 18px;
  border: 0;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 247, 232, 0.75);
  box-shadow: 0 14px 30px rgba(104, 117, 90, 0.1);
}

.dashboard-card span,
.dashboard-card small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.dashboard-card strong {
  display: block;
  margin: 10px 0;
  color: var(--sun-deep);
  font-family: "Instrument Serif", serif;
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 0.9;
}

.admin-follow-up {
  margin-top: 24px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
}

.admin-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-row button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--sun-deep);
  background: rgba(255, 247, 232, 0.8);
  font-size: 0.75rem;
  font-weight: 800;
}

.admin-row button:hover,
.admin-row button:focus-visible {
  color: #fffdf6;
  background: var(--sea);
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
}

.check input {
  width: auto;
}

.admin-clear,
.comment-row small {
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 1120px) {
  h1 {
    font-size: 5.2rem;
  }

  h2 {
    font-size: 4.4rem;
  }

  .portal-view,
  .news-view,
  .shop-view,
  .home-view {
    grid-template-columns: 1fr;
    gap: 34px;
    align-content: start;
    padding: 108px 28px 86px;
  }

  .menu-offer {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .home-planetarium,
  .orbital-content {
    min-height: 520px;
  }

  .orbital-content {
    grid-template-columns: minmax(170px, 0.42fr) minmax(320px, 1fr);
    gap: 26px 38px;
  }

  .story-orbit {
    width: min(100%, 620px);
  }

  .home-planetarium {
    transform: none;
  }

  .news-cloud,
  .shop-space {
    max-height: none;
    overflow: visible;
  }

  .portal-footer {
    position: fixed;
  }
}

@media (min-width: 821px) and (max-width: 1280px), (min-width: 821px) and (max-height: 860px) {
  h1 {
    font-size: 5.45rem;
  }

  .portal-view,
  .home-view {
    padding-top: 104px;
  }

  .home-planetarium {
    min-height: 560px;
    transform: translateY(130px);
  }

  .menu-offer {
    transform: translateY(28px);
  }

  .planetarium-center {
    width: 240px;
    height: 240px;
  }

  .mini-orbit {
    width: min(560px, 90%);
  }

  .mini-planet {
    width: 94px;
    height: 94px;
    font-size: 0.68rem;
  }

  .primary-orb {
    width: 136px;
    min-height: 136px;
  }

  .secondary-orb {
    width: 124px;
    min-height: 124px;
  }
}

@media (max-width: 820px) {
  .portal-header {
    top: 12px;
    width: calc(100% - 24px);
  }

  .portal-mark,
  .portal-mark img {
    width: 58px;
    height: 58px;
  }

  .header-actions {
    gap: 8px;
  }

  .round-button,
  .cart-toggle {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.74rem;
  }

  .cart-toggle {
    width: 44px;
    padding: 0;
    font-size: 0;
    border-radius: 50%;
  }

  .cart-toggle span {
    margin-left: 0;
    font-size: 0.72rem;
  }

  .portal-view,
  .news-view,
  .shop-view,
  .home-view {
    gap: 42px;
    padding: 116px 20px 104px;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    max-width: 12ch;
    font-size: 2.55rem;
    line-height: 1.02;
  }

  .lead {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.58;
  }

  .page-copy {
    margin-bottom: 10px;
  }

  .home-actions {
    align-items: center;
  }

  .primary-orb {
    width: 132px;
    min-height: 132px;
    padding: 20px;
  }

  .secondary-orb {
    width: 116px;
    min-height: 116px;
    padding: 18px;
  }

  .home-planetarium,
  .orbital-content {
    min-height: auto;
  }

  .orbital-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 44px;
  }

  .planetarium-center,
  .menu-sun {
    width: 218px;
    height: 218px;
  }

  .mini-orbit {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
    position: relative;
    display: grid;
    top: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    gap: 14px;
    aspect-ratio: auto;
    margin-top: 28px;
    transform: none;
  }

  .mini-planet {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    min-height: 88px;
    transform: none;
    
  }

  .mini-planet:hover,
  .mini-planet:focus-visible,
  .mini-planet.is-current {
    transform: translateY(-8px) rotate(-4deg) scale(1.06);
  }

  .planet-menu {
    overflow: auto;
    padding: 86px 18px 34px;
    place-items: start center;
  }

  .menu-sun {
    position: relative;
    padding: 38px;
  }

  .planet-orbit {
    display: grid;
    width: min(100%, 520px);
    grid-template-columns: repeat(2, minmax(118px, 1fr));
    gap: 14px;
    margin-top: 24px;
    aspect-ratio: auto;
  }

  .planet-orbit::before,
  .planet-orbit::after {
    display: none;
  }

  .planet-link {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    min-height: 118px;
    transform: none;
  }

  .planet-link:hover,
  .planet-link:focus-visible,
  .planet-link.is-current {
    transform: translateY(-6px) scale(1.04);
  }

.story-orbit,
  .blog-grid,
  .product-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .story-orbit {
    width: 100%;
  }

  .big-planet {
    display: none;
  }

  .detail-bubble {
    width: min(100%, 560px);
  }

  .portal-footer {
    left: 14px;
    right: 14px;
    bottom: 10px;
    justify-content: flex-end;
    font-size: 0.64rem;
  }

  .portal-footer span {
    display: none;
  }
}

@media (max-width: 520px) {
  .shop-entry {
    min-width: 74px;
  }

  .earth-stage {
    width: min(76vmin, 330px);
    min-width: 230px;
  }

  .logo-stage {
    width: min(62vmin, 270px);
    padding: 30px;
  }

  .intro-copy {
    bottom: 13%;
  }

  .intro-copy p:last-child {
    font-size: 0.98rem;
  }

  .intro-next {
    width: 82px;
    height: 82px;
    font-size: 0.8rem;
  }

  .menu-button {
    max-width: 96px;
  }

  h1 {
    max-width: 8.4ch;
    font-size: 3.1rem;
  }

  h2 {
    font-size: 2.36rem;
    line-height: 1.04;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .lead {
    margin-top: 18px;
    font-size: 0.94rem;
  }

  .pulse-line {
    font-size: 0.8rem;
  }

  .home-planetarium {
    min-height: 360px;
  }

  .planetarium-center {
    width: 186px;
    height: 186px;
  }

  .planetarium-center::before {
    inset: -34px;
  }

  .planetarium-center::after {
    inset: -82px;
  }

  .mini-planet {
    min-height: 78px;
    font-size: 0.7rem;
  }

  .blog-card,
  .product-card {
    min-height: auto;
    padding: 23px;
    border-radius: 44% 56% 50% 50% / 58% 44% 56% 42%;
  }

  .story-orb {
    min-height: 82px;
    padding: 6px 0 8px 58px;
  }

  .story-orb::before {
    width: 40px;
    height: 40px;
  }

  .detail-bubble {
    padding-left: 52px;
  }

  .detail-bubble::before {
    width: 36px;
    height: 36px;
  }

  .blog-card h3,
  .product-card h3 {
    font-size: 1.78rem;
  }

  .story-orb strong {
    font-size: 1.36rem;
  }

  .product-grid {
    gap: 18px;
  }

  .product-card {
    min-height: 0;
  }

  .cart-panel {
    top: 8px;
    right: 8px;
    width: calc(100% - 16px);
    height: calc(100dvh - 16px);
    padding: 22px;
    border-radius: 30px;
  }

  .cart-item {
    grid-template-columns: 52px 1fr;
    border-radius: 28px;
  }

  .cart-item img {
    width: 52px;
    height: 52px;
  }

  .quantity-controls {
    grid-column: 2;
    justify-self: start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal-card,
  .admin-card {
    padding: 24px;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 720px) and (min-width: 1121px) {
  .portal-view {
    align-items: start;
  }

  h1 {
    font-size: 5.15rem;
  }

  h2 {
    font-size: 4.3rem;
  }

  .home-planetarium,
  .orbital-content {
    min-height: 520px;
  }
}

body {
  background:
    radial-gradient(ellipse 92% 115% at 0% 48%, rgba(247, 173, 37, 0.18) 0%, rgba(255, 235, 196, 0.1) 38%, transparent 68%),
    radial-gradient(ellipse 92% 115% at 100% 52%, rgba(77, 183, 231, 0.15) 0%, rgba(211, 241, 253, 0.09) 40%, transparent 68%),
    linear-gradient(118deg, #fff1d8 0%, #fff9ec 34%, #ffffff 52%, #f1faff 72%, #dff4fc 100%);
  background-attachment: fixed;
}

body::before {
  display: none;
  content: none;
  
}

.portal-header {
  top: 20px;
}

.header-actions {
  gap: 10px;
}

.round-button,
.cart-toggle {
  display: inline-grid;
  width: 72px;
  height: 72px;
  min-height: 72px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.08;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(31, 143, 136, 0.11);
}

.shop-entry,
.button-orange {
  color: #fffdf6;
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, var(--sun), var(--sun-deep));
}

.menu-button {
  color: var(--sea);
  background: rgba(255, 255, 255, 0.86);
}

.cart-toggle {
  gap: 2px;
  color: var(--sun-deep);
  background: rgba(255, 248, 233, 0.88);
}

.cart-toggle span {
  min-width: 0;
  height: auto;
  margin-left: 0;
  color: inherit;
  background: transparent;
  font-size: 0.68rem;
}

.cart-toggle #cart-count {
  display: grid;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  place-items: center;
  border-radius: 50%;
  color: var(--sun-deep);
  background: #ffffff;
}

.intro-stage::after {
  display: none;
}

.intro-stage::before {
  width: min(78vmin, 760px);
  background: radial-gradient(circle, rgba(77, 183, 231, 0.13), transparent 66%);
}

.earth-stage {
  width: min(74vmin, 650px);
  filter: drop-shadow(0 28px 56px rgba(31, 143, 136, 0.18));
}

.intro-logo .earth-stage {
  opacity: 0.16;
  transform: scale(1.18);
  filter: saturate(0.96) blur(1px);
}

.logo-stage {
  width: min(48vmin, 430px);
  box-shadow: 0 28px 62px rgba(223, 127, 12, 0.2);
}

.portal-view::after {
  background: transparent;
}

.pulse-line {
  position: relative;
  width: auto;
  max-width: 42ch;
  padding: 0 0 0 56px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pulse-line::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  content: "";
  background: rgba(247, 173, 37, 0.2);
  transform: translateY(-50%);
}

.soft-actions a,
.soft-actions button,
.text-button {
  display: inline-flex;
  min-height: 0;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  color: var(--sea);
  background: transparent;
  box-shadow: none;
  text-decoration: none;
}

.soft-actions a::before,
.soft-actions button::before,
.text-button::before {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  content: "";
  background: currentColor;
  opacity: 0.42;
}

.soft-actions a:hover,
.soft-actions a:focus-visible,
.soft-actions button:hover,
.soft-actions button:focus-visible,
.text-button:hover,
.text-button:focus-visible {
  color: var(--sun-deep);
  background: transparent;
  box-shadow: none;
  transform: translateX(8px);
}

.blog-card,
.product-card,
.material-river a,
.dashboard-card {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.blog-card {
  position: relative;
  min-height: 0;
  padding: 0 0 26px 62px;
  border-bottom: 1px solid rgba(31, 143, 136, 0.14);
}

.blog-card::before {
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--sun-deep);
  content: "DO";
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  background: rgba(247, 173, 37, 0.18);
}

.blog-card h3 {
  margin-top: 10px;
}

.blog-card-bottom .text-button {
  background: transparent;
}

.material-river a {
  position: relative;
  display: block;
  min-height: 0;
  padding: 8px 0 8px 52px;
  text-align: left;
}

.material-river a span {
  display: block;
  color: var(--sun-deep);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.material-river a strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-family: "Instrument Serif", serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 0.98;
}

.material-river a small {
  display: block;
  max-width: 38ch;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.45;
}

.material-river a::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  content: "";
  background: rgba(77, 183, 231, 0.22);
  transform: translateY(-50%);
}

.category-bar {
  gap: 14px 20px;
}

.category-bar button {
  display: inline-flex;
  min-height: 0;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  color: var(--sea);
  background: transparent;
  box-shadow: none;
}

.category-bar button::before {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  content: "";
  background: currentColor;
  opacity: 0.28;
}

.category-bar button.active {
  color: var(--sun-deep);
  background: transparent;
  transform: none;
}

.category-bar button.active::before {
  opacity: 1;
}

.product-grid {
  gap: 34px 28px;
}

.product-card {
  min-height: 0;
  padding: 0 0 30px;
}

.product-image {
  width: min(100%, 220px);
  margin-bottom: 20px;
  background:
    radial-gradient(circle at 35% 26%, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, rgba(247, 173, 37, 0.2), rgba(77, 183, 231, 0.16));
}

.add-button {
  display: grid;
  width: 62px;
  min-width: 62px;
  height: 62px;
  min-height: 62px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: #fffdf6;
  background: var(--sea);
}

.detail-pill,
.detail-link {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.detail-link {
  color: var(--sea);
  text-decoration: none;
}

.detail-link:hover,
.detail-link:focus-visible {
  color: var(--sun-deep);
  background: transparent;
  transform: translateX(8px);
}

.cart-panel {
  top: 0;
  right: 0;
  width: min(100%, 430px);
  height: 100dvh;
  padding: 30px;
  border-radius: 0;
  background: #ffffff;
  box-shadow: -12px 0 44px rgba(31, 143, 136, 0.12);
}

.cart-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(31, 143, 136, 0.12);
  border-radius: 0;
  background: transparent;
}

.modal {
  background: #ffffff;
}

@media (max-width: 820px) {
  body[data-view="home"] .portal-header {
    display: none;
  }

  .home-copy,
  .page-copy,
  .menu-offer,
  .home-planetarium,
  .orbital-content {
    min-width: 0;
    max-width: 100%;
  }

  .lead {
    max-width: 100%;
  }

  .round-button,
  .cart-toggle {
    width: 58px;
    height: 58px;
    min-height: 58px;
    padding: 0;
    font-size: 0.66rem;
  }

  .cart-word {
    display: none;
  }

  .cart-toggle #cart-count {
    margin-top: 0;
  }

  .shop-entry {
    min-width: 0;
  }

  .earth-stage {
    width: min(80vmin, 390px);
  }

  .mini-orbit {
    justify-items: center;
  }

.planet-orbit {
    justify-items: center;
  }

  .planet-link {
    width: 118px;
    height: 118px;
    min-height: 118px;
  }

  .story-orbit {
    gap: 16px;
  }

  .blog-card,
  .product-card {
    padding-right: 0;
    border-radius: 0;
  }
}

@media (max-width: 520px) {
  .shop-entry {
    min-width: 0;
  }

  .round-button,
  .cart-toggle {
    width: 52px;
    height: 52px;
    min-height: 52px;
  }

  .earth-stage {
    width: min(82vmin, 360px);
  }

  .intro-next {
    right: 18px;
    bottom: 18px;
  }

  .product-image {
    width: min(100%, 190px);
  }

  .mini-planet {
    width: 96px;
    height: 96px;
    min-height: 96px;
    padding: 10px;
  }

  .planet-link {
    width: 112px;
    height: 112px;
    min-height: 112px;
  }

  .cart-panel {
    right: 0;
    width: 100%;
    height: 100dvh;
    padding: 22px;
    border-radius: 0;
  }
}

@media (max-width: 820px) {
  .portal-view,
  .news-view,
  .shop-view,
  .home-view {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .portal-view > *,
  .menu-offer > * {
    min-width: 0;
    max-width: 100%;
  }

  .home-copy,
  .page-copy {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .lead,
  .pulse-line {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .home-planetarium {
    width: 100%;
    overflow: hidden;
  }

  .planetarium-center::after {
    inset: -72px;
  }

  .mini-orbit {
    width: min(100%, 260px);
    grid-template-columns: repeat(2, 104px);
    justify-content: center;
    justify-items: center;
  }

  .mini-planet {
    width: 104px;
    height: 104px;
    min-height: 104px;
  }

  .shop-entry {
    display: none;
  }
}

@media (max-width: 520px) {
  .planetarium-center::after {
    inset: -58px;
  }

  .mini-orbit {
    width: min(100%, 238px);
    grid-template-columns: repeat(2, 96px);
  }

  .mini-planet {
    width: 96px;
    height: 96px;
    min-height: 96px;
  }
}

@media (max-width: 820px) {
  html,
  body,
  .view-stage {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .portal-header,
  .portal-footer {
    display: none;
  }

  .portal-view,
  .news-view,
  .shop-view,
  .home-view {
    width: 100vw;
    max-width: 100vw;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
    justify-items: start;
    align-content: start;
    align-items: start;
    gap: 32px;
    padding: 104px 20px 74px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .home-copy,
  .page-copy,
  .menu-offer,
  .home-planetarium,
  .orbital-content,
  .news-cloud,
  .shop-space {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .menu-offer {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .news-cloud,
  .shop-space {
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .orbital-content {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "detail"
      "list";
  }

  .story-orbit {
    grid-area: list;
  }

  .detail-bubble {
    grid-area: detail;
  }

  .story-orbit,
  .blog-grid,
  .product-grid,
  .material-river,
  .category-bar {
    width: 100%;
    max-width: 100%;
  }

  h1,
  h2 {
    width: auto;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }

  h1 {
    max-width: min(8.8ch, 100%);
    font-size: clamp(3rem, 13vw, 4.1rem);
    line-height: 0.94;
  }

  h2 {
    max-width: min(10.5ch, 100%);
    font-size: clamp(2.22rem, 9vw, 3.35rem);
    line-height: 1.02;
  }

  .lead,
  .pulse-line,
  .detail-bubble,
  .story-orb,
  .blog-card,
  .product-card,
  .product-description,
  .material-river a,
  .cart-empty {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .lead {
    width: auto;
    max-width: min(32ch, 100%);
    font-size: 1rem;
    line-height: 1.55;
  }

  .pulse-line {
    width: auto;
    max-width: min(32ch, 100%);
    padding-left: 46px;
  }

  .pulse-line::before {
    width: 30px;
    height: 30px;
  }

  .story-orb strong,
  .story-orb small,
  .detail-bubble h3,
  .detail-bubble p,
  .blog-card h3,
  .blog-card p,
  .product-card h3,
  .product-card p {
    max-width: min(32ch, 100%);
    overflow-wrap: break-word;
  }

  .category-bar button {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .portal-view,
  .news-view,
  .shop-view,
  .home-view {
    padding: 96px 18px 64px;
  }

  h1 {
    max-width: min(8.6ch, 100%);
    font-size: clamp(2.85rem, 12vw, 3.25rem);
  }

  h2 {
    max-width: min(10ch, 100%);
    font-size: clamp(2rem, 8.2vw, 2.36rem);
  }

  .lead {
    max-width: min(30ch, 100%);
    font-size: 1rem;
  }

  .pulse-line {
    max-width: min(30ch, 100%);
    padding-left: 42px;
  }

  .story-orb {
    padding-left: 54px;
  }

  .detail-bubble {
    padding-left: 50px;
  }
}

.product-slider {
  width: 100%;
  margin: 0 0 28px;
}

.product-slider-window {
  overflow: hidden;
}

.product-slider-track {
  display: flex;
  transition: transform 520ms cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

.product-slide {
  display: grid;
  min-width: 100%;
  grid-template-columns: minmax(170px, 0.42fr) minmax(240px, 1fr);
  gap: 28px;
  align-items: center;
}

.product-slide-image,
.product-gallery .product-image {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 26%, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, rgba(247, 173, 37, 0.18), rgba(77, 183, 231, 0.18));
}

.product-slide-image {
  width: min(100%, 210px);
}

.product-slide-image img,
.product-gallery .product-image img {
  width: 76%;
  max-height: 76%;
  object-fit: contain;
}

.product-slide h3 {
  font-size: 2.15rem;
  line-height: 0.96;
}

.product-slide p:not(.product-category) {
  max-width: 38ch;
  margin: 12px 0 10px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.52;
}

.product-slide span,
.product-specs,
.product-more summary,
.shop-info-links a,
.legal-note span {
  color: var(--sea);
  font-size: 0.82rem;
  font-weight: 850;
}

.product-slider-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.product-slider-controls button,
.product-thumbs button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--sea);
  background: rgba(77, 183, 231, 0.18);
}

.product-slider-controls button {
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
  font-weight: 850;
}

.product-slider-controls [data-slide-dot] {
  width: 12px;
  height: 12px;
  padding: 0;
  font-size: 0;
}

.product-slider-controls button:hover,
.product-slider-controls button:focus-visible,
.product-slider-controls button.active,
.product-thumbs button:hover,
.product-thumbs button:focus-visible,
.product-thumbs button.active {
  color: #ffffff;
  background: var(--sun-deep);
  transform: scale(1.08);
}

.product-gallery {
  display: grid;
  gap: 12px;
  width: min(100%, 230px);
  margin-bottom: 20px;
}

.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-thumbs button {
  width: 42px;
  height: 42px;
  padding: 5px;
}

.product-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-more {
  margin: 0 0 20px;
  color: var(--muted);
}

.product-more summary {
  width: fit-content;
  cursor: pointer;
  list-style-position: outside;
}

.product-more summary::marker {
  color: var(--sun-deep);
}

.product-more p {
  max-width: 36ch;
  margin: 10px 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.58;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 13px 0 0;
}

.product-specs div {
  display: grid;
  gap: 2px;
}

.product-specs dt,
.product-specs dd {
  margin: 0;
}

.product-specs dt {
  color: var(--sky);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.shop-info-links,
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
}

.shop-info-links {
  margin: 36px 0 28px;
}

.shop-info-links a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
}

.shop-info-links a::before {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  content: "";
  background: currentColor;
  opacity: 0.35;
}

.shop-info-links a:hover,
.shop-info-links a:focus-visible {
  color: var(--sun-deep);
  transform: translateX(6px);
}

.partner-strip {
  margin-top: 8px;
}

.partner-logos a {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 30px rgba(31, 143, 136, 0.1);
}

.partner-logos img {
  width: 70%;
  max-height: 70%;
  object-fit: contain;
  filter: grayscale(1) saturate(0.2) opacity(0.48);
  transition: filter 220ms ease, transform 220ms ease;
}

.partner-logos a:hover img,
.partner-logos a:focus-visible img {
  filter: grayscale(0) saturate(1) opacity(1);
  transform: scale(1.05);
}

.legal-view {
  grid-template-columns: minmax(300px, 0.72fr) minmax(480px, 1.28fr);
}

.legal-river {
  display: grid;
  gap: 22px;
}

.legal-note {
  position: relative;
  min-height: 80px;
  padding-left: 72px;
}

.legal-note::before {
  position: absolute;
  left: 0;
  top: 6px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  content: "";
  background: rgba(247, 173, 37, 0.16);
}

.legal-note span {
  position: absolute;
  left: 12px;
  top: 22px;
  color: var(--sun-deep);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
}

.legal-note h3 {
  font-size: 2rem;
  line-height: 1;
}

.legal-note p {
  max-width: 56ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.62;
}

@media (max-width: 820px) {
  .product-slide,
  .legal-view {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-slide {
    gap: 16px;
  }

  .product-slide-image,
  .product-gallery {
    width: min(100%, 190px);
  }

  .product-slide h3,
  .legal-note h3 {
    max-width: min(14ch, 100%);
    font-size: 1.82rem;
  }

  .product-slide p:not(.product-category),
  .product-more p,
  .legal-note p {
    max-width: min(34ch, 100%);
  }

  .shop-info-links {
    display: grid;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .product-slider {
    margin-bottom: 24px;
  }

  .product-slider-controls {
    gap: 8px;
  }

  .product-thumbs button {
    width: 38px;
    height: 38px;
  }

  .partner-logos a {
    width: 72px;
    height: 72px;
  }

  .legal-note {
    padding-left: 56px;
  }

  .legal-note::before {
    width: 40px;
    height: 40px;
  }

  .legal-note span {
    left: 9px;
    top: 18px;
  }
}

.home-view {
  overflow-y: auto;
}

.home-view .menu-offer {
  width: min(100%, 960px);
  max-width: 960px;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(44px, 7vh, 74px);
  align-content: start;
  align-items: start;
  justify-self: center;
}

.home-view .home-copy {
  width: min(100%, 760px);
}

.home-view .home-planetarium {
  width: 100%;
  min-height: min(62vh, 600px);
  transform: none;
}

.topic-view,
.news-view,
.shop-view,
.legal-view {
  display: flex;
  flex-direction: column;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  align-items: center;
  justify-items: center;
  gap: clamp(48px, 7vh, 82px);
  padding-top: clamp(126px, 15vh, 168px);
  padding-bottom: 118px;
}

.topic-view .page-copy,
.news-view .page-copy,
.shop-view .page-copy,
.legal-view .page-copy {
  width: min(100%, 860px);
  margin: 0 auto;
}

.topic-view .page-copy h2,
.news-view .page-copy h2,
.shop-view .page-copy h2,
.legal-view .page-copy h2 {
  max-width: min(13.5ch, 100%);
  font-size: clamp(3.25rem, 7vw, 6.1rem);
  line-height: 0.93;
}

.topic-view .page-copy h2 {
  max-width: min(16ch, 100%);
  font-size: clamp(3rem, 5.4vw, 4.85rem);
  line-height: 0.98;
}

.topic-view .lead,
.news-view .lead,
.shop-view .lead,
.legal-view .lead {
  max-width: min(60ch, 100%);
  margin-top: 22px;
}

.topic-view .soft-actions,
.news-view .soft-actions,
.shop-view .soft-actions,
.legal-view .soft-actions {
  margin-top: 24px;
}

.orbital-content,
.news-cloud,
.shop-space,
.legal-river {
  width: min(100%, 900px);
  max-height: none;
  overflow: visible;
  padding: 0;
}

.orbital-content {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "planet"
    "detail"
    "list";
  gap: clamp(28px, 5vh, 46px);
}

.topic-view .orbital-content {
  margin-top: clamp(24px, 5vh, 58px);
}

.topic-view .big-planet {
  display: none;
}

.logo-stage {
  pointer-events: none;
  width: clamp(118px, 24vmin, 210px);
  padding: clamp(18px, 3vmin, 28px);
}

.intro-logo .earth-stage {
  opacity: 0.72;
  transform: scale(1.02);
  filter: saturate(1.02);
}

.intro-logo .logo-stage {
  opacity: 0.94;
  transform: translate3d(0, 0, 0) scale(0.74);
}

@media (min-width: 821px) {
  .portal-header {
    top: 24px;
    width: min(1280px, calc(100% - 64px));
    align-items: center;
  }

  .header-actions {
    align-items: center;
    gap: 14px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: 0 20px 44px rgba(31, 143, 136, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .round-button,
  .cart-toggle {
    position: relative;
    width: 84px;
    height: 84px;
    min-height: 84px;
    font-size: 0.78rem;
    box-shadow: 0 14px 30px rgba(31, 143, 136, 0.13);
    
  }

  .shop-entry {
    width: 92px;
    height: 92px;
    min-height: 92px;
  }

  .cart-toggle #cart-count {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }

  .round-button:hover,
  .round-button:focus-visible,
  .cart-toggle:hover,
  .cart-toggle:focus-visible {
    transform: translateY(-6px) scale(1.06);
  }

  .home-view .menu-offer {
    max-width: 1140px;
  }

  .home-view .home-planetarium {
    min-height: min(76vh, 760px);
    place-items: center;
  }

  .home-view .planetarium-center {
    width: 342px;
    height: 342px;
  }

  .home-view .planetarium-center::before {
    inset: -86px;
    
  }

  .home-view .planetarium-center::after {
    inset: -204px;
    
  }

  .home-view .mini-orbit {
    width: min(920px, 94vw, calc(100dvh - 56px));
  }

  .home-view .mini-orbit::before,
  .home-view .mini-orbit::after {
    position: absolute;
    inset: 1.5%;
    border-radius: 50%;
    content: "";
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(31, 143, 136, 0.12);
    
  }

  .home-view .mini-orbit::after {
    inset: 27.5%;
    box-shadow: inset 0 0 0 1px rgba(247, 173, 37, 0.18);

}

  .home-view .mini-planet {
    width: 134px;
    height: 134px;
    padding: 18px;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 42px rgba(31, 143, 136, 0.12);
  }

  .home-view .mini-planet:hover,
  .home-view .mini-planet:focus-visible,
  .home-view .mini-planet.is-current {
    transform: translate(-50%, -50%) translateY(-12px) rotate(-4deg) scale(1.1);
  }

  .planet-menu {
    place-items: center;
    padding: 18px;
  }

  .menu-sun {
    width: 342px;
    height: 342px;
    padding: 54px;
  }

  .planet-menu.is-open .menu-sun {
    transform: scale(1) rotate(-1deg);
  }

.planet-orbit {
    width: min(1060px, 94vw, calc(100dvh - 12px));
  }

  .planet-orbit::before {
    inset: 1.5%;
    
  }

  .planet-orbit::after {
    inset: 27.5%;
    
  }

  .planet-link {
    width: 156px;
    min-height: 156px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 22px 46px rgba(31, 143, 136, 0.13);
  }

.planet-link span {
    font-size: 0.82rem;
  }

  .planet-link strong {
    font-size: 0.96rem;
    line-height: 1.14;
  }

  .planet-link:hover,
  .planet-link:focus-visible,
  .planet-link.is-current {
    transform: translate(-50%, -50%) translateY(-12px) scale(1.12) rotate(-4deg);
  }
}

.big-planet {
  width: clamp(112px, 12vw, 152px);
  height: clamp(112px, 12vw, 152px);
  min-width: 112px;
  min-height: 112px;
  justify-self: start;
  padding: 20px;
}

.big-planet strong {
  font-size: clamp(1.36rem, 2.2vw, 1.7rem);
}

.detail-bubble {
  width: min(100%, 720px);
}

.story-orbit {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 760px);
  gap: 18px;
}

.story-orb {
  min-height: 0;
  padding-top: 4px;
  padding-bottom: 20px;
}

.story-orb + .story-orb,
.legal-note + .legal-note,
.blog-card + .blog-card,
.product-card + .product-card {
  margin-top: 8px;
}

.blog-grid {
  width: min(100%, 760px);
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.blog-card {
  padding-bottom: 32px;
}

.material-river {
  display: grid;
  width: min(100%, 760px);
  gap: 14px;
  margin-top: 42px;
}

.product-slider {
  width: min(100%, 760px);
  margin-bottom: 48px;
}

.product-slide {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  justify-items: start;
}

.product-slide-image {
  width: min(230px, 58vw);
}

.product-slide h3 {
  max-width: min(14ch, 100%);
  font-size: clamp(2rem, 5vw, 3.15rem);
}

.category-bar {
  width: min(100%, 820px);
  gap: 16px 24px;
  margin-bottom: 44px;
}

.product-grid {
  width: min(100%, 760px);
  grid-template-columns: minmax(0, 1fr);
  gap: 46px;
}

.product-card {
  width: 100%;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(31, 143, 136, 0.12);
}

.product-gallery {
  width: min(100%, 210px);
  margin-bottom: 22px;
}

.product-bottom {
  justify-content: flex-start;
}

.shop-info-links,
.partner-strip {
  width: min(100%, 760px);
}

.shop-info-links {
  margin-top: 46px;
}

.partner-strip {
  margin-top: 36px;
}

.legal-river {
  width: min(100%, 760px);
  gap: 34px;
}

.legal-note {
  min-height: 0;
  padding-left: 74px;
}

@media (max-width: 820px) {
  .home-view .menu-offer {
    gap: 36px;
  }

  .home-view .home-planetarium {
    min-height: auto;
  }

  .topic-view,
  .news-view,
  .shop-view,
  .legal-view {
    gap: 38px;
    padding-top: 96px;
    padding-bottom: 76px;
  }

  .topic-view .page-copy h2,
  .news-view .page-copy h2,
  .shop-view .page-copy h2,
  .legal-view .page-copy h2 {
    max-width: min(11.2ch, 100%);
    font-size: clamp(2.2rem, 9.2vw, 3.1rem);
    line-height: 1.02;
  }

  .topic-view .page-copy,
  .news-view .page-copy,
  .shop-view .page-copy,
  .legal-view .page-copy,
  .topic-view .lead,
  .news-view .lead,
  .shop-view .lead,
  .legal-view .lead {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .topic-view .lead,
  .news-view .lead,
  .shop-view .lead,
  .legal-view .lead {
    max-width: min(32ch, 100%);
  }

  .orbital-content,
  .news-cloud,
  .shop-space,
  .legal-river,
  .blog-grid,
  .product-grid,
  .product-slider,
  .shop-info-links,
  .partner-strip {
    width: 100%;
  }

  .big-planet {
    width: 124px;
    height: 124px;
    min-width: 124px;
    min-height: 124px;
  }

  .product-slider,
  .category-bar {
    margin-bottom: 34px;
  }

  .product-card {
    padding-bottom: 36px;
  }

  .legal-note {
    padding-left: 58px;
  }
}

@media (max-width: 520px) {
  .intro-next {
    left: calc(50% - 41px);
    right: auto;
    bottom: 18px;
    width: 82px;
    height: 82px;
  }
}

@media (min-width: 821px) {
  .home-view {
    align-items: start;
  }

  .home-view .menu-offer {
    gap: clamp(58px, 9vh, 104px);
    padding-top: clamp(24px, 4vh, 48px);
    padding-bottom: 96px;
  }

  .home-view .home-copy {
    width: min(100%, 880px);
    justify-self: center;
    text-align: center;
  }

  .home-view .home-copy h1 {
    max-width: min(12ch, 100%);
    margin-inline: auto;
    font-size: clamp(4.4rem, 8.8vw, 7.4rem);
    line-height: 0.9;
  }

  .home-view .home-copy .lead {
    max-width: min(66ch, 100%);
    margin-inline: auto;
  }

  .home-view .home-actions,
  .home-view .landing-sequence {
    justify-content: center;
  }

  .landing-brief {
    width: min(100%, 900px);
  }
}

@media (max-width: 820px) {
  .landing-sequence {
    display: grid;
    gap: 14px;
  }

  .landing-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px 16px;
    padding: 17px 0;
  }

  .landing-row small {
    grid-column: 2;
  }

  .landing-brief h2 {
    max-width: min(12ch, 100%);
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }
}

.home-view {
  align-content: center;
  overflow: hidden;
}

.home-view .menu-offer {
  min-height: auto;
  gap: clamp(76px, 11vh, 130px);
  padding-top: 0;
  padding-bottom: 118px;
  align-content: start;
}

body[data-view="home"].intro-done {
  overflow-y: auto;
}

body[data-view="home"].intro-done .view-stage {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
}

body[data-view="home"].intro-done .home-view {
  position: relative;
  inset: auto;
  min-height: clamp(1280px, 145dvh, 1500px);
  align-content: start;
  padding-top: clamp(116px, 15vh, 150px);
  padding-bottom: 170px;
  overflow: visible;
}

body[data-view="home"].intro-done .portal-footer {
  position: fixed;
  right: 24px;
  bottom: 16px;
  left: 24px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.home-view .home-copy {
  width: min(100%, 760px);
  justify-self: center;
  text-align: center;
}

.home-view .home-copy h1 {
  max-width: min(12ch, 100%);
  margin-inline: auto;
  font-size: clamp(3.2rem, 5.8vw, 5.25rem);
  line-height: 0.92;
}

.home-view .home-copy .lead {
  max-width: min(56ch, 100%);
  margin: 12px auto 0;
  line-height: 1.56;
}

.home-view .home-actions {
  justify-content: center;
  margin-top: 22px;
}

.home-view .primary-orb {
  width: 112px;
  min-height: 112px;
  padding: 18px;
}

.home-view .home-planetarium {
  width: 100%;
  height: 640px;
  min-height: 0;
  max-height: none;
  transform: none;
  place-items: center;
}

.home-view .planetarium-center {
  width: 260px;
  height: 260px;
  padding: 42px;
}

.home-view .planetarium-center::before {
  inset: -68px;
}

.home-view .planetarium-center::after {
  inset: -198px;
}

.home-view .mini-orbit {
  width: min(760px, 90vw);
}

.home-view .mini-orbit::before {
  inset: 1.5%;
}

.home-view .mini-orbit::after {
  inset: 27.5%;
}

.home-view .mini-planet {
  width: 118px;
  height: 118px;
  min-height: 118px;
  padding: 14px;
  font-size: 0.76rem;
  z-index: 2;
}

.planet-link {
  z-index: 2;
}

.planet-orbit::before,
.planet-orbit::after,
.home-view .mini-orbit::before,
.home-view .mini-orbit::after {
  z-index: 0;
}

.planet-link.tone-sun,
.mini-planet.tone-sun {
  background: #fff0cf;
}

.planet-link.tone-sky,
.mini-planet.tone-sky {
  background: #ddf3fb;
}

.planet-link.tone-sea,
.mini-planet.tone-sea {
  background: #dceeed;
}

.planet-link.tone-leaf,
.mini-planet.tone-leaf {
  background: #e7f4e5;
}

.planet-link.tone-coral,
.mini-planet.tone-coral {
  background: #fde5df;
}

body:not([data-view="home"]) {
  overflow-y: auto;
}

body:not([data-view="home"]) .view-stage {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
}

body:not([data-view="home"]) .portal-view {
  position: relative;
  inset: auto;
  min-height: 100dvh;
  overflow: visible;
}

body:not([data-view="home"]) .portal-view:not(.is-active) {
  display: none;
}

body:not([data-view="home"]) .topic-view,
body:not([data-view="home"]) .news-view,
body:not([data-view="home"]) .legal-view {
  gap: clamp(44px, 6vw, 82px);
  padding-top: clamp(118px, 14vh, 164px);
  padding-bottom: clamp(88px, 12vh, 136px);
}

body:not([data-view="home"]) .page-copy {
  width: min(100%, 920px);
}

body:not([data-view="home"]) .page-copy h2 {
  max-width: min(15ch, 100%);
}

body:not([data-view="home"]) .lead {
  max-width: min(66ch, 100%);
}

body:not([data-view="home"]) .orbital-content,
body:not([data-view="home"]) .news-cloud,
body:not([data-view="home"]) .legal-river {
  width: min(100%, 980px);
  max-height: none;
  overflow: visible;
}

body:not([data-view="home"]) .story-orbit,
body:not([data-view="home"]) .blog-grid,
body:not([data-view="home"]) .material-river {
  width: min(100%, 860px);
}

@media (max-width: 820px) {
  .home-view {
    padding: 72px 16px 18px;
  }

  .home-view .menu-offer {
    min-height: calc(100dvh - 90px);
    gap: 16px;
  }

  .home-view .home-copy h1 {
    font-size: clamp(2.45rem, 10.4vw, 3.35rem);
    line-height: 0.96;
  }

  .home-view .home-copy .lead {
    max-width: min(34ch, 100%);
    margin-top: 10px;
    font-size: 0.88rem;
    line-height: 1.42;
  }

  .home-view .home-actions {
    margin-top: 12px;
  }

  .home-view .primary-orb {
    width: 84px;
    min-height: 84px;
    padding: 12px;
    font-size: 0.68rem;
  }

  .home-view .home-planetarium {
    height: min(40dvh, 310px);
    max-height: 310px;
  }

  .home-view .planetarium-center {
    width: 132px;
    height: 132px;
    padding: 23px;
  }

  .home-view .planetarium-center::before {
    inset: -30px;
  }

  .home-view .planetarium-center::after {
    inset: -72px;
  }

  .home-view .mini-orbit {
    width: min(88vw, 300px, 38dvh);
  }

  .home-view .mini-planet {
    width: 58px;
    height: 58px;
    min-height: 58px;
    padding: 5px;
    font-size: 0.5rem;
    line-height: 1.04;
  }

  body:not([data-view="home"]) .portal-view {
    width: 100%;
    max-width: 100%;
    padding: 92px 18px 76px;
  }

  body:not([data-view="home"]) .topic-view,
  body:not([data-view="home"]) .news-view,
  body:not([data-view="home"]) .legal-view {
    gap: 36px;
  }

  body:not([data-view="home"]) .page-copy,
  body:not([data-view="home"]) .page-copy h2,
  body:not([data-view="home"]) .lead,
  body:not([data-view="home"]) .pulse-line,
  body:not([data-view="home"]) .orbital-content,
  body:not([data-view="home"]) .news-cloud,
  body:not([data-view="home"]) .legal-river,
  body:not([data-view="home"]) .story-orbit,
  body:not([data-view="home"]) .blog-grid,
  body:not([data-view="home"]) .material-river {
    width: 100%;
    max-width: 100%;
  }

  body:not([data-view="home"]) .lead,
  body:not([data-view="home"]) .pulse-line,
  body:not([data-view="home"]) .story-orb strong,
  body:not([data-view="home"]) .story-orb small,
  body:not([data-view="home"]) .detail-bubble h3,
  body:not([data-view="home"]) .detail-bubble p,
  body:not([data-view="home"]) .blog-card h3,
  body:not([data-view="home"]) .blog-card p {
    max-width: min(36ch, 100%);
  }
}

@media (max-width: 820px) {
  body[data-view="home"].intro-done {
    overflow-y: auto;
  }

  body[data-view="home"].intro-done .view-stage {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  body[data-view="home"].intro-done .home-view {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 76px 18px 138px;
    overflow: visible;
  }

  body[data-view="home"].intro-done .menu-offer {
    min-height: auto;
    gap: 42px;
    padding-bottom: 40px;
  }

  body[data-view="home"].intro-done .home-planetarium {
    height: auto;
    min-height: 760px;
    max-height: none;
    overflow: visible;
    align-content: start;
    justify-items: center;
    gap: 30px;
  }

  body[data-view="home"].intro-done .mini-orbit {
    position: relative;
    display: grid;
    width: min(100%, 330px);
    grid-template-columns: repeat(2, minmax(118px, 1fr));
    gap: 16px;
    margin-top: 20px;
    aspect-ratio: auto;
    transform: none;
  }

  body[data-view="home"].intro-done .mini-planet {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 76px;
    padding: 10px;
    font-size: 0.64rem;
    transform: none;
  }

  body[data-view="home"].intro-done .mini-planet:hover,
  body[data-view="home"].intro-done .mini-planet:focus-visible,
  body[data-view="home"].intro-done .mini-planet.is-current {
    transform: translateY(-6px) rotate(-4deg) scale(1.04);
  }

  body[data-view="home"].intro-done .portal-footer {
    position: fixed;
    right: 14px;
    bottom: 10px;
    left: 14px;
    display: flex;
    width: auto;
    margin: 0;
    justify-content: flex-end;
  }
}

.material-river a strong,
.blog-card h3,
.story-orb strong {
  transition: color 220ms ease, transform 240ms ease;
}

.material-river a:hover strong,
.material-river a:focus-visible strong,
.blog-card:hover h3,
.blog-card:focus-within h3 {
  color: var(--sun-deep);
  transform: translateX(6px);
}

.story-orb:hover strong,
.story-orb:focus-visible strong,
.story-orb.is-selected strong {
  color: var(--sun-deep);
}

@media (max-width: 820px) {
  
}

/* Zavrsni sloj: otvoreni elementi ostaju otvoreni, zatvoreni oblici su samo krugovi. */
.admin-link,
.detail-pill,
.detail-link,
.blog-card-bottom .text-button,
.soft-actions a,
.soft-actions button,
.text-button,
.category-bar button {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.admin-link,
.detail-pill,
.detail-link {
  position: relative;
  display: inline-flex;
  min-height: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.admin-link {
  color: var(--sun-deep);
  font-size: 0.78rem;
  font-weight: 850;
}

.detail-pill {
  color: var(--sun-deep);
}

.detail-link {
  color: var(--sea);
}

.admin-link::before,
.detail-pill::before,
.detail-link::before {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  content: "";
  background: currentColor;
  opacity: 0.36;
}

.admin-link:hover,
.admin-link:focus-visible,
.detail-link:hover,
.detail-link:focus-visible {
  color: var(--sun-deep);
  background: transparent;
  box-shadow: none;
  transform: translateX(7px);
}

.admin-link:hover::before,
.admin-link:focus-visible::before,
.detail-link:hover::before,
.detail-link:focus-visible::before {
  opacity: 0.82;
}

.detail-copy {
  max-width: 58ch;
}

.detail-copy-text {
  max-height: min(44dvh, 430px);
  overflow-y: auto;
  padding-right: 12px;
  scrollbar-width: thin;
}

.detail-copy-text p + p {
  margin-top: 12px;
}

.post-details {
  margin-top: 18px;
  color: var(--muted);
}

.post-details summary {
  width: fit-content;
  cursor: pointer;
  color: var(--sea);
  font-weight: 800;
}

.post-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
}

.post-links a {
  color: var(--sea);
  font-size: 0.82rem;
  font-weight: 800;
}

.shop-source-card {
  width: min(100%, 760px);
  margin-bottom: 32px;
}

@media (max-width: 820px) {
  .detail-copy-text {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

.detail-media-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.detail-media {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 0;
}

.detail-media img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(0.96);
  box-shadow: 0 16px 30px rgba(31, 143, 136, 0.11);
}

.detail-media figcaption {
  display: grid;
  gap: 4px;
}

.detail-media span,
.map-notes small {
  color: var(--sky);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-media strong,
.map-notes strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.2;
}

.detail-media small,
.map-notes small {
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.42;
  text-transform: none;
}

.detail-map {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 28px;
}

.map-orbit {
  position: relative;
  width: min(100%, 270px);
  aspect-ratio: 1;
  border-radius: 50%;
}

.map-orbit::before,
.map-orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.map-orbit::before {
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(31, 143, 136, 0.16);
}

.map-orbit::after {
  inset: 22%;
  box-shadow: inset 0 0 0 1px rgba(247, 173, 37, 0.22);
}

.map-point {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  display: inline-flex;
  max-width: 116px;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.08;
  transform: translate(-50%, -50%);

}

.map-point i,
.map-notes i {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 10px 22px rgba(31, 143, 136, 0.13);
}

.map-point b {
  font-weight: 850;
}

.map-notes {
  display: grid;
  gap: 12px;
}

.map-notes span {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
}

.map-notes small {
  grid-column: 2;
}

@media (min-width: 821px) {
  body:not([data-view="home"]) .topic-view {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    justify-items: center;
  }

  body:not([data-view="home"]) .topic-view .page-copy {
    position: relative;
    top: auto;
    width: min(100%, 1060px);
    max-width: 1060px;
  }

  body:not([data-view="home"]) .topic-view .page-copy h2 {
    max-width: min(12.5ch, 100%);
    font-size: clamp(3.35rem, 7vw, 5.4rem);
    line-height: 0.98;
  }

  body:not([data-view="home"]) .topic-view .lead {
    max-width: min(64ch, 100%);
    margin-top: 24px;
  }

  body:not([data-view="home"]) .topic-view .orbital-content {
    display: grid;
    width: min(100%, 1060px);
    grid-template-columns: minmax(280px, 0.78fr) minmax(440px, 1.22fr);
    grid-template-areas: "list detail";
    gap: clamp(44px, 5vw, 74px);
    align-items: start;
    margin-top: clamp(12px, 2vh, 28px);
  }

  body:not([data-view="home"]) .topic-view .story-orbit {
    grid-area: list;
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  body:not([data-view="home"]) .topic-view .detail-bubble {
    position: sticky;
    top: 126px;
    grid-area: detail;
    width: 100%;
    max-width: 100%;
    padding-left: 56px;
  }

  body:not([data-view="home"]) .topic-view .detail-bubble h3 {
    max-width: min(13ch, 100%);
    font-size: clamp(2.15rem, 3.6vw, 3.2rem);
  }
}

@media (max-width: 820px) {
  .detail-media {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 13px;
  }

  .detail-media img {
    width: 66px;
    height: 66px;
  }

  .detail-map {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-orbit {
    width: min(100%, 250px);
  }
}

/* Intro and circular menu refinement, September 2026. */
.intro-leaving .intro-stage {
  opacity: 0;
  visibility: hidden;
}

.intro-leaving .earth-stage {
  opacity: 0;
  filter: saturate(1.08) blur(8px);
  transform: translate(-50%, -50%) scale(0.78);
}

.intro-leaving .logo-stage {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.08);
}

.home-view .menu-offer {
  display: none !important;
}

body[data-view="home"].intro-done .home-view {
  min-height: 100dvh;
  padding: 0;
}

.intro-done .intro-stage {
  display: none;
}

body[data-view="home"] .portal-view:not(.home-view) {
  display: none;
}

body[data-view="home"] .home-view::after {
  display: none;
}

.planet-menu {
  background:
    radial-gradient(ellipse 100% 120% at 0% 50%, rgba(247, 173, 37, 0.18) 0%, rgba(255, 235, 196, 0.1) 38%, transparent 68%),
    radial-gradient(ellipse 100% 120% at 100% 50%, rgba(77, 183, 231, 0.15) 0%, rgba(211, 241, 253, 0.09) 40%, transparent 68%),
    linear-gradient(118deg, #fff1d8 0%, #fff9ec 34%, #ffffff 52%, #f1faff 72%, #dff4fc 100%);
  transition: opacity 520ms ease, visibility 520ms ease;
}

.menu-composition {
  position: relative;
  display: grid;
  width: min(980px, 95vw, calc(100dvh - 12px));
  aspect-ratio: 1;
  place-items: center;
  z-index: 2;
  transition: transform 3000ms cubic-bezier(.4, 0, .2, 1);
}

.menu-composition .menu-sun {
  width: 176px;
  height: 176px;
  padding: 30px;
  border: 0;
  cursor: pointer;
}

.menu-composition .menu-sun p {
  font-family: "Modak", "Sora", sans-serif;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0;
}

.menu-composition .planet-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
}

.planet-link {
  width: 164px;
  min-height: 164px;
  padding: 21px;
  transition:
    left 1520ms cubic-bezier(.3, .72, .2, 1),
    top 1520ms cubic-bezier(.3, .72, .2, 1),
    transform 600ms ease,
    background 520ms ease,
    color 520ms ease,
    box-shadow 600ms ease;
}

.planet-link span,
.planet-link strong {
  font-family: "Modak", "Sora", sans-serif;
  font-weight: 400;
  letter-spacing: 0.035em;
}

.planet-link span {
  font-size: 0.9rem;
  line-height: 1;
  letter-spacing: 0.065em;
}

.planet-link strong {
  font-size: 1.16rem;
  line-height: 1.04;
}

.planet-link.tone-sun,
.mini-planet.tone-sun {
  color: #fffdf6;
  background: linear-gradient(145deg, #f7ad25, #df7f0c);
}

.planet-link.tone-sky,
.mini-planet.tone-sky {
  color: #fffdf6;
  background: linear-gradient(145deg, #63c4ef, #4db7e7);
}

.planet-link.tone-sun span,
.planet-link.tone-sky span {
  color: #fffdf6;
}

.planet-menu.is-dialing .planet-link {
  box-shadow: 0 20px 48px rgba(77, 183, 231, 0.18);
  transition: transform 600ms ease, background 520ms ease, color 520ms ease, box-shadow 600ms ease;
}

.menu-balance {
  position: absolute;
  top: -10dvh;
  width: clamp(220px, 28vw, 540px);
  height: 120dvh;
  opacity: 0.62;
  pointer-events: none;
  transition: width 3000ms cubic-bezier(.4, 0, .2, 1), opacity 1800ms ease, transform 3000ms cubic-bezier(.4, 0, .2, 1);
}

.menu-balance-left {
  left: 0;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, rgba(247, 173, 37, 0.28), rgba(247, 173, 37, 0.06));
}

.menu-balance-right {
  right: 0;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(270deg, rgba(77, 183, 231, 0.25), rgba(77, 183, 231, 0.05));
}

.menu-preview {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: min(35vw, 500px);
  padding: clamp(28px, 4vw, 58px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.92);
  left: clamp(24px, 7vw, 120px);
  right: auto;
  transition: opacity 1800ms ease, transform 1800ms cubic-bezier(.4, 0, .2, 1);
}

.menu-preview h2 {
  max-width: 10ch;
  margin: 12px 0 20px;
  font-family: "Modak", "Instrument Serif", serif;
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  font-weight: 400;
  line-height: 0.94;
}

.menu-preview > p:not(.eyebrow) {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.menu-preview a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 28px;
  padding: 0 4px 4px;
  border-bottom: 2px solid currentColor;
  color: var(--sun-deep);
  font-weight: 800;
  text-decoration: none;
}

.planet-menu.preview-left .menu-preview {
  left: clamp(24px, 7vw, 120px);
  transform: translateY(-50%) translateX(-115%) scale(0.96);
}

.planet-menu.preview-right .menu-preview {
  right: auto;
  left: calc(100% - clamp(24px, 7vw, 120px) - min(35vw, 500px));
  transform: translateY(-50%) translateX(115%) scale(0.96);
}

.planet-menu.has-preview .menu-preview {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0) scale(1);
}

.planet-menu.preview-left .menu-composition {
  transform: translateX(min(28vw, 430px)) scale(0.72);
}

.planet-menu.preview-right .menu-composition {
  transform: translateX(max(-28vw, -430px)) scale(0.72);
}

.planet-menu.preview-left .menu-balance-left,
.planet-menu.preview-right .menu-balance-right {
  width: 48vw;
  opacity: 0.92;
}

.planet-menu.preview-tone-sun .menu-preview .eyebrow,
.planet-menu.preview-tone-sun .menu-preview a {
  color: #b86108;
}

.planet-menu.preview-tone-sky .menu-preview .eyebrow,
.planet-menu.preview-tone-sky .menu-preview a {
  color: #177faf;
}

.planet-menu.has-preview .planet-link:not(.is-selected) {
  opacity: 0.58;
}

.planet-menu.has-preview .planet-link.is-selected {
  color: #fffdf6;
  background: var(--tone);
  box-shadow: 0 22px 50px rgba(77, 183, 231, 0.2);
}

.planet-link::before {
  position: absolute;
  inset: -3px;
  content: "";
  border-radius: 50%;
  opacity: 0.28;
  pointer-events: none;

}

.planet-link.tone-sun::before {
  box-shadow: 0 0 0 1px rgba(247, 173, 37, 0.48), 0 0 22px rgba(247, 173, 37, 0.16);
}

.planet-link.tone-sky::before {
  box-shadow: 0 0 0 1px rgba(77, 183, 231, 0.5), 0 0 22px rgba(77, 183, 231, 0.16);
}

@media (max-width: 820px) {
  .planet-menu {
    overflow: hidden;
    padding: 0;
    place-items: center;
  }

  .menu-composition {
    width: min(98vw, 560px, 68dvh);
  }

  .menu-composition .planet-orbit {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    aspect-ratio: 1;
  }

  .menu-composition .planet-orbit::before,
  .menu-composition .planet-orbit::after {
    display: block;
  }

  .menu-composition .menu-sun {
    width: 112px;
    height: 112px;
    padding: 19px;
  }

  .menu-composition .menu-sun p {
    font-size: 0.8rem;
  }

  .menu-composition .planet-link {
    position: absolute;
    left: calc(50% + (var(--x) * 1%));
    top: calc(50% + (var(--y) * 1%));
    width: 80px;
    height: 80px;
    min-height: 80px;
    padding: 8px;
    transform: translate(-50%, -50%);
  }

  .menu-composition .planet-link:hover,
  .menu-composition .planet-link:focus-visible,
  .menu-composition .planet-link.is-selected {
    transform: translate(-50%, -50%) scale(1.05);
  }

  .planet-link span {
    font-size: 0.64rem;
  }

  .planet-link strong {
    font-size: 0.77rem;
    line-height: 1;
  }

  .menu-balance {
    top: -5dvh;
    width: clamp(76px, 25vw, 150px);
    height: 110dvh;
    opacity: 0.5;
  }

  .planet-menu.has-preview .menu-composition {
    transform: translateY(-14dvh) scale(0.62);
  }

  .planet-menu.preview-left .menu-preview,
  .planet-menu.preview-right .menu-preview {
    top: auto;
    right: 20px;
    bottom: 34px;
    left: 20px;
    width: auto;
    padding: 24px;
    text-align: center;
  }

  .planet-menu.preview-left .menu-preview {
    transform: translateX(-115%) scale(0.96);
  }

  .planet-menu.preview-right .menu-preview {
    transform: translateX(115%) scale(0.96);
  }

  .planet-menu.has-preview .menu-preview {
    transform: translateX(0) scale(1);
  }

  .menu-preview h2,
  .menu-preview > p:not(.eyebrow) {
    max-width: 100%;
  }

  .menu-preview h2 {
    margin: 8px 0 12px;
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .menu-preview > p:not(.eyebrow) {
    font-size: 0.86rem;
    line-height: 1.52;
  }

  .menu-preview a {
    min-height: 42px;
    margin-top: 14px;
  }

  .planet-menu.preview-left .menu-balance-left,
  .planet-menu.preview-right .menu-balance-right {
    width: 105vw;
    height: 110dvh;
    opacity: 0.68;
  }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .menu-composition {
    width: min(820px, 90vw, calc(100dvh - 18px));
  }

  .planet-link {
    width: 136px;
    min-height: 136px;
    padding: 16px;
  }

  .planet-link strong {
    font-size: 1.02rem;
  }

  .menu-composition .menu-sun {
    width: 154px;
    height: 154px;
    padding: 26px;
  }

  .planet-menu.preview-left .menu-composition {
    transform: translateX(min(25vw, 260px)) scale(0.68);
  }

  .planet-menu.preview-right .menu-composition {
    transform: translateX(max(-25vw, -260px)) scale(0.68);
  }

  .menu-preview {
    width: min(40vw, 430px);
  }
}

@media (max-width: 375px) {
  .menu-composition {
    width: min(98vw, 64dvh);
  }

  .menu-composition .planet-link {
    width: 70px;
    height: 70px;
    min-height: 70px;
    padding: 6px;
  }

  .planet-link strong {
    font-size: 0.68rem;
  }

  .planet-link span {
    font-size: 0.58rem;
  }

  .menu-composition .menu-sun {
    width: 96px;
    height: 96px;
    padding: 16px;
  }

  .menu-composition .menu-sun p {
    font-size: 0.7rem;
  }

  .planet-menu.has-preview .menu-composition {
    transform: translateY(-16dvh) scale(0.58);
  }

  .planet-menu.preview-left .menu-preview,
  .planet-menu.preview-right .menu-preview {
    right: 14px;
    bottom: 20px;
    left: 14px;
    padding: 18px;
  }

  .menu-preview h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .menu-preview > p:not(.eyebrow) {
    font-size: 0.8rem;
    line-height: 1.44;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {

scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
