:root {
  --bg: #000000;
  --card: #e8dcc8;
  --ink: #14110f;
  --ink-soft: rgba(20, 17, 15, 0.72);
  --spotlight-dim: rgba(0, 0, 0, 0.82);
  --sx: 50%;
  --sy: 40%;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  overflow-x: hidden;
  position: relative;
  cursor: url("/cursor.svg") 6 3, auto;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

*,
*::before,
*::after {
  cursor: url("/cursor.svg") 6 3, auto;
  -webkit-user-select: none;
  user-select: none;
    -webkit-user-drag: none;
}

img,
a,
svg {
  -webkit-user-drag: none;
}

a,
button,
[role="button"],
label {
  cursor: url("/cursor.svg") 6 3, pointer;
}

.spotlight-desktop-only {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--spotlight-dim);
  mask-image: radial-gradient(
    200px at var(--sx) var(--sy),
    transparent 0%,
    rgba(0, 0, 0, 0.35) 55%,
    #000 100%
  );
  -webkit-mask-image: radial-gradient(
    200px at var(--sx) var(--sy),
    transparent 0%,
    rgba(0, 0, 0, 0.35) 55%,
    #000 100%
  );
}

@media (pointer: coarse) {
  .spotlight-desktop-only {
    display: none !important;
  }
}

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  min-height: 100dvh;
  padding: 0;
}

.tour-card {
  position: relative;
  width: 100%;
  max-width: 680px;
  min-height: 100dvh;
  background: var(--card);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  text-align: center;
  overflow: visible;
}

.tour-card::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("/assets/cracks.svg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.watermark {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(110%, 640px);
  height: auto;
  transform: translate(-50%, -40%);
  opacity: 0.45;
  mix-blend-mode: multiply;
  z-index: 0;
  user-select: none;
}

.tour-card > *:not(.watermark) {
  position: relative;
  z-index: 1;
}

.panel-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem 4.5rem;
}

@media (min-width: 640px) {
  .panel-hero {
    padding: 2rem 2rem 5rem;
  }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.25s ease;
  z-index: 2;
}

.scroll-hint:hover,
.scroll-hint:focus-visible {
  opacity: 1;
  outline: none;
}

.scroll-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-hint-label {
  font-family: "IM Fell English SC", Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: lowercase;
}

.scroll-hint-arrow {
  width: 12px;
  height: 12px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: scrollBounce 1.4s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0.55;
  }
  50% {
    transform: rotate(45deg) translate(3px, 3px);
    opacity: 1;
  }
}

.panel-instagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 100dvh;
  padding: 3rem 1.5rem 4rem;
  border-top: 1px solid rgba(20, 17, 15, 0.12);
}

.ig-kicker {
  margin: 0;
  font-family: "IM Fell English SC", Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--ink-soft);
}

.ig-frame {
  width: min(70vw, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(20, 17, 15, 0.85);
  box-shadow: 0 0 0 6px rgba(20, 17, 15, 0.06);
  background: rgba(20, 17, 15, 0.08);
}

.ig-frame.is-fallback {
  display: grid;
  place-items: center;
  background: #2a2218;
  color: var(--card);
  font-family: "IM Fell English SC", Georgia, serif;
  font-size: 3rem;
}

.ig-frame.is-fallback::after {
  content: "i";
}

.ig-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ig-handle {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.ig-follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  min-width: 160px;
  padding: 0.85rem 1.6rem;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--card);
  text-decoration: none;
  font-family: "IM Fell English SC", Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ig-follow:hover,
.ig-follow:focus-visible {
  background: transparent;
  color: var(--ink);
  outline: none;
  transform: translateY(-1px);
}

.hero-wrap {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  margin: 0 auto 1.25rem;
  overflow: hidden;
}

.hero {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
}

.logo-fade-in {
  animation: logoFade 1.1s ease both;
}

.card-fade-in {
  animation: cardFade 1.15s ease both;
}

.side-fade-in {
  animation: sideFade 1.2s ease 0.15s both;
}

.side-fade-in-delay {
  animation-delay: 0.28s;
}

@keyframes logoFade {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cardFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sideFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cursor-trail {
  pointer-events: none;
  position: fixed;
  z-index: 60;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  opacity: 0.85;
  transform: scale(1) rotate(var(--rot, 0deg));
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: transform, opacity;
  background: transparent;
}

.cursor-trail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--trail-fill, #e8dcc8);
  clip-path: var(--trail-shape);
  box-shadow: 0 0 0 1px rgba(20, 17, 15, 0.18);
}

.cursor-trail.is-crack {
  width: 18px;
  height: 2px;
  margin: -1px 0 0 -9px;
  background: var(--trail-fill, #2a2218);
  opacity: 0.55;
  border-radius: 1px;
}

.cursor-trail.is-crack::before {
  content: none;
}

.cursor-trail.is-fading {
  opacity: 0;
  transform: scale(0.15) rotate(calc(var(--rot, 0deg) + 40deg));
}

.cursor-trail.is-crack.is-fading {
  transform: scaleX(0.2) rotate(var(--rot, 0deg));
}

.brand {
  margin: 0;
  font-family: "IM Fell English SC", "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 9vw, 4.8rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  text-transform: lowercase;
}

.subtitle {
  margin: 0.85rem 0 0;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--ink-soft);
  font-style: italic;
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 1.6rem;
}

.socials a {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.socials a:hover,
.socials a:focus-visible {
  transform: translateY(-2px) scale(1.08);
  opacity: 0.75;
  outline: none;
}

.handle {
  margin: 1.75rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.domain {
  margin: 0.35rem 0 0;
  font-family: "IM Fell English SC", Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--ink);
  opacity: 0.55;
}

.spin-side {
  position: fixed;
  z-index: 10;
  width: 88px;
  height: 88px;
  pointer-events: none;
  user-select: none;
  opacity: 1;
}

.spin-side-left {
  top: 0;
  left: 0;
}

.spin-side-right {
  top: 0;
  right: 0;
}

.spin-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
  transform-origin: 50% 50%;
  will-change: transform;
}

.bounce-x-1 {
  animation: bounceX1 7s ease-in-out infinite alternate;
}

.bounce-y-1 {
  width: 100%;
  height: 100%;
  animation: bounceY1 5.5s ease-in-out infinite alternate;
}

.bounce-x-2 {
  animation: bounceX2 8s ease-in-out infinite alternate;
}

.bounce-y-2 {
  width: 100%;
  height: 100%;
  animation: bounceY2 6s ease-in-out infinite alternate;
}

@keyframes bounceX1 {
  from {
    transform: translateX(4vw);
  }
  to {
    transform: translateX(18vw);
  }
}

@keyframes bounceY1 {
  from {
    transform: translateY(8vh);
  }
  to {
    transform: translateY(55vh);
  }
}

@keyframes bounceX2 {
  from {
    transform: translateX(-4vw);
  }
  to {
    transform: translateX(-18vw);
  }
}

@keyframes bounceY2 {
  from {
    transform: translateY(12vh);
  }
  to {
    transform: translateY(60vh);
  }
}

@media (min-width: 900px) {
  .spin-side {
    width: 150px;
    height: 150px;
    top: 50%;
  }

  .spin-side-left {
    left: calc((100vw - 680px) / 4);
    transform: translate(-50%, -50%);
  }

  .spin-side-right {
    right: auto;
    left: calc(75vw + 170px);
    transform: translate(-50%, -50%);
  }

  .bounce-x-1,
  .bounce-x-2 {
    animation: none;
  }

  .bounce-y-1 {
    animation: floatY 6s ease-in-out infinite alternate;
  }

  .bounce-y-2 {
    animation: floatY 7.5s ease-in-out infinite alternate-reverse;
  }
}

@keyframes floatY {
  from {
    transform: translateY(-18px);
  }
  to {
    transform: translateY(18px);
  }
}

/* Artistic site: keep motion even if OS has "reduce motion" on */
