/* ==========================================================================
   Strategic Connection — rebrand theme layer (PRESENTATION ONLY)
   Loaded by theme-preview.php. Never loaded by index.php.

   Every rule is scoped to html[data-theme], so with no attribute set the page
   renders as the untouched original — that's the "Deep Space (current)" baseline.

   Aug 2025 revision: the seven light themes (Daylight, Atmosphere, Mission
   Control, Signal, Glacier, Meridian, Slate) and the three warm ones (Horizon,
   Liberty, Blush) were cut on the supervisor's call — the brief is now "dark,
   just not black". Their token blocks are gone. The rules below still read as
   if a light theme could exist, because that costs nothing and keeps the layer
   reusable if one comes back. Previous set: themes.css.bak.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   bg      page background          surface  cards / dropdowns / tooltips
   band    sections pinned dark     ink      body copy
   heading headlines                accent   primary CTA fill
   on-acc  text on the CTA fill     accent2  secondary / link accent

   hero    #home only. Always band clamped to >= #12161c per channel, so the
           opaque galaxy.jpg blends seamlessly under background-blend-mode:
           lighten. Derived from band — if you change a band, recompute hero.
           See "The hero seam" note in section 4.

   Every pairing below passes WCAG AA. Run: node themes/check-contrast.js
   after editing any value. The switcher panel prints a "WCAG AA" badge per
   theme, so a wrong token turns the panel into a liar.

   Accent pattern for dark themes: a BRIGHT accent with DARK text on it
   (--sc-on-acc). White on a bright cyan is the 2.66:1 failure this rebrand
   exists to fix, so never set --sc-on-acc to #ffffff on a light accent.

   GRADIENTS (added Aug 2025 — "flat colour is boring"). Two rules, one reason.

   1. Never a `background` shorthand gradient. Always solid background-color +
      a translucent film in background-image. Buttons animate (main.css gives
      .button-1 `transition: all .15s`) and section 5 cross-fades the page on a
      theme switch — browsers can animate colour but NOT one gradient into
      another, so a shorthand gradient silently kills both. Layered, the colour
      still tweens underneath and the film just rides along. It also means a
      :hover rule only needs to restate background-color: the film inherits.

   2. Direction is set by contrast, not taste. Buttons put dark --sc-on-acc on a
      bright fill, so their film is WHITE (lightens). Contrast is
      (Lbg+.05)/(Lfg+.05) with Lfg fixed and small, so a lighter fill can only
      raise it. Pages/cards put light --sc-ink on a dark fill, so their film
      darkens toward --sc-bg2 (the theme's own deeper tone, never pure black) —
      same formula mirrored. Every endpoint is asserted in check-contrast.js.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   GRADIENT RECIPES

   A custom property can hold an entire gradient, so a theme changes its button
   and headline treatment by overriding one value here — section 5 never changes.

   These defaults describe the 15 single-accent themes: a translucent white
   sheen over the solid accent, which is why their :hover still cross-fades
   (colour tweens underneath, film rides along). The "Bold gradient" group at the
   end of this section replaces them with opaque two-hue fills.

   --sc-btn-ink exists because the two paradigms need opposite text. A bright
   accent takes dark text (--sc-on-acc); a deep saturated gradient like
   crimson -> indigo takes white. Splitting them means a bold theme can carry
   white button text without dragging --sc-on-acc (still used by dropdown hover,
   the cookie bar and the carousel dots) along with it.
   -------------------------------------------------------------------------- */
html[data-theme] {
    --sc-btn-grad:       linear-gradient(135deg, rgb(255 255 255 / .28) 0%, rgb(255 255 255 / 0) 62%);
    --sc-btn-grad-hover: linear-gradient(135deg, rgb(255 255 255 / .28) 0%, rgb(255 255 255 / 0) 62%);
    --sc-btn-ink:        var(--sc-on-acc);
    --sc-text-grad:      linear-gradient(100deg, var(--sc-accent) 0%, var(--sc-accent2) 100%);
}

/* ===== Closest to the current blue ====================================== */

/* --- Cobalt: deep navy carrying the exact brand cyan. Smallest jump. --- */
html[data-theme="cobalt"] {
    --sc-bg:      #0e1a2b;
    --sc-bg2:     #0a1422;
    --sc-surface: #16253c;
    --sc-band:    #0a1422;
    --sc-hero:    #121622;
    --sc-ink:     #c2d2e6;
    --sc-heading: #ffffff;
    --sc-accent:  #17acd4;
    --sc-on-acc:  #06131f;
    --sc-accent2: #7dd3fc;
    --sc-border:  #24384f;
    --sc-field:   #132234;
    --sc-shadow:  0 3px 18px rgb(0 0 0 / .45);
}

/* --- Cerulean: the brand blue turned up. Boldest option in this group. --- */
html[data-theme="cerulean"] {
    --sc-bg:      #0d2540;
    --sc-bg2:     #091c31;
    --sc-surface: #143253;
    --sc-band:    #091c31;
    --sc-hero:    #121c31;
    --sc-ink:     #c7d8ea;
    --sc-heading: #ffffff;
    --sc-accent:  #29a8e0;
    --sc-on-acc:  #05121e;
    --sc-accent2: #ff9e7a;
    --sc-border:  #234a70;
    --sc-field:   #112c4a;
    --sc-shadow:  0 3px 18px rgb(0 0 0 / .45);
}

/* --- Harbor: the same family desaturated. Softest option in this group. --- */
html[data-theme="harbor"] {
    --sc-bg:      #16232f;
    --sc-bg2:     #101a24;
    --sc-surface: #1f2e3c;
    --sc-band:    #101a24;
    --sc-hero:    #121a24;
    --sc-ink:     #c8d4de;
    --sc-heading: #ffffff;
    --sc-accent:  #7cb0d9;
    --sc-on-acc:  #0a1620;
    --sc-accent2: #e0b982;
    --sc-border:  #2b3a49;
    --sc-field:   #1c2836;
    --sc-shadow:  0 3px 18px rgb(0 0 0 / .45);
}

/* --- Blueprint: indigo-navy, azure primary, brand cyan secondary. --- */
html[data-theme="blueprint"] {
    --sc-bg:      #101a30;
    --sc-bg2:     #0b1425;
    --sc-surface: #1a2745;
    --sc-band:    #0b1425;
    --sc-hero:    #121625;
    --sc-ink:     #c3ccdf;
    --sc-heading: #ffffff;
    --sc-accent:  #58a6ff;
    --sc-on-acc:  #06101f;
    --sc-accent2: #22d3ee;
    --sc-border:  #26355a;
    --sc-field:   #16223d;
    --sc-shadow:  0 3px 18px rgb(0 0 0 / .45);
}

/* --- Steel: blue-grey base, sky blue, amber counterpoint. --- */
html[data-theme="steel"] {
    --sc-bg:      #1b2430;
    --sc-bg2:     #141c26;
    --sc-surface: #24303e;
    --sc-band:    #141c26;
    --sc-hero:    #141c26;
    --sc-ink:     #ced7e2;
    --sc-heading: #ffffff;
    --sc-accent:  #38bdf8;
    --sc-on-acc:  #071522;
    --sc-accent2: #fbbf24;
    --sc-border:  #33404f;
    --sc-field:   #1f2937;
    --sc-shadow:  0 3px 18px rgb(0 0 0 / .45);
}

/* --- Deep Sea: dark teal. Blue family, away from the default screen blue. --- */
html[data-theme="deepsea"] {
    --sc-bg:      #0a1f28;
    --sc-bg2:     #07181f;
    --sc-surface: #102c37;
    --sc-band:    #07181f;
    --sc-hero:    #12181f;
    --sc-ink:     #b6cdd6;
    --sc-heading: #ffffff;
    --sc-accent:  #2bc8d4;
    --sc-on-acc:  #04161b;
    --sc-accent2: #6ee7c7;
    --sc-border:  #1d3d4a;
    --sc-field:   #0f2a34;
    --sc-shadow:  0 3px 18px rgb(0 0 0 / .45);
}

/* --- Oxide: slate blue holding BOTH current brand colours — rust + cyan. --- */
html[data-theme="oxide"] {
    --sc-bg:      #131c26;
    --sc-bg2:     #0e1620;
    --sc-surface: #1e2937;
    --sc-band:    #0e1620;
    --sc-hero:    #121620;
    --sc-ink:     #cbd6e2;
    --sc-heading: #ffffff;
    --sc-accent:  #f4703f;
    --sc-on-acc:  #1d0a03;
    --sc-accent2: #7dd3fc;
    --sc-border:  #2c3a4b;
    --sc-field:   #1a2532;
    --sc-shadow:  0 3px 18px rgb(0 0 0 / .45);
}

/* --- Nebula: navy-violet base. The original "dark but not black" answer. --- */
html[data-theme="nebula"] {
    --sc-bg:      #141b2d;
    --sc-bg2:     #0f1524;
    --sc-surface: #1e2740;
    --sc-band:    #0f1524;
    --sc-hero:    #121624;
    --sc-ink:     #c6d0e4;
    --sc-heading: #ffffff;
    --sc-accent:  #35c9ec;
    --sc-on-acc:  #0b1220;
    --sc-accent2: #a78bfa;
    --sc-border:  #2b3757;
    --sc-field:   #232e4a;
    --sc-shadow:  0 3px 18px rgb(0 0 0 / .45);
}

/* ===== Dark, other directions =========================================== */

/* --- Ultraviolet: deepest cosmic option. Purple base, cyan counterpoint. --- */
html[data-theme="ultraviolet"] {
    --sc-bg:      #1a1030;
    --sc-bg2:     #120b22;
    --sc-surface: #241640;
    --sc-band:    #120b22;
    --sc-hero:    #121622;
    --sc-ink:     #d6cbf0;
    --sc-heading: #ffffff;
    --sc-accent:  #c084fc;
    --sc-on-acc:  #1a0b2e;
    --sc-accent2: #22d3ee;
    --sc-border:  #382356;
    --sc-field:   #2a1a49;
    --sc-shadow:  0 3px 18px rgb(0 0 0 / .45);
}

/* --- Aurora: dark teal-green. Reads organic rather than technical. --- */
html[data-theme="aurora"] {
    --sc-bg:      #0a1f1c;
    --sc-bg2:     #061512;
    --sc-surface: #112e29;
    --sc-band:    #061512;
    --sc-hero:    #12161c;
    --sc-ink:     #bfe0d6;
    --sc-heading: #ffffff;
    --sc-accent:  #2dd4a7;
    --sc-on-acc:  #04231c;
    --sc-accent2: #f9a8d4;
    --sc-border:  #1c453c;
    --sc-field:   #0f2b26;
    --sc-shadow:  0 3px 18px rgb(0 0 0 / .45);
}

/* --- Evergreen: deep pine. The most natural-reading dark in the set. --- */
html[data-theme="evergreen"] {
    --sc-bg:      #0f2019;
    --sc-bg2:     #0a1712;
    --sc-surface: #17301f;
    --sc-band:    #0a1712;
    --sc-hero:    #12171c;
    --sc-ink:     #bfd4c4;
    --sc-heading: #ffffff;
    --sc-accent:  #4ade80;
    --sc-on-acc:  #052012;
    --sc-accent2: #fcd34d;
    --sc-border:  #23452f;
    --sc-field:   #14291d;
    --sc-shadow:  0 3px 18px rgb(0 0 0 / .45);
}

/* --- Solar Flare: warm dark. Same weight as today, none of the coldness. --- */
html[data-theme="solar"] {
    --sc-bg:      #1c1410;
    --sc-bg2:     #140e0b;
    --sc-surface: #2a1f18;
    --sc-band:    #140e0b;
    --sc-hero:    #14161c;
    --sc-ink:     #e8d9c8;
    --sc-heading: #ffffff;
    --sc-accent:  #f59e0b;
    --sc-on-acc:  #241505;
    --sc-accent2: #fb7185;
    --sc-border:  #3d2d22;
    --sc-field:   #2f231b;
    --sc-shadow:  0 3px 18px rgb(0 0 0 / .45);
}

/* --- Carbon: neutral dark done properly. Warm grey, one safety orange. --- */
html[data-theme="carbon"] {
    --sc-bg:      #1c1c1c;
    --sc-bg2:     #141414;
    --sc-surface: #262626;
    --sc-band:    #141414;
    --sc-hero:    #14161c;
    --sc-ink:     #d4d4d4;
    --sc-heading: #ffffff;
    --sc-accent:  #ff5f1f;
    --sc-on-acc:  #1a0800;
    --sc-accent2: #4ec9b0;
    --sc-border:  #383838;
    --sc-field:   #2b2b2b;
    --sc-shadow:  0 3px 18px rgb(0 0 0 / .45);
}

/* --- Sunset: deep plum + coral. The most saturated dark option. --- */
html[data-theme="sunset"] {
    --sc-bg:      #241228;
    --sc-bg2:     #180b1b;
    --sc-surface: #331c38;
    --sc-band:    #180b1b;
    --sc-hero:    #18161c;
    --sc-ink:     #f3dfe6;
    --sc-heading: #ffffff;
    --sc-accent:  #ff7b54;
    --sc-on-acc:  #2a0f18;
    --sc-accent2: #c77dff;
    --sc-border:  #47264d;
    --sc-field:   #3a2140;
    --sc-shadow:  0 3px 18px rgb(0 0 0 / .45);
}

/* ===== Bold gradient ====================================================
   Two-hue button fills with real hue distance, per the supervisor's reference
   art (a crimson-to-navy CTA). These work differently from the 15 above and the
   difference is deliberate:

   --sc-accent stays BRIGHT, because accent is also link text, carousel dots and
   band link:hover — it has to clear 4.5:1 as text on a dark page. The deep
   saturated pair lives in --sc-grad-a / --sc-grad-b, used only as a button fill,
   where white (--sc-btn-ink) is the correct label colour. Trying to serve both
   jobs from one token is what would force a compromise.

   Both gradient stops are dark enough for white text, so every point along the
   ramp sits between the two endpoint ratios — per-channel interpolation is
   monotonic, so checking the ends is sufficient. check-contrast.js checks them.

   --sc-text-a / --sc-text-b are LIGHT tints of the same two hues, for the hero
   headline. The fill colours themselves would be far too dark to read as text on
   a dark hero, which is why the headline gets its own pair rather than reusing
   the button's.
   ======================================================================== */

html[data-theme="fusion"],
html[data-theme="voltage"],
html[data-theme="sunrise"],
html[data-theme="cascade"],
html[data-theme="nova"],
html[data-theme="ignition"] {
    --sc-btn-grad:       linear-gradient(135deg, var(--sc-grad-a) 0%, var(--sc-grad-b) 100%);
    /* Hover reverses the ramp. It cannot tween (no browser animates one gradient
       into another) but it is an unmistakable state change, which is the job. */
    --sc-btn-grad-hover: linear-gradient(135deg, var(--sc-grad-b) 0%, var(--sc-grad-a) 100%);
    --sc-btn-ink:        #ffffff;
    --sc-text-grad:      linear-gradient(100deg, var(--sc-text-a) 0%, var(--sc-text-b) 100%);
}

/* --- Fusion: crimson -> indigo. The supervisor's reference, as a dark theme. --- */
html[data-theme="fusion"] {
    --sc-bg:      #141625;
    --sc-bg2:     #0e1020;
    --sc-surface: #1f2236;
    --sc-band:    #0e1020;
    --sc-hero:    #121620;
    --sc-ink:     #ccd2e6;
    --sc-heading: #ffffff;
    --sc-accent:  #f87196;
    --sc-on-acc:  #2b0a13;
    --sc-accent2: #93a4ff;
    --sc-border:  #2b2f47;
    --sc-field:   #1b1e30;
    --sc-shadow:  0 3px 18px rgb(0 0 0 / .45);
    --sc-grad-a:  #be123c;
    --sc-grad-b:  #3730a3;
    --sc-text-a:  #ff8fa3;
    --sc-text-b:  #a9b6ff;
}

/* --- Voltage: cyan -> violet. Closest of the three to the current brand. --- */
html[data-theme="voltage"] {
    --sc-bg:      #101425;
    --sc-bg2:     #0b0f1d;
    --sc-surface: #1a2039;
    --sc-band:    #0b0f1d;
    --sc-hero:    #12161d;
    --sc-ink:     #c8d0e8;
    --sc-heading: #ffffff;
    --sc-accent:  #22d3ee;
    --sc-on-acc:  #06121a;
    --sc-accent2: #c4b5fd;
    --sc-border:  #26304d;
    --sc-field:   #161c31;
    --sc-shadow:  0 3px 18px rgb(0 0 0 / .45);
    --sc-grad-a:  #0e7490;
    --sc-grad-b:  #6d28d9;
    --sc-text-a:  #67e8f9;
    --sc-text-b:  #c4b5fd;
}

/* --- Sunrise: burnt orange -> magenta. The warmest of the three. --- */
html[data-theme="sunrise"] {
    --sc-bg:      #1d1420;
    --sc-bg2:     #150e18;
    --sc-surface: #2a1e2e;
    --sc-band:    #150e18;
    --sc-hero:    #15161c;
    --sc-ink:     #ead8e2;
    --sc-heading: #ffffff;
    --sc-accent:  #fb923c;
    --sc-on-acc:  #1f0d02;
    --sc-accent2: #f0abfc;
    --sc-border:  #3d2a42;
    --sc-field:   #261a2b;
    --sc-shadow:  0 3px 18px rgb(0 0 0 / .45);
    --sc-grad-a:  #c2410c;
    --sc-grad-b:  #a21caf;
    --sc-text-a:  #fdba74;
    --sc-text-b:  #f5d0fe;
}

/* --- Cascade: emerald -> deep blue. Growth into trust; the only green here. --- */
html[data-theme="cascade"] {
    --sc-bg:      #101d24;
    --sc-bg2:     #0b161c;
    --sc-surface: #1a2c34;
    --sc-band:    #0b161c;
    --sc-hero:    #12161c;
    --sc-ink:     #c3d6da;
    --sc-heading: #ffffff;
    --sc-accent:  #34d399;
    --sc-on-acc:  #04231c;
    --sc-accent2: #60a5fa;
    --sc-border:  #24404a;
    --sc-field:   #16262e;
    --sc-shadow:  0 3px 18px rgb(0 0 0 / .45);
    --sc-grad-a:  #047857;
    --sc-grad-b:  #1d4ed8;
    --sc-text-a:  #6ee7b7;
    --sc-text-b:  #93c5fd;
}

/* --- Nova: indigo -> rose. The modern-software gradient, done in deep tones. --- */
html[data-theme="nova"] {
    --sc-bg:      #16142b;
    --sc-bg2:     #100e22;
    --sc-surface: #221f3c;
    --sc-band:    #100e22;
    --sc-hero:    #121622;
    --sc-ink:     #cfcbe8;
    --sc-heading: #ffffff;
    --sc-accent:  #f472b6;
    --sc-on-acc:  #2b0a13;
    --sc-accent2: #a5b4fc;
    --sc-border:  #302c4f;
    --sc-field:   #1d1a36;
    --sc-shadow:  0 3px 18px rgb(0 0 0 / .45);
    --sc-grad-a:  #4338ca;
    --sc-grad-b:  #be185d;
    --sc-text-a:  #c4b5fd;
    --sc-text-b:  #f9a8d4;
}

/* --- Ignition: deep blue -> burnt orange. True complementaries, so this is the
       highest-energy pair in the set — maximum hue distance on the wheel. --- */
html[data-theme="ignition"] {
    --sc-bg:      #141a26;
    --sc-bg2:     #0f141e;
    --sc-surface: #1f2634;
    --sc-band:    #0f141e;
    --sc-hero:    #12161e;
    --sc-ink:     #ccd4e2;
    --sc-heading: #ffffff;
    --sc-accent:  #f97316;
    --sc-on-acc:  #1f0d02;
    --sc-accent2: #93c5fd;
    --sc-border:  #2b3546;
    --sc-field:   #1a2130;
    --sc-shadow:  0 3px 18px rgb(0 0 0 / .45);
    --sc-grad-a:  #1e40af;
    --sc-grad-b:  #9a3412;
    --sc-text-a:  #93c5fd;
    --sc-text-b:  #fdba74;
}

/* --- Crimson: dark burgundy, rose primary, gold secondary. --- */
html[data-theme="crimson"] {
    --sc-bg:      #221016;
    --sc-bg2:     #1a0c11;
    --sc-surface: #301a22;
    --sc-band:    #1a0c11;
    --sc-hero:    #1a161c;
    --sc-ink:     #ecd2d8;
    --sc-heading: #ffffff;
    --sc-accent:  #fb7185;
    --sc-on-acc:  #2b0a13;
    --sc-accent2: #fcd34d;
    --sc-border:  #47222e;
    --sc-field:   #381a24;
    --sc-shadow:  0 3px 18px rgb(0 0 0 / .45);
}

/* --------------------------------------------------------------------------
   2. SURFACES
   -------------------------------------------------------------------------- */

/* The page itself: solid bg settling toward bg2. This one is structural rather
   than decorative — body is the full document height (~7000px), so across any
   one viewport it shifts well under a single 8-bit step. It fills the gaps
   between sections; the visible gradients are the section rule below. */
html[data-theme] body {
    background-color: var(--sc-bg) !important;
    background-image: linear-gradient(180deg, transparent 0%, var(--sc-bg2) 100%) !important;
    color: var(--sc-ink) !important;
}

/* --- The gradient that actually reads -----------------------------------
   An accent glow at each section's top edge. This is the one you SEE: a
   bg -> bg2 fade alone is a 4-9/255 delta, which measures as literally flat
   across a viewport (sampled a render to confirm — 600px of identical pixels),
   so it would satisfy "add a gradient" while looking like nothing at all. The
   glow is the standard lit-from-above treatment for dark pages, and it reuses
   the theme's own accent rather than introducing a colour to the palette.

   Sized in px, not %, deliberately: these sections run from 480px to 4460px
   tall, and a percentage-sized glow would be a tight halo on one and a wash
   over the whole of another. Absolute px gives every section the same lamp.

   It is a vertical band rather than a radial, and that is a bug fix, not taste.
   A radial centred at `50% 0%` is at nearly full strength ON the top edge, with
   nothing above it — measured as a +12/255 jump across a single 5px row, which
   renders as a hard seam line exactly where a section begins. Any radial
   anchored to the top edge has that problem. Starting from `transparent 0` and
   ramping in over 260px means the boundary value is zero, so there is no step to
   see. Costs the horizontal falloff; a full-width soft band reads just as
   deliberate on a dark page, and it does not leave a line across the design.

   Targets come from measuring the rendered homepage, not from guessing:
   .about (4464px), .businessman (2644px) and .love (1258px) are the three
   biggest sections and shipped with NO background at all — transparent, showing
   body through. Between them they are most of the page's height and all of the
   flat expanse behind "OUR KEY SERVICES", so they are the whole point of this
   change. They stay transparent (no background-color) so body's tone still
   shows through and the glow just composites on top.

   Two caveats worth keeping:
   - .services is in no rule here: it does not exist on the homepage. It was in
     the old selector list and was always dead on this page.
   - .blogbg is deliberately excluded: it carries its own background image, and
     background-image !important would replace the artwork, not layer onto it.

   Glow peaks at 12% accent. Unlike the button sheen this moves contrast the
   WRONG way (lifting a dark surface under light text), so it is a real
   constraint — worst case across all 15 themes is 8.14:1 on Deep Sea, asserted
   in check-contrast.js rather than assumed. */
html[data-theme] .about,
html[data-theme] .businessman,
html[data-theme] .love {
    background-image:
        linear-gradient(180deg, transparent 0px, color-mix(in srgb, var(--sc-accent) 12%, transparent) 260px, transparent 900px) !important;
}

/* Sections that own an opaque background get the same glow plus the bg2 settle.
   .review-area and .readylaunch shipped a hardcoded gradient of their own, so
   they layer here rather than keeping a shorthand — which also gets them
   cross-fading on a theme switch, something the old shorthand could not do. */
html[data-theme] .contact,
html[data-theme] .review-area,
html[data-theme] .readylaunch {
    background-color: var(--sc-bg) !important;
    background-image:
        linear-gradient(180deg, transparent 0px, color-mix(in srgb, var(--sc-accent) 12%, transparent) 260px, transparent 900px),
        linear-gradient(180deg, transparent 0%, var(--sc-bg2) 100%) !important;
}

/* Cards, dropdowns and tooltips. On a dark-only set the 1px border is the only
   thing separating a raised surface from the page — it is structure, not trim.
   Kept generic in case a light theme returns, where it matters even more.

   Film runs 160deg (down-right) so cards catch light from a different angle than
   the page behind them — that angle difference is what separates a card from its
   background once both are gradients. Stops at 140%, past the visible box, so a
   card reads as "surface, gently deepening" instead of fading into the page. */
html[data-theme] .service-box,
html[data-theme] .blogbg-post,
html[data-theme] .desc,
html[data-theme] .navbar-nav .dropdown-menu,
html[data-theme] .tooltiptext {
    background-color: var(--sc-surface) !important;
    background-image: linear-gradient(160deg, transparent 0%, var(--sc-bg2) 140%) !important;
    border: 1px solid var(--sc-border) !important;
    box-shadow: var(--sc-shadow) !important;
}

/* main.css:1776 hardcodes ::placeholder to the old rust #d33b27 for the whole
   site, and nothing here overrode it — so every themed page still rendered rust
   placeholder text on a themed field. It measured 3.39:1 on Cobalt: a real AA
   failure, and the last place the old palette survived once a theme was on.

   It matters more than placeholder text normally would, because these Zoho forms
   ship NO visible labels — the placeholder IS the field's name ("Company *",
   "Business URL"), so it is essential copy and gets held to the full 4.5:1, not
   treated as decorative hint text.

   Dimmed ink rather than a new colour, so it recedes from real input without
   dropping out. Two separate rules on purpose: a browser that does not know
   ::-webkit-input-placeholder would throw away the ENTIRE rule if both selectors
   shared one block, taking the standard selector down with it. */
html[data-theme] ::placeholder {
    color: color-mix(in srgb, var(--sc-ink) 78%, var(--sc-field)) !important;
    opacity: 1 !important; /* Firefox ships ::placeholder at opacity .54 */
}

html[data-theme] ::-webkit-input-placeholder {
    color: color-mix(in srgb, var(--sc-ink) 78%, var(--sc-field)) !important;
    opacity: 1 !important;
}

html[data-theme] .email input,
html[data-theme] .email select,
html[data-theme] textarea,
html[data-theme] .zcwf_col_fld input,
html[data-theme] .zcwf_col_fld2 input {
    background-color: var(--sc-field) !important;
    color: var(--sc-ink) !important;
    border: 1px solid var(--sc-border) !important;
}

/* --------------------------------------------------------------------------
   3. TYPE
   -------------------------------------------------------------------------- */

html[data-theme] h1, html[data-theme] h2, html[data-theme] h3,
html[data-theme] h4, html[data-theme] h5, html[data-theme] h6,
html[data-theme] .h1, html[data-theme] .h2, html[data-theme] .h3,
html[data-theme] .h4, html[data-theme] .h5, html[data-theme] .h6 {
    color: var(--sc-heading) !important;
}

html[data-theme] p,
html[data-theme] li,
html[data-theme] label,
html[data-theme] span,
html[data-theme] .about p,
html[data-theme] .services p,
html[data-theme] .love-content p,
html[data-theme] .love-content ul li,
html[data-theme] .businessman-content p,
html[data-theme] .awardrobot-content p,
html[data-theme] .blogbg p,
html[data-theme] .blogbg-post p,
html[data-theme] .contact-chck label,
html[data-theme] .testimonial {
    color: var(--sc-ink) !important;
}

html[data-theme] a {
    color: var(--sc-accent2) !important;
}

html[data-theme] .services h3,
html[data-theme] .businessman-content h2,
html[data-theme] .about h3 span {
    color: var(--sc-accent) !important;
}

/* --------------------------------------------------------------------------
   4. PINNED-DARK BANDS

   #home, .video and .video-making sit on galaxy.jpg / launch.png / Console2.png,
   which are OPAQUE dark rectangles — they cannot be recoloured from CSS. So these
   three stay dark in every theme, along with the footer. That keeps the white
   logo, the nav and the space artwork working untouched. Since the light themes
   were cut there is no dark/light rhythm left to trade on — the bands now sit a
   step darker than the page, which reads as depth instead of as a section break.
   -------------------------------------------------------------------------- */

html[data-theme] #home,
html[data-theme] .video,
html[data-theme] .video-making,
html[data-theme] footer,
html[data-theme] .content-cookies {
    background-color: var(--sc-band) !important;
}

html[data-theme] footer {
    background-image: linear-gradient(357deg, var(--sc-band) 16%, var(--sc-bg2) 90%) !important;
}

/* --- The hero seam ------------------------------------------------------
   galaxy.jpg is a 1833x1833 SQUARE and #home uses background-size:contain,
   so on a wide header the image only covers a centre square and the band
   colour shows down both sides. The image's flat field is #12161c — it was
   authored to match the original background exactly, which is why it blends
   today and seams in every other theme.

   Fix without touching the asset: blend the image into the colour with
   'lighten' (result = per-channel max), and use --sc-hero, which is each
   theme's band clamped to be >= #12161c in every channel. Because hero is
   never darker than the field, max(hero, field) == hero — the square resolves
   to exactly the surrounding colour and the seam is gone, at any viewport
   width. Stars and the comet are brighter than hero, so max keeps them.

   Cost, and it got worse when the set went dark-only: almost every band is now
   darker than #12161c in at least one channel, so the fallback lifts 12 of 13
   heroes toward the old near-black (worst: Solar Flare 17/255, Aurora 12, Deep
   Sea 11). Only Steel is untouched. That is why the PNG below is the default.
   Numbers come from: node themes/check-contrast.js
   ------------------------------------------------------------------------ */
/* galaxy-png.png is the same art with the #12161c field keyed out to a real
   alpha channel, so the band colour shows straight through. No clamp needed —
   every theme gets its exact --sc-band, including the twelve the lighten trick
   would otherwise compromise.
   Verified faithful: composited back over #12161c it matches galaxy.jpg to
   within 4/255. index.php still points at the JPEG; only the preview swaps it.

   Weight: 577 KB vs the JPEG's 88 KB, on the largest-contentful-paint element.
   Fine for a demo, too heavy to ship — see the note below before going live. */
html[data-theme] #home {
    background-color: var(--sc-band) !important;
    background-image: url(../../images/galaxy-png.png) !important;
    background-blend-mode: normal !important;
}

/* --- The black nav strip -------------------------------------------------
   Reported as "the header is just black, it is not adopting the theme", and it
   was exactly that. main.css:213 sets

       #home > .container { background-color: #12161c }

   the OLD brand near-black, hardcoded, and nothing here overrode it. Measured
   across Cobalt, Crimson and Evergreen the strip behind the logo and nav came
   back byte-identical rgb(18,22,28) on all three while the rest of the page
   changed — the one element on the page that never themed.

   That selector only matches the nav container: the hero's own container is
   nested inside .container-fluid.hero, so it is not a direct child of #home.

   Replaced with a scrim rather than a flat fill. Solid at the top so the white
   logo and nav keep a guaranteed dark anchor, fading to transparent so the
   galaxy artwork below reads as one piece with the header instead of sitting
   under a black bar. The 10% accent tint is what makes it visibly belong to the
   theme. White on the tinted top edge is asserted in check-contrast.js. */
html[data-theme] #home > .container {
    background-color: transparent !important;
    background-image: linear-gradient(180deg,
        color-mix(in srgb, var(--sc-accent) 10%, var(--sc-band)) 0%,
        transparent 100%) !important;
}

/* Fallback, no new asset: keep the original JPEG and hide the seam by blending
   it into a band clamped to >= #12161c per channel. Seam is still exactly zero,
   but the darkest themes lift their hero up to 19/255 toward the old near-black.
   Swap this in for the rule above if the extra 489 KB is unacceptable.

html[data-theme] #home {
    background-color: var(--sc-hero) !important;
    background-blend-mode: lighten !important;
}
*/

html[data-theme] :is(#home, .video, .video-making, footer, .content-cookies)
:is(p, li, span, label, h1, h2, h3, h4, h5, h6, .nav-link, .dropdown-item, a) {
    color: #ffffff !important;
}

html[data-theme] :is(#home, .video, .video-making, footer) :is(a:hover, .nav-link:hover) {
    color: var(--sc-accent) !important;
}

/* The nav dropdown hangs off the dark header but renders as a themed card. */
html[data-theme] .navbar-nav .dropdown-menu .dropdown-item {
    color: var(--sc-ink) !important;
}

html[data-theme] .dropdown-item:focus,
html[data-theme] .dropdown-item:hover {
    background-color: var(--sc-accent) !important;
    color: var(--sc-on-acc) !important;
}

/* --------------------------------------------------------------------------
   5. ACTIONS — last, so buttons beat every text rule above
   -------------------------------------------------------------------------- */

/* .color5 is the fill and .button is the label — they always appear together as
   `class="button color5"` (the LEARN MORE buttons). Both must be listed: .color5
   alone leaves the label at its hardcoded #000, .button alone leaves the old cyan. */
html[data-theme] .button,
html[data-theme] .color5,
html[data-theme] .button-1,
html[data-theme] .thebutton,
html[data-theme] .service-btn a,
html[data-theme] .contact-btn button,
html[data-theme] .contact-btn .btnZoho,
html[data-theme] .hero-btns a:first-child,
html[data-theme] input[type="submit"].formsubmit {
    background-color: var(--sc-accent) !important;
    background-image: var(--sc-btn-grad) !important;
    color: var(--sc-btn-ink) !important;
    border-color: var(--sc-accent) !important;
}

/* Hover restates the fill COLOUR only — the sheen above is background-image and
   is not overridden here, so it carries over and the colour still tweens under
   main.css's .15s transition.

   Bugfix while here: this rule hardcoded #ffffff, which fails AA against every
   theme's --sc-accent2 — as low as 1.44:1 on Evergreen and Crimson. Same defect
   class the rebrand exists to fix, just hiding in :hover rather than at rest.
   --sc-on-acc already clears AA on accent2 everywhere (worst 6.59:1), so the
   token that works at rest works here too — no new token needed. */
html[data-theme] .button:hover,
html[data-theme] .color5:hover,
html[data-theme] .button-1:hover,
html[data-theme] .thebutton:hover,
html[data-theme] .service-btn a:hover,
html[data-theme] .contact-btn button:hover,
html[data-theme] .contact-btn .btnZoho:hover,
html[data-theme] .hero-btns a:first-child:hover {
    background-color: var(--sc-accent2) !important;
    background-image: var(--sc-btn-grad-hover) !important;
    color: var(--sc-btn-ink) !important;
    border-color: var(--sc-accent2) !important;
    box-shadow: none !important;
}

/* Reset is a secondary action — outline, not a second primary fill.
   Listed after the fill rule because .btnZoho matches both. */
html[data-theme] input[type="reset"].btnZoho,
html[data-theme] .buttonForm-bottom {
    background-color: transparent !important;
    /* The fill rule above sets background-IMAGE (the gradient sheen). Clearing
       only background-color left that gradient painted under --sc-ink, which on
       a light theme is dark text on the full-strength ramp. Outline means no
       fill of either kind. */
    background-image: none !important;
    color: var(--sc-ink) !important;
    border: 2px solid var(--sc-border) !important;
}

html[data-theme] input[type="reset"].btnZoho:hover,
html[data-theme] .buttonForm-bottom:hover {
    background-color: var(--sc-bg2) !important;
    color: var(--sc-heading) !important;
    border-color: var(--sc-ink) !important;
}

/* The pinned-dark rule in section 4 is scoped with :is(#home, ...), and an ID
   outranks any number of classes — so buttons sitting inside the hero, video or
   footer bands would be forced to white and lose --sc-on-acc. On Nebula, Aurora,
   Solar Flare and Ultraviolet that means white-on-bright-cyan, which is the exact
   2.66:1 failure this rebrand exists to fix. Re-assert them at ID-level specificity. */
html[data-theme] :is(#home, .video, .video-making, footer)
:is(.button, .color5, .thebutton, .button-1, .hero-btns a:first-child) {
    background-color: var(--sc-accent) !important;
    background-image: var(--sc-btn-grad) !important;
    color: var(--sc-btn-ink) !important;
    border-color: var(--sc-accent) !important;
}

/* Same sheen and the same #ffffff -> --sc-on-acc bugfix as the base rules above. */
html[data-theme] :is(#home, .video, .video-making, footer)
:is(.button:hover, .color5:hover, .thebutton:hover, .button-1:hover, .hero-btns a:first-child:hover) {
    background-color: var(--sc-accent2) !important;
    background-image: var(--sc-btn-grad-hover) !important;
    color: var(--sc-btn-ink) !important;
    border-color: var(--sc-accent2) !important;
}

/* Cookie bar stays on its dark band, so its buttons keep the white outline. */
html[data-theme] .content-cookies .btn-cookie {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

html[data-theme] .content-cookies .btn-cookie:hover {
    background-color: #ffffff !important;
    color: var(--sc-band) !important;
}

html[data-theme] .review-area .owl-dot.active {
    background-color: var(--sc-accent) !important;
}

html[data-theme] .interactive-menu-button a span,
html[data-theme] .interactive-menu-button a span:before,
html[data-theme] .interactive-menu-button a span:after {
    background: #ffffff !important;
}

/* --- Hero headline as gradient text -------------------------------------
   The big word ("OPPORTUNITIES") is a <p class="h1">, NOT an <h1> — the real
   <h1 class="h3"> is the small line above it. Targeting h1 would have gradiented
   the wrong element, so this is scoped to .hero .h1 on purpose.

   Comes after section 4's band rule, which forces #ffffff on everything inside
   #home; equal specificity, so source order decides and this wins.

   Wrapped in @supports because the technique needs background-clip:text — the
   text is painted by the gradient and its own colour set to transparent. Without
   the guard, a browser that ignores background-clip would render transparent
   text on a dark hero: invisible. Unsupported browsers keep the white from
   section 4 instead. -webkit-text-fill-color is set too, since WebKit gives it
   precedence over `color` and would otherwise repaint the glyphs solid.

   Stops are --sc-text-a/-b, defaulting to accent -> accent2. Both are asserted
   at 3:1 against the band (large-text AA — this renders at 4.4rem). */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    html[data-theme] #home .hero .h1 {
        background-image: var(--sc-text-grad) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        color: transparent !important;
        -webkit-text-fill-color: transparent !important;
        /* The headline overflows its own column: at 1500px the box is 540px wide
           (180->720) but the word measures 617px, running to 797. That overflow
           has always been there and never showed, because solid-coloured glyphs
           paint fine outside their box. Painting them WITH the background makes
           it visible instantly — background-clip cannot paint past the box, so
           the last two letters simply vanished. max-content sizes the box to the
           word so every glyph sits inside the painted area. Scoped inside
           @supports: only the clip technique needs it. */
        width: max-content !important;
        max-width: none !important;
    }
}

/* Makes the switch read as a deliberate transition during the demo. Only
   background-color is listed because only colour can tween — the gradient films
   are background-image and jump. That is exactly why sections 2 and 5 layer
   colour + film instead of using a `background` shorthand gradient: the colour
   underneath still cross-fades and the film is too diffuse for the swap to read.

   .blogbg-post is the homepage's real card class and is listed so cards fade
   with everything else. .services and .service-box are kept for other templates
   but do not exist on the homepage — measured, not assumed. */
html[data-theme] body,
html[data-theme] .services,
html[data-theme] .contact,
html[data-theme] .review-area,
html[data-theme] .readylaunch,
html[data-theme] .service-box,
html[data-theme] .blogbg-post,
html[data-theme] .desc {
    transition: background-color .35s ease, color .35s ease;
}

/* ==========================================================================
   6. SWITCHER PANEL — the presentation control, not part of any theme
   ========================================================================== */

#sc-switch, #sc-switch * { box-sizing: border-box; }

#sc-switch {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2147483000;
    width: 290px;
    font-family: "Roboto", system-ui, sans-serif;
    background: #ffffff;
    color: #16202b;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgb(9 17 28 / .35);
    overflow: hidden;
}

#sc-switch header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: #16202b;
    color: #fff;
    cursor: pointer;
    min-height: 0;
    text-align: left;
}

#sc-switch header b {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

#sc-switch header span { font-size: 16px; line-height: 1; opacity: .7; }

#sc-switch .sc-body {
    padding: 6px 8px 8px;
    max-height: min(56vh, 460px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

#sc-switch.sc-min .sc-body { display: none; }

#sc-switch .sc-group {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8494a5;
    padding: 9px 4px 3px;
}

#sc-switch button.sc-opt {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    text-align: left;
    padding: 7px 9px;
    margin: 3px 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #f2f5f9;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s ease, background .15s ease;
}

#sc-switch button.sc-opt:hover { background: #e7edf4; }
#sc-switch button.sc-opt[aria-pressed="true"] { border-color: #16202b; background: #fff; }

#sc-switch .sc-txt { min-width: 0; flex: 1; }

#sc-switch .sc-name {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #16202b;
    letter-spacing: .02em;
}

#sc-switch .sc-note {
    display: block;
    font-size: 10.5px;
    color: #5b6b7c;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Swatch stack sits beside the label rather than under it, so 11 themes fit. */
#sc-switch .sc-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    flex: none;
}

#sc-switch .sc-chip {
    width: 15px;
    height: 15px;
    border-radius: 2px;
    border: 1px solid rgb(0 0 0 / .18);
}

#sc-switch .sc-foot {
    padding: 9px 12px 11px;
    border-top: 1px solid #e3e9f0;
    font-size: 10.5px;
    line-height: 1.45;
    color: #5b6b7c;
}

#sc-switch .sc-foot b { color: #16202b; }

#sc-switch .sc-aa {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 9.5px;
    letter-spacing: .04em;
}

#sc-switch .sc-pass { background: #d8f3e3; color: #0d5c38; }
#sc-switch .sc-fail { background: #fbdcd7; color: #8f2313; }

@media (max-width: 600px) {
    #sc-switch { right: 10px; bottom: 10px; width: calc(100vw - 20px); }
}

/* --------------------------------------------------------------------------
   PANEL IMMUNITY — keep last in the file.

   The theme rules in section 3 target bare span / p / li / label with
   !important, and this panel is built out of spans, so it was inheriting
   --sc-ink and going invisible on its own white background (pale green text
   on Aurora, etc). The panel is a presentation control, not part of any
   theme, so it opts out entirely.

   #sc-switch * scores (1,0,0) and beats html[data-theme] span at (0,1,2) —
   the ID does the work. Generic first, specific after.
   -------------------------------------------------------------------------- */

#sc-switch,
#sc-switch * {
    color: #16202b !important;
}

#sc-switch header,
#sc-switch header * {
    color: #ffffff !important;
}

#sc-switch .sc-group { color: #8494a5 !important; }
#sc-switch .sc-note  { color: #5b6b7c !important; }
#sc-switch .sc-foot  { color: #5b6b7c !important; }

#sc-switch .sc-name,
#sc-switch .sc-foot b { color: #16202b !important; }

#sc-switch .sc-pass { color: #0d5c38 !important; background: #d8f3e3 !important; }
#sc-switch .sc-fail { color: #8f2313 !important; background: #fbdcd7 !important; }

/* Backgrounds and borders, in case a theme rule ever matches a panel class. */
#sc-switch            { background: #ffffff !important; border: 0 !important; }
#sc-switch header     { background: #16202b !important; }
#sc-switch .sc-opt    { background: #f2f5f9 !important; border: 2px solid transparent !important; }
#sc-switch .sc-opt:hover { background: #e7edf4 !important; }
#sc-switch .sc-opt[aria-pressed="true"] { background: #ffffff !important; border-color: #16202b !important; }
#sc-switch .sc-foot   { border-top: 1px solid #e3e9f0 !important; }

/* Swatches carry their colour in an inline style — never let a theme repaint them. */
#sc-switch .sc-chip { border: 1px solid rgb(0 0 0 / .18) !important; }
