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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background-color: #000000;
  color: #ffffff;
  overflow-x: hidden;
}

/* Trailing glow behind cursor – larger, softer, longer trail */
#cursor-trail {
  position: fixed;
  width: 240px;
  height: 240px;
  margin-left: -120px;
  margin-top: -120px;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 80px 50px rgba(255, 255, 255, 0.06),
    0 0 140px 70px rgba(255, 255, 255, 0.04);
  filter: blur(45px);
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
}

/* Cuberto mouse-follower: visible white dot + glow on top */
.mf-cursor {
  z-index: 9999;
  color: #ffffff;
}

.mf-cursor::before {
  background: #ffffff !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 12px 3px rgba(255, 255, 255, 0.2),
    0 0 24px 6px rgba(255, 255, 255, 0.1);
  transform: scale(0.28);
}

/* Custom display font for headings (requires /fonts/Trattatello.ttf in project) */
@font-face {
  font-family: "TrattatelloCustom";
  src: url("../fonts/Trattatello.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

::selection {
  background: #ffffff;
  color: #000000;
}

/* Tide background: slow, soft movement – visible on black */
#tide-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 100% 50% at 20% 95%,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.04) 50%,
      transparent 75%
    ),
    radial-gradient(
      ellipse 120% 55% at 50% 95%,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.06) 45%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 90% 45% at 80% 98%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 60%
    );
  animation: tide 22s ease-in-out infinite;
}

@keyframes tide {
  0%,
  100% {
    transform: scale(1) translateY(0) translateX(0);
    opacity: 1;
  }
  33% {
    transform: scale(1.06) translateY(-3%) translateX(1%);
    opacity: 0.95;
  }
  66% {
    transform: scale(1.04) translateY(-2%) translateX(-1%);
    opacity: 1;
  }
}

/* White blobs: warp and drift in background */
#blob-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.blob {
  position: absolute;
  width:  min(80vmax, 900px);
  height: min(80vmax, 900px);
  background: rgba(255, 255, 255, 0.06);
  filter: blur(70px);
  will-change: transform, border-radius;
}

.blob-a {
  top: -20%;
  left: -15%;
  border-radius: 60% 40% 50% 60% / 55% 45% 60% 50%;
  animation: blob-a-move 18s ease-in-out infinite;
}

.blob-b {
  bottom: -25%;
  right: -10%;
  width:  min(70vmax, 700px);
  height: min(70vmax, 700px);
  border-radius: 45% 55% 60% 40% / 50% 60% 45% 55%;
  animation: blob-b-move 16s ease-in-out infinite;
}

@keyframes blob-a-move {
  0%, 100% {
    border-radius: 60% 40% 50% 60% / 55% 45% 60% 50%;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    border-radius: 40% 60% 55% 45% / 60% 50% 40% 55%;
    transform: translate(8%, 5%) scale(1.06) rotate(3deg);
  }
  50% {
    border-radius: 55% 45% 40% 60% / 45% 60% 55% 40%;
    transform: translate(-4%, 10%) scale(0.96) rotate(-2deg);
  }
  75% {
    border-radius: 50% 50% 60% 40% / 50% 45% 50% 60%;
    transform: translate(5%, -2%) scale(1.03) rotate(1deg);
  }
}

@keyframes blob-b-move {
  0%, 100% {
    border-radius: 45% 55% 60% 40% / 50% 60% 45% 55%;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    border-radius: 60% 40% 45% 55% / 55% 45% 60% 50%;
    transform: translate(-7%, -6%) scale(1.05) rotate(-4deg);
  }
  66% {
    border-radius: 50% 60% 50% 50% / 40% 55% 55% 45%;
    transform: translate(8%, 5%) scale(0.98) rotate(3deg);
  }
}

/* Brutalist frame for photo placeholder */
.brutalist-frame {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Hero: "Experimenter" = Archivo, bold and tall, not too wide; "Become the Synth" = Trattatello */
.hero-brand {
  display: inline-block;
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: scaleX(0.72);
  transform-origin: left center;
  margin-left: -1.8rem
}

/* Hero sub and CTA: align left with headline */
.hero-sub {
  margin-left: 1rem;
}

/* CTA block: shift right so button center aligns with "the" in "Become the Synth" */
.hero-cta-block {
  margin-left: 8.5rem;
}

/* Headings: Trattatello font, no animation */
.kinetic-heading {
  font-family: "TrattatelloCustom", "Archivo", system-ui, sans-serif;
}

/* Hero: give image column more room; slightly tighter padding */
.hero-section {
  --hero-text-basis: 32%;
  --hero-image-basis: 68%;
}

/* 3D hero panel styling – image is the focus */
.experimenter-panel {
  perspective: 1600px;
  cursor: pointer;
}

.experimenter-panel-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transform-origin: center center;
  transform: rotateY(-12deg) rotateX(5deg) translateY(0) translateX(-6%) scale(1.2);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.9);
  transition:
    transform 0.5s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
}

.experimenter-panel:hover .experimenter-panel-image {
  transform: rotateY(-4deg) rotateX(2deg) translateY(-8px) translateX(-30%) scale(1.52);
  box-shadow:
    0 80px 180px rgba(0, 0, 0, 0.95);
}

/* CTA button: calm hover (soft scale + glow, no shake) */
.cta-button {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  letter-spacing: 0.12em;
  position: relative;
  overflow: hidden;
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.35s ease;
}

.cta-button:hover {
  background-color: #000000;
  color: #ffffff;
  border-color: #ffffff;
  transform: scale(1.02);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.2);
}

.cta-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

