/*
Theme Name: Quadrant
Theme URI: https://quadrantconsulting.gt
Author: Quadrant Consulting S.A.
Description: Hand-coded block theme for Quadrant Consulting. Coordinate-grid identity, no page builder, built for speed. Design system lives in theme.json; this file holds the signature pieces and refinements.
Version: 0.1.5
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quadrant
*/

/* ---------------------------------------------------------------------------
   1. Base refinements
   theme.json handles palette, type scale, spacing. Everything below is the
   stuff the token layer can't express: the grid signature, section framing,
   motion, and accessibility guarantees.
--------------------------------------------------------------------------- */

:root {
  --q-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body { overflow-x: hidden; }

/* Mono utility label — the "coordinate" eyebrow used across sections */
.q-eyebrow {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--axis);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.q-eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

/* ---------------------------------------------------------------------------
   2. Site header
--------------------------------------------------------------------------- */
.wp-block-template-part.site-header,
.q-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--wp--preset--color--paper) 82%, transparent);
  border-bottom: 1px solid var(--wp--preset--color--line);
}
.q-brand {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.15rem;
}
.q-brand span { color: var(--wp--preset--color--axis); }

/* Nav links rendered in the mono utility face */
.q-header .wp-block-navigation {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

/* ---------------------------------------------------------------------------
   3. Signature: the quadrant plot (hero)
--------------------------------------------------------------------------- */
.q-plot { width: 100%; height: auto; color: var(--wp--preset--color--ink); }
.q-plot .axis { stroke: var(--wp--preset--color--line); stroke-width: 1; }
.q-plot .tick  { stroke: var(--wp--preset--color--line); stroke-width: 1; }
.q-plot .quad-label {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 11px; fill: var(--wp--preset--color--slate); letter-spacing: 0.1em;
}
.q-plot .point { fill: var(--wp--preset--color--axis); }
.q-plot .point-ring { fill: none; stroke: var(--wp--preset--color--axis); stroke-width: 1; opacity: 0.35; }
.q-plot .point-caption {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 12px; fill: var(--wp--preset--color--ink); font-weight: 500;
}

/* Draw-in animation for the axes + points, respecting reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .q-plot .axis, .q-plot .tick {
    stroke-dasharray: 480; stroke-dashoffset: 480;
    animation: q-draw 1.1s var(--q-ease) forwards;
  }
  .q-plot .point, .q-plot .point-ring, .q-plot .point-caption {
    opacity: 0; animation: q-fade 0.5s var(--q-ease) forwards;
  }
  .q-plot .point:nth-of-type(1) { animation-delay: 0.7s; }
  .q-plot [data-i="1"] { animation-delay: 0.8s; }
  .q-plot [data-i="2"] { animation-delay: 0.95s; }
  .q-plot [data-i="3"] { animation-delay: 1.1s; }
  .q-plot [data-i="4"] { animation-delay: 1.25s; }
}
@keyframes q-draw { to { stroke-dashoffset: 0; } }
@keyframes q-fade { to { opacity: 1; } }

/* ---------------------------------------------------------------------------
   4. Service quadrants
--------------------------------------------------------------------------- */
.q-quad {
  border: 1px solid var(--wp--preset--color--line);
  background: var(--wp--preset--color--surface);
  padding: 2rem 1.75rem 2.25rem;
  position: relative;
  transition: transform 0.35s var(--q-ease), border-color 0.35s var(--q-ease);
}
.q-quad:hover { transform: translateY(-4px); border-color: var(--wp--preset--color--axis); }
.q-quad .q-num {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.75rem; letter-spacing: 0.14em; color: var(--wp--preset--color--slate);
}
.q-quad h3 { font-size: 1.35rem; margin: 0.9rem 0 0.6rem; }
.q-quad p { color: var(--wp--preset--color--slate); font-size: 0.98rem; margin: 0; }
.q-quad::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--wp--preset--color--axis);
  transition: width 0.4s var(--q-ease);
}
.q-quad:hover::after { width: 100%; }

/* ---------------------------------------------------------------------------
   5. Section rhythm + scroll reveal
--------------------------------------------------------------------------- */
.q-section { scroll-margin-top: 80px; }
.q-dark {
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--paper);
}
.q-dark :is(h1,h2,h3) { color: var(--wp--preset--color--surface); }
.q-dark .q-eyebrow { color: #7E96FF; }

@media (prefers-reduced-motion: no-preference) {
  .q-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--q-ease), transform 0.7s var(--q-ease); }
  .q-reveal.is-in { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------------
   6. Accessibility floor
--------------------------------------------------------------------------- */
:where(a, button, input, .wp-block-navigation-item__content):focus-visible {
  outline: 2px solid var(--wp--preset--color--axis);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--wp--preset--color--ink); color: #fff; padding: 0.6rem 1rem; }

/* ---------------------------------------------------------------------------
   7. Interactive quadrant plot (hero) — hover/focus decoding readout
--------------------------------------------------------------------------- */
.q-plot-wrap { position: relative; }

.q-plot .q-cross {
  stroke: var(--wp--preset--color--axis);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  opacity: 0;
  transition: opacity 0.3s var(--q-ease);
}

.q-point-group { cursor: pointer; outline: none; }
.q-point-group .point-ring {
  transform-box: fill-box; transform-origin: center;
  transition: transform 0.35s var(--q-ease), opacity 0.35s var(--q-ease);
}
.q-point-group:hover .point-ring,
.q-point-group:focus-visible .point-ring,
.q-point-group.is-active .point-ring { transform: scale(1.75); opacity: 0.85; }

.q-point-group:hover .q-cross,
.q-point-group:focus-visible .q-cross,
.q-point-group.is-active .q-cross { opacity: 0.55; }

.q-point-group:hover .point-caption,
.q-point-group:focus-visible .point-caption,
.q-point-group.is-active .point-caption { fill: var(--wp--preset--color--axis); font-weight: 600; }

.q-point-group .point { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .q-point-group.is-active .point { animation: q-pulse 1.2s ease-in-out infinite; }
}
@keyframes q-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }

/* Decoding readout HUD */
.q-readout {
  position: absolute; left: 6px; bottom: 6px; max-width: 264px;
  padding: 0.85rem 1rem;
  background: color-mix(in srgb, var(--wp--preset--color--ink) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--axis) 45%, transparent);
  border-radius: 3px;
  font-family: var(--wp--preset--font-family--mono);
  display: flex; flex-direction: column; gap: 0.4rem;
  box-shadow: 0 14px 34px -14px rgba(14, 22, 38, 0.55);
  transition: border-color 0.3s var(--q-ease), transform 0.3s var(--q-ease);
}
.q-readout.is-live { border-color: var(--wp--preset--color--axis); transform: translateY(-2px); }
.q-readout-coord { font-size: 0.68rem; letter-spacing: 0.14em; color: #7E96FF; text-transform: uppercase; }
.q-readout-name  { font-size: 1rem; font-weight: 600; color: #fff; letter-spacing: -0.01em; min-height: 1.2em; }
.q-readout-desc  { font-size: 0.76rem; line-height: 1.5; color: #aab4c6; }
.q-readout .q-glyph { color: var(--wp--preset--color--axis); }
.q-readout-cursor { width: 8px; height: 14px; background: var(--wp--preset--color--axis); margin-top: 0.15rem; }
@media (prefers-reduced-motion: no-preference) {
  .q-readout-cursor { animation: q-blink 1.05s steps(2) infinite; }
}
@keyframes q-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

@media (max-width: 781px) {
  .q-readout { position: static; margin-top: 1rem; max-width: none; }
}

/* ---------------------------------------------------------------------------
   8. WhatsApp floating action button
--------------------------------------------------------------------------- */
.q-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--q-ease), box-shadow 0.25s var(--q-ease);
}
.q-wa:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.42); }
.q-wa svg { width: 32px; height: 32px; fill: #fff; }
.q-wa:focus-visible { outline: 3px solid var(--wp--preset--color--ink); outline-offset: 3px; }

/* ===========================================================================
   9. QUADRANT BRAND SKIN
   Navy base + brand green/teal, hexagonal motifs, glowing interactive console.
   (Remnant-inspired motion, mapped onto the real Quadrant Consulting brand.)
=========================================================================== */
:root {
  --q-green: #17E39A;
  --q-teal:  #12CFC6;
  --q-mint:  #8BF7DE;
  --q-navy:  #0A1A2E;
  --q-panel: #0F2438;
  --q-glow-green: 0 0 18px rgba(23, 227, 154, 0.40);
  --q-glow-teal:  0 0 18px rgba(18, 207, 198, 0.45);
  --q-grad: linear-gradient(135deg, #12CFC6, #17E39A);
  --q-bevel: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

body {
  background-color: var(--q-navy);
  color: #E6EFF7;
  background-image:
    radial-gradient(1100px 560px at 86% -8%, rgba(18, 207, 198, 0.10), transparent 60%),
    radial-gradient(900px 520px at -8% 108%, rgba(23, 227, 154, 0.07), transparent 55%),
    radial-gradient(rgba(28, 52, 80, 0.45) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
}

.q-eyebrow { color: var(--q-teal); }
.q-eyebrow::before { background: var(--q-green); box-shadow: var(--q-glow-green); }

/* Header + logo */
.q-header {
  background: color-mix(in srgb, var(--q-navy) 84%, transparent);
  border-bottom: 1px solid rgba(23, 227, 154, 0.20);
}
.q-logo { height: 34px; width: auto; display: block; }
.q-header .wp-block-navigation a { color: #C6D6E6; }
.q-header .wp-block-navigation a:hover { color: var(--q-green); }

/* Buttons */
.wp-block-button__link {
  clip-path: var(--q-bevel);
  box-shadow: var(--q-glow-green);
  transition: box-shadow .3s var(--q-ease), background-color .3s var(--q-ease), color .3s var(--q-ease);
}
.wp-block-button__link:hover { box-shadow: var(--q-glow-teal); }
.is-style-outline .wp-block-button__link {
  background: transparent !important; color: var(--q-green) !important;
  border: 1px solid rgba(23, 227, 154, 0.5); box-shadow: none;
}
.is-style-outline .wp-block-button__link:hover {
  border-color: var(--q-teal); color: var(--q-teal) !important; box-shadow: var(--q-glow-teal);
}

/* Hexagon service cards */
.q-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .q-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .q-cards { grid-template-columns: 1fr; } }
.q-card {
  background: linear-gradient(180deg, var(--q-panel), color-mix(in srgb, var(--q-panel) 60%, var(--q-navy)));
  border: 1px solid rgba(23, 227, 154, 0.16);
  border-radius: 10px;
  padding: 1.8rem 1.4rem 2rem;
  transition: transform .35s var(--q-ease), border-color .35s var(--q-ease), box-shadow .35s var(--q-ease);
}
.q-card:hover {
  transform: translateY(-5px);
  border-color: rgba(18, 207, 198, 0.6);
  box-shadow: 0 24px 46px -22px rgba(0, 0, 0, 0.8), var(--q-glow-teal);
}
.q-hex { width: 62px; height: 62px; margin-bottom: 1.1rem; }
.q-hex svg { width: 100%; height: 100%; display: block; }
.q-hex .hex { fill: none; stroke: var(--q-green); stroke-width: 4; }
.q-hex .ico { fill: none; stroke: var(--q-teal); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.q-card:hover .q-hex .hex { stroke: var(--q-teal); }
.q-card h3 { font-size: 1.2rem; color: #fff; margin: 0 0 0.7rem; }
.q-card .q-rule { display: block; width: 34px; height: 3px; background: var(--q-grad); margin-bottom: 0.85rem; }
.q-card p { color: #9FB2C6; font-size: 0.94rem; margin: 0; line-height: 1.55; }

/* Numbered capability list (Cloud / IA band) */
.q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.q-list li { display: flex; gap: 0.9rem; align-items: baseline; color: #C6D6E6; font-size: 1.02rem; }
.q-list .n { font-family: var(--wp--preset--font-family--mono); color: var(--q-green); font-weight: 600; }

/* Point rows (Nosotros / Por qué) */
.q-points { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.6rem; }
@media (max-width: 720px) { .q-points { grid-template-columns: 1fr; } }
.q-point { border-left: 2px solid var(--q-green); padding-left: 1rem; }
.q-point strong { color: #fff; display: block; margin-bottom: 0.25rem; font-size: 1.05rem; }
.q-point p { color: #9FB2C6; margin: 0; font-size: 0.96rem; line-height: 1.5; }

/* Dark band */
.q-dark {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(18, 207, 198, 0.08), transparent 60%),
    linear-gradient(180deg, #0B1D33, #0A1A2E);
  border-top: 1px solid rgba(23, 227, 154, 0.20);
  border-bottom: 1px solid rgba(23, 227, 154, 0.20);
}
.q-dark .q-eyebrow { color: var(--q-teal); }

/* Slogan strip */
.q-slogan {
  font-family: var(--wp--preset--font-family--mono);
  letter-spacing: 0.14em; font-size: 0.8rem; text-transform: uppercase;
  display: flex; gap: 0.6rem; align-items: center; justify-content: center;
  padding: 0.95rem 1rem;
  border-top: 1px solid rgba(23, 227, 154, 0.2);
  border-bottom: 1px solid rgba(23, 227, 154, 0.2);
  background: rgba(18, 207, 198, 0.04);
}
.q-slogan b { color: #fff; }
.q-slogan em { color: var(--q-teal); font-style: normal; }

/* Console -> brand green/teal */
.q-plot .axis { stroke: rgba(23, 227, 154, 0.34); }
.q-plot .tick { stroke: rgba(23, 227, 154, 0.5); }
.q-plot .quad-label { fill: rgba(18, 207, 198, 0.7); }
.q-plot .point-caption { fill: #C6D6E6; }
.q-plot .point { fill: var(--q-green); }
.q-plot .point-ring { stroke: var(--q-green); }
.q-point-group:hover .point,
.q-point-group:focus-visible .point,
.q-point-group.is-active .point { fill: var(--q-mint); }
.q-point-group:hover .point-ring,
.q-point-group.is-active .point-ring { stroke: var(--q-teal); }
.q-point-group:hover .point-caption,
.q-point-group:focus-visible .point-caption,
.q-point-group.is-active .point-caption { fill: var(--q-mint); }
.q-plot .q-cross { stroke: var(--q-teal); }
.q-plot .q-frame { stroke: rgba(23, 227, 154, 0.32); fill: none; stroke-width: 1; }
.q-plot .q-circuit { stroke: rgba(18, 207, 198, 0.5); fill: none; stroke-width: 1; stroke-dasharray: 5 7; }
@media (prefers-reduced-motion: no-preference) { .q-plot .q-circuit { animation: q-flow 3s linear infinite; } }
@keyframes q-flow { to { stroke-dashoffset: -48; } }
.q-plot .q-glyph-mark { stroke: rgba(23, 227, 154, 0.5); fill: none; stroke-width: 1.4; }

/* Readout HUD */
.q-readout { background: color-mix(in srgb, var(--q-navy) 86%, transparent); border: 1px solid rgba(23, 227, 154, 0.4); box-shadow: 0 0 30px -8px rgba(23, 227, 154, 0.3); }
.q-readout.is-live { border-color: var(--q-teal); box-shadow: 0 0 34px -8px rgba(18, 207, 198, 0.4); }
.q-readout-coord { color: var(--q-teal); }
.q-readout-name { color: #fff; }
.q-readout-desc { color: #9FB2C6; }
.q-readout .q-glyph { color: var(--q-mint); }
.q-readout-cursor { background: var(--q-green); box-shadow: var(--q-glow-green); }

/* Footer */
.q-footer-logo { height: 42px; width: auto; margin-bottom: 1rem; }
.q-wa:focus-visible { outline-color: var(--q-green); }

/* ===========================================================================
   10. FEEDBACK FIXES
=========================================================================== */

/* (a) Dark-band headings were inheriting the now-dark "surface" color */
.q-dark :is(h1, h2, h3) { color: #FFFFFF; text-shadow: 0 0 26px rgba(18, 207, 198, 0.16); }

/* (b) Readout sits BELOW the console (never covers the lower points) */
.q-plot-wrap { display: flex; flex-direction: column; }
.q-readout {
  position: static; left: auto; bottom: auto; max-width: none;
  margin-top: 1.1rem; pointer-events: none;
}

/* (c) Bigger, reliable hover targets on the console points */
.q-point-group .q-hit { fill: transparent; pointer-events: all; }
.q-point-group { cursor: pointer; }

/* (d) Scroll-build: a scan line draws across each section as it enters */
.q-reveal { position: relative; }
.q-reveal::before {
  content: ""; position: absolute; top: 0; left: 0; height: 1px; width: 0;
  background: var(--q-green); box-shadow: 0 0 12px rgba(23, 227, 154, 0.6);
  transition: width 0.9s var(--q-ease);
}
.q-reveal.is-in::before { width: 100%; }
@media (prefers-reduced-motion: reduce) { .q-reveal::before { display: none; } }

/* (e) Staggered build for cards and point rows */
@media (prefers-reduced-motion: no-preference) {
  .q-reveal .q-card, .q-reveal .q-point {
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.6s var(--q-ease), transform 0.6s var(--q-ease);
  }
  .q-reveal.is-in .q-card, .q-reveal.is-in .q-point { opacity: 1; transform: none; }
  .q-reveal.is-in .q-card:nth-child(2), .q-reveal.is-in .q-point:nth-child(2) { transition-delay: 0.08s; }
  .q-reveal.is-in .q-card:nth-child(3), .q-reveal.is-in .q-point:nth-child(3) { transition-delay: 0.16s; }
  .q-reveal.is-in .q-card:nth-child(4), .q-reveal.is-in .q-point:nth-child(4) { transition-delay: 0.24s; }
}

/* (f) Scramble glyphs inside headings use the brand teal */
h1 .q-glyph, h2 .q-glyph, h3 .q-glyph, .q-eyebrow .q-glyph { color: var(--q-teal); }

/* (g) Responsive fixes */
.q-list li { align-items: baseline; }
.q-list .n { flex: 0 0 auto; white-space: nowrap; min-width: 1.7em; }

@media (max-width: 900px) {
  /* stack the two-column dark bands earlier so they don't cram */
  .q-dark .wp-block-columns { flex-wrap: wrap; gap: 1.75rem; }
  .q-dark .wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
}
@media (max-width: 781px) {
  .q-plot { max-width: 440px; }
  .q-plot-wrap { align-items: center; }
  .q-readout { max-width: 440px; width: 100%; }
}
@media (max-width: 600px) {
  h1.wp-block-heading { font-size: 2.5rem; }
  .q-points { gap: 1.2rem; }
  .q-cards { gap: 0.9rem; }
}

/* ===========================================================================
   11. FIXED VERSION — header/menu, bigger logo, cube background, slower build
=========================================================================== */

/* --- Hand-coded header + mobile menu (replaces the WP navigation block) --- */
.q-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 26, 46, 0.94);
  border-bottom: 1px solid rgba(23, 227, 154, 0.20);
}
.q-header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0.7rem var(--wp--preset--spacing--40);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.q-brand-link { display: inline-flex; line-height: 0; }
.q-logo { height: 44px; width: auto; display: block; }         /* bigger logo */
.q-nav { display: flex; align-items: center; gap: 2rem; font-family: var(--wp--preset--font-family--mono); font-size: 0.85rem; }
.q-nav a { color: #C6D6E6; text-decoration: none; transition: color 0.2s var(--q-ease); }
.q-nav a:hover { color: var(--q-green); }
.q-nav-btn {
  background: var(--q-green); color: var(--q-navy) !important;
  padding: 0.6rem 1.2rem; font-weight: 600;
  clip-path: var(--q-bevel); box-shadow: var(--q-glow-green);
  transition: background-color 0.25s var(--q-ease), box-shadow 0.25s var(--q-ease);
}
.q-nav-btn:hover { background: var(--q-teal); color: var(--q-navy) !important; box-shadow: var(--q-glow-teal); }

.q-burger { display: none; flex-direction: column; gap: 6px; background: none; border: 0; padding: 8px; cursor: pointer; }
.q-burger span { display: block; width: 26px; height: 2px; background: var(--q-green); box-shadow: var(--q-glow-green); transition: transform 0.3s var(--q-ease), opacity 0.2s var(--q-ease); }
.q-mmenu { display: none; }

@media (max-width: 820px) {
  .q-nav { display: none; }
  .q-burger { display: flex; }
  .q-logo { height: 38px; }
  .q-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .q-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .q-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .q-mmenu:not([hidden]) { display: flex; flex-direction: column; background: rgba(9, 22, 40, 0.98); border-top: 1px solid rgba(23, 227, 154, 0.2); }
  .q-mmenu a { padding: 1rem var(--wp--preset--spacing--40); border-bottom: 1px solid rgba(28, 52, 80, 0.6); font-family: var(--wp--preset--font-family--mono); font-size: 0.95rem; color: #C6D6E6; text-decoration: none; }
  .q-mmenu a:hover { color: var(--q-green); }
  .q-mmenu .q-nav-btn { margin: 1rem var(--wp--preset--spacing--40); text-align: center; border-bottom: 0; color: var(--q-navy) !important; }
}

/* --- Bigger footer logo --- */
.q-footer-logo { height: 48px; }

/* --- Background isometric cube (drawn/rotated on scroll by JS) --- */
.q-bg-cube {
  position: fixed; top: 50%; left: 50%;
  width: min(92vw, 820px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: -1; pointer-events: none; overflow: visible;
}
.q-bg-cube path { fill: none; stroke: var(--q-green); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: 0.12; }
.q-bg-cube .cube-y { stroke: var(--q-teal); opacity: 0.09; }

/* --- Slower, more deliberate build (assemble / disassemble) --- */
.q-reveal { transition-duration: 0.9s; }
.q-reveal::before { transition-duration: 1.1s; }
@media (prefers-reduced-motion: no-preference) {
  .q-reveal.is-in .q-card:nth-child(2), .q-reveal.is-in .q-point:nth-child(2) { transition-delay: 0.12s; }
  .q-reveal.is-in .q-card:nth-child(3), .q-reveal.is-in .q-point:nth-child(3) { transition-delay: 0.24s; }
  .q-reveal.is-in .q-card:nth-child(4), .q-reveal.is-in .q-point:nth-child(4) { transition-delay: 0.36s; }
}

/* ===========================================================================
   12. PERFORMANCE — kill scroll jitter (v0.1.4)
   Cube draws once on load then only rotates (composited). Scan line uses a
   GPU transform instead of animating width. Decode uses a class, not spans.
=========================================================================== */

/* Cube: promote to its own layer; draw the edges once on load */
.q-bg-cube { will-change: transform; }
.q-bg-cube .cube-hex { stroke-dasharray: 1080; stroke-dashoffset: 1080; animation: q-cube-draw 2.6s var(--q-ease) forwards; }
.q-bg-cube .cube-y   { stroke-dasharray: 540;  stroke-dashoffset: 540;  animation: q-cube-draw 2.4s var(--q-ease) 0.3s forwards; }
@keyframes q-cube-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .q-bg-cube { will-change: auto; }
  .q-bg-cube .cube-hex, .q-bg-cube .cube-y { animation: none; stroke-dashoffset: 0; }
}

/* Scan line: animate a GPU transform (scaleX) instead of width */
.q-reveal::before { width: 100%; transform: scaleX(0); transform-origin: left center; transition: transform 1s var(--q-ease); }
.q-reveal.is-in::before { width: 100%; transform: scaleX(1); }

/* Decode state colour (cheap: no per-glyph spans) */
.q-decoding { color: var(--q-teal) !important; }
