/*
 * Shared site chrome — nav, mobile menu, footer, reveal-on-scroll.
 * Ported from projects/op6f-prototype/OP6F.dc.html so the blog shares
 * the exact nav + footer of the marketing site. Solid brand colors route
 * through theme.json presets; alpha-blended overlays (rgba on ink/paper)
 * are kept literal since theme.json has no rgb-triplet custom properties.
 */

/*
 * theme.json's global blockGap (24px) is applied by WP as a top margin
 * between every top-level block in .wp-site-blocks (header template part,
 * main, footer template part). That margin collapses through body,
 * revealing an unstyled band above the fixed nav on every page. Our
 * sections already manage their own spacing explicitly, so this gap is
 * pure regression — kill it at the source.
 */
.wp-site-blocks > * { margin-top: 0; }

/* ── NAV ── */
.navbar { position: fixed; top: 20px; left: 0; right: 0; z-index: 100; padding: 0 15px; }
.nav-inner { max-width: 1430px; margin: 0 auto; background: rgba(255,255,255,0.65); backdrop-filter: blur(36px); -webkit-backdrop-filter: blur(36px); border-radius: var(--wp--custom--radius--button); padding: 12px 12px 12px 24px; display: flex; justify-content: space-between; align-items: center; transition: background 0.4s ease; }
.logo-mark { display: inline-flex; align-items: center; line-height: 1; }
.logo-mark img { display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; padding-right: 40px; }
.nav-link { font-family: var(--wp--preset--font-family--body); font-size: 15px; font-weight: 500; color: var(--wp--preset--color--ink); text-decoration: none; transition: color 0.2s; }
.nav-link:hover { color: var(--wp--preset--color--brand-orange); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--surface); border: none; border-radius: var(--wp--custom--radius--button); padding: 12px 22px; font-size: 15px; font-weight: 500; cursor: pointer; font-family: var(--wp--preset--font-family--body); transition: background 0.3s, transform 0.25s; text-decoration: none; display: inline-flex; align-items: center; }
.nav-cta:hover { background: var(--wp--preset--color--brand-orange); color: var(--wp--preset--color--surface); transform: translateY(-1px); }
.menu-button { width: 48px; height: 48px; background: var(--wp--preset--color--ink); border: none; border-radius: var(--wp--custom--radius--button); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; transition: background 0.25s; }
.menu-button .bar { width: 20px; height: 1.5px; background: var(--wp--preset--color--surface); border-radius: 2px; transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.25s; transform-origin: center; }
.menu-button.open .bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-button.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-button.open .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: var(--wp--preset--color--ink); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 100px 40px 60px; opacity: 0; pointer-events: none; transition: opacity 0.4s cubic-bezier(.4,0,.2,1); overflow: hidden; }
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu-bg { position: absolute; inset: 0; overflow: hidden; }
.mobile-menu-bg::before { content: ""; position: absolute; inset: 0; background: url(../images/hero-bg.png) center 30% / cover no-repeat; filter: blur(2px); animation: kenBurns 28s ease-in-out infinite alternate; }
.mobile-menu-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(5,5,5,0.88) 0%, rgba(5,5,5,0.6) 50%, rgba(5,5,5,0.35) 100%); animation: overlayBreath 8s ease-in-out infinite alternate; }
.mobile-menu-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.65) 100%); }
.mobile-menu-scan { position: absolute; inset: 0; background: linear-gradient(135deg, transparent 0%, rgba(217,119,87,0.04) 40%, transparent 70%); animation: scanLight 12s ease-in-out infinite alternate; }
.mobile-menu-link { position: relative; z-index: 1; font-family: var(--wp--preset--font-family--display); font-size: clamp(36px,6vw,72px); font-weight: 600; letter-spacing: -2px; line-height: 1.1; color: rgba(255,255,255,0.4); text-decoration: none; display: block; opacity: 0; transform: translateY(28px); transition: color 0.25s, opacity 0.5s cubic-bezier(.22,1,.36,1), transform 0.5s cubic-bezier(.22,1,.36,1); }
.mobile-menu.open .mobile-menu-link { opacity: 1; transform: none; }
.mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.22s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.29s; }
.mobile-menu.open .mobile-menu-link:nth-child(5) { transition-delay: 0.36s; }
.mobile-menu-link:hover { color: var(--wp--preset--color--surface); }
.mobile-menu-footer { position: absolute; bottom: 48px; left: 40px; right: 40px; display: flex; justify-content: space-between; align-items: center; }
.mobile-menu-label { font-family: var(--wp--preset--font-family--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.3); }
.mobile-menu-cta { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); border: none; border-radius: var(--wp--custom--radius--button); padding: 12px 22px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--wp--preset--font-family--body); text-decoration: none; display: inline-flex; align-items: center; }
.mobile-menu-cta:hover { background: var(--wp--preset--color--brand-orange); color: var(--wp--preset--color--surface); }

@keyframes kenBurns { 0% { transform: scale(1) translate(0%,0%); } 100% { transform: scale(1.12) translate(-2%,1%); } }
@keyframes overlayBreath { 0% { opacity: 1; } 100% { opacity: 0.85; } }
@keyframes scanLight { 0% { transform: translateX(-10%) skewX(-5deg); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateX(30%) skewX(-5deg); opacity: 0; } }

/* ── FOOTER ── */
.site-footer { background: var(--wp--preset--color--paper); padding: 80px 15px 0; border-top: 1px solid rgba(0,0,0,0.09); }
.footer-inner { max-width: 1600px; margin: 0 auto; }
.footer-grid { display: flex; gap: 140px; justify-content: space-between; }
.footer-brand-col { flex: 1; min-width: 260px; width: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.footer-brand-name { display: inline-block; margin-bottom: 20px; }
.footer-brand-name img { display: block; }
.footer-brand-name-sm { display: inline-block; margin-bottom: 0; }
.footer-brand-name-sm img { display: block; }
.footer-info-link { text-decoration: none; }
.footer-info-link:hover { color: var(--wp--preset--color--brand-orange); }
.footer-brand-desc { font-size: 16px; font-weight: 500; color: var(--wp--preset--color--grey); line-height: 140%; padding-right: 25%; margin-bottom: 36px; }
.footer-nav-cols { display: flex; gap: 32px; margin-bottom: 36px; }
.footer-nav-col { display: flex; flex-direction: column; gap: 2px; }
.footer-link { display: block; overflow: hidden; height: 1.5em; text-decoration: none; }
.footer-link-inner { display: flex; flex-direction: column; transition: transform 0.25s cubic-bezier(.4,0,.2,1); }
.footer-link:hover .footer-link-inner { transform: translateY(-50%); }
.footer-link-text { font-size: 15px; font-weight: 500; color: var(--wp--preset--color--ink); line-height: 1.5em; white-space: nowrap; }
.footer-link-text + .footer-link-text { color: var(--wp--preset--color--grey); }
.footer-brand-btm { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; border-top: 1px solid rgba(0,0,0,0.09); }
.footer-social-row { display: flex; gap: 20px; }
.footer-social { display: flex; align-items: center; justify-content: center; color: var(--wp--preset--color--grey); transition: color 0.25s; text-decoration: none; }
.footer-social:hover { color: var(--wp--preset--color--ink); }
.footer-social svg { display: block; width: 20px; height: 20px; fill: currentColor; }
.footer-info-col { flex: 1; max-width: 560px; display: flex; flex-direction: column; justify-content: space-between; }
.footer-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin-bottom: 36px; }
.footer-info-label { font-family: var(--wp--preset--font-family--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--wp--preset--color--grey); margin-bottom: 8px; }
.footer-info-val { font-size: 15px; font-weight: 500; color: var(--wp--preset--color--ink); line-height: 148%; }
.footer-cta-row { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--stroke); border-radius: var(--wp--custom--radius--button); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: var(--wp--preset--color--ink); font-size: 16px; font-weight: 500; transition: background 0.3s, color 0.3s; }
.footer-cta-row:hover { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--surface); }
.footer-cta-row span:last-child { transition: transform 0.3s cubic-bezier(.22,1,.36,1); }
.footer-cta-row:hover span:last-child { transform: translateX(6px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0 32px; border-top: 1px solid rgba(0,0,0,0.09); margin-top: 28px; }
.footer-copy { font-family: var(--wp--preset--font-family--mono); font-size: 13px; font-weight: 500; color: var(--wp--preset--color--grey); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal-link { font-size: 14px; font-weight: 500; color: var(--wp--preset--color--grey); text-decoration: none; transition: color 0.2s; }
.footer-legal-link:hover { color: var(--wp--preset--color--brand-orange); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(.22,1,.36,1), transform 0.8s cubic-bezier(.22,1,.36,1); will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.rd1 { transition-delay: 0.08s; }
.reveal.rd2 { transition-delay: 0.16s; }
.reveal.rd3 { transition-delay: 0.24s; }
.reveal.rd4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
	.mobile-menu-img, .mobile-menu-overlay, .mobile-menu-scan { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
	.reveal { transition-duration: 0.01ms !important; }
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
	.nav-links { display: none; }
	.footer-grid { flex-direction: column; gap: 48px; }
	.footer-info-col { max-width: none; }
}
