/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --border-card: 2px solid rgba(0, 240, 255, 0.2);
  --border-hairline: 1px solid rgba(0, 240, 255, 0.15);
  --radius-card: 16px;
  --radius-pill: 50px;
  --gutter: var(--wp--preset--spacing--40);
}

/* ============================================================
   RESET
   ============================================================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

@keyframes heroMorphBlob {
  0%   { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
  33%  { border-radius: 65% 35% 52% 48% / 55% 40% 60% 45%; }
  66%  { border-radius: 48% 52% 35% 65% / 40% 55% 45% 60%; }
  100% { border-radius: 55% 45% 62% 38% / 50% 48% 52% 50%; }
}

@keyframes heroFloatUp {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.7; }
  100% { transform: translateY(-110vh) translateX(40px) rotate(360deg); opacity: 0; }
}

@keyframes heroBob {
  0%   { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-6px) rotate(3deg); }
}

@keyframes popIn {
  0%   { transform: scale(0.95) translateY(15px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes swimIn {
  0%   { transform: translate(120px, 30px) scale(0.9) rotate(5deg); opacity: 0; }
  100% { transform: translate(0) scale(1) rotate(0deg); opacity: 1; }
}

@keyframes cardPop {
  0%   { transform: translateY(40px) rotate(0deg); opacity: 0; }
  100% { transform: translateY(0) rotate(-3deg); opacity: 1; }
}

@keyframes spineLine {
  0%   { height: 0; }
  100% { height: 100%; }
}

.animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

.js .animate-on-scroll:not(.is-visible) {
  opacity: 0;
  transform: translateY(30px);
}

.js .animate-on-scroll {
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js .animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.js .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.js .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.js .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }

/* Navigation — Parent-level rules (can't scope to nav block)
   -------------------------------------------------------------------------- */
.wp-block-template-part:has(.wp-block-navigation .is-menu-open),
header:has(.wp-block-navigation .is-menu-open) {
  z-index: 100001;
  position: relative;
}

footer.wp-block-template-part,
footer.wp-block-template-part > .wp-block-group {
  position: relative;
  z-index: 1;
}

[class*="site-footer"],
[class*="footer-section"] {
  margin-block-start: 0 !important;
}

:where(.wp-site-blocks, .wp-block-post-content) :where(
  .wp-block-group,
  .wp-block-cover,
  .wp-block-columns,
  .wp-block-column,
  .wp-block-media-text,
  .wp-block-buttons,
  .wp-block-button,
  .wp-block-image,
  .wp-block-heading,
  p,
  ul,
  ol,
  li
) {
  min-width: 0;
  box-sizing: border-box;
}

:where(.wp-site-blocks, .wp-block-post-content) > :where(.alignfull, section) {
  max-width: 100vw;
  box-sizing: border-box;
}

/* Static conversion scroll reveal visibility guard */
.animate-on-scroll,
.animate-from-left,
.animate-from-right,
.animate-scale,
html.js .animate-on-scroll:not(.is-visible),
.js .animate-on-scroll:not(.is-visible),
.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .animate-from-left,
.editor-styles-wrapper .animate-from-right,
.editor-styles-wrapper .animate-scale {
  opacity: 1 !important;
  transform: none !important;
}
/* Miles child theme: template-level children own their spacing; the global
   blockGap is for content flow, not the header/content/footer seam. */
.wp-site-blocks > * { margin-block-start: 0; }
