 

:root {
  --color-primary: #111111;
  --color-secondary: #565656;
  --color-bg: #FFFFFF;

  --color-border: #E8E5E1;
  --color-btn-bg: #111111;
  --color-btn-text: #FFFFFF;

  --color-accent-gold: #B8923F;
  --color-accent-green: #3F5A3A;

  --font-display: 'Cormorant Garamond', 'Playfair Display', serif;
  --font-sans: 'Montserrat', sans-serif;

  --header-height: 92px;
  --header-height-tablet: 82px;
  --header-height-mobile: 72px;

  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

.worlds-header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100% !important;
  padding: 0 20px;
}

/* ---------- Logo mark ---------- */

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #E7CD8C;
}

.logo-word {
  font-family: 'Italiana', var(--font-display);
  font-size: 22px;
  letter-spacing: 7px;
  color: #E7CD8C;
}

.logo-butterfly {
  width: 20px;
  height: 15px;
}

/* ---------- Header toggle: MENU label + circular hamburger ---------- */

.header-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffffff;
}

.worlds-header .hamburger {
  display: flex;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(231, 205, 140, 0.4);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: border-color 0.35s var(--ease-premium), background 0.35s var(--ease-premium);
}

.worlds-header .hamburger span {
  width: 14px;
}

.worlds-header .hamburger:hover {
  border-color: #E7CD8C;
  background: rgba(231, 205, 140, 0.08);
}

.desktop-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  min-width: 220px;
  padding: 18px 0;
  background: rgba(8, 20, 12, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 146, 63, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease-premium), transform 0.35s var(--ease-premium), visibility 0.35s;
  z-index: 50;
}

.desktop-dropdown-list {
  display: flex;
  flex-direction: column;
}

.desktop-dropdown-link {
  display: block;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  border-left: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease, padding-left 0.3s ease;
}

.desktop-dropdown-link:hover,
.desktop-dropdown-link:focus-visible,
.desktop-dropdown-link.is-current {
  color: #E7CD8C;
  border-left-color: #E7CD8C;
  padding-left: 34px;
}

@media (hover: hover) and (pointer: fine) {
  .header-toggle:hover .desktop-dropdown,
  .header-toggle:focus-within .desktop-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .desktop-dropdown { display: none; }
  .menu-label { display: none; }
}

/* ---------- Worlds hero shell ---------- */

.worlds-hero {
  --footer-h: 40px;
  position: relative;
  width: 100%;
  background: #071009;
  overflow: hidden;
}

.worlds-container,
.worlds-frame-row {
  width: 100%;
  height: 100%;
}

/* Header is an absolute overlay (see style-butterfly.css .site-header),
   so the frame runs edge-to-edge from the very top of the viewport,
   same full-bleed treatment as the home page .hero-frame. Only the
   footer bar claims real layout height. */
.worlds-frame {
  position: relative;
  width: 100%;
  height: calc(100svh - var(--footer-h));
  min-height: 560px;
  overflow: hidden;
}

/* Fills the frame completely — no letterboxing. The image crops via
   object-fit: cover, same pattern as the home hero (.hero-img). Hotspot
   positions are recalculated in JS (positionWorldNodes) to track
   whatever part of the artwork stays visible after the crop. */
.worlds-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  line-height: 0;
}

.worlds-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Scale up to hide the blur's own soft edges. Kept fairly bright and
     saturated on purpose — the artwork's wings carry a lot of color
     (blue, gold, purple), and too much darken/blur crushes that down
     to a flat near-black wash that reads as a solid patch rather than
     a soft echo of the image. This keeps enough of that color and
     shape visible to look intentional. 
  transform: scale(1.2);
  filter: blur(22px) brightness(0.85) saturate(1.35);
  z-index: 0;
  user-select: none;*/
}

.worlds-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  /* Always contain, never cover. Contain can never crop the source
     image, on any aspect ratio, so all five sigils are guaranteed
     visible at all times — no JS-computed threshold deciding whether
     to switch modes, nothing that can get that decision wrong. The
     blurred .worlds-hero-bg layer behind it fills whatever letterbox
     gap this leaves. JS only needs to place the world-node dots to
     match this same contain geometry (see main-worlds.js). */
  object-fit: contain;
  object-position: center;
  user-select: none;
  position: relative;
  z-index: 1;
}

.worlds-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 45%, rgba(4, 10, 6, 0.35) 100%),
    linear-gradient(to bottom, rgba(4,10,6,0.28) 0%, transparent 18%, transparent 82%, rgba(4,10,6,0.32) 100%);
}

/* ---------- Page intro (left-aligned) ---------- */

.worlds-intro {
  position: absolute;
  top: 35%;
  left: 6%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 360px;
  pointer-events: none;
}

.worlds-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 400;
  letter-spacing: 1.5px;
  color: #F3E3B4;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

/* Scrim so the left copy always reads over the artwork/background,
   whatever the source image looks like. */
.worlds-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 44%;
  background: linear-gradient(90deg, rgba(4,10,6,0.72) 0%, rgba(4,10,6,0.34) 62%, transparent 100%);
  pointer-events: none;
}

.worlds-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin-bottom: 20px;
}

.worlds-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.05;
  letter-spacing: 2px;
  color: #F6ECD4;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
  text-transform: uppercase;
  
}

.worlds-heading span { display: block; }

.worlds-rule {
  display: block;
  width: 74px;
  height: 1px;
  margin: 24px 0 18px;
  background: linear-gradient(90deg, rgba(231,205,140,0.9) 0%, rgba(231,205,140,0) 100%);
}

.worlds-sub {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13.5px;
  letter-spacing: 0.6px;
  color: #C9BEA9;
}

/* ---------- World nodes layout ---------- */

.world-nodes {
  position: absolute;
  inset: 0;
  z-index: 6;
}

.world-nodes-row {
  height: 100%;
}

.world-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 12%;
  aspect-ratio: 1 / 1;
  min-width: 56px;
  transform: translate(-50%, -50%);
  text-decoration: none;
  cursor: pointer;
}

.world-node::before {
  content: '';
  position: absolute;
  inset: 12%;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4, 10, 6, 0.42) 0%, rgba(4, 10, 6, 0.18) 55%, transparent 78%);
}

.world-node--top      { top: 9.5%;  left: 51%; }
.world-node--left     { top: 34.5%; left: 25%; }
.world-node--right    { top: 34.5%; left: 78%; }
.world-node--infinity { top: 66%;   left: 36.5%; }
.world-node--global   { top: 66%;   left: 66.5%; }

.world-node-ring {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(231, 205, 140, 0);
  transition: box-shadow 0.85s var(--ease-premium);
}
.world-node:hover .world-node-ring,
.world-node:focus-visible .world-node-ring {
  box-shadow: 0 0 28px 6px rgba(231, 205, 140, 0.45),
              0 0 60px 14px rgba(231, 205, 140, 0.18);
}
.world-node.is-touched .world-node-ring {
  box-shadow: 0 0 28px 6px rgba(231, 205, 140, 0.45),
              0 0 60px 14px rgba(231, 205, 140, 0.18);
}

.ring-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ring-track,
.ring-draw {
  fill: none;
  cx: 80;
  cy: 80;
  r: 70;
}

.ring-track {
  stroke: rgba(231, 205, 140, 0.16);
  stroke-width: 1;
}

.ring-draw {
  stroke: #E7CD8C;
  stroke-width: 1.4;
  stroke-linecap: round;
  transform-origin: 80px 80px;
  transform: rotate(-90deg);
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  filter: drop-shadow(0 0 6px rgba(231, 205, 140, 0.55));
  transition: stroke-dashoffset 0.85s var(--ease-premium);
}

.world-node-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(12px, 1.9vw, 30px);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 1px;
  color: #F3E3B4;
  background: linear-gradient(180deg, #FDEFC7 0%, #E7CD8C 55%, #B8923F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s var(--ease-premium), letter-spacing 0.4s ease, filter 0.4s ease;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 90%;
}

.world-node:hover .world-node-label,
.world-node:focus-visible .world-node-label {
  filter: brightness(1.15) drop-shadow(0 0 10px rgba(231, 205, 140, 0.5));
}

.world-node-enter {
  position: relative;
  z-index: 2;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: clamp(6px, 0.75vw, 11px);
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
  white-space: nowrap;
}

.world-node-enter::after {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto 0;
  background: #E7CD8C;
  opacity: 0.8;
}

.world-node:hover .ring-draw,
.world-node:focus-visible .ring-draw,
.world-node.is-touched .ring-draw {
  stroke-dashoffset: 0;
}

.world-node:hover .world-node-label,
.world-node:focus-visible .world-node-label {
  letter-spacing: 3px;
  transform: translateY(-4px);
}

.world-node:hover .world-node-enter,
.world-node:focus-visible .world-node-enter,
.world-node.is-touched .world-node-enter {
  opacity: 1;
  transform: translateY(0);
}

.world-node:focus-visible {
  outline: none;
}

.world-node:active .world-node-ring,
.world-node.is-touched .world-node-ring {
  transform: scale(0.96);
  transition: transform 0.15s ease, box-shadow 0.85s var(--ease-premium);
}

@media (prefers-reduced-motion: reduce) {
  .ring-draw,
  .world-node-label,
  .world-node-enter {
    transition: none !important;
  }
}

@media (max-width: 767px) {
  .worlds-hero { --footer-h: 56px; }
  .worlds-frame { height: calc(100svh - var(--footer-h)); min-height: 460px; }

  .worlds-frame::before {
    width: 100%;
    height: 46%;
    background: linear-gradient(to bottom, rgba(4,10,6,0.82) 0%, rgba(4,10,6,0.4) 75%, transparent 100%);
  }

  .worlds-intro {
    top: 4%;
    left: 0;
    right: 0;
    transform: none;
    align-items: center;
    text-align: center;
    max-width: none;
    padding: 0 24px;
  }

  .worlds-eyebrow { font-size: 9.5px; letter-spacing: 2.6px; margin-bottom: 12px; }
  .worlds-heading { font-size: 30px; letter-spacing: 1px; }
  .worlds-rule { margin: 16px auto 12px; }
  .worlds-sub { font-size: 12px; }
  .worlds-tagline { font-size: 15px; }

  .world-node { min-width: 46px; }
}

@media (max-width: 420px) {
  .world-node { min-width: 40px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: #071009;
  border-top: 1px solid rgba(184, 146, 63, 0.2);
  height: 40px;
  display: flex;
  align-items: center;
}

.site-footer .container-fluid {
  max-width: 1600px;
  padding: 0 20px;
}

.footer-bottom-row {
  align-items: center;
  flex-wrap: nowrap;
}

.footer-copy,
.footer-powered {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}

.footer-copy p,
.footer-powered p {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.4px;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
}

.footer-powered {
  margin-left: auto;
}

@media (max-width: 767px) {
  .site-footer { height: 56px; }
  .footer-bottom-row { flex-wrap: wrap; row-gap: 4px; }
  .footer-copy p,
  .footer-powered p { font-size: 10.5px; }
}

@media (hover: hover) and (pointer: fine) {
  .header-toggle:hover .desktop-dropdown,
  .header-toggle:has(:focus-visible) .desktop-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
