/*
Theme Name: Real Biz Digital
Theme URI: https://realbizdigital.net/
Author: Real Biz Digital
Author URI: https://realbizdigital.net/
Description: Accessible, performance-focused theme for the Real Biz Digital and Barzel website.
Version: 1.5.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: real-biz-digital
*/

:root {
  --rbd-navy: #071a2f;
  --rbd-navy-2: #0b1f3a;
  --rbd-blue: #1664e8;
  --rbd-blue-light: #8cb8fa;
  --rbd-ink: #071a2f;
  --rbd-copy: #475569;
  --rbd-muted: #64748b;
  --rbd-line: rgba(7, 26, 47, .12);
  --rbd-surface: #f8fafc;
  --rbd-white: #fff;
  --rbd-width: 1240px;
  --rbd-shadow: 0 18px 52px -38px rgba(7, 26, 47, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rbd-white);
  color: var(--rbd-ink);
  font-family: "IBM Plex Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.rbd-loading,
body.rbd-leaving { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--rbd-blue); text-underline-offset: .16em; }
a:hover { color: var(--rbd-navy); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--rbd-blue-light); outline-offset: 3px; }

.screen-reader-text,
.skip-link:not(:focus) {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.skip-link:focus {
  background: var(--rbd-white);
  color: var(--rbd-navy);
  left: 18px;
  padding: 12px 16px;
  position: fixed;
  top: 18px;
  z-index: 10000;
}

.site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--rbd-line);
  position: sticky;
  top: 0;
  z-index: 900;
  backdrop-filter: blur(16px);
}
.header-inner {
  align-items: center;
  display: flex;
  gap: 26px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--rbd-width);
  min-height: 76px;
  padding: 0 32px;
}
.site-branding {
  align-items: center;
  color: var(--rbd-navy);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 11px;
  text-decoration: none;
}
.brand-logo {
  display: block;
  filter: drop-shadow(0 8px 12px rgba(22, 100, 232, .2));
  height: 46px;
  object-fit: contain;
  width: 46px;
}
.brand-mark {
  background: linear-gradient(135deg, var(--rbd-blue), var(--rbd-navy));
  border-radius: 3px;
  box-shadow: 0 8px 20px -10px var(--rbd-blue);
  display: block;
  height: 28px;
  position: relative;
  transform: rotate(45deg);
  width: 28px;
}
.brand-mark::after {
  border: 1px solid rgba(255, 255, 255, .72);
  content: "";
  inset: 6px;
  position: absolute;
}
.brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .13em;
  white-space: nowrap;
}

.rbd-page-loader {
  align-items: center;
  background:
    radial-gradient(circle at 50% 44%, rgba(22, 100, 232, .3), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(140, 184, 250, .08), transparent 58%),
    #03101e;
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity .35s ease, visibility .35s ease;
  visibility: hidden;
  z-index: 99999;
}
body.rbd-loading .rbd-page-loader,
body.rbd-leaving .rbd-page-loader {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.rbd-page-loader::before {
  background-image: radial-gradient(rgba(140, 184, 250, .24) 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
  inset: 0;
  mask-image: radial-gradient(circle at center, #000, transparent 68%);
  opacity: .38;
  position: absolute;
}
.rbd-loader-stage {
  align-items: center;
  display: flex;
  height: clamp(150px, 22vw, 210px);
  justify-content: center;
  perspective: 900px;
  position: relative;
  width: clamp(150px, 22vw, 210px);
}
.rbd-loader-stage::before,
.rbd-loader-stage::after {
  border-radius: 50%;
  content: "";
  position: absolute;
}
.rbd-loader-stage::before {
  animation: rbd-loader-breathe 1.6s ease-in-out infinite;
  background: radial-gradient(circle, rgba(22, 100, 232, .2), transparent 66%);
  inset: -22%;
}
.rbd-loader-stage::after {
  animation: rbd-loader-sweep 1.35s linear infinite;
  border: 1px solid rgba(140, 184, 250, .32);
  border-left-color: transparent;
  border-right-color: #60a5fa;
  box-shadow: 0 0 28px rgba(22, 100, 232, .35), inset 0 0 24px rgba(22, 100, 232, .16);
  inset: 0;
}
.rbd-loader-logo {
  animation: rbd-loader-logo-spin 1.8s cubic-bezier(.45, 0, .2, 1) infinite;
  filter: drop-shadow(0 18px 30px rgba(22, 100, 232, .55));
  height: 72%;
  object-fit: contain;
  position: relative;
  transform-style: preserve-3d;
  width: 72%;
  will-change: transform, filter;
  z-index: 2;
}
.rbd-loader-orbit {
  border: 1px solid rgba(96, 165, 250, .42);
  border-radius: 50%;
  inset: 10%;
  position: absolute;
}
.rbd-loader-orbit::before {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 16px #60a5fa, 0 0 30px #1664e8;
  content: "";
  height: 6px;
  left: 50%;
  position: absolute;
  top: -3px;
  width: 6px;
}
.rbd-loader-orbit-one { animation: rbd-loader-orbit 1.2s linear infinite; transform: rotateX(68deg) rotateZ(0); }
.rbd-loader-orbit-two { animation: rbd-loader-orbit-reverse 1.55s linear infinite; inset: 4%; transform: rotateY(68deg) rotateZ(0); }
.rbd-loader-label {
  color: #fff;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .32em;
  margin: 26px 0 0;
  position: relative;
  text-indent: .32em;
}
.rbd-loader-line {
  background: rgba(140, 184, 250, .18);
  height: 2px;
  margin-top: 16px;
  overflow: hidden;
  position: relative;
  width: 132px;
}
.rbd-loader-line::after {
  animation: rbd-loader-line 1.05s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, #60a5fa, #fff, transparent);
  content: "";
  inset: 0;
  position: absolute;
  transform: translateX(-100%);
}
@keyframes rbd-loader-logo-spin {
  0% { filter: drop-shadow(0 18px 30px rgba(22, 100, 232, .45)); transform: rotateY(0deg) rotateZ(0deg) scale(.92); }
  50% { filter: drop-shadow(0 22px 40px rgba(96, 165, 250, .8)); transform: rotateY(180deg) rotateZ(8deg) scale(1.04); }
  100% { filter: drop-shadow(0 18px 30px rgba(22, 100, 232, .45)); transform: rotateY(360deg) rotateZ(0deg) scale(.92); }
}
@keyframes rbd-loader-sweep { to { transform: rotate(360deg); } }
@keyframes rbd-loader-orbit { to { transform: rotateX(68deg) rotateZ(360deg); } }
@keyframes rbd-loader-orbit-reverse { to { transform: rotateY(68deg) rotateZ(-360deg); } }
@keyframes rbd-loader-breathe { 50% { opacity: .55; transform: scale(1.12); } }
@keyframes rbd-loader-line { 55%, 100% { transform: translateX(100%); } }

.menu-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--rbd-line);
  border-radius: 3px;
  color: var(--rbd-navy);
  cursor: pointer;
  display: none;
  gap: 8px;
  padding: 10px 13px;
}
.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  background: currentColor;
  content: "";
  display: block;
  height: 2px;
  width: 18px;
}
.menu-toggle-lines { position: relative; }
.menu-toggle-lines::before { position: absolute; top: -6px; }
.menu-toggle-lines::after { position: absolute; top: 6px; }

.site-nav { align-items: center; display: flex; gap: 4px; }
.site-nav > a,
.site-nav summary {
  border-radius: 3px;
  color: var(--rbd-navy);
  cursor: pointer;
  display: block;
  font-size: 14px;
  font-weight: 500;
  list-style: none;
  padding: 10px 11px;
  text-decoration: none;
}
.site-nav > a:hover,
.site-nav summary:hover,
.site-nav > a[aria-current="page"] { background: var(--rbd-surface); color: var(--rbd-blue); }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::after { content: " +"; color: var(--rbd-muted); }
.nav-products { position: relative; }
.nav-products[open] summary::after { content: " −"; }
.nav-products-panel {
  background: var(--rbd-white);
  border: 1px solid var(--rbd-line);
  border-radius: 5px;
  box-shadow: var(--rbd-shadow);
  display: grid;
  gap: 2px;
  left: 0;
  min-width: 270px;
  padding: 8px;
  position: absolute;
  top: calc(100% + 8px);
}
.nav-products-panel a {
  color: var(--rbd-navy);
  font-size: 14px;
  padding: 9px 11px;
  text-decoration: none;
}
.nav-products-panel a:hover { background: var(--rbd-surface); color: var(--rbd-blue); }
.nav-cta { background: var(--rbd-blue) !important; color: #fff !important; margin-left: 4px; padding-inline: 15px !important; }
.nav-cta:hover { background: #0f55c7 !important; }

.site-main { min-height: 62vh; }
.entry-content { margin: 0; max-width: none; padding: 0; }
.entry-content > * { max-width: none; }
.entry-content > .wp-block-group,
.entry-content > .wp-block-query { margin-inline: auto; max-width: var(--rbd-width); padding-inline: 32px; }

.listing-shell {
  margin: 0 auto;
  max-width: var(--rbd-width);
  padding: 74px 32px 96px;
}
.listing-kicker {
  color: var(--rbd-blue);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .18em;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.listing-title {
  font-size: clamp(34px, 5vw, 62px);
  letter-spacing: -.04em;
  line-height: 1.04;
  margin: 0;
}
.listing-description { color: var(--rbd-copy); font-size: 18px; margin: 20px 0 0; max-width: 66ch; }
.post-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  margin-top: 46px;
}
.post-card {
  background: var(--rbd-white);
  border: 1px solid var(--rbd-line);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { border-color: rgba(22, 100, 232, .42); box-shadow: var(--rbd-shadow); transform: translateY(-3px); }
.post-card-meta { color: var(--rbd-muted); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.post-card h2 { font-size: 21px; letter-spacing: -.02em; line-height: 1.3; margin: 14px 0 10px; }
.post-card h2 a { color: var(--rbd-navy); text-decoration: none; }
.post-card p { color: var(--rbd-copy); font-size: 15px; margin: 0; }
.post-card-link { font-weight: 600; margin-top: auto; padding-top: 20px; text-decoration: none; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { border: 1px solid var(--rbd-line); border-radius: 3px; min-width: 42px; padding: 8px 12px; text-align: center; text-decoration: none; }
.pagination .current { background: var(--rbd-navy); color: #fff; }

.rbd-contact-form { display: grid; gap: 17px; }
.rbd-contact-grid { display: grid; gap: 17px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rbd-field { display: grid; gap: 7px; }
.rbd-field-full { grid-column: 1 / -1; }
.rbd-field label { color: var(--rbd-navy); font-size: 14px; font-weight: 600; }
.rbd-field input, .rbd-field select, .rbd-field textarea {
  background: #fff;
  border: 1px solid rgba(7, 26, 47, .2);
  border-radius: 3px;
  color: var(--rbd-navy);
  min-height: 48px;
  padding: 11px 13px;
  width: 100%;
}
.rbd-field textarea { min-height: 150px; resize: vertical; }
.rbd-form-submit {
  background: var(--rbd-blue);
  border: 0;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  justify-self: start;
  padding: 14px 24px;
}
.rbd-form-submit:hover { background: #0f55c7; }
.rbd-form-notice { border-left: 3px solid var(--rbd-blue); margin-bottom: 18px; padding: 12px 16px; }
.rbd-form-notice.success { background: #ecfdf5; border-color: #059669; color: #065f46; }
.rbd-form-notice.error { background: #fff7ed; border-color: #ea580c; color: #9a3412; }
.rbd-honeypot { left: -9999px !important; position: absolute !important; }

.site-footer { background: var(--rbd-navy); color: rgba(255, 255, 255, .72); }
.footer-cta { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-cta-inner {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--rbd-width);
  padding: 50px 32px;
}
.footer-cta h2 { color: #fff; font-size: clamp(25px, 3vw, 38px); letter-spacing: -.03em; line-height: 1.15; margin: 0; }
.footer-cta p { margin: 9px 0 0; }
.footer-button { background: var(--rbd-blue); border-radius: 3px; color: #fff; flex: 0 0 auto; font-weight: 600; padding: 14px 22px; text-decoration: none; }
.footer-button:hover { background: #2e75ec; color: #fff; }
.footer-inner {
  display: grid;
  gap: 34px;
  grid-template-columns: 1.3fr repeat(2, 1fr);
  margin: 0 auto;
  max-width: var(--rbd-width);
  padding: 46px 32px 34px;
}
.footer-title { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .13em; margin: 0 0 14px; }
.footer-copy { max-width: 44ch; }
.footer-heading { color: var(--rbd-blue-light); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: .16em; margin: 0 0 13px; text-transform: uppercase; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: rgba(255, 255, 255, .76); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { align-items: center; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; margin: 0 auto; max-width: var(--rbd-width); padding: 20px 32px 26px; font-size: 13px; }
.footer-powered { color: #fff; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

.page-id-1012 .wp-block-query ul.wp-block-post-template {
  display: grid !important;
  gap: clamp(20px, 2.4vw, 28px) !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)) !important;
  list-style: none;
  margin: clamp(28px, 3vw, 44px) 0 0;
  padding: 0;
}
.page-id-1012 .wp-block-post-template > li {
  background: #fff;
  border: 1px solid rgba(7, 26, 47, .1);
  border-radius: 5px;
  box-shadow: 0 14px 36px -34px rgba(7, 26, 47, .55);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: clamp(24px, 2.4vw, 32px);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.page-id-1012 .wp-block-post-template > li:hover {
  border-color: rgba(22, 100, 232, .42);
  box-shadow: 0 24px 52px -34px rgba(7, 26, 47, .65);
  transform: translateY(-4px);
}
.page-id-1012 .wp-block-post-terms,
.page-id-1012 .wp-block-post-terms a {
  color: var(--rbd-blue);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px !important;
  font-weight: 500;
  letter-spacing: .18em !important;
  text-decoration: none;
  text-transform: uppercase;
}
.page-id-1012 .wp-block-post-title {
  font-size: clamp(19px, 1.7vw, 23px) !important;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.3 !important;
  margin: 0;
}
.page-id-1012 .wp-block-post-title a { color: var(--rbd-navy); text-decoration: none; }
.page-id-1012 .wp-block-post-excerpt {
  color: var(--rbd-copy);
  display: flex;
  flex: 1;
  flex-direction: column;
  font-size: 15.5px !important;
  line-height: 1.68;
}
.page-id-1012 .wp-block-post-excerpt__excerpt { margin: 0; }
.page-id-1012 .wp-block-post-excerpt__more-text { margin: auto 0 0; padding-top: 18px; }
.page-id-1012 .wp-block-post-excerpt__more-link { font-weight: 600; text-decoration: none; }
.page-id-1012 .wp-block-post-excerpt__more-link::after { content: " →"; }
.page-id-1012 .wp-block-post-date {
  border-top: 1px solid var(--rbd-line);
  color: var(--rbd-muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px !important;
  letter-spacing: .1em;
  padding-top: 14px;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .header-inner { min-height: 68px; padding-inline: 20px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--rbd-line);
    box-shadow: var(--rbd-shadow);
    display: none;
    left: 0;
    padding: 14px 20px 22px;
    position: absolute;
    right: 0;
    top: 100%;
  }
  .site-nav.is-open { display: grid; }
  .site-nav > a, .site-nav summary { padding: 11px 12px; }
  .nav-products-panel { box-shadow: none; margin-top: 4px; min-width: 0; position: static; }
  .nav-cta { margin-left: 0; text-align: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .brand-name { font-size: 12px; letter-spacing: .1em; }
  .brand-logo { height: 38px; width: 38px; }
  .listing-shell { padding: 54px 20px 72px; }
  .rbd-contact-grid { grid-template-columns: 1fr; }
  .rbd-field-full { grid-column: auto; }
  .footer-cta-inner { align-items: flex-start; flex-direction: column; padding: 40px 20px; }
  .footer-inner { grid-template-columns: 1fr; padding: 40px 20px 28px; }
  .footer-about { grid-column: auto; }
  .footer-bottom { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* ==========================================================================
   Barzel 2026 — site chrome and home page components.
   Added with the 2026 home page redesign. Scoped so the existing light pages
   keep their own styling: only .bz-chrome (header and footer), body.home and
   the data-attribute components are affected.
   ========================================================================== */

/* --- Dark chrome and dark home page ------------------------------------- */
body.home { background: #071a2f; color: #eef2f6; }

.bz-chrome :is(h1, h2, h3, h4, p, figure),
.bz-home-2026 :is(h1, h2, h3, h4, p, figure) { margin: 0; }

.bz-chrome ul,
.bz-home-2026 ul { margin: 0; padding: 0; list-style: none; }

.bz-chrome a,
.bz-home-2026 a { color: #8fb8ff; text-decoration: none; transition: color .24s ease; }

.bz-chrome a:hover,
.bz-home-2026 a:hover { color: #fff; }

.bz-chrome button,
.bz-home-2026 button { font-family: inherit; font-size: inherit; color: inherit; }

/* The header is fixed, so pages that are not the home page need the height
   back as padding. The home hero already carries its own top space. */
body:not(.home) .site-main { padding-top: calc(32px + clamp(64px, 6.4vw, 78px)); }
@media (max-width: 860px) {
  body:not(.home) .site-main { padding-top: clamp(64px, 6.4vw, 78px); }
}

/* The dropdown and the mobile menu carry an inline display value from the
   design, which outranks the browser's own [hidden] rule, so state it here. */
.bz-chrome [hidden] { display: none !important; }

/* --- Hover states lifted out of the design's inline styles --------------- */
.bzh0:hover { color: #fff !important; }
.bzh1:hover { background: rgba(77, 141, 255, .09) !important; color: inherit !important; }
.bzh2:hover { border-color: rgba(77, 141, 255, .6) !important; background: rgba(77, 141, 255, .1) !important; color: #fff !important; }
.bzh3:hover { background: #2e7bff !important; color: #fff !important; box-shadow: 0 22px 54px -20px rgba(46, 123, 255, .95) !important; }
.bzh4:hover { border-color: rgba(77, 141, 255, .34) !important; }
.bzh5:hover { border-color: rgba(77, 141, 255, .42) !important; background: rgba(77, 141, 255, .043) !important; transform: translateY(-3px) !important; color: inherit !important; }
.bzh6:hover { color: #8fb8ff !important; }

/* --- Components: motion, pointer polish and responsive behaviour --------- */
@keyframes bzDot{0%,100%{opacity:.95;transform:scale(1)}50%{opacity:.25;transform:scale(.62)}}
@keyframes bzSeq{0%,72%,100%{opacity:.22}10%,24%{opacity:1}}
@keyframes bzRight{0%{transform:translateX(0);opacity:0}18%{opacity:.9}82%{opacity:.9}100%{transform:translateX(var(--bz-run,60px));opacity:0}}
@keyframes bzDown{0%{transform:translateY(0);opacity:0}18%{opacity:.9}82%{opacity:.9}100%{transform:translateY(var(--bz-run,60px));opacity:0}}
@keyframes bzCaret{0%,48%{opacity:1}49%,100%{opacity:0}}
@keyframes bzTermLine{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
/* Pointer-driven polish. All of it is decorative: if pointer events never
   arrive the page renders exactly as it does now, minus the flourish. */
[data-spot]{position:relative;isolation:isolate}
[data-spotlayer]{position:absolute;inset:0;pointer-events:none;z-index:0;opacity:0;transition:opacity .55s ease;
  background:radial-gradient(360px circle at var(--mx,50%) var(--my,50%),rgba(77,141,255,0.14),transparent 62%)}
[data-spot]:hover > [data-spotlayer],[data-spot]:focus-within > [data-spotlayer]{opacity:1}
[data-spot] > *:not([data-spotlayer]){position:relative;z-index:1}
/* Product telemetry idles still and wakes on approach, so motion is a reward
   for attention rather than a permanent flicker. */
[data-viz]{--bz-play:paused}
[data-viz]:hover,[data-viz]:focus-within{--bz-play:var(--bz-allow,running)}
[data-ul]{position:relative}
[data-ul]::after{content:'';position:absolute;left:0;right:0;bottom:-5px;height:1px;background:currentColor;opacity:.5;
  transform:scaleX(0);transform-origin:100% 50%;transition:transform .42s cubic-bezier(.2,.8,.3,1)}
[data-ul]:hover::after,[data-ul]:focus-visible::after{transform:scaleX(1);transform-origin:0 50%}
[data-arrow]{display:inline-block;transition:transform .34s cubic-bezier(.2,.8,.3,1)}
a:hover [data-arrow],a:focus-visible [data-arrow],button:hover [data-arrow]{transform:translateX(5px)}
[data-mag]{transition:transform .55s cubic-bezier(.2,.8,.3,1),background .26s ease,box-shadow .26s ease}
/* Nav chrome is scroll-driven in CSS, never from a scroll listener. The inline
   style is the settled state, so a browser without scroll timelines simply
   keeps the translucent bar instead of losing the treatment altogether. */
@keyframes bzNavChrome{
  from{background-color:rgba(7,26,47,0);border-bottom-color:rgba(255,255,255,0);backdrop-filter:blur(0px)}
  to{background-color:rgba(7,26,47,0.82);border-bottom-color:rgba(255,255,255,0.07);backdrop-filter:blur(16px)}
}
@supports (animation-timeline: scroll()){
  [data-nav]{animation:bzNavChrome linear both;animation-timeline:scroll(root block);animation-range:0 130px}
}
@keyframes bzDrift{0%,100%{opacity:.42;transform:translate3d(0,0,0) scale(1)}50%{opacity:.72;transform:translate3d(2%,1.5%,0) scale(1.08)}}
@media (max-width:980px){
  [data-flow]{flex-direction:column !important}
  [data-conn]{flex:0 0 46px !important;width:100% !important}
  [data-connline]{top:0 !important;bottom:0 !important;left:50% !important;right:auto !important;width:1px !important;height:auto !important}
  [data-pulse-h]{animation-name:bzDown !important}
  [data-rail]{display:none !important}
  [data-railmini]{display:grid !important}
  [data-navlinks]{display:none !important}
  [data-menubtn]{display:inline-flex !important}
  [data-quad]{grid-template-columns:repeat(2,1fr) !important}
}
@media (max-width:560px){
  [data-quad]{grid-template-columns:1fr !important}
  [data-railmini]{grid-template-columns:1fr !important}
  [data-railmini-2]{display:none !important}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  [data-pulse-h],[data-dot],[data-seq],[data-drift]{animation:none !important;opacity:.65 !important}
  [data-termline]{animation:none !important}
  [data-spotlayer]{display:none}
  [data-mag]{transition:none}
}
@media (max-width:860px){
  [data-annbar]{display:none !important}
}


/* The header is translucent so the dark home page shows through it. Every
   other page has a light background, where a see-through bar leaves pale nav
   text on white - and the scroll-driven fade starts it fully transparent.
   Those pages get the settled dark bar at all scroll positions. */
body:not(.home) [data-nav] {
  background-color: #071a2f !important;
  border-bottom-color: rgba(255, 255, 255, .07) !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  animation: none !important;
}


/* Logo ships as WebP with a PNG fallback. The <picture> wrapper takes over the
   sizing and the 3D context the loader image previously held itself, so the
   spin animation and the stage's perspective still apply. */
.rbd-loader-stage .rbd-loader-pic {
	align-items: center;
	display: flex;
	height: 72%;
	justify-content: center;
	position: relative;
	transform-style: preserve-3d;
	width: 72%;
}

.rbd-loader-stage .rbd-loader-pic .rbd-loader-logo {
	height: 100%;
	width: 100%;
}


/* ---------------------------------------------------------------------------
   Loader motion, revised.

   The original ran six animations at six unrelated tempos (1.05s, 1.2s, 1.35s,
   1.55s, 1.6s, 1.8s) and gave the logo a rotateZ wobble, a scale pulse and a
   colour-shifting glow. Uncoordinated speed reads as busy, not confident.

   This reduces it to one primary motion (the logo) and one progress affordance
   (the arc), on a single 4.8s tempo with a strict 2:1 relationship. The logo
   turns 180 degrees, holds, turns again — presenting each face deliberately
   instead of spinning continuously. No tilt, no scale, a fixed shadow.
   --------------------------------------------------------------------------- */

.rbd-loader-stage::before {
	animation: none;
	background: radial-gradient(circle, rgba(22, 100, 232, .16), transparent 68%);
	opacity: 1;
	transform: none;
}

.rbd-loader-stage::after {
	animation: rbd-loader-sweep 2.4s linear infinite;
	border: 1px solid rgba(140, 184, 250, .12);
	border-right-color: rgba(96, 165, 250, .85);
	box-shadow: none;
}

.rbd-loader-logo {
	animation: rbd-loader-logo-spin 4.8s cubic-bezier(.62, .02, .34, 1) infinite;
	filter: drop-shadow(0 16px 30px rgba(3, 16, 30, .6));
	will-change: transform;
}

/* The glowing orbital beads were the least authoritative element. One slow,
   dimmed orbital plane is kept for depth; the second and both beads retire. */
.rbd-loader-orbit { border-color: rgba(96, 165, 250, .14); }
.rbd-loader-orbit::before { display: none; }
.rbd-loader-orbit-one { animation: rbd-loader-orbit 14.4s linear infinite; }
.rbd-loader-orbit-two { display: none; }

.rbd-loader-line::after {
	animation: rbd-loader-line 2.4s ease-in-out infinite;
	background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .9), transparent);
}

@keyframes rbd-loader-logo-spin {
	0%   { transform: rotateY(0deg); }
	42%  { transform: rotateY(180deg); }
	50%  { transform: rotateY(180deg); }
	92%  { transform: rotateY(360deg); }
	100% { transform: rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.rbd-loader-logo,
	.rbd-loader-stage::after,
	.rbd-loader-orbit-one,
	.rbd-loader-line::after { animation: none; }
	.rbd-loader-logo { transform: none; }
}
