:root {
  color-scheme: dark;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #0a1426;
}

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

.pichanga-page {
  --bg: #0a1426;
  --ink: #f4f0e6;
  --panel: #10294d;
  --coral: #f36f4f;
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  isolation: isolate;
}

.pichanga-page::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(244, 240, 230, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 230, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.pichanga-page::after {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.08;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.pichanga-shell {
  --footer-space: 28px;
  display: flex;
  min-height: 100svh;
  min-height: 100dvh;
  flex-direction: column;
  padding: clamp(18px, 3vw, 42px);
}

.pichanga-hero {
  position: relative;
  display: grid;
  min-height: 0;
  flex: 1;
  width: 100%;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 0;
}

.site-footer {
  position: relative;
  z-index: 11;
  display: flex;
  min-height: var(--footer-space);
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.site-footer a {
  color: rgba(244, 240, 230, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--coral);
}

.site-footer a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 5px;
}

.footer-divider {
  width: 1px;
  height: 14px;
  background: rgba(244, 240, 230, 0.26);
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.instagram-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.instagram-dot {
  fill: currentColor;
  stroke: none;
}

.hero-stage {
  position: relative;
  display: grid;
  width: 100%;
  min-height: min(82vh, 760px);
  place-items: center;
  transform: translate(var(--pointer-x, 0px), var(--pointer-y, 0px));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pitch-orbit,
.pitch-orbit::before,
.pitch-orbit::after {
  position: absolute;
  border: 1px solid rgba(244, 240, 230, 0.24);
  border-radius: 50%;
  content: "";
}

.pitch-orbit {
  width: min(36vw, 430px);
  height: min(36vw, 430px);
  animation: orbit-spin 24s linear infinite;
}

.pitch-orbit::before {
  inset: 13%;
  border-width: 2px;
  border-color: rgba(243, 111, 79, 0.5);
}

.pitch-orbit::after {
  inset: 29%;
  border-style: dashed;
  border-color: rgba(244, 240, 230, 0.3);
}

.pitch-crosshair {
  position: absolute;
  width: 76%;
  height: 1px;
  background: rgba(244, 240, 230, 0.22);
}

.pitch-crosshair::after {
  position: absolute;
  top: -38px;
  left: 50%;
  width: 1px;
  height: 76px;
  background: rgba(244, 240, 230, 0.22);
  content: "";
}

.hero-stage::before,
.hero-stage::after {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--coral);
  content: "";
}

.hero-stage::before {
  top: 8%;
  left: 6%;
  border-right: 0;
  border-bottom: 0;
}

.hero-stage::after {
  right: 6%;
  bottom: 8%;
  border-top: 0;
  border-left: 0;
}

.logo-halo {
  position: absolute;
  width: min(24vw, 275px);
  height: min(24vw, 275px);
  border-radius: 50%;
  background: var(--panel);
  box-shadow:
    0 0 0 16px rgba(244, 240, 230, 0.06),
    0 0 80px rgba(0, 0, 0, 0.46);
  animation: halo-breathe 4s ease-in-out infinite;
}

.logo-halo::before {
  position: absolute;
  inset: -26px;
  border: 1px solid rgba(244, 240, 230, 0.24);
  border-radius: 50%;
  content: "";
  animation: halo-ring 4s ease-out infinite;
}

.logo-halo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.logo-motto {
  position: absolute;
  left: 50%;
  top: calc(50% + min(12vw, 137.5px) + clamp(16px, 2vw, 24px));
  z-index: 2;
  width: min(40ch, calc(100% - 16px));
  margin: 0;
  color: var(--coral);
  font-size: clamp(10px, 1.1vw, 14px);
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%) rotate(-4deg);
}

@keyframes halo-breathe {
  0%,
  100% {
    transform: scale(0.98);
  }

  50% {
    transform: scale(1.035);
  }
}

@keyframes halo-ring {
  0% {
    opacity: 0.7;
    transform: scale(0.9);
  }

  80%,
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 620px) {
  .pichanga-shell {
    --shell-pad-top: max(16px, env(safe-area-inset-top));
    --shell-pad-right: max(16px, env(safe-area-inset-right));
    --shell-pad-bottom: max(16px, env(safe-area-inset-bottom));
    --shell-pad-left: max(16px, env(safe-area-inset-left));
    padding: var(--shell-pad-top) var(--shell-pad-right) var(--shell-pad-bottom)
      var(--shell-pad-left);
  }

  .pichanga-hero {
    grid-template-columns: 1fr;
    place-items: center;
  }

  .hero-stage {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-height: calc(
      100svh - var(--shell-pad-top) - var(--shell-pad-bottom) - var(--footer-space)
    );
    min-height: calc(
      100dvh - var(--shell-pad-top) - var(--shell-pad-bottom) - var(--footer-space)
    );
    margin: 0;
  }

  .pitch-orbit {
    width: min(75vw, 300px);
    height: min(75vw, 300px);
  }

  .logo-halo {
    width: min(48vw, 190px);
    height: min(48vw, 190px);
  }

  .logo-halo img {
    padding: 12px;
  }

  .logo-motto {
    top: calc(50% + clamp(145px, 38vw, 180px));
  }
}

@media (hover: none), (pointer: coarse) {
  .hero-stage {
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pichanga-page *,
  .pichanga-page *::before,
  .pichanga-page *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}