@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500&family=Share+Tech+Mono&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --fire: #e05a4a;
  --water: #4a90c4;
  --earth: #5aaa6e;
  --air: #8fa8bb;
  --ether: #E8640A;
  --accent: #E8640A;
  --bg: #06060a;
  --text: #f4f1ec;
  --text-dim: rgba(244, 241, 236, 0.68);
  --text-faint: rgba(244, 241, 236, 0.38);
  --text-ghost: rgba(244, 241, 236, 0.18);
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  width: 100%;
  max-width: 100vw;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  width: 100%;
  max-width: 100vw;
  text-transform: lowercase;
  position: relative;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.1rem 2.2rem;
  background: linear-gradient(to bottom, rgba(6, 6, 10, 0.97) 0%, rgba(6, 6, 10, 0) 100%);
}

.nav-logo {
  position: absolute;
  left: 2.2rem;
  top: 20px;
  z-index: 101;
  display: flex;
  align-items: flex-start;
  text-decoration: none;
}

.nav-logo img {
  height: 58px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-decoration: none;
  text-transform: lowercase;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-sep {
  font-size: 1.6rem;
  color: rgba(244, 241, 236, 0.18);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-dim);
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 10, 0.97);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-decoration: none;
  text-transform: lowercase;
  transition: color 0.3s;
}

.nav-overlay a:hover {
  color: var(--accent);
}

.nav-overlay-logo {
  display: block;
  margin-bottom: 0.5rem;
  line-height: 0;
}

.nav-overlay-logo img {
  height: 56px;
  width: auto;
  display: block;
  margin: 0 auto;
  mix-blend-mode: screen;
  filter: contrast(1.4) brightness(1.1);
}

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 72vh;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 5vw 0;
  display: block;
}

.hero-flex {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1.2rem, 3.6vw, 3.4rem);
  width: 100%;
  min-height: clamp(640px, 78vh, 860px);
  padding-bottom: 60px;
  position: relative;
  z-index: 3;
}

.hero-img {
  position: relative;
  width: clamp(350px, 37vw, 540px);
  max-width: 540px;
  height: auto;
  max-height: 84vh;
  object-fit: contain;
  object-position: center bottom;
  z-index: 1;
  order: 2;
  align-self: flex-end;
  flex-shrink: 0;
  display: block;
  --moon-lift: 0;
  filter:
    brightness(calc(0.68 + 0.32 * var(--moon-lift))) saturate(calc(0.92 + 0.18 * var(--moon-lift))) drop-shadow(0 0 calc(18px * var(--moon-lift)) rgba(255, 240, 190, calc(0.35 * var(--moon-lift))));
  transition: filter 0.1s linear;
  mix-blend-mode: normal;
  pointer-events: none;
  margin: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to right, rgba(6, 6, 10, 0.88) 0%, rgba(6, 6, 10, 0.75) 30%, rgba(6, 6, 10, 0.1) 60%, rgba(6, 6, 10, 0) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: clamp(5rem, 10vh, 8.5rem) 0 clamp(1.8rem, 3.4vh, 3rem);
  flex: 0 1 clamp(430px, 38vw, 560px);
  min-width: 0;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.2vh, 1.5rem);
  align-items: flex-start;
  align-self: flex-end;
  margin: 0;
}

.hero-scroll {
  display: contents;
}

.hero-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 2.4vw, 2.1rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.82;
  color: var(--text-dim);
  border-left: none;
  padding-left: 0;
  border-right: 0.5px solid rgba(232, 100, 10, 0.5);
  padding-right: 1.5rem;
  text-align: left;
}

.hero-quote cite {
  display: block;
  margin-top: 0.9rem;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  letter-spacing: 0.16em;
  font-style: normal;
  font-weight: 200;
  color: var(--text-faint);
  text-align: left;
}

.hero-spine {
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  font-weight: 200;
  letter-spacing: 0.15em;
  line-height: 1.4;
  color: var(--accent);
  cursor: pointer;
  min-height: 4.2em;
  text-align: left;
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 27ch;
}

.hero-spine.glitching {
  animation: spine-glitch 0.08s steps(1) infinite;
}

@keyframes spine-glitch {

  0%,
  100% {
    text-shadow:
      1px 0 0 rgba(232, 100, 10, 0.8),
      -1px 0 0 rgba(74, 144, 196, 0.6);
  }

  33% {
    text-shadow:
      2px 0 0 rgba(232, 100, 10, 0.6),
      -2px 0 0 rgba(74, 144, 196, 0.75);
  }

  66% {
    text-shadow:
      -1px 1px 0 rgba(232, 100, 10, 0.7),
      1px -1px 0 rgba(74, 144, 196, 0.5);
  }
}

.hero-sticky {
  position: absolute;
  z-index: 7;
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  color: #13110f;
  box-shadow: 3px 4px 12px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.sticky-yellow {
  left: 18%;
  bottom: 26%;
  transform: rotate(-3deg);
  background: #f5e642;
  width: min(240px, 34vw);
  min-height: 160px;
  padding: 1rem 1rem 0.8rem;
}

.sticky-pink {
  right: 13%;
  top: 36%;
  transform: rotate(2deg);
  background: #f5b8c4;
  width: min(220px, 30vw);
  min-height: 120px;
  padding: 1.2rem 1rem;
}

.sticky-head,
.sticky-sign {
  color: var(--accent);
}

.sticky-sign {
  margin-top: 0.6rem;
}

.fridge-note {
  position: absolute;
  left: 5vw;
  right: 5vw;
  bottom: 1.2rem;
  z-index: 6;
  max-width: 740px;
  background: #f5f0e8;
  border-radius: 6px;
  padding: 1rem 1.2rem 1.1rem;
  box-shadow: 3px 4px 12px rgba(0, 0, 0, 0.45);
}

.fridge-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(30, 20, 10, 0.45);
}

.fridge-note p {
  font-size: 0.85rem;
  line-height: 1.55;
  font-weight: 300;
  color: rgba(30, 20, 10, 0.82);
  margin: 0.65rem 0 0.4rem;
  font-style: italic;
}

.fridge-sign {
  font-family: 'Caveat', cursive;
  color: var(--accent);
  font-size: 1.5rem;
}

.hero-cta-shell {
  position: fixed;
  z-index: 25;
  right: 10px;
  bottom: 10px;
  max-width: min(250px, calc(100vw - 20px));
}

/* Mobile-only decorative layer (constellations + pink sticky). Desktop hides. */
.hero-mobile-decor {
  display: none;
}

@media (min-width: 769px) and (max-width: 1023px) {
  #hero {
    min-height: 66vh;
  }

  .hero-flex {
    min-height: clamp(560px, 68vh, 700px);
    gap: clamp(0.9rem, 2.2vw, 1.6rem);
    align-items: flex-end;
  }

  .hero-content {
    flex-basis: clamp(330px, 43vw, 430px);
    max-width: 430px;
    padding: clamp(4.4rem, 8.8vh, 6.2rem) 0 1.2rem;
    gap: 0.85rem;
  }

  .hero-quote {
    font-size: clamp(1.08rem, 1.85vw, 1.35rem);
    line-height: 1.65;
    padding-right: 0.85rem;
  }

  .hero-quote cite {
    font-size: 0.62rem;
  }

  .hero-img {
    width: clamp(300px, 35vw, 430px);
    max-height: 72vh;
  }

  .hero-spine {
    font-size: clamp(1.02rem, 1.65vw, 1.3rem);
    min-height: 2.2em;
    max-width: none;
    width: clamp(620px, 82vw, 900px);
    margin-left: 0;
    margin-top: 0.25rem;
  }
}

.hero-cta {
  display: inline-block;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #0a0a10;
  border-radius: 20px 14px 19px 12px;
  background: var(--accent);
  color: #1e1309;
  font-family: 'Caveat', cursive;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  letter-spacing: 0.03em;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(10, 10, 16, 0.9), 0 2px 6px rgba(0, 0, 0, 0.4);
  animation: cta-bounce 2.5s ease-in-out infinite;
  transition: transform 0.25s ease, filter 0.25s ease, opacity 0.2s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  filter: brightness(1.07);
}

.hero-cta:focus-visible {
  outline: 1px solid rgba(244, 241, 236, 0.7);
  outline-offset: 2px;
}

.hero-cta-caption {
  font-size: 0.65rem;
  letter-spacing: 0.45em;
  color: var(--text-faint);
  margin-top: 0.5rem;
  text-align: center;
}


@keyframes cta-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes cta-hide-peek {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  18% {
    transform: translate(-5px, 2px) rotate(-3deg) scale(0.97);
  }

  36% {
    transform: translate(4px, -2px) rotate(2deg) scale(0.98);
  }

  54% {
    transform: translate(-3px, 1px) rotate(-2deg) scale(0.97);
  }

  72% {
    transform: translate(5px, -1px) rotate(3deg) scale(0.99);
  }
}

@keyframes cta-peek-shake {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  /* peek right + nervous shakes */
  10% {
    transform: translate(24px, -2px) rotate(3deg);
  }

  13% {
    transform: translate(22px, -5px) rotate(-2deg);
  }

  16% {
    transform: translate(24px, -1px) rotate(4deg);
  }

  19% {
    transform: translate(22px, -4px) rotate(-2deg);
  }

  22% {
    transform: translate(24px, -2px) rotate(2deg);
  }

  /* duck back behind */
  32% {
    transform: translate(0, 1px) rotate(0deg);
  }

  /* brief pause */
  44% {
    transform: translate(0, 0) rotate(0deg);
  }

  /* peek left + nervous shakes */
  54% {
    transform: translate(-24px, -2px) rotate(-3deg);
  }

  57% {
    transform: translate(-22px, -5px) rotate(2deg);
  }

  60% {
    transform: translate(-24px, -1px) rotate(-4deg);
  }

  63% {
    transform: translate(-22px, -4px) rotate(2deg);
  }

  66% {
    transform: translate(-24px, -2px) rotate(-2deg);
  }

  /* duck back */
  76% {
    transform: translate(0, 1px) rotate(0deg);
  }

  /* small final peek */
  86% {
    transform: translate(16px, -2px) rotate(2deg);
  }

  90% {
    transform: translate(14px, -4px) rotate(-1deg);
  }

  94% {
    transform: translate(16px, -1px) rotate(2deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.cta-spidey {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  pointer-events: none;
  z-index: 10;
  animation: cta-spidey-burst 1.4s ease-out forwards;
}

@keyframes cta-spidey-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }

  18% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }

  55% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.25);
  }
}

/* ── TOTEM CAROUSEL ── */
#totem-carousel {
  position: relative;
  overflow: hidden;
  height: 100vh;
  padding: 0;
  scroll-snap-align: start;
  touch-action: pan-y;
}

.totem-track {
  perspective: 1280px;
  perspective-origin: 50% 50%;
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: visible;
}

.totem-ring {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transition: transform 0.56s cubic-bezier(0.2, 0.56, 0.28, 0.98), opacity 0.36s ease;
  will-change: transform;
}

.totem-card {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(220px, 26vw, 380px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  opacity: 0.6;
  transition:
    opacity 0.5s ease,
    filter 0.45s ease,
    transform 0.56s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    width 0.56s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  will-change: opacity, transform;
  transform-style: preserve-3d;
  text-align: center;
}

.totem-card.active {
  width: clamp(360px, 44vw, 560px);
}

.totem-card.preview:not(.active) {
  width: clamp(260px, 32vw, 440px);
}

.totem-card>* {
  position: relative;
  z-index: 2;
}

.card-side {
  display: none;
}

.card-side::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lane);
  opacity: 0.22;
}

.card-side-l {
  left: 0;
  border-right: 0.5px solid rgba(255, 255, 255, 0.06);
}

.card-side-r {
  right: 0;
  border-left: 0.5px solid rgba(255, 255, 255, 0.06);
}

.totem-card.active {
  opacity: 1;
  filter: drop-shadow(0 0 20px color-mix(in srgb, var(--lane) 45%, transparent));
}

.totem-card.preview:not(.active) {
  opacity: 0.84;
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--lane) 28%, transparent));
}

.totem-card::before {
  content: '';
  position: absolute;
  width: min(350px, 36vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 36%),
    radial-gradient(circle at 70% 70%, transparent 44%, rgba(0, 0, 0, 0.34) 100%),
    radial-gradient(circle, color-mix(in srgb, var(--lane) 58%, transparent) 0%, rgba(6, 6, 10, 0) 74%);
  opacity: 0.42;
  transition: opacity 0.45s ease;
  z-index: 0;
  pointer-events: none;
}

.totem-card.active::before {
  opacity: 0.62;
}

.totem-card-img {
  width: 100%;
  max-height: min(56vh, 540px);
  position: relative;
  z-index: 3;
  object-fit: contain;
  image-rendering: high-quality;
  image-rendering: -webkit-optimize-contrast;
  transition: max-height 0.56s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.totem-card.active .totem-card-img {
  max-height: min(68vh, 720px);
}

.totem-card.preview:not(.active) .totem-card-img {
  transform: translateY(-3px);
  transition: transform 0.26s ease;
}

.totem-card-text {
  display: none;
}

/* ── Crisp overlay: renders active totem at natural CSS size,
   bypassing the carousel's transform-scale → bitmap-stretch blur. ── */
.totem-crisp-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 30px));
  z-index: 4;
  width: min(560px, 54vw);
  height: min(82vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.totem-crisp-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.totem-crisp-img.visible {
  opacity: 1;
  animation: totem-heartbeat 2s ease-in-out infinite;
}

/* When the popout overlay is open, hide the crisp display (unused now) */
#totem-carousel.card-expanded .totem-crisp-display {
  opacity: 0;
  pointer-events: none;
}

/* The crisp overlay is no longer needed (all card images render at native
   size now), but left hidden so existing DOM/JS calls are no-ops visually. */
.totem-crisp-display {
  display: none;
}

.totem-active-label {
  position: absolute;
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: max-content;
  max-width: min(58ch, 94vw);
  padding: 0.75rem 1.6rem;
  background: rgba(20, 20, 24, 0.78);
  border: 1px solid var(--tal-color, rgba(244, 241, 236, 0.3));
  border-radius: 4px;
  box-shadow: 0 0 14px color-mix(in srgb, var(--tal-color, rgba(244, 241, 236, 0.2)) 22%, transparent);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.totem-active-label.visible {
  opacity: 1;
}

#totem-carousel.card-expanded .totem-active-label {
  opacity: 0;
}

.totem-active-label .tal-meta {
  font-size: clamp(0.92rem, 1.25vw, 1.32rem);
  letter-spacing: 0.14em;
  color: var(--text);
  font-weight: 400;
  text-transform: lowercase;
  white-space: nowrap;
}

.totem-active-label .tal-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.95rem, 3.3vw, 2.85rem);
  font-weight: 300;
  color: var(--tal-color, var(--text));
  line-height: 1.08;
}

.totem-card-meta {
  font-size: clamp(0.62rem, 0.82vw, 0.86rem);
  letter-spacing: 0.12em;
  color: var(--text-faint);
  transition: opacity 0.3s ease;
  text-transform: lowercase;
  white-space: nowrap;
}

.totem-card-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2.15vw, 1.95rem);
  font-weight: 300;
  color: var(--lane);
  transition: opacity 0.3s ease;
  padding-bottom: 2px;
  line-height: 1.08;
}

.totem-card-animal,
.totem-card-intent,
.totem-card-phrase,
.totem-card-direction {
  display: none;
  text-align: center;
}

/* ── Desktop popout expand ── */
#totem-carousel.card-expanded {
  overflow: visible;
}

@keyframes totem-fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── TOTEM CAROUSEL — heartbeat glow ── */
@keyframes totem-heartbeat {

  0%,
  100% {
    filter: drop-shadow(0 0 12px var(--totem-glow-color, transparent));
  }

  50% {
    filter: drop-shadow(0 0 32px var(--totem-glow-color, transparent));
  }
}

.totem-card.heartbeat .totem-card-img {
  animation: totem-heartbeat 2s ease-in-out infinite;
}

.totem-sidebar {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
}

.totem-nav-btn,
.totem-index {
  background: none;
  border: 0;
  color: var(--text-faint);
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  cursor: pointer;
}

.totem-index.active {
  color: var(--lane);
}

.totem-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 10, 0.92);
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3.2rem 5vw;
  overflow: hidden;
  backdrop-filter: blur(2px);
}

.totem-overlay.open {
  display: flex;
}

.totem-overlay-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 0;
  color: var(--text-faint);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
  z-index: 1;
}

.totem-overlay-close:hover {
  color: var(--text);
}

/* ── OVERLAY FRAME SYSTEM ── */
.totem-overlay-frame-glow {
  max-width: min(94vw, 1250px);
  width: 100%;
}

.totem-overlay-frame {
  width: 100%;
  padding: 0;
}

.totem-overlay-inner {
  width: 100%;
}

/* Image wrapper — SVG frame lives here, around the image only */
.totem-img-wrapper {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto 1.8rem;
  padding: 36px;
}

.totem-element-frame-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
  animation: frame-glow-pulse 2.8s ease-in-out infinite;
}

.totem-img-wrapper .totem-card-img {
  position: relative;
  z-index: 2;
  display: block;
}

@keyframes frame-glow-pulse {

  0%,
  100% {
    filter: drop-shadow(0 0 5px var(--fc, rgba(255, 255, 255, 0.4))) drop-shadow(0 0 14px var(--fc, rgba(255, 255, 255, 0.2)));
  }

  50% {
    filter: drop-shadow(0 0 11px var(--fc, rgba(255, 255, 255, 0.7))) drop-shadow(0 0 28px var(--fc, rgba(255, 255, 255, 0.45)));
  }
}

.totem-overlay .totem-card {
  cursor: default;
  position: static;
  top: auto;
  left: auto;
  width: 100%;
  min-height: min(72vh, 760px);
  opacity: 1;
  transform: none;
  filter: none;
  align-items: stretch;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(320px, 1fr);
  gap: clamp(1.6rem, 3.2vw, 4.1rem);
  border: 0;
  background: transparent;
  padding: clamp(1rem, 1.9vw, 1.8rem);
  box-shadow: none;
}

.totem-overlay .totem-card::before,
.totem-overlay .totem-card::after {
  content: none;
}

.totem-overlay .card-side {
  display: none;
}

.totem-overlay .totem-card-img {
  align-self: end;
  justify-self: center;
  width: min(450px, 100%);
  max-height: min(66vh, 680px);
}

.totem-overlay .totem-card-animal,
.totem-overlay .totem-card-intent,
.totem-overlay .totem-card-phrase,
.totem-overlay .totem-card-direction {
  display: block;
}

.totem-overlay .totem-card-animal {
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  color: var(--text-faint);
}

.totem-overlay .totem-card-intent {
  font-size: clamp(0.95rem, 1.12vw, 1.06rem);
  line-height: 1.78;
  color: var(--text-dim);
  font-weight: 200;
}

.totem-overlay .totem-card-phrase {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.14rem, 1.65vw, 1.62rem);
  border-top: 1px solid var(--lane);
  border-bottom: 1px solid var(--lane);
  padding: 0.7rem 1.2rem;
  font-style: italic;
  color: rgba(244, 241, 236, 0.92);
}

.totem-overlay .totem-card-direction {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-faint);
  letter-spacing: 0.12em;
}

/* ── PARTICLE CANVAS ── */
#totem-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

#moon-canvas {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}

/* Quote pull-tab + panel — desktop: hidden; mobile media query enables them */
#hero-quote-tab,
#hero-quote-panel {
  display: none;
}

/* ── LATEST ESSAY ── */
#latest {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 2.2vw, 1.8rem);
  padding: 5px 5vw 0.9rem;
  border-top: 0.5px solid rgba(244, 241, 236, 0.06);
  border-bottom: 0.5px solid rgba(244, 241, 236, 0.06);
  text-decoration: none;
  min-height: 44px;
}

.latest-label {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  letter-spacing: 0.4em;
  color: var(--accent);
  text-transform: lowercase;
  flex-shrink: 0;
  white-space: nowrap;
}

.latest-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 1.2rem;
  row-gap: 0.15rem;
  text-align: center;
  min-width: 0;
}

.latest-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.8vw, 1.6rem);
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: color 0.25s;
}

.latest-link:hover .latest-title {
  color: var(--accent);
}

.latest-sub {
  font-size: clamp(0.85rem, 1.3vw, 1.2rem);
  font-weight: 200;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

/* Medium screens: stack title over subtitle (still centered as a group with the label) */
@media (max-width: 1024px) {
  .latest-body {
    flex-direction: column;
    align-items: center;
    row-gap: 0.2rem;
  }
}

/* Small screens: hide subtitle, keep label + title on one centered row */
@media (max-width: 768px) {
  #latest {
    padding: 8px 4vw;
    gap: 0.8rem;
  }

  .latest-label {
    font-size: clamp(0.95rem, 3.6vw, 1.2rem);
    letter-spacing: 0.3em;
  }

  .latest-sub {
    display: none;
  }

  .latest-title {
    font-size: clamp(1rem, 4.2vw, 1.3rem);
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

/* ── THREE PATHS ── */
/* ── THREE PATHS — centered title card above the totem stack ── */
#three-paths {
  padding: calc(1.4rem + 30px) 5vw calc(1.4rem + 30px);
  margin-top: 30px;
  text-align: center;
  position: relative;
  z-index: 5;
}

.paths-intro {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  margin-bottom: 1.2rem;
}

.paths-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: clamp(1.2rem, 4vw, 3.2rem);
  flex-wrap: wrap;
}

.path-item {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  text-decoration: none;
  transition: color 0.4s, text-shadow 0.4s;
  position: relative;
}

.path-item:hover {
  color: var(--accent);
  text-shadow: 0 0 22px rgba(232, 100, 10, 0.4);
}

.paths-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  color: rgba(244, 241, 236, 0.18);
  font-weight: 300;
}

/* Desktop default: "about" and "me/you/now" read as one inline phrase. */
.path-word-top {
  margin-right: 0.28em;
}

/* ── PATH ASTERISK POPUPS ── */
.path-item-wrap {
  position: relative;
  display: inline-block;
}

.path-item--soon {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  cursor: pointer;
  /* Left→right orange sweep on parent hover */
  background: linear-gradient(to right, var(--accent) 50%, rgba(244, 241, 236, 1) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.5s ease;
}

.path-item-wrap:hover .path-item--soon {
  background-position: 0% 0;
}

.path-asterisk {
  position: absolute;
  left: 100%;
  top: 50%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
  line-height: 1;
  transition: transform 0.22s ease, filter 0.22s ease;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  transform: translateY(calc(-50% - 12px));
}

.path-sigil-img {
  width: 33px;
  height: 33px;
  display: block;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 0 4px rgba(232, 100, 10, 0.55)) drop-shadow(0 0 10px rgba(232, 100, 10, 0.3));
  animation: path-sigil-pulse 2.4s ease-in-out infinite;
  transition: opacity 0.22s ease, filter 0.22s ease;
}

.path-asterisk:hover .path-sigil-img {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(232, 100, 10, 0.9)) drop-shadow(0 0 18px rgba(232, 100, 10, 0.55));
}

.path-asterisk:hover {
  transform: translateY(calc(-50% - 12px)) scale(1.15) rotate(15deg);
}

@keyframes path-sigil-pulse {

  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(232, 100, 10, 0.5)) drop-shadow(0 0 10px rgba(232, 100, 10, 0.25));
  }

  50% {
    filter: drop-shadow(0 0 8px rgba(232, 100, 10, 0.85)) drop-shadow(0 0 18px rgba(232, 100, 10, 0.5));
  }
}

/* Nudge: fires when the user taps the "about you" / "about now" text
   instead of the sigil — fast orange sweep + rapid sigil pulse. */
.path-item-wrap.nudge .path-item--soon {
  animation: path-soon-sweep 0.22s ease-in-out 6 alternate;
}

.path-item-wrap.nudge .path-sigil-img {
  animation: path-sigil-nudge 0.32s ease-in-out 4;
}

.path-item-wrap.nudge .path-asterisk {
  animation: path-asterisk-nudge 0.32s ease-in-out 4;
}

@keyframes path-soon-sweep {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: 0% 0;
  }
}

@keyframes path-sigil-nudge {

  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(232, 100, 10, 0.7)) drop-shadow(0 0 14px rgba(232, 100, 10, 0.4));
  }

  50% {
    filter: drop-shadow(0 0 14px rgba(232, 100, 10, 1)) drop-shadow(0 0 28px rgba(232, 100, 10, 0.75));
  }
}

@keyframes path-asterisk-nudge {

  0%,
  100% {
    transform: translateY(calc(-50% - 12px)) scale(1) rotate(0deg);
  }

  25% {
    transform: translateY(calc(-50% - 12px)) scale(1.18) rotate(-12deg);
  }

  75% {
    transform: translateY(calc(-50% - 12px)) scale(1.18) rotate(12deg);
  }
}

/* Nav sigil replacing the orange heart */
.nav-sigil-img {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.nav-sigil-link:hover .nav-sigil-img {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(232, 100, 10, 0.6));
}

.path-popup {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) rotate(-2deg) scale(0.9);
  transform-origin: bottom center;
  width: clamp(200px, 40vw, 245px);
  background: #f5f0e8;
  border-radius: 3px 6px 5px 4px;
  padding: 1.1rem 1.2rem 0.9rem;
  box-shadow: 3px 5px 22px rgba(0, 0, 0, 0.55);
  font-family: 'Caveat', cursive;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(30, 20, 10, 0.84);
  text-transform: none;
  z-index: 300;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.path-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-top-color: #f5f0e8;
}

.path-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) rotate(-2deg) scale(1);
}

.path-popup--now {
  transform: translateX(-50%) rotate(1.5deg) scale(0.9);
}

.path-popup--now.show {
  transform: translateX(-50%) rotate(1.5deg) scale(1);
}

.popup-down-arrow {
  color: var(--accent);
  font-size: 1.8rem;
  text-align: center;
  margin-top: 0.25rem;
  line-height: 1;
  animation: popup-arrow-bob 1s ease-in-out infinite;
}

@keyframes popup-arrow-bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

.popup-emojis {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
}


/* ── TOTEM SECTIONS ── */
.totem-section {
  position: relative;
  overflow: hidden;
}

/* Each section hooks slightly into the one above */
#water {
  margin-top: -4rem;
  z-index: 2;
}

#earth {
  margin-top: -4rem;
  z-index: 3;
}

#air {
  margin-top: -4rem;
  z-index: 4;
}

/* Sacred geometry — full bleed behind everything */
.totem-geo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Inner wrapper — max-width so ultrawide doesn't explode the layout */
.totem-inner {
  position: relative;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  min-height: 520px;
  display: flex;
  align-items: center;
  z-index: 1;
}

/* Animal image — offset to one side, text overlaps from the other.
   No animation, no mask. Static, visible, behind text. */
.totem-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(300px, 36%, 520px);
  max-height: 95%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  z-index: 1;
}

/* Fire/Earth: animal LEFT of center — fade right edge toward text */
.totem-section:not(.reverse) .totem-img {
  left: 30%;
  -webkit-mask-image: linear-gradient(to right, black 40%, rgba(0, 0, 0, 0.5) 65%, transparent 88%);
  mask-image: linear-gradient(to right, black 40%, rgba(0, 0, 0, 0.5) 65%, transparent 88%);
}

/* Water/Air: animal RIGHT of center — fade left edge toward text */
.totem-section.reverse .totem-img {
  left: 70%;
  -webkit-mask-image: linear-gradient(to left, black 40%, rgba(0, 0, 0, 0.5) 65%, transparent 88%);
  mask-image: linear-gradient(to left, black 40%, rgba(0, 0, 0, 0.5) 65%, transparent 88%);
}

/* Text — pinned to one side, overlapping the centered animal's edge */
.totem-content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52%;
  padding: 0 5vw;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Fire / Earth: text starts at the animal's far edge, flows RIGHT toward page edge.
   Text starts at the animal's center and extends outward with heavy overlap. */
.totem-section:not(.reverse) .totem-content {
  left: 30%;
  right: 2vw;
  width: auto;
  text-align: left;
}

/* Water / Air: text from LEFT, overlapping through the animal's center. */
.totem-section.reverse .totem-content {
  right: 30%;
  left: 2vw;
  width: auto;
  text-align: left;
}

.totem-meta {
  font-size: 0.88rem;
  letter-spacing: 0.38em;
  color: var(--text-faint);
  text-transform: lowercase;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
}

.dot {
  color: rgba(244, 241, 236, 0.15);
}

.totem-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: lowercase;
}

.totem-name {
  font-size: 0.88rem;
  letter-spacing: 0.3em;
  color: var(--text-faint);
  text-transform: lowercase;
}

.totem-intent {
  font-size: clamp(0.82rem, 1vw, 0.92rem);
  font-weight: 200;
  line-height: 1.9;
  color: var(--text-dim);
}

.totem-phrase {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  font-style: italic;
  border-left: 2px solid;
  padding-left: 1rem;
  line-height: 1.5;
  color: rgba(244, 241, 236, 0.92);
}

.totem-direction {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  text-transform: lowercase;
  font-style: italic;
  font-weight: 200;
}

.fire .totem-mark {
  color: var(--fire);
}

.fire .totem-phrase {
  border-color: var(--fire);
}

.water .totem-mark {
  color: var(--water);
}

.water .totem-phrase {
  border-color: var(--water);
}

.earth .totem-mark {
  color: var(--earth);
}

.earth .totem-phrase {
  border-color: var(--earth);
}

.air .totem-mark {
  color: var(--air);
}

.air .totem-phrase {
  border-color: var(--air);
}

.ether .totem-mark {
  color: var(--ether);
}

.ether .totem-phrase {
  border-color: var(--ether);
  color: var(--accent);
}

/* ── ETHER ── */
#ether-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 5vw;
  overflow: hidden;
}

#ether-section canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.ether-meta {
  position: relative;
  z-index: 2;
  font-size: 0.9rem;
  letter-spacing: 0.45em;
  color: var(--text-faint);
  text-transform: lowercase;
  margin-bottom: 2rem;
}

.phoenix-wrap {
  position: relative;
  z-index: 2;
  width: min(480px, 70vw);
  margin: 0 auto 3rem;
  filter: drop-shadow(0 0 80px rgba(232, 100, 10, 0.35)) drop-shadow(0 0 30px rgba(170, 122, 204, 0.2));
}

.phoenix-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.ether-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}

.ether-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--ether);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.ether-body {
  font-size: clamp(0.88rem, 1.15vw, 0.98rem);
  font-weight: 200;
  line-height: 2.1;
  color: var(--text-dim);
  text-align: center;
}

.ether-phrase {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ── NAV STRIP ── */
#nav-strip {
  background: rgba(0, 0, 0, 0.65);
  border-top: 0.5px solid rgba(244, 241, 236, 0.06);
  border-bottom: 0.5px solid rgba(244, 241, 236, 0.06);
  padding: 3rem 5vw;
}

.nav-strip-label {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  letter-spacing: 0.35em;
  color: var(--text-faint);
  text-transform: lowercase;
  text-align: center;
  margin-bottom: 2.5rem;
}

.nav-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(244, 241, 236, 0.05);
  border: 0.5px solid rgba(244, 241, 236, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.nav-strip-item {
  padding: 1.8rem 1.2rem;
  background: rgba(6, 6, 10, 0.85);
  text-align: center;
  text-decoration: none;
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
}

.nav-strip-item:hover {
  background: rgba(232, 100, 10, 0.08);
}

.nav-strip-item:hover .nav-strip-name {
  color: var(--accent);
}

.nav-strip-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--text);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

.nav-strip-desc {
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  font-weight: 200;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  line-height: 1.6;
}

@keyframes pulse-new {

  0%,
  100% {
    box-shadow: inset 0 0 0 0 rgba(232, 100, 10, 0);
  }

  50% {
    box-shadow: inset 0 0 0 1px rgba(232, 100, 10, 0.45);
  }
}

.nav-strip-item.has-new {
  animation: pulse-new 2.8s ease-in-out infinite;
}

.nav-strip-item.has-new .nav-strip-name {
  color: var(--accent);
}

.new-dot {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

/* ── FOOTER ── */
footer {
  padding: 3rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-top: 0.5px solid rgba(244, 241, 236, 0.05);
}

.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
}

.footer-socials a {
  color: rgba(244, 241, 236, 0.28);
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.footer-socials a:hover {
  color: var(--accent);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 0.5px solid rgba(244, 241, 236, 0.04);
}

.footer-domain {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: rgba(244, 241, 236, 0.12);
}

/* ── OVERLAY: DESKTOP LAYOUT (image left, text right) ── */
@media (min-width: 769px) {
  .totem-overlay .totem-overlay-frame-glow {
    max-width: 100%;
    display: flex;
    align-items: center;
  }

  .totem-overlay .totem-overlay-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .totem-overlay .totem-overlay-inner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .totem-overlay .totem-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(1.6rem, 3.2vw, 4.1rem);
    min-height: min(72vh, 760px);
    width: auto;
    max-width: min(94vw, 1260px);
    margin: 0 auto;
  }

  .totem-overlay .totem-img-wrapper {
    flex: 0 0 auto;
    align-self: center;
    margin: 0;
    padding: 0.75rem;
    animation: totem-desktop-img-in 0.56s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }

  .totem-overlay .totem-card-img {
    max-width: min(42vw, 560px);
    max-height: min(68vh, 720px);
    object-fit: contain;
  }

  .totem-overlay-text-col {
    display: flex;
    flex-direction: column;
    gap: clamp(0.55rem, 1.4vh, 1.3rem);
    align-items: flex-start;
    justify-content: center;
    align-self: center;
    flex: 0 1 620px;
    min-width: 0;
    text-align: left;
    animation: totem-desktop-text-in 0.4s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }

  .totem-overlay-text-col .totem-card-meta {
    font-size: clamp(1.05rem, 1.2vw, 1.35rem);
    letter-spacing: 0.16em;
    text-align: left;
  }

  .totem-overlay-text-col .totem-card-mark {
    font-size: clamp(2.4rem, 4.4vw, 4.5rem);
    line-height: 1.05;
    text-align: left;
  }

  .totem-overlay-text-col .totem-card-animal {
    font-size: clamp(1rem, 1.15vw, 1.25rem);
    letter-spacing: 0.24em;
    text-align: left;
  }

  .totem-overlay-text-col .totem-card-intent {
    font-size: clamp(1.15rem, 1.35vw, 1.35rem);
    line-height: 1.72;
    text-align: left;
  }

  .totem-overlay-text-col .totem-card-phrase {
    font-size: clamp(1.35rem, 1.95vw, 1.9rem);
    text-align: left;
    align-self: stretch;
  }

  .totem-overlay-text-col .totem-card-direction {
    font-size: clamp(0.95rem, 1.1vw, 1.2rem);
    letter-spacing: 0.1em;
    text-align: left;
  }

  @keyframes totem-desktop-img-in {
    from {
      opacity: 0.25;
      transform: translateX(32vw) scale(0.75);
    }

    to {
      opacity: 1;
      transform: translateX(0) scale(1);
    }
  }

  @keyframes totem-desktop-text-in {
    from {
      opacity: 0;
      transform: translateX(18px);
    }

    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* ── RESPONSIVE ── */
@media(max-width:768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-logo img {
    height: 58px;
  }

  /* Hide rotating spine phrases on mobile */
  .hero-spine {
    display: none;
  }

  /* Hero height = prince image top (150px) + prince rendered height (73vw,
     since SVG aspect is ~0.934 and image is width-bound at 68vw) + 40px
     gap before the latest row. */
  #hero {
    display: block;
    position: relative;
    overflow: hidden;
    height: calc(73vw + 190px);
    min-height: unset;
    padding-bottom: 0;
    flex-direction: unset;
    align-items: unset;
  }

  .hero-flex {
    padding-bottom: 0;
    min-height: unset;
  }

  .hero-img {
    position: absolute;
    top: 150px;
    left: -12vw;
    width: 68vw;
    height: 42vh;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: left top;
    filter: brightness(0.92) saturate(1.05);
    order: unset;
    margin: 0;
    display: block;
    transform: none;
    z-index: 6;
  }

  .hero-overlay {
    display: none;
  }

  .hero-scroll {
    display: none;
  }

  /* Empty on mobile (spine + scroll hidden); hero height is set explicitly. */
  .hero-content {
    display: none;
  }

  .hero-spine {
    display: none;
  }

  .hero-sticky {
    font-size: 1.12rem;
  }

  .sticky-yellow {
    left: 8%;
    bottom: 28%;
    width: min(200px, 46vw);
  }

  .sticky-pink {
    right: 6%;
    top: 44%;
    width: min(170px, 42vw);
  }

  .fridge-note {
    left: 4vw;
    right: 4vw;
    bottom: 1rem;
  }

  /* ── Mobile hero decor: constellations + pink sticky ── */
  .hero-mobile-decor {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 6;
  }

  .hero-constellation {
    position: absolute;
    color: rgba(244, 241, 236, 0.75);
    opacity: 0;
    transform-origin: 50% 50%;
    will-change: transform, opacity;
  }

  .hero-constellation circle {
    fill: currentColor;
  }

  .hero-constellation path {
    stroke: currentColor;
    stroke-width: 0.35;
    fill: none;
    opacity: 0.55;
  }

  /* Upper dark space: in the strip between prince's right edge (left 44%)
     and the moon (right 0-24% from right). Moon y ≈ 69-169px on 700vh. */
  .hero-constellation--dmt {
    top: 88px;
    right: 28%;
    width: 124px;
    height: 54px;
    animation:
      constellation-pulse 5.2s ease-in-out 0s infinite,
      gemini-drift 22s ease-in-out 0s infinite;
  }

  /* Orange benzofuran analog — between dmt and the lsd. */
  .hero-constellation--psilo {
    top: 170px;
    right: 6%;
    width: 118px;
    height: 50px;
    color: #ff6a2c;
    animation:
      constellation-pulse-orange 5.2s ease-in-out 1.1s infinite,
      psilo-drift 26s ease-in-out 0s infinite;
  }

  /* Lower-right dark space: below the moon, above the quote drawer tab. */
  .hero-constellation--lsd {
    top: 30vh;
    right: 4%;
    width: 136px;
    height: 114px;
    animation:
      constellation-pulse 5.2s ease-in-out 2.2s infinite,
      dmt-drift 28s ease-in-out 0s infinite;
  }

  @keyframes constellation-pulse {

    0%,
    100% {
      opacity: 0.18;
      filter: drop-shadow(0 0 2px rgba(244, 241, 236, 0.25));
    }

    50% {
      opacity: 0.82;
      filter: drop-shadow(0 0 8px rgba(244, 241, 236, 0.65));
    }
  }

  @keyframes constellation-pulse-orange {

    0%,
    100% {
      opacity: 0.22;
      filter: drop-shadow(0 0 2px rgba(255, 106, 44, 0.3));
    }

    50% {
      opacity: 0.9;
      filter: drop-shadow(0 0 10px rgba(255, 106, 44, 0.75));
    }
  }

  @keyframes psilo-drift {
    0% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(-14px, 10px) rotate(-6deg); }
    40% { transform: translate(8px, 18px) rotate(8deg); }
    60% { transform: translate(18px, 4px) rotate(-10deg); }
    80% { transform: translate(-6px, -10px) rotate(6deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
  }

  /* Wider arc + extra spin — stays in the dark pocket beside the moon. */
  @keyframes gemini-drift {
    0% {
      transform: translate(0, 0) rotate(0deg);
    }

    14% {
      transform: translate(-22px, -4px) rotate(-10deg);
    }

    28% {
      transform: translate(-30px, 18px) rotate(6deg);
    }

    45% {
      transform: translate(-10px, 38px) rotate(-14deg);
    }

    62% {
      transform: translate(18px, 26px) rotate(12deg);
    }

    78% {
      transform: translate(26px, 4px) rotate(-8deg);
    }

    90% {
      transform: translate(12px, -6px) rotate(14deg);
    }

    100% {
      transform: translate(0, 0) rotate(0deg);
    }
  }

  /* Wider arc + extra spin — stays below the moon, above the drawer. */
  @keyframes dmt-drift {
    0% {
      transform: translate(0, 0) rotate(0deg);
    }

    16% {
      transform: translate(-28px, -14px) rotate(-9deg);
    }

    34% {
      transform: translate(-10px, -24px) rotate(6deg);
    }

    52% {
      transform: translate(16px, -8px) rotate(-12deg);
    }

    68% {
      transform: translate(28px, 14px) rotate(8deg);
    }

    84% {
      transform: translate(6px, 22px) rotate(-6deg);
    }

    100% {
      transform: translate(0, 0) rotate(0deg);
    }
  }

  /* Pink sticky: drawer hanging off the right edge, tap to peek full note.
     Positioned 20px below the quote pull-tab's bottom (tab is 74px tall,
     so this is tab-top + 94px). */
  .hero-mobile-sticky {
    position: absolute;
    top: calc(12.5vw + 256px);
    right: 0;
    width: 240px;
    padding: 1rem 1.05rem 1.1rem;
    background: #f5b8c4;
    color: #13110f;
    font-family: 'Caveat', cursive;
    font-size: 1.18rem;
    line-height: 1.22;
    text-align: center;
    border: none;
    border-radius: 2px;
    box-shadow: -3px 4px 14px rgba(0, 0, 0, 0.45);
    transform-origin: center center;
    transform: translate(90%, -8%) rotate(30deg);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 7;
    cursor: pointer;
    pointer-events: auto;
  }

  .hero-mobile-sticky.open {
    transform: translate(-5%, 0%) rotate(0deg);
  }

  .hero-mobile-sticky span {
    display: block;
    font-size: 1rem;
    color: var(--accent);
    margin-top: 0.3rem;
  }

  .hero-cta-shell {
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .hero-cta-caption {
    letter-spacing: 0.3em;
  }

  #totem-carousel {
    height: auto;
    min-height: 52vh;
    margin-top: 0;
    padding: 65px 0 0;
  }

  .totem-track {
    height: 52vh;
  }

  .totem-ring {
    top: 30%;
  }

  .totem-active-label {
    bottom: 0;
    width: max-content;
    max-width: calc(100vw - 10px);
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
  }

  .totem-active-label .tal-meta {
    font-size: 1.075rem;
    letter-spacing: 0.14em;
    font-weight: 400;
    color: var(--text);
  }

  .totem-active-label .tal-mark {
    font-size: clamp(2.05rem, 7.8vw, 2.55rem);
  }

  .totem-card {
    min-height: 0;
    width: clamp(105px, 28vw, 170px);
  }

  .totem-card.active {
    width: clamp(180px, 48vw, 280px);
  }

  .totem-card.preview:not(.active) {
    width: clamp(140px, 36vw, 220px);
  }

  .totem-card::before {
    width: min(220px, 50vw);
  }

  .totem-card.expanded {
    min-height: 0;
    gap: clamp(0.1rem, 0.5vh, 0.35rem);
  }

  .totem-card-meta {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-align: center;
  }

  .totem-card-mark {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
    text-align: center;
  }

  .totem-card.expanded .totem-card-mark {
    font-size: clamp(0.95rem, 1.8vh, 1.4rem);
  }

  .totem-card.expanded .totem-card-meta {
    font-size: clamp(0.5rem, 0.9vh, 0.65rem);
    letter-spacing: 0.14em;
  }

  /* ── Overlay: mobile full-screen 60/40 layout ── */
  .totem-overlay {
    position: fixed;
    inset: 0;
    z-index: 210;
    padding: 0;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: none;
  }

  .totem-overlay .totem-overlay-frame-glow {
    max-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .totem-overlay .totem-overlay-frame {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .totem-overlay .totem-overlay-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .totem-overlay .totem-card {
    position: static;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: clamp(0.4rem, 1.2vh, 0.8rem);
    padding: 0 5vw clamp(1rem, 2.5vh, 1.8rem);
    min-height: 0;
  }

  .totem-overlay .totem-img-wrapper {
    height: 50vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2.5rem, 6vh, 4rem) 2vw clamp(0.5rem, 1.5vh, 1rem);
    margin: 0;
    width: 100%;
    animation: totem-mobile-img-in 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }

  .totem-overlay .totem-card-img {
    height: 100%;
    max-height: 100%;
    width: auto;
    max-width: 88vw;
    object-fit: contain;
  }

  .totem-overlay .totem-card-meta {
    font-size: 1.15rem;
    animation: totem-mobile-text-in 0.38s 0.22s both;
  }

  .totem-overlay .totem-card-mark {
    font-size: clamp(2rem, 8.5vw, 2.65rem);
    animation: totem-mobile-text-in 0.38s 0.3s both;
  }

  .totem-overlay .totem-card-animal {
    font-size: 1.1rem;
    animation: totem-mobile-text-in 0.38s 0.38s both;
  }

  .totem-overlay .totem-card-intent {
    font-size: 1.3rem;
    line-height: 1.55;
    animation: totem-mobile-text-in 0.38s 0.46s both;
  }

  .totem-overlay .totem-card-phrase {
    font-size: 1.45rem;
    padding: 0.55rem 1rem;
    animation: totem-mobile-text-in 0.38s 0.54s both;
  }

  .totem-overlay .totem-card-direction {
    font-size: 1rem;
    animation: totem-mobile-text-in 0.38s 0.62s both;
  }

  @keyframes totem-mobile-img-in {
    from {
      transform: scale(0.76) translateY(48px);
      opacity: 0.2;
    }

    to {
      transform: scale(1) translateY(0);
      opacity: 1;
    }
  }

  @keyframes totem-mobile-text-in {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .totem-sidebar {
    display: none;
  }

  /* Three-paths: compact title card on mobile */
  #three-paths {
    padding: 50px 5vw 40px;
    margin-top: 0;
    min-height: unset;
  }

  .paths-sep {
    display: none;
  }

  .paths-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
  }

  .paths-row>.path-item {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
    font-weight: 300;
    justify-self: center;
    text-align: center;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
  }

  .paths-row>.path-item-wrap {
    justify-self: center;
    text-align: center;
  }

  .path-item--soon {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
    font-weight: 300;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: var(--text);
    color: var(--text);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
  }

  .path-word-top {
    margin-right: 0;
  }

  .path-word-top,
  .path-word-bot {
    display: block;
  }

  .path-asterisk {
    display: inline-flex;
    top: 0;
    transform: translateY(0.35em);
  }

  .path-asterisk:hover {
    transform: translateY(0.35em) scale(1.15) rotate(15deg);
  }

  .path-sigil-img {
    width: 18px;
    height: 18px;
  }

  .paths-intro {
    margin-bottom: 0.3rem;
    font-size: 0.72rem;
  }

  #nav-strip {
    padding: 60px 5vw 2rem;
  }

  .nav-strip-label {
    margin-bottom: 1.25rem;
  }

  .nav-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  footer {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* ── HERO QUOTE PULL TAB (mobile only) ──
     Positioned so its bottom sits 20px above the pink post-it's visual top
     in its closed (rotated 30deg) state. The rotation lifts the sticky's
     visible top-left corner ~62px above its CSS `top` value. */
  #hero-quote-tab {
    display: flex;
    position: absolute;
    right: 0;
    top: calc(12.5vw + 100px);
    z-index: 14;
    width: 24px;
    height: 74px;
    background: rgba(10, 10, 16, 0.88);
    border: 0.5px solid rgba(232, 100, 10, 0.5);
    border-right: none;
    border-radius: 6px 0 0 6px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
  }

  #hero-quote-tab:active {
    background: rgba(232, 100, 10, 0.15);
  }

  #hero-quote-tab::before {
    content: '';
    display: block;
    width: 7px;
    height: 1px;
    background: rgba(232, 100, 10, 0.7);
    box-shadow: 0 5px 0 rgba(232, 100, 10, 0.7), 0 -5px 0 rgba(232, 100, 10, 0.7);
  }

  #hero-quote-panel {
    display: flex;
    position: absolute;
    right: 0;
    top: calc(12.5vw + 156px);
    width: min(49vw, 250px);
    min-width: 210px;
    min-height: 186px;
    z-index: 13;
    background: rgba(6, 6, 10, 0.95);
    border: 0.5px solid rgba(232, 100, 10, 0.35);
    border-right: none;
    border-radius: 8px 0 0 8px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.95rem 1rem 0.9rem;
  }

  #hero-quote-panel.open {
    transform: translateX(0);
  }

  #hero-quote-close {
    position: absolute;
    top: 0.25rem;
    right: 0.35rem;
    background: none;
    border: none;
    color: rgba(244, 241, 236, 0.4);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
  }

  #hero-quote-close:hover {
    color: rgba(244, 241, 236, 0.8);
  }

  .hero-quote-panel-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.92rem, 2.55vw, 1.05rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.58;
    color: rgba(244, 241, 236, 0.85);
    border-left: 0.5px solid rgba(232, 100, 10, 0.5);
    padding-left: 0.65rem;
    margin-top: 0.55rem;
  }

  .hero-quote-panel-quote cite {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.54rem;
    letter-spacing: 0.12em;
    font-style: normal;
    font-weight: 200;
    color: rgba(244, 241, 236, 0.4);
  }
}

@media(max-width:480px) {
  .hero-content {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-spine {
    font-size: clamp(1.05rem, 5.4vw, 1.25rem);
    max-width: none;
    width: 100%;
    padding: 0;
    min-height: 2.9em;
  }

  #hero-quote-tab {
    top: calc(12.5vw + 147px);
    width: 22px;
    height: 70px;
  }

  #hero-quote-panel {
    top: calc(12.5vw + 203px);
    width: min(58vw, 238px);
    min-width: 188px;
    min-height: 166px;
    padding: 0.8rem 0.85rem 0.8rem;
  }

  .hero-quote-panel-quote {
    font-size: clamp(0.86rem, 3.3vw, 0.98rem);
    line-height: 1.48;
    padding-left: 0.55rem;
  }

  .hero-quote-panel-quote cite {
    font-size: 0.5rem;
  }

  .hero-sticky {
    display: none;
  }

  .fridge-note {
    bottom: 5.2rem;
    padding: 0.8rem 0.9rem;
  }

  .fridge-note p {
    font-size: 0.92rem;
  }

  .hero-cta-shell {
    right: 10px;
    left: 10px;
  }


  .totem-sidebar {
    width: 32px;
  }
}