:root {
  --paper: rgba(242, 229, 202, 0.78);
  --paper-soft: rgba(233, 218, 193, 0.58);
  --ink: #f4ead5;
  --muted: rgba(244, 234, 213, 0.78);
  --line: rgba(255, 244, 219, 0.12);
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
  --spot-x: 28vw;
  --spot-y: 24vh;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: #000;
}

.cursor-glow,
.darkness-mask,
.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.cursor-glow {
  z-index: 2;
  background:
    radial-gradient(
      circle 300px at var(--spot-x) var(--spot-y),
      rgba(255, 247, 228, 0.38) 0,
      rgba(255, 230, 173, 0.22) 32%,
      rgba(129, 164, 255, 0.14) 52%,
      rgba(0, 0, 0, 0) 78%
    );
  mix-blend-mode: screen;
}

.darkness-mask {
  z-index: 3;
  background:
    radial-gradient(
      circle 360px at var(--spot-x) var(--spot-y),
      rgba(0, 0, 0, 0.02) 0,
      rgba(0, 0, 0, 0.12) 34%,
      rgba(0, 0, 0, 0.42) 58%,
      rgba(0, 0, 0, 0.74) 80%,
      rgba(0, 0, 0, 0.86) 100%
    );
}

.page-noise {
  z-index: 4;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: soft-light;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1rem 0;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand,
.eyebrow,
.section-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(250, 241, 221, 0.9);
  text-shadow:
    0 0 10px rgba(255, 233, 191, 0.12),
    0 0 24px rgba(126, 153, 255, 0.08);
}

.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.35rem 0.28rem 0.65rem;
  border: 1px solid rgba(255, 242, 214, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 0 0 1px rgba(255, 243, 216, 0.03),
    0 0 18px rgba(255, 228, 175, 0.04);
  backdrop-filter: blur(10px);
}

.copy-text {
  width: auto;
  min-width: 0;
  max-width: min(42vw, 460px);
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(250, 241, 221, 0.92);
  font-size: 0.72rem;
  font-family: "Manrope", sans-serif;
}

.copy-button {
  padding: 0.38rem 0.7rem;
  border: 1px solid rgba(255, 242, 214, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(250, 241, 221, 0.94);
  font-size: 0.7rem;
  cursor: pointer;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.audio-controls {
  position: fixed;
  right: 1.5rem;
  bottom: 1.2rem;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 242, 214, 0.14);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.56);
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 243, 216, 0.03),
    0 0 28px rgba(255, 228, 175, 0.06);
}

.sound-prompt {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.sound-prompt.is-hidden {
  display: none;
}

.sound-prompt-card {
  width: min(100%, 360px);
  padding: 1.1rem;
  border: 1px solid rgba(255, 242, 214, 0.14);
  border-radius: 22px;
  background: rgba(10, 10, 10, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(255, 243, 216, 0.03),
    0 0 28px rgba(255, 228, 175, 0.08);
}

.sound-prompt-title,
.sound-prompt-copy {
  margin: 0;
  color: rgba(250, 241, 221, 0.94);
}

.sound-prompt-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sound-prompt-copy {
  margin-top: 0.5rem;
  color: rgba(250, 241, 221, 0.76);
  font-size: 0.86rem;
  line-height: 1.5;
}

.sound-prompt-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.95rem;
}

.sound-prompt-play,
.sound-prompt-close {
  flex: 1;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 242, 214, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(250, 241, 221, 0.94);
  cursor: pointer;
}

.sound-prompt-play {
  background: rgba(255, 228, 175, 0.12);
}

.audio-toggle,
.audio-volume-label {
  color: rgba(250, 241, 221, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audio-toggle {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 242, 214, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.audio-volume-label {
  font-weight: 700;
}

.audio-volume {
  width: 120px;
  accent-color: #f0dfb4;
}

.action-x,
.action-dex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(250, 241, 221, 0.94);
  text-decoration: none;
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 243, 216, 0.04),
    0 0 18px rgba(255, 232, 187, 0.05);
}

.action-x {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 242, 214, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  font-weight: 700;
}

.action-dex {
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 242, 214, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  font-weight: 800;
}

.gallery-flow {
  position: relative;
  z-index: 1;
  padding: 5rem 0 10rem;
}

.canvas {
  position: relative;
  width: min(1220px, calc(100% - 1rem));
  margin: 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 800ms ease, transform 800ms ease;
}

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

.canvas-hero {
  min-height: 120svh;
  padding: 10rem 0 4rem;
}

.hero-image,
.river-image,
.eye-fragment,
.paintbrush-fragment,
.city-image,
.afterglow-image,
.artifact {
  box-shadow:
    0 0 0 1px rgba(255, 242, 214, 0.06),
    0 0 22px rgba(255, 226, 170, 0.06),
    0 0 46px rgba(96, 132, 255, 0.05),
    var(--shadow);
}

.repel-target {
  --repel-x: 0px;
  --repel-y: 0px;
  transform: translate3d(var(--repel-x), var(--repel-y), 0);
  transition: transform 140ms ease-out;
  will-change: transform;
}

.text-repel {
  display: inline-block;
}

.letter {
  display: inline-block;
  --letter-x: 0px;
  --letter-y: 0px;
  transform: translate3d(var(--letter-x), var(--letter-y), 0) rotate(var(--letter-r, 0deg));
  transition: transform 120ms ease-out, text-shadow 160ms ease-out, opacity 160ms ease-out;
  will-change: transform;
}

.letter-space {
  width: 0.24em;
}

.letter.is-active {
  text-shadow:
    0 0 18px rgba(255, 237, 203, 0.22),
    0 0 48px rgba(108, 126, 255, 0.12);
}

.hero-image {
  position: absolute;
  top: 5rem;
  right: -2rem;
  width: min(38vw, 480px);
  height: min(74svh, 760px);
  border-radius: 46% 54% 39% 61% / 35% 31% 69% 65%;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.42)),
    url("./images/albert.png") center/cover no-repeat;
  filter: saturate(0.9) brightness(0.8);
}

.hero-panel {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 3.5rem 3rem;
  border: 1px solid var(--line);
  border-radius: 42px 110px 58px 90px;
  background:
    linear-gradient(135deg, rgba(8, 8, 8, 0.36), rgba(24, 24, 24, 0.08)),
    rgba(243, 224, 190, 0.11);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 243, 216, 0.03),
    0 0 24px rgba(255, 228, 175, 0.07),
    0 0 54px rgba(104, 126, 255, 0.05),
    var(--shadow);
}

.eyebrow,
.section-label {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(247, 228, 190, 0.84);
  text-shadow: 0 0 14px rgba(255, 234, 194, 0.12);
}

h1,
h2,
.floating-quote,
.quote-cloud p,
.final-whisper {
  font-family: "Cormorant Garamond", serif;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 9ch;
  font-size: clamp(4rem, 10vw, 7.8rem);
  line-height: 0.88;
  font-weight: 600;
  text-shadow:
    0 0 22px rgba(255, 237, 203, 0.18),
    0 0 54px rgba(108, 126, 255, 0.1);
}

.lead,
.text-island p,
.text-splinter p {
  margin-top: 1.4rem;
  max-width: 34rem;
  color: rgba(244, 234, 213, 0.92);
  font-size: 1.05rem;
  line-height: 1.9;
  text-shadow: 0 0 16px rgba(255, 231, 190, 0.1);
}

.floating-quote {
  position: absolute;
  left: 54%;
  bottom: 6rem;
  max-width: 10ch;
  color: rgba(245, 232, 204, 0.82);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 0.92;
  text-shadow:
    0 0 18px rgba(255, 230, 183, 0.12),
    0 0 40px rgba(108, 126, 255, 0.08);
}

.canvas-river {
  min-height: 110svh;
  margin-top: -5rem;
}

.river-image {
  position: absolute;
  top: 18%;
  right: 8%;
  width: min(40vw, 520px);
  height: min(72svh, 760px);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.22), rgba(5, 5, 5, 0.48)),
    url("./images/mind.png") center/cover no-repeat;
  filter: saturate(0.84) brightness(0.78);
}

.text-island {
  position: absolute;
  left: 4%;
  top: 24%;
  width: min(48vw, 560px);
  padding: 2.6rem 2.3rem;
  border: 1px solid rgba(255, 244, 219, 0.08);
  border-radius: 60px 24px 80px 20px;
  background: rgba(10, 10, 10, 0.22);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 241, 214, 0.02),
    0 0 24px rgba(255, 225, 172, 0.05);
}

.eye-fragment {
  position: absolute;
  left: -4%;
  bottom: 6%;
  width: min(28vw, 320px);
  aspect-ratio: 0.82;
  border-radius: 40px;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.12), rgba(5, 5, 5, 0.5)),
    url("./images/eye.png") center/cover no-repeat;
  filter: saturate(0.86) brightness(0.7);
  transform: rotate(-9deg);
}

.canvas-quote {
  min-height: 82svh;
  margin-top: -6rem;
}

.quote-cloud {
  position: absolute;
  left: 16%;
  top: 26%;
  width: min(55vw, 680px);
  padding: 2.5rem 3rem;
  border: 1px solid rgba(255, 241, 212, 0.08);
  border-radius: 52% 48% 44% 56% / 45% 55% 45% 55%;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 243, 214, 0.02),
    0 0 24px rgba(255, 225, 172, 0.05);
}

.quote-cloud p {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.9;
  color: rgba(248, 233, 207, 0.92);
  text-shadow:
    0 0 22px rgba(255, 234, 195, 0.15),
    0 0 46px rgba(109, 127, 255, 0.08);
}

.paintbrush-fragment {
  position: absolute;
  right: 8%;
  top: 10%;
  width: min(28vw, 360px);
  aspect-ratio: 0.82;
  border-radius: 38px 100px 42px 90px;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.12), rgba(5, 5, 5, 0.38)),
    url("./images/istrument.png") center/cover no-repeat;
  filter: saturate(0.84) brightness(0.68);
}

.canvas-city {
  min-height: 120svh;
  margin-top: -2rem;
}

.city-image {
  position: absolute;
  left: 3%;
  top: 8%;
  width: min(50vw, 620px);
  height: min(88svh, 980px);
  border-radius: 22px 22px 120px 22px;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.14), rgba(5, 5, 5, 0.46)),
    url("./images/robot.png") center/cover no-repeat;
  filter: saturate(0.82) brightness(0.76);
}

.text-splinter {
  position: absolute;
  right: 4%;
  top: 32%;
  width: min(40vw, 470px);
  padding: 3rem 2.4rem;
  border-left: 1px solid rgba(255, 241, 212, 0.12);
  background:
    linear-gradient(90deg, rgba(255, 229, 183, 0.08), rgba(255, 229, 183, 0));
  box-shadow: 0 0 24px rgba(255, 225, 172, 0.04);
}

h2 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.9;
  font-weight: 600;
  text-shadow:
    0 0 22px rgba(255, 237, 203, 0.16),
    0 0 48px rgba(108, 126, 255, 0.09);
}

.canvas-afterglow {
  min-height: 120svh;
  margin-top: -8rem;
}

.afterglow-image {
  position: absolute;
  inset: 14% 12% 10% auto;
  width: min(52vw, 680px);
  border-radius: 44px;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.16), rgba(5, 5, 5, 0.4)),
    url("./images/man.png") center/cover no-repeat;
  filter: saturate(0.84) brightness(0.78);
}

.afterglow-copy {
  position: absolute;
  left: 4%;
  top: 20%;
  width: min(45vw, 500px);
  z-index: 1;
}

.final-whisper {
  position: absolute;
  left: 8%;
  bottom: 14%;
  max-width: 11ch;
  color: rgba(247, 232, 205, 0.9);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.94;
  text-shadow:
    0 0 20px rgba(255, 232, 190, 0.14),
    0 0 42px rgba(106, 126, 255, 0.08);
}

.artifact {
  position: absolute;
  opacity: 0.34;
  filter: blur(1.5px) brightness(0.56) saturate(0.88);
  transform: scale(0.92);
  box-shadow:
    0 0 0 1px rgba(255, 240, 212, 0.07),
    0 0 22px rgba(255, 228, 175, 0.09),
    0 0 50px rgba(104, 126, 255, 0.07);
  transition: opacity 220ms ease, filter 220ms ease, transform 220ms ease;
}

.artifact.is-lit {
  opacity: 0.96;
  filter: blur(0px) brightness(1.06) saturate(1.04);
  transform: scale(1);
}

.artifact-eye {
  top: 10%;
  left: 44%;
  width: 150px;
  aspect-ratio: 1 / 1.15;
  border-radius: 28px;
  background: url("./images/goated.png") center/cover no-repeat;
}

.artifact-brush {
  right: 12%;
  bottom: 6%;
  width: 180px;
  aspect-ratio: 0.8;
  border-radius: 34px;
  background: url("./images/imaginepfp.png") center/cover no-repeat;
}

.artifact-robot {
  top: 18%;
  right: 18%;
  width: 170px;
  aspect-ratio: 0.76;
  border-radius: 30px;
  background: url("./images/paintbrush.png") center/cover no-repeat;
}

.artifact-memory {
  left: 34%;
  bottom: 10%;
  width: 180px;
  aspect-ratio: 0.82;
  border-radius: 34px;
  background: url("./images/imagine.png") center/cover no-repeat;
}

.drift {
  --repel-x: 0px;
  --repel-y: calc(var(--drift, 0px));
  transform: translate3d(var(--repel-x), var(--repel-y), 0);
  will-change: transform;
}

@media (max-width: 960px) {
  .site-header {
    width: calc(100% - 1rem);
  }

  .brand-row {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .copy-chip {
    width: 100%;
  }

  .copy-text {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .canvas {
    width: calc(100% - 1rem);
  }

  .canvas-hero,
  .canvas-river,
  .canvas-quote,
  .canvas-city,
  .canvas-afterglow {
    min-height: auto;
    margin-top: 0;
    padding-top: 7rem;
    padding-bottom: 2rem;
  }

  .hero-image,
  .river-image,
  .eye-fragment,
  .paintbrush-fragment,
  .city-image,
  .afterglow-image,
  .hero-panel,
  .floating-quote,
  .text-island,
  .quote-cloud,
  .text-splinter,
  .afterglow-copy,
  .final-whisper,
  .artifact {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    margin: 0 0 1rem;
  }

  .hero-image,
  .river-image,
  .city-image,
  .afterglow-image {
    height: 70svh;
    min-height: 420px;
  }

  .canvas-hero {
    display: flex;
    flex-direction: column;
  }

  .hero-panel {
    order: 1;
  }

  .hero-image {
    order: 2;
  }

  .floating-quote {
    order: 3;
  }

  .eye-fragment,
  .paintbrush-fragment,
  .artifact {
    height: 44svh;
    min-height: 240px;
  }

  .text-island,
  .quote-cloud,
  .text-splinter,
  .hero-panel {
    padding: 2rem;
  }

  .quote-cloud {
    border-radius: 36px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .audio-controls {
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    justify-content: space-between;
    border-radius: 22px;
  }

  .sound-prompt-actions {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  h2 {
    font-size: clamp(2.4rem, 12vw, 3.8rem);
  }

  .quote-cloud p,
  .floating-quote,
  .final-whisper {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}
