/* ============================================================
   Zeonix Method Header — standalone component
   Prefix: .zxh-  (safe to drop into any WordPress theme)
   Driven by --zxh-p (0 = top / giant, 1 = collapsed slim bar)
   ============================================================ */

:root {
  --zxh-ink: #007bff;
  --zxh-ink-soft: #007bff;
  --zxh-line: #e7eaef;
  --zxh-navy: #ffffff;
  --zxh-navy-2: #f0f7ff;
  --zxh-accent: #007bff;
  --zxh-cyan: #007bff;

  --zxh-p: 0;
  --zxh-top-h: 330px;
  --zxh-bar-h: 68px;
  --zxh-h: calc(var(--zxh-top-h) - (var(--zxh-top-h) - var(--zxh-bar-h)) * var(--zxh-p));

  --zxh-font-display: "Sora", system-ui, sans-serif;
  --zxh-font-body: "Manrope", system-ui, sans-serif;
}

/* push page content below the tall header */
body.zxh-active { padding-top: var(--zxh-top-h) !important; }

.zxh {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99990;
  height: var(--zxh-h);
  font-family: var(--zxh-font-body);
  background: rgba(255,255,255, calc((var(--zxh-p) - .55) / .45 * .96));
  backdrop-filter: blur(calc(var(--zxh-p) * 14px)) saturate(150%);
  -webkit-backdrop-filter: blur(calc(var(--zxh-p) * 14px)) saturate(150%);
  box-shadow: 0 1px 0 rgba(231,234,239, var(--zxh-p)),
              0 14px 34px -22px rgba(20,23,28, calc(var(--zxh-p) * .4));
}
/* white backdrop behind the giant state, fades out as it collapses */
.zxh::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--zxh-navy);
  opacity: calc(1 - var(--zxh-p));
}
.zxh *, .zxh *::before, .zxh *::after { box-sizing: border-box; }
.zxh a { text-decoration: none; }

.zxh-inner {
  width: 100%; max-width: 1680px; margin: 0 auto;
  padding: 0 clamp(20px, 3.4vw, 48px);
}

/* ----- giant layer ----- */
.zxh-big {
  position: absolute; left: 0; right: 0; top: 0;
  padding-top: clamp(18px, 2.4vw, 30px);
  opacity: max(0, calc(1 - var(--zxh-p) * 1.7));
  transform: translateY(calc(var(--zxh-p) * -34px));
  overflow: hidden;
}
.zxh[data-collapsed="true"] .zxh-big { pointer-events: none; }

.zxh-wordmark-giant {
  display: flex; justify-content: space-between; align-items: flex-start;
  width: 100%; line-height: .8; overflow: hidden;
}
.zxh-wordmark-giant span {
  font-family: var(--zxh-font-display); font-weight: 800; color: var(--zxh-accent);
  font-size: clamp(48px, 16vw, 288px); letter-spacing: -.02em; display: block;
  transform: scale(calc(1 - var(--zxh-p) * .12));
  transform-origin: center top;
}
@media (prefers-reduced-motion: no-preference) {
  .zxh.zxh-intro .zxh-wordmark-giant span { animation: zxhLetterUp .9s cubic-bezier(.22,.61,.36,1) backwards; }
  .zxh.zxh-intro .zxh-wordmark-giant span:nth-child(1) { animation-delay: .05s; }
  .zxh.zxh-intro .zxh-wordmark-giant span:nth-child(2) { animation-delay: .12s; }
  .zxh.zxh-intro .zxh-wordmark-giant span:nth-child(3) { animation-delay: .19s; }
  .zxh.zxh-intro .zxh-wordmark-giant span:nth-child(4) { animation-delay: .26s; }
  .zxh.zxh-intro .zxh-wordmark-giant span:nth-child(5) { animation-delay: .33s; }
  .zxh.zxh-intro .zxh-wordmark-giant span:nth-child(6) { animation-delay: .40s; }
  .zxh.zxh-intro .zxh-wordmark-giant span:nth-child(7) { animation-delay: .47s; }
  .zxh.zxh-intro .zxh-wordmark-giant span:nth-child(8) { animation-delay: .54s; }
}
@keyframes zxhLetterUp { from { transform: translateY(110%); } to { transform: translateY(0); } }

.zxh-nav-wide { display: flex; justify-content: space-between; width: 100%; margin-top: clamp(8px, 1.1vw, 16px); list-style: none; padding: 0; }
.zxh-nav-wide li { list-style: none; }
.zxh-nav-wide a {
  font-weight: 600; font-size: clamp(14px, 1.18vw, 20px); color: var(--zxh-accent);
  position: relative; padding-bottom: 4px; transition: color .2s ease;
}
.zxh-nav-wide a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--zxh-accent); transition: width .25s ease;
}
.zxh-nav-wide a:hover { color: #0056b3; }
.zxh-nav-wide a:hover::after,
.zxh-nav-wide .current-menu-item a::after { width: 100%; }
.zxh-nav-wide .current-menu-item a { color: #0056b3; }

/* ----- slim bar layer ----- */
.zxh-bar {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: min(1, max(0, calc((var(--zxh-p) - .55) * 2.6)));
  pointer-events: none;
}
.zxh[data-collapsed="true"] .zxh-bar { pointer-events: auto; }
.zxh-bar .zxh-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.zxh-wordmark-mini {
  display: flex; align-items: center; flex: none; line-height: 0;
}
.zxh-logo { height: clamp(26px, 2.6vw, 34px); width: auto; }
.zxh-nav-mini { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 32px); margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.zxh-nav-mini li { list-style: none; }
.zxh-nav-mini a {
  font-weight: 600; font-size: 15.5px; color: #000; white-space: nowrap;
  position: relative; padding-bottom: 3px; transition: color .2s ease;
}
.zxh-nav-mini a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--zxh-accent); transition: width .25s ease;
}
.zxh-nav-mini a:hover, .zxh-nav-mini .current-menu-item a { color: var(--zxh-accent); }
.zxh-nav-mini .current-menu-item a::after { width: 100%; }

/* progress hairline */
.zxh-progress {
  position: absolute; left: 0; bottom: 0; height: 2.5px; width: 100%;
  transform-origin: left; transform: scaleX(var(--zxh-sp, 0));
  background: linear-gradient(90deg, var(--zxh-accent), var(--zxh-cyan));
  opacity: var(--zxh-p); pointer-events: none;
}

/* ----- burger + mobile menu ----- */
.zxh-burger {
  display: none; position: absolute; top: 14px; right: clamp(16px, 3vw, 40px); z-index: 6;
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--zxh-accent);
  background: transparent; color: var(--zxh-accent); font-size: 22px; line-height: 1;
  align-items: center; justify-content: center; cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, top .25s ease;
}
.zxh[data-collapsed="true"] .zxh-burger {
  top: 50%; transform: translateY(-50%);
  border-color: var(--zxh-line); background: #fff; color: var(--zxh-ink);
}

.zxh-menu {
  position: fixed; inset: 0; z-index: 99995; background: #fff;
  display: flex; flex-direction: column; padding: 24px clamp(20px, 6vw, 40px) 40px;
  font-family: var(--zxh-font-body);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.zxh-menu.zxh-open { opacity: 1; visibility: visible; }
.zxh-menu-top { display: flex; align-items: center; justify-content: space-between; }
.zxh-menu-brand { font-family: var(--zxh-font-display); font-weight: 800; font-size: 22px; color: var(--zxh-accent); letter-spacing: -.02em; }
.zxh-menu-brand .zxh-gl { font-family: var(--zxh-font-body); font-weight: 700; font-size: 10px; letter-spacing: .14em; color: var(--zxh-accent); text-transform: uppercase; margin-left: 8px; }
.zxh-menu-close {
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--zxh-accent);
  background: transparent; color: var(--zxh-accent); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.zxh-menu-nav { display: flex; flex-direction: column; margin-top: 8vh; list-style: none; padding: 0; }
.zxh-menu-nav li { list-style: none; counter-increment: zxh; }
.zxh-menu-nav a {
  font-family: var(--zxh-font-display); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(34px, 9vw, 52px); line-height: 1.25; color: var(--zxh-accent);
  padding: 6px 0; border-bottom: 1px solid rgba(0,123,255,.12);
  display: flex; align-items: baseline; gap: 14px;
  opacity: 0; transform: translateY(18px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.22,.61,.36,1), color .2s ease;
}
.zxh-menu.zxh-open .zxh-menu-nav a { opacity: 1; transform: none; }
.zxh-menu.zxh-open .zxh-menu-nav li:nth-child(1) a { transition-delay: .06s; }
.zxh-menu.zxh-open .zxh-menu-nav li:nth-child(2) a { transition-delay: .11s; }
.zxh-menu.zxh-open .zxh-menu-nav li:nth-child(3) a { transition-delay: .16s; }
.zxh-menu.zxh-open .zxh-menu-nav li:nth-child(4) a { transition-delay: .21s; }
.zxh-menu.zxh-open .zxh-menu-nav li:nth-child(5) a { transition-delay: .26s; }
.zxh-menu.zxh-open .zxh-menu-nav li:nth-child(6) a { transition-delay: .31s; }
.zxh-menu-nav a::before {
  content: "0" counter(zxh);
  font-family: var(--zxh-font-body); font-weight: 700; font-size: 13px; color: var(--zxh-accent);
}
.zxh-menu-nav .current-menu-item a { color: var(--zxh-accent); }
body.zxh-locked { overflow: hidden !important; }

@media (max-width: 860px) {
  :root { --zxh-top-h: 200px; --zxh-bar-h: 60px; }
  .zxh-nav-wide, .zxh-nav-mini { display: none; }
  .zxh-burger { display: flex; }
  .zxh-big { padding-top: 14px; }
  .zxh-big .zxh-inner { padding-right: 76px; }
  .zxh-wordmark-giant { line-height: .9; }
}
@media (max-width: 400px) {
  :root { --zxh-top-h: 170px; }
  .zxh-wordmark-giant span { font-size: 15vw; }
}
@media (prefers-reduced-motion: reduce) {
  .zxh-menu-nav a { transition: color .2s ease; }
}
