:root {
  --bg: #f8f3fb;
  --bg-soft: #fdf9ff;
  --text: #25193f;
  --muted: #726688;
  --violet: #9f6dff;
  --pink: #e5a9ff;
  --blue: #8dd6ff;
  --line: rgba(75, 52, 120, 0.12);
  --shadow: 0 30px 60px rgba(88, 60, 140, 0.08);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 18%, rgba(229, 169, 255, 0.34), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(141, 214, 255, 0.28), transparent 32%),
    radial-gradient(circle at 70% 82%, rgba(255, 190, 225, 0.32), transparent 34%),
    linear-gradient(135deg, #fff8fb 0%, #f7efff 28%, #eef8ff 52%, #fff1fa 78%, #fffaf2 100%);
  font-family: "Inter", sans-serif;
}

body.menu-open,
body.modal-open,
body.world-rebuild-active {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

/* HEADER */

.journal-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 28px 6vw;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  transition: 0.35s ease;
}

.journal-header.is-scrolled,
.journal-header.is-open {
  padding-block: 20px;
  background: rgba(255, 250, 255, 0.42);
  box-shadow: 0 18px 50px rgba(80, 55, 120, 0.08);
}

.brand {
  position: relative;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: max-content;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.28em;
}

.brand span {
  font-size: 9px;
  letter-spacing: 0.46em;
  opacity: 0.55;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 52px;
}

.main-nav a {
  position: relative;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.76;
  transition: 0.35s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 1px;
  background: var(--violet);
  transition: 0.35s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--violet);
  opacity: 1;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.header-actions {
  position: relative;
  z-index: 1002;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: 0.35s ease;
}

.header-button:hover {
  transform: translateY(-2px);
}

.header-button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

/* THEME SWITCHER */

.vibe-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(
      135deg,
      rgba(22, 14, 42, 0.72),
      rgba(22, 14, 42, 0.38)
    );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 34px rgba(60, 35, 100, 0.16);
}

.vibe-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 32px;
  padding: 0 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  color: #fff9ff;
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: 0.35s ease;
}

.vibe-btn span {
  position: relative;
  z-index: 2;
}

.vibe-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.82;
  transition: 0.35s ease;
}

.vibe-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.48);
}

.vibe-violet {
  color: #281842;
}

.vibe-violet::before {
  background: linear-gradient(135deg, #dac5ff, #7fcfff, #f29be6);
}

.vibe-bold {
  color: #fdf7ff;
}

.vibe-bold::before {
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #102419, #126d58 58%, #8b6a44);
}

.vibe-nude {
  color: #4d362e;
}

.vibe-nude::before {
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.62), transparent 34%),
    linear-gradient(135deg, #fff7ef, #e4cfc2, #f9f2eb);
}

.mobile-vibe-block {
  display: none;
}

/* MENU */

.menu-toggle {
  position: relative;
  z-index: 1002;
  display: none;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(160, 110, 255, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.62), transparent 30%),
    rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--text);
  transition: 0.35s ease;
}

.menu-toggle span:first-child {
  top: 23px;
}

.menu-toggle span:last-child {
  top: 34px;
}

.menu-toggle.is-active span:first-child {
  top: 29px;
  transform: rotate(45deg);
}

.menu-toggle.is-active span:last-child {
  top: 29px;
  transform: rotate(-45deg);
}

.burger-menu {
  position: absolute;
  z-index: 1004;
  top: calc(100% + 14px);
  right: 6vw;
  width: min(430px, calc(100vw - 44px));
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 255, 255, 0.72), transparent 9rem),
    radial-gradient(circle at 8% 18%, rgba(229, 169, 255, 0.38), transparent 12rem),
    radial-gradient(circle at 92% 88%, rgba(141, 214, 255, 0.3), transparent 13rem),
    linear-gradient(135deg, rgba(255, 252, 255, 0.88), rgba(246, 234, 255, 0.68));
  backdrop-filter: blur(34px) saturate(1.2);
  -webkit-backdrop-filter: blur(34px) saturate(1.2);
  box-shadow:
    0 34px 90px rgba(88, 60, 140, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px) scale(0.96);
  transform-origin: top right;
  transition:
    opacity 0.36s ease,
    transform 0.36s ease;
}

.burger-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.44), transparent 34%),
    radial-gradient(circle at 42% 30%, rgba(255, 255, 255, 0.28), transparent 11rem);
  opacity: 0.76;
}

.burger-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.burger-menu a {
  position: relative;
  z-index: 2;
  display: block;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(78, 54, 120, 0.12);
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: 42px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: 0.3s ease;
}

.burger-menu a:last-of-type {
  border-bottom: 0;
}

.burger-menu a:hover,
.burger-menu a.active {
  color: var(--violet);
  transform: translateX(8px);
}

.mobile-vibe-block {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.62), transparent 6rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.22));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 18px 44px rgba(88, 60, 140, 0.1);
}

.mobile-vibe-block p {
  margin: 0 0 12px;
  color: rgba(37, 25, 63, 0.58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mobile-vibe-switcher {
  width: 100%;
  justify-content: space-between;
  background: rgba(22, 14, 42, 0.62);
}

.mobile-vibe-switcher .vibe-btn {
  flex: 1;
  min-width: 0;
}

/* HERO */

.journal-hero {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  min-height: 820px;
  padding: 170px 6vw 120px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 32%, rgba(255, 255, 255, 0.75), transparent 22%),
    radial-gradient(circle at 78% 54%, rgba(141, 214, 255, 0.24), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(229, 169, 255, 0.26), transparent 28%),
    linear-gradient(120deg, rgba(255, 248, 252, 0.92), rgba(243, 235, 255, 0.78), rgba(238, 249, 255, 0.86));
}

.hero-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  height: 100%;
}

.hero-rail i {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, transparent, rgba(110, 80, 170, 0.25), transparent);
}

.hero-rail b {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(700px, 100%);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--violet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(72px, 8vw, 122px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero-content h1 em,
.footer-left em {
  color: var(--violet);
  font-style: italic;
}

.hero-description {
  width: min(420px, 100%);
  margin: 36px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-link span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.hero-crystals {
  position: absolute;
  right: 4vw;
  top: 135px;
  width: min(480px, 34vw);
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
  filter:
    drop-shadow(0 28px 42px rgba(150, 100, 220, 0.16))
    saturate(1.14)
    brightness(1.04);
}

.hero-glow {
  position: absolute;
  right: 2%;
  top: 18%;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.42), transparent 28%),
    radial-gradient(circle, rgba(229, 169, 255, 0.28), transparent 58%),
    radial-gradient(circle, rgba(141, 214, 255, 0.22), transparent 72%);
  filter: blur(36px);
  pointer-events: none;
}

/* CONTENT */

.journal-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 80px;
  padding: 70px 6vw 120px;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.42), transparent 26%),
    radial-gradient(circle at 92% 10%, rgba(229, 169, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
}

.manifesto {
  padding-right: 40px;
  border-right: 1px solid var(--line);
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 30px;
}

.article-meta span,
.article-meta time {
  color: var(--violet);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.manifesto h2 {
  margin: 0 0 40px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(42px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1;
}

.manifesto p {
  margin: 0 0 28px;
  color: #4c4260;
  font-size: 16px;
  line-height: 2;
}

/* MEANING PANEL */

.meaning-panel h3 {
  margin: 0 0 34px;
  color: var(--violet);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.meaning-card {
  width: 100%;
  display: grid;
  grid-template-columns: 96px 1fr 24px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  margin-bottom: 18px;
  border-radius: 24px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.26));
  border: 1px solid rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition: 0.4s ease;
}

.meaning-card:hover {
  transform: translateY(-6px);
}

.meaning-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 18px;
}

.meaning-card span {
  color: var(--violet);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.meaning-card p {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.meaning-card b {
  color: var(--violet);
}

/* THREE WORLDS */

.three-worlds {
  position: relative;
  padding: 120px 6vw 180px;
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 75%, rgba(141, 214, 255, 0.2), transparent 30%),
    radial-gradient(circle at 92% 76%, rgba(229, 169, 255, 0.24), transparent 30%),
    linear-gradient(180deg, rgba(255, 248, 255, 0.7), rgba(245, 239, 255, 0.56));
}

.world-question {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto 26px;
  padding: 18px 28px;
  border-radius: 999px;
  border: 1px solid rgba(160, 110, 255, 0.22);
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.35s ease;
}

.world-question:hover {
  transform: translateY(-3px);
}

.world-question span {
  font-size: 22px;
  color: var(--violet);
  transition: 0.35s ease;
}

.world-question.is-open span {
  transform: rotate(90deg);
}

.world-answer {
  max-width: 860px;
  max-height: 0;
  overflow: hidden;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  text-align: center;
  transition: max-height 0.7s ease;
}

.world-answer.is-open {
  max-height: 620px;
}

.center {
  text-align: center;
}

.three-worlds h2 {
  margin: 0 auto 70px;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.05;
  max-width: 780px;
}

.world-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.world-card {
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}

.world-card:hover {
  transform: translateY(-8px);
  border-color: rgba(160, 110, 255, 0.28);
  box-shadow: 0 34px 80px rgba(88, 60, 140, 0.14);
}

.world-image-link {
  position: relative;
  display: block;
  overflow: hidden;
}

.world-image-link::after {
  content: "View mockup";
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--violet);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.world-image-link img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.world-card:hover .world-image-link img {
  transform: scale(1.045);
}

.world-info {
  position: relative;
  z-index: 2;
  padding: 30px;
}

.world-info span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--violet);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.world-info h3 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 38px;
  font-weight: 400;
}

.world-info p {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.8;
}

.world-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.world-open,
.world-mockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(160, 110, 255, 0.22);
  background: rgba(255, 255, 255, 0.48);
  color: var(--text);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.35s ease;
}

.world-open {
  color: var(--violet);
}

.world-open span {
  margin: 0;
  font-size: 16px;
  line-height: 1;
}

.world-open:hover,
.world-mockup:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.68);
}

.worlds-crystal-left {
  position: absolute;
  left: -8vw;
  bottom: -120px;
  width: 420px;
  opacity: 0.9;
  pointer-events: none;
}

.worlds-crystal-right {
  position: absolute;
  right: -8vw;
  bottom: -120px;
  width: 420px;
  transform: scaleX(-1);
  opacity: 0.9;
  pointer-events: none;
}

/* STORY MODAL */

.story-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 34px;
  opacity: 0;
  pointer-events: none;
  transition: 0.45s ease;
}

.story-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.story-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 40, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.story-dialog {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  width: min(1120px, 100%);
  max-height: 88vh;
  overflow: hidden;
  border-radius: 38px;
  background:
    radial-gradient(circle at 90% 20%, rgba(229, 169, 255, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.36));
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 40px 120px rgba(30, 20, 60, 0.28);
  transform: translateY(30px) scale(0.96);
  transition: 0.45s ease;
}

.story-modal.is-open .story-dialog {
  transform: translateY(0) scale(1);
}

.story-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.64);
  color: var(--violet);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.story-image {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.story-content {
  overflow-y: auto;
  padding: 70px 58px;
}

.story-kicker {
  margin: 0 0 18px;
  color: var(--violet);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.story-content h2 {
  margin: 0 0 34px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(42px, 4vw, 70px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.story-text p {
  margin: 0 0 24px;
  color: #4c4260;
  font-size: 16px;
  line-height: 1.95;
}

/* FOOTER */

.journal-footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 220px 240px;
  gap: 80px;
  padding: 110px 6vw 70px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  background:
    radial-gradient(circle at top right, rgba(180, 140, 255, 0.2), transparent 26%),
    radial-gradient(circle at bottom left, rgba(120, 220, 255, 0.18), transparent 30%),
    radial-gradient(circle at 48% 20%, rgba(255, 190, 225, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.24));
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.footer-left h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  line-height: 0.95;
}

.footer-nav,
.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-nav a,
.footer-socials a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-socials {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-crystals {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 320px;
  opacity: 0.82;
  pointer-events: none;
}

.footer-bottom {
  position: absolute;
  left: 6vw;
  right: 6vw;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-bottom a {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* WORLD REBUILD TRANSITION */

.world-rebuild {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  color: #fff9ff;
  background:
    radial-gradient(circle at 50% 50%, rgba(185, 162, 255, 0.5), transparent 20rem),
    rgba(7, 4, 18, 0.92);
  transition: opacity 0.45s ease;
}

.world-rebuild.is-active {
  opacity: 1;
}

.world-rebuild::before,
.world-rebuild::after {
  content: "";
  position: absolute;
  inset: -12%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(900px) rotateX(62deg) scale(1.4);
  opacity: 0;
  animation: rebuildGrid 3.4s ease forwards;
}

.world-rebuild::after {
  background-size: 28px 28px;
  filter: blur(1px);
  animation-delay: 0.2s;
}

.world-rebuild__panel {
  position: relative;
  z-index: 4;
  width: min(560px, calc(100% - 44px));
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.16), transparent 12rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(34px) scale(0.94);
  opacity: 0;
  animation: rebuildPanel 3.4s ease forwards;
}

.world-rebuild__kicker {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.world-rebuild__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 400;
  line-height: 0.92;
}

.world-rebuild__title em {
  color: #b9a2ff;
  font-style: italic;
}

.world-rebuild__line {
  position: relative;
  height: 1px;
  margin: 28px 0 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.world-rebuild__line span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #b9a2ff, #8fd8ff, transparent);
  transform: translateX(-100%);
  animation: rebuildLine 2.5s ease 0.35s forwards;
}

.world-rebuild__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.world-rebuild__pieces {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.world-rebuild__pieces span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: rgba(185, 162, 255, 0.72);
  box-shadow: 0 0 22px rgba(185, 162, 255, 0.5);
  opacity: 0;
  animation: rebuildPiece 3.2s ease forwards;
}

.world-rebuild__pieces span:nth-child(1) { left: 10%; top: 18%; animation-delay: 0.1s; }
.world-rebuild__pieces span:nth-child(2) { left: 22%; top: 72%; animation-delay: 0.24s; }
.world-rebuild__pieces span:nth-child(3) { left: 36%; top: 28%; animation-delay: 0.38s; }
.world-rebuild__pieces span:nth-child(4) { left: 52%; top: 78%; animation-delay: 0.52s; }
.world-rebuild__pieces span:nth-child(5) { left: 68%; top: 18%; animation-delay: 0.66s; }
.world-rebuild__pieces span:nth-child(6) { left: 84%; top: 64%; animation-delay: 0.8s; }
.world-rebuild__pieces span:nth-child(7) { left: 14%; top: 48%; animation-delay: 0.94s; }
.world-rebuild__pieces span:nth-child(8) { left: 74%; top: 42%; animation-delay: 1.08s; }

.world-rebuild.to-bold {
  background:
    radial-gradient(circle at 70% 40%, rgba(0, 255, 185, 0.16), transparent 22rem),
    radial-gradient(circle at 30% 60%, rgba(185, 118, 48, 0.16), transparent 24rem),
    rgba(2, 8, 6, 0.96);
}

.world-rebuild.to-bold .world-rebuild__title em {
  color: #20ffc0;
}

.world-rebuild.to-bold .world-rebuild__line span,
.world-rebuild.to-bold .world-rebuild__pieces span {
  background: linear-gradient(90deg, #13b782, #d4a04f);
  box-shadow: 0 0 24px rgba(24, 255, 185, 0.46);
}

.world-rebuild.to-nude {
  color: #2f241f;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.72), transparent 18rem),
    radial-gradient(circle at 70% 75%, rgba(199, 142, 130, 0.28), transparent 24rem),
    rgba(246, 229, 218, 0.94);
}

.world-rebuild.to-nude .world-rebuild__panel {
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.5), transparent 12rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.24));
  border-color: rgba(255, 255, 255, 0.78);
}

.world-rebuild.to-nude .world-rebuild__kicker,
.world-rebuild.to-nude .world-rebuild__text {
  color: rgba(47, 36, 31, 0.66);
}

.world-rebuild.to-nude .world-rebuild__title em {
  color: #c78e82;
}

.world-rebuild.to-nude .world-rebuild__line span,
.world-rebuild.to-nude .world-rebuild__pieces span {
  background: linear-gradient(90deg, #f2d8c9, #c78e82);
  box-shadow: 0 0 24px rgba(199, 142, 130, 0.42);
}

@keyframes rebuildGrid {
  0% {
    opacity: 0;
    transform: perspective(900px) rotateX(68deg) translateY(120px) scale(1.65);
  }

  35% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: perspective(900px) rotateX(54deg) translateY(-160px) scale(1.05);
  }
}

@keyframes rebuildPanel {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.94);
    filter: blur(12px);
  }

  24%,
  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-26px) scale(1.03);
    filter: blur(10px);
  }
}

@keyframes rebuildLine {
  0% {
    transform: translateX(-100%);
  }

  62%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes rebuildPiece {
  0% {
    opacity: 0;
    transform: translate3d(0, 80px, 0) rotate(0deg) scale(0.2);
  }

  24% {
    opacity: 1;
  }

  72% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
    transform: translate3d(0, -160px, 0) rotate(260deg) scale(1.4);
  }
}

/* REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1200px) {
  .journal-content {
    grid-template-columns: 1fr;
  }

  .manifesto {
    border-right: 0;
    padding-right: 0;
  }

  .world-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-inline: auto;
  }

  .journal-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .journal-header {
    grid-template-columns: auto auto;
    padding: 22px 28px;
  }

  .main-nav,
  .header-button,
  .desktop-vibe-switcher {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-vibe-block {
    display: block;
  }

  .journal-hero {
    grid-template-columns: 1fr;
  }

  .hero-rail {
    display: none;
  }

  .hero-content h1 {
    font-size: 68px;
  }

  .hero-crystals {
    width: 56vw;
    right: -4vw;
    top: 220px;
  }
}

@media (max-width: 760px) {
  .journal-header {
    padding: 20px 22px;
  }

  .brand {
    font-size: 16px;
  }

  .menu-toggle {
    width: 58px;
    height: 58px;
  }

  .burger-menu {
    right: 22px;
    width: min(370px, calc(100vw - 44px));
    padding: 26px;
  }

  .burger-menu a {
    font-size: 42px;
  }

  .mobile-vibe-block {
    padding: 16px;
  }

  .mobile-vibe-switcher {
    gap: 6px;
  }

  .mobile-vibe-switcher .vibe-btn {
    height: 34px;
    padding-inline: 8px;
    font-size: 8px;
  }

  .journal-hero {
    min-height: 680px;
    padding: 140px 22px 80px;
  }

  .hero-content h1 {
    font-size: clamp(54px, 15vw, 68px);
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-crystals {
    width: 64vw;
    opacity: 0.48;
  }

  .journal-content {
    padding: 34px 22px 90px;
  }

  .article-meta {
    gap: 12px;
  }

  .manifesto h2 {
    font-size: 42px;
  }

  .manifesto p {
    font-size: 15px;
    line-height: 1.9;
  }

  .meaning-card {
    grid-template-columns: 80px 1fr 20px;
  }

  .meaning-card img {
    width: 80px;
    height: 80px;
  }

  .three-worlds {
    padding: 90px 22px 140px;
  }

  .world-question {
    width: 100%;
    justify-content: center;
    text-align: left;
    font-size: 10px;
    line-height: 1.5;
  }

  .three-worlds h2 {
    margin-bottom: 46px;
  }

  .world-image-link img {
    height: 250px;
  }

  .world-info {
    padding-inline: 24px;
  }

  .world-info h3 {
    font-size: 34px;
  }

  .story-modal {
    padding: 18px;
  }

  .story-dialog {
    grid-template-columns: 1fr;
    overflow-y: auto;
    max-height: 90vh;
    border-radius: 28px;
  }

  .story-image {
    min-height: 260px;
    height: 260px;
  }

  .story-content {
    padding: 42px 28px;
  }

  .journal-footer {
    padding: 80px 22px 100px;
  }

  .footer-bottom {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 60px;
    flex-direction: column;
    gap: 16px;
  }
}