/* ============================================
   TweetEdit — Digital Contempt
   ============================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

@keyframes hardCut {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes priceReveal {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes slashIn {
  from { transform: rotate(-8deg) scaleX(0); }
  to { transform: rotate(-8deg) scaleX(1); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.25; }
}

.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; }

.section-label {
  font-family: var(--wp--preset--font-family--share-tech-mono);
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--accent-1);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--wp--preset--spacing--30);
}

.text-accent {
  color: var(--wp--preset--color--accent-1);
}

/* 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;
}

/* Static conversion scroll reveal visibility guard */
html.js .animate-on-scroll:not(.is-visible),
.js .animate-on-scroll:not(.is-visible),
html.js .animate-on-scroll.animate-from-left:not(.is-visible),
.js .animate-on-scroll.animate-from-left:not(.is-visible),
html.js .animate-on-scroll.animate-from-right:not(.is-visible),
.js .animate-on-scroll.animate-from-right:not(.is-visible),
html.js .animate-on-scroll.animate-scale:not(.is-visible),
.js .animate-on-scroll.animate-scale:not(.is-visible),
.editor-styles-wrapper .animate-on-scroll:not(.is-visible),
.editor-styles-wrapper .animate-on-scroll.animate-from-left:not(.is-visible),
.editor-styles-wrapper .animate-on-scroll.animate-from-right:not(.is-visible),
.editor-styles-wrapper .animate-on-scroll.animate-scale:not(.is-visible) {
  opacity: 1 !important;
  transform: none !important;
}