/* =============================================================
   CSS CUSTOM PROPERTIES & RESETS
   ============================================================= */

:root {
  --font-size-base: 1rem;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-mid: rgba(255, 255, 255, 0.12);
  --gutter: var(--wp--preset--spacing--40);
}* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

/* =============================================================
   SHARED UTILITIES
   ============================================================= */

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

.section-heading {
  font-family: var(--wp--preset--font-family--syncopate);
  font-size: var(--wp--preset--font-size--huge);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--contrast);
  text-transform: uppercase;
}

/* =============================================================
   :::SECTION:Animations:::
   ============================================================= */

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

@keyframes heroGridDraw {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

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

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

.js .animate-on-scroll {
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.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; }
.js .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* =============================================================
   :::SECTION:Site Header:::
   ============================================================= */

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