/* CyberQoldau Header Only — standalone responsive hero v1.1.1 */
.cqh-hero,
.cqh-hero * { box-sizing: border-box; }

.cqh-hero {
  --cqh-bg: #fbfbfd;
  --cqh-bg-soft: #f3f6fd;
  --cqh-ink: #263650;
  --cqh-ink-soft: #5e6f89;
  --cqh-blue: #7792d0;
  --cqh-blue-deep: #4c6eae;
  --cqh-lavender: #dfe5f8;
  --cqh-line: #a6b9e7;
  position: relative;
  isolation: isolate;
  display: block;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(500px, 48vw, 690px);
  overflow: hidden;
  overflow: clip;
  color: var(--cqh-ink);
  background:
    radial-gradient(ellipse at 84% 20%, rgba(211, 225, 251, .56) 0, rgba(211, 225, 251, 0) 34%),
    radial-gradient(ellipse at 63% 87%, rgba(228, 221, 248, .30) 0, rgba(228, 221, 248, 0) 32%),
    linear-gradient(118deg, var(--cqh-bg) 0%, #f9faff 55%, var(--cqh-bg-soft) 100%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: Inter, "Avenir Next", Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  transition: background-color .45s ease, color .35s ease;
}

/* Resist theme/Kubio typography and button styles leaking into the shortcode. */
.cqh-hero .cqh-hero__title,
.cqh-hero h1.cqh-hero__title {
  font-family: Inter, "Avenir Next", Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: clamp(64px, 7.2vw, 108px) !important;
  font-weight: 780 !important;
  letter-spacing: -.072em !important;
  line-height: .99 !important;
  text-transform: none !important;
  font-style: normal !important;
}
.cqh-hero .cqh-hero__title-accent { font-weight: 480 !important; }
.cqh-hero .cqh-hero__topic {
  font-family: Inter, "Avenir Next", Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: clamp(25px, 2.45vw, 35px) !important;
  font-weight: 680 !important;
  line-height: 1.22 !important;
  letter-spacing: -.035em !important;
  text-transform: none !important;
  font-style: normal !important;
}
.cqh-hero .cqh-hero__subtitle {
  font-family: Inter, "Avenir Next", Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: clamp(18px, 1.5vw, 22px) !important;
  font-weight: 430 !important;
  line-height: 1.62 !important;
  letter-spacing: -.018em !important;
  text-transform: none !important;
  font-style: normal !important;
}

.cqh-hero__texture {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(135, 159, 211, .10) 0 1px, transparent 1.7px),
    radial-gradient(circle at 68% 68%, rgba(152, 150, 211, .12) 0 1px, transparent 1.8px);
  background-size: 39px 39px, 53px 53px;
  opacity: .28;
  mask-image: linear-gradient(90deg, transparent 4%, #000 44%, #000 100%);
}

.cqh-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1360px, calc(100% - clamp(40px, 8vw, 136px)));
  min-height: clamp(500px, 48vw, 690px);
  margin: 0 auto;
  padding: clamp(58px, 6.2vw, 88px) 0 clamp(48px, 5.8vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  align-items: center;
  gap: clamp(20px, 4.5vw, 76px);
}

.cqh-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding-bottom: 8px;
  animation: cqh-copy-in .8s cubic-bezier(.2, .72, .2, 1) both;
}

.cqh-hero__topic {
  max-width: 650px;
  margin: clamp(14px, 1.5vw, 20px) 0 0;
  color: var(--cqh-ink-soft);
  font-size: clamp(23px, 2.35vw, 32px);
  font-weight: 650;
  line-height: 1.24;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.cqh-hero__title {
  margin: 0;
  color: var(--cqh-ink);
  font-size: clamp(56px, 7.1vw, 100px);
  font-weight: 790;
  letter-spacing: -.072em;
  line-height: .98;
  overflow-wrap: normal;
  text-wrap: balance;
}

.cqh-hero__title-accent { color: var(--cqh-blue); font-weight: 480; }

.cqh-hero__rule {
  display: block;
  width: 46px;
  height: 3px;
  margin: clamp(20px, 2.2vw, 28px) 0 clamp(17px, 1.8vw, 23px);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cqh-blue), #c9d5f3);
}

.cqh-hero__subtitle {
  margin: 0;
  max-width: 610px;
  color: var(--cqh-ink-soft);
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 420;
  letter-spacing: -.018em;
  line-height: 1.7;
  text-wrap: pretty;
}

.cqh-theme-toggle {
  --cqh-toggle-bg: rgba(255,255,255,.78);
  position: absolute;
  z-index: 5;
  top: clamp(20px, 2.8vw, 34px);
  right: max(clamp(22px, 5vw, 82px), calc((100vw - 1360px) / 2));
  width: 88px !important;
  min-width: 88px !important;
  max-width: 88px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  font: inherit !important;
  line-height: 1 !important;
  text-transform: none !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(139, 159, 202, .28) !important;
  border-radius: 999px !important;
  background: var(--cqh-toggle-bg) !important;
  color: var(--cqh-ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(49, 72, 116, .055);
  -webkit-tap-highlight-color: transparent;
  transition: transform .22s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.cqh-theme-toggle:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(49, 72, 116, .10); }
.cqh-theme-toggle:focus-visible { outline: 3px solid rgba(119, 146, 208, .48); outline-offset: 3px; }
.cqh-hero .cqh-theme-toggle svg { display: block !important; width: 17px !important; min-width: 17px !important; max-width: 17px !important; height: 17px !important; flex: 0 0 17px !important; padding: 0 !important; margin: 0 !important; }
.cqh-hero .cqh-theme-toggle__track { flex: 0 0 28px !important; min-width: 28px !important; max-width: 28px !important; }
.cqh-hero .cqh-theme-toggle__thumb { flex: 0 0 10px !important; }
.cqh-theme-toggle__track {
  width: 28px;
  height: 16px;
  border-radius: 99px;
  background: #dce5f7;
  border: 1px solid #c4d2ef;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: background .3s ease, border-color .3s ease;
}
.cqh-theme-toggle__thumb {
  width: 10px;
  height: 10px;
  display: block;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(25, 40, 70, .18);
  transform: translateX(0);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), background .3s ease;
}
.cqh-theme-toggle__moon { opacity: .72; }

.cqh-hero__art {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  justify-self: end;
  align-self: center;
  animation: cqh-art-in 1.05s .08s cubic-bezier(.2, .72, .2, 1) both;
}
.cqh-art-svg { display: block; width: 100%; height: auto; overflow: visible; }
.cqh-art-svg--phone { display: none; }
.cqh-art-wash { fill: #e8edfb; fill-opacity: .62; }
.cqh-art-wash--one { transform-origin: center; animation: cqh-wash-drift 12s ease-in-out infinite alternate; }
.cqh-art-line, .cqh-art-bubble, .cqh-art-shield, .cqh-art-shield-inner, .cqh-art-heart, .cqh-art-spark,
.cqh-art-phone, .cqh-art-phone-shadow, .cqh-art-phone-detail {
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.cqh-art-line { fill: none; stroke: #9bb0e4; stroke-width: 1.7; }
.cqh-art-line--fine { stroke: #c3cdef; stroke-width: 1.2; }
.cqh-art-bubble { stroke: #829bd2; stroke-width: 1.8; fill: #f9faff; fill-opacity: .92; }
.cqh-art-bubble--back { fill: #edf1fc; stroke: #a4b5e2; }
.cqh-art-bubble--front { fill: #fff; }
.cqh-art-message-lines { stroke: #9baedb; stroke-width: 2.1; }
.cqh-art-shield { fill: #f9fbff; stroke: #7390ca; stroke-width: 2; }
.cqh-art-shield-inner { fill: none; stroke: #b7c5e8; stroke-width: 1.25; }
.cqh-art-heart { fill: #dce5fb; stroke: #7290d0; stroke-width: 1.8; }
.cqh-art-heart--small { stroke-width: 1.4; }
.cqh-art-spark { fill: #b7c6ec; stroke: #819ad1; stroke-width: 1; }
.cqh-art-spark--small { fill: #e8dcf5; stroke: #b6a8dc; }
.cqh-art-dot { fill: #8da8e0; }
.cqh-art-dot--two { fill: #c6b9e8; }
.cqh-art-dot--three { fill: #d8e3fa; }
.cqh-art-orbit { stroke: #c2cdef; stroke-width: 1.2; }
.cqh-art-phone { fill: #f9fbff; stroke: #6f89c1; stroke-width: 2.2; }
.cqh-art-phone-shadow { fill: none; stroke: #bdc9e9; stroke-width: 1.5; }
.cqh-art-phone-detail { fill: none; stroke: #a5b5df; stroke-width: 2.3; }
.cqh-art-laptop-screen { fill: #c5d7f0; stroke: #6687bd; stroke-width: 2.5; stroke-linejoin: round; }
.cqh-art-laptop-display { fill: url(#cqh-laptop-screen); stroke: #a5bbdf; stroke-width: 1.3; }
.cqh-art-laptop-base { fill: url(#cqh-laptop-base); stroke: #6d8cbe; stroke-width: 2; stroke-linejoin: round; }
.cqh-art-laptop-keyboard { fill: none; stroke: #8fa8d2; stroke-width: 1.5; stroke-linecap: round; }
.cqh-art-laptop-shadow { fill: none; stroke: #c8d4ed; stroke-width: 5; stroke-linecap: round; }
.cqh-art-paper-plane { fill: #b9c9f0; stroke: #7d98d4; stroke-width: 1.5; stroke-linejoin: round; }
.cqh-art-plane-fold { fill: none; stroke: #7d98d4; stroke-width: 1.2; stroke-linejoin: round; }
.cqh-art-leaf { fill: #b9d7df; stroke: #8ebbc8; stroke-width: 1.2; stroke-linejoin: round; }
.cqh-art-heart-doodle { fill: none; stroke: #9cb2e5; stroke-width: 2; stroke-linejoin: round; }

.cqh-hero__bottom-line {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: -4%;
  right: -4%;
  bottom: -33px;
  height: 95px;
  border-top: 1px solid rgba(151, 174, 225, .35);
  border-radius: 50% 48% 0 0 / 55% 42% 0 0;
  transform: rotate(-1.2deg);
}
.cqh-hero__bottom-line::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 15%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b8c9ef;
  box-shadow: 55vw 18px 0 -1px #c8bfea, 74vw -8px 0 -1px #d4e1f8;
}

/* Global dark theme: the toggle changes the page as well as this header. */
html.cqh-dark-mode,
html.cqh-dark-mode body,
body.cqh-dark-mode {
  color-scheme: dark;
  background-color: #111a2b !important;
  color: #e8edf7 !important;
}
html.cqh-dark-mode body #page,
html.cqh-dark-mode body .site,
html.cqh-dark-mode body main,
html.cqh-dark-mode body .site-content,
html.cqh-dark-mode body .content-area,
html.cqh-dark-mode body .wp-site-blocks,
html.cqh-dark-mode body .wp-block-post-content,
html.cqh-dark-mode body .entry-content,
html.cqh-dark-mode body .kubio-page,
html.cqh-dark-mode body .wp-block-kubio-section,
html.cqh-dark-mode body .wp-block-group,
html.cqh-dark-mode body .wp-block-cover,
html.cqh-dark-mode body .wp-block-template-part,
html.cqh-dark-mode body .site-header,
html.cqh-dark-mode body .site-footer {
  background-color: #111a2b !important;
  color: #e8edf7 !important;
}
html.cqh-dark-mode body h1,
html.cqh-dark-mode body h2,
html.cqh-dark-mode body h3,
html.cqh-dark-mode body h4,
html.cqh-dark-mode body h5,
html.cqh-dark-mode body h6,
html.cqh-dark-mode body p,
html.cqh-dark-mode body li,
html.cqh-dark-mode body label,
html.cqh-dark-mode body blockquote,
html.cqh-dark-mode body figcaption,
html.cqh-dark-mode body .wp-block-heading,
html.cqh-dark-mode body .wp-block-paragraph {
  color: #e8edf7;
}
html.cqh-dark-mode body a:not(.wp-block-button__link):not(.button) { color: #b6c9f5; }
html.cqh-dark-mode body input,
html.cqh-dark-mode body textarea,
html.cqh-dark-mode body select {
  color: #e8edf7;
  background-color: #1b2940;
  border-color: #425473;
}
html.cqh-dark-mode .cqh-hero {
  --cqh-bg: #111a2b;
  --cqh-bg-soft: #17243a;
  --cqh-ink: #eef2fc;
  --cqh-ink-soft: #bdc9df;
  --cqh-blue: #a7b9eb;
  --cqh-blue-deep: #b4c5f0;
  --cqh-lavender: #283550;
  --cqh-line: #52678f;
  background:
    radial-gradient(ellipse at 83% 21%, rgba(72, 94, 146, .24) 0, rgba(72, 94, 146, 0) 34%),
    radial-gradient(ellipse at 64% 87%, rgba(102, 81, 143, .18) 0, rgba(102, 81, 143, 0) 34%),
    linear-gradient(118deg, #111a2b 0%, #141f34 56%, #17243a 100%);
}
html.cqh-dark-mode .cqh-art-wash { fill: #24324c; fill-opacity: .88; }
html.cqh-dark-mode .cqh-art-bubble { fill: #1e2b42; stroke: #7e96cc; }
html.cqh-dark-mode .cqh-art-bubble--back { fill: #202e48; stroke: #657eaf; }
html.cqh-dark-mode .cqh-art-bubble--front { fill: #1b2940; }
html.cqh-dark-mode .cqh-art-shield { fill: #1c2a41; stroke: #91a9e4; }
html.cqh-dark-mode .cqh-art-shield-inner { stroke: #536995; }
html.cqh-dark-mode .cqh-art-heart { fill: #36466a; stroke: #91a9e4; }
html.cqh-dark-mode .cqh-art-phone { fill: #1b2940; stroke: #91a9e4; }
html.cqh-dark-mode .cqh-art-phone-shadow { stroke: #465a7c; }
html.cqh-dark-mode .cqh-art-phone-detail,
html.cqh-dark-mode .cqh-art-message-lines { stroke: #8197c8; }
html.cqh-dark-mode .cqh-theme-toggle { --cqh-toggle-bg: rgba(27, 41, 64, .94); border-color: rgba(137, 157, 204, .32); color: #c8d5f0; }
html.cqh-dark-mode .cqh-theme-toggle__track { background: #516ba1; border-color: #6c83b6; }
html.cqh-dark-mode .cqh-theme-toggle__thumb { background: #e9efff; transform: translateX(12px); }
html.cqh-dark-mode .cqh-theme-toggle__sun { opacity: .62; }
html.cqh-dark-mode .cqh-theme-toggle__moon { opacity: 1; }

@keyframes cqh-copy-in {
  from { opacity: 0; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cqh-art-in {
  from { opacity: 0; transform: translateY(9px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cqh-wash-drift {
  from { transform: translateY(-2px) rotate(-1deg); }
  to { transform: translateY(4px) rotate(1deg); }
}

@media (max-width: 850px) {
  .cqh-hero { min-height: auto; }
  .cqh-hero__inner {
    min-height: auto;
    width: min(100% - 44px, 720px);
    padding-top: 96px;
    padding-bottom: 68px;
    grid-template-columns: minmax(0, 1fr) minmax(230px, .82fr);
    gap: 16px;
  }
  .cqh-hero .cqh-hero__title { font-size: clamp(54px, 6.5vw, 82px) !important; }
  .cqh-hero .cqh-hero__topic { font-size: clamp(23px, 2.8vw, 30px) !important; }
  .cqh-hero .cqh-hero__subtitle { font-size: clamp(17px, 1.9vw, 20px) !important; line-height: 1.6 !important; }
  .cqh-hero .cqh-theme-toggle { right: 22px; top: 20px; }
}

@media (max-width: 620px) {
  .cqh-hero__inner {
    width: calc(100% - 40px);
    padding-top: 93px;
    padding-bottom: 39px;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .cqh-hero__copy { max-width: 100%; padding-bottom: 0; }
  .cqh-hero .cqh-hero__title { font-size: clamp(43px, 10.7vw, 58px) !important; letter-spacing: -.065em !important; line-height: 1 !important; }
  .cqh-hero .cqh-hero__topic { max-width: 100%; margin-top: 14px; font-size: clamp(21px, 6vw, 26px) !important; line-height: 1.22 !important; }
  .cqh-hero__rule { margin: 18px 0 15px; width: 39px; height: 2px; }
  .cqh-hero .cqh-hero__subtitle { font-size: 16px !important; line-height: 1.58 !important; max-width: 100%; }
  .cqh-hero__art { width: min(100%, 390px); justify-self: center; margin-top: 1px; margin-bottom: -9px; }
  .cqh-hero__bottom-line { bottom: -49px; }
  .cqh-hero__texture { background-size: 43px 43px, 59px 59px; opacity: .18; }
  .cqh-hero .cqh-theme-toggle { width: 80px !important; min-width: 80px !important; max-width: 80px !important; height: 40px !important; min-height: 40px !important; padding-inline: 8px !important; }
}

@media (max-width: 380px) {
  .cqh-hero__inner { width: calc(100% - 32px); }
  .cqh-hero .cqh-hero__title { font-size: 37px !important; }
  .cqh-hero .cqh-hero__topic { font-size: 20px !important; }
  .cqh-hero .cqh-hero__subtitle { font-size: 15px !important; }
}

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