:root {
  --ivory: #fff5e6;
  --champagne: #f7dfbf;
  --rose: #ec9a82;
  --coral: #d66a62;
  --plum: #4a135b;
  --aubergine: #210926;
  --ink: #2b1233;
  --line: rgba(121, 38, 115, 0.22);
  --glint: rgba(255, 255, 255, 0.78);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow: hidden;
  background: var(--ivory);
}

body {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f9d9bd;
  isolation: isolate;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("assets/pikturium-waves-desktop_B.png");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  pointer-events: none;
}

body::after {
  content: none;
}

.motion-filter {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wave-motion-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image: url("assets/pikturium-waves-desktop_B.png");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  filter: url("#wave-ripple") saturate(1.08);
  opacity: 0.44;
  pointer-events: none;
  transform: translate3d(-6px, 2px, 0) scale(1.006);
  transform-origin: 50% 100%;
  animation: wave-drift 18s ease-in-out infinite alternate;
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 42%, rgba(0, 0, 0, 0.12) 52%, rgba(0, 0, 0, 0.78) 66%, #000 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 42%, rgba(0, 0, 0, 0.12) 52%, rgba(0, 0, 0, 0.78) 66%, #000 100%);
  will-change: filter, transform;
}

#ambient-field {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 3;
  display: grid;
  overflow: hidden;
  min-height: 100svh;
  place-items: center;
  padding: clamp(32px, 7vw, 96px);
}

.brand-panel {
  display: grid;
  place-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  width: min(100%, 920px);
  transform: translateY(clamp(-88px, -8vh, -44px));
}

.logo-stage {
  position: relative;
  display: grid;
  width: clamp(230px, 25vw, 360px);
  aspect-ratio: 1;
  place-items: center;
  isolation: isolate;
}

.logo-stage::before {
  position: absolute;
  z-index: -1;
  width: 126%;
  height: 126%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 253, 240, 0.92) 0%, rgba(255, 238, 201, 0.48) 38%, rgba(255, 238, 201, 0) 68%);
  content: "";
  opacity: 0.9;
}

.logo-stage::after {
  position: absolute;
  inset: 3%;
  z-index: 4;
  border-radius: 50%;
  background:
    linear-gradient(116deg, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0) 43%, rgba(255, 255, 255, 0.92) 48%, rgba(255, 222, 255, 0.58) 51%, rgba(255, 255, 255, 0) 60%);
  background-position: 142% 0;
  background-size: 230% 100%;
  content: "";
  filter: blur(0.7px);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  animation: glint 7s ease-in-out infinite;
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, #000 43%, transparent 47%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, #000 43%, transparent 47%);
}

.brand-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 360px);
  height: auto;
  filter: drop-shadow(0 34px 40px rgba(54, 12, 66, 0.22));
}

.orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid var(--line);
  border-top-color: rgba(226, 108, 92, 0.58);
  border-right-color: rgba(255, 185, 91, 0.42);
  border-radius: 50%;
  pointer-events: none;
}

.orbit::after {
  position: absolute;
  top: 48%;
  right: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0a35a;
  box-shadow: 0 0 18px rgba(240, 163, 90, 0.9);
  content: "";
}

.orbit-one {
  width: 158%;
  height: 73%;
  transform: rotate(-10deg);
  animation: orbit-one 72s linear infinite;
}

.orbit-two {
  width: 190%;
  height: 94%;
  border-style: dashed;
  opacity: 0.72;
  transform: rotate(18deg);
  animation: orbit-two 96s linear infinite reverse;
}

.orbit-two::after {
  right: auto;
  left: 12%;
  background: #8c2db2;
  box-shadow: 0 0 18px rgba(140, 45, 178, 0.75);
}

.orbit-three {
  width: 134%;
  height: 118%;
  opacity: 0.44;
  transform: rotate(35deg);
  animation: orbit-three 112s linear infinite;
}

.orbit-three::after {
  top: 16%;
  right: 18%;
  width: 6px;
  height: 6px;
  background: #fff2bd;
}

.email-link {
  color: var(--aubergine);
  font-size: clamp(1rem, 1.65vw, 1.75rem);
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.55);
  transition: color 180ms ease, transform 180ms ease;
}

.email-link:hover,
.email-link:focus-visible {
  color: var(--plum);
  transform: translateY(-2px);
}

.email-link:focus-visible {
  outline: 2px solid rgba(74, 19, 91, 0.55);
  outline-offset: 8px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes orbit-one {
  0% {
    transform: rotate(-10deg);
  }

  100% {
    transform: rotate(350deg);
  }
}

@keyframes orbit-two {
  0% {
    transform: rotate(18deg);
  }

  100% {
    transform: rotate(378deg);
  }
}

@keyframes orbit-three {
  0% {
    transform: rotate(35deg);
  }

  100% {
    transform: rotate(395deg);
  }
}

@keyframes glint {
  0%,
  54%,
  100% {
    opacity: 0;
    background-position: 142% 0;
  }

  62% {
    opacity: 0.82;
  }

  76% {
    opacity: 0.28;
    background-position: -66% 0;
  }
}

@keyframes wave-drift {
  0% {
    transform: translate3d(-6px, 2px, 0) scale(1.006);
  }

  50% {
    transform: translate3d(7px, -3px, 0) scale(1.011);
  }

  100% {
    transform: translate3d(-2px, 3px, 0) scale(1.008);
  }
}

@media (max-width: 720px) {
  body {
    overflow: hidden;
  }

  body::before {
    background-image: url("assets/pikturium-waves-mobile_B.png");
  }

  .wave-motion-layer {
    background-image: url("assets/pikturium-waves-mobile_B.png");
    opacity: 0.38;
    mask-image: linear-gradient(to bottom, transparent 0%, transparent 45%, rgba(0, 0, 0, 0.14) 56%, rgba(0, 0, 0, 0.82) 70%, #000 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 45%, rgba(0, 0, 0, 0.14) 56%, rgba(0, 0, 0, 0.82) 70%, #000 100%);
  }

  .page-shell {
    padding: 28px 22px;
  }

  .brand-panel {
    gap: 18px;
    transform: translateY(-8vh);
  }

  .logo-stage {
    width: min(74vw, 292px);
  }

  .brand-logo {
    width: min(100%, 292px);
  }

  .orbit-one {
    width: 138%;
  }

  .orbit-two {
    width: 154%;
  }

  .email-link {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .wave-motion-layer {
    display: none;
  }
}
