/* ==========================================================================
   ABM V2 — Brand override layer
   AI-powered PR company · black / white / emerald
   --------------------------------------------------------------------------
   PURPOSE: All ABM rebrand styling lives here. This file loads AFTER
   main.css so every rule below wins by cascade order — the original
   (minified) engine CSS/JS is never edited, so nothing can break and the
   whole rebrand can be removed by deleting one <link>.
   ========================================================================== */

:root {
    --abm-emerald:        #6cbd45;  /* mid — primary accent            */
    --abm-emerald-bright: #8ed468;  /* bright — rings, highlights      */
    --abm-emerald-deep:   #4e8f2e;  /* deep — hovers, shadows          */
    --abm-emerald-glow:   rgba(108, 189, 69, .18);
}

/* ── 1. The scroll circle animation → emerald ──────────────────────────────
   `.circles` is the fixed full-screen overlay of concentric rotating rings
   driven by scroll. Original color was #fff. We recolor every part of it. */
.circles { color: var(--abm-emerald-bright); opacity: .6; }

.circles .circle_border {
    border-color: rgba(142, 212, 104, .45);
    box-shadow: 0 0 24px rgba(108, 189, 69, .15);
}

/* crosshair lines through each ring */
.circles .circle::before,
.circles .circle::after {
    background: var(--abm-emerald-bright);
    opacity: .25;
}

/* the little "+" ticks + their numeric labels */
.circles .circle_plus::before,
.circles .circle_plus::after {
    background-color: var(--abm-emerald-bright);
}
.circles .circle_value { color: var(--abm-emerald-bright); }

/* ── 2. Emerald bloom on the black canvas ──────────────────────────────────
   A soft glow that lifts the black background into ABM territory without
   touching the WebGL sphere. Sits above the render, below the content,
   screen-blended so it only ever adds light (never darkens). */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen;
    background:
        radial-gradient(60% 50% at 50% 38%, var(--abm-emerald-glow), transparent 70%),
        radial-gradient(45% 40% at 82% 88%, rgba(108,189,69,.10), transparent 70%);
}

/* ── 3. Retire the old neon-green accent → emerald ─────────────────────────
   (dev-grid toggle + overlay; harmless but keeps the palette consistent) */
.toggleGrid            { background: var(--abm-emerald) !important; }
.gridDebug .colOverlay { background: var(--abm-emerald) !important; }

/* ── 4. Global emerald micro-accents ───────────────────────────────────────*/
::selection { background: var(--abm-emerald); color: #000; }

:focus-visible {
    outline: 2px solid var(--abm-emerald-bright);
    outline-offset: 3px;
}

/* text links pick up emerald on hover (nav + inline) */
a:hover { color: var(--abm-emerald-bright); }

/* the little SOUND-toggle waveform circle reads as an emerald node */
.ambienceSoundToggle_render { filter: drop-shadow(0 0 6px rgba(108,189,69,.5)); }

/* ── 5. OPTIONAL: tint the WebGL sphere emerald ────────────────────────────
   Off by default — the sphere is photographic and hue-shift can look sickly.
   Uncomment to experiment; adjust the deg / % to taste.
.render canvas { filter: hue-rotate(95deg) saturate(1.15); }
*/

/* ══ 5b. ABM LOGO — loader + navbar ═════════════════════════════════════════
   The real ABM wordmark is 1024×288 (ratio ~3.56), chunkier than the old thin
   21TSI wordmark the loader was sized for. Re-fit the loader logo box and drop
   the now-redundant "ABM" text suffix on the counter (the logo already says it). */
.loading_logo {
    aspect-ratio: 2240 / 650 !important;   /* the ABM logo's true ratio */
    width: clamp(230px, 36vw, 460px) !important;
    max-width: none !important;
}
.loading_logo img { object-fit: contain; }

/* counter reads just the number ("…10"); the wordmark is the reveal */
.loading_counter_tsi { display: none !important; }

/* navbar corner: the ABM wordmark, sized for a nav row */
.navbar_logo { overflow: visible; }
.navbar_logo img { max-width: 96px !important; }
.navbar_logo a { opacity: .9; }

/* footer: logo left of the contact text — larger + nudged in off the shoulder */
.footer_brand { padding-left: clamp(3rem, 9vw, 9rem); }
.footer_logo img { max-width: 200px !important; }

/* edito pages: the small back-nav "ABM" text stays as-is; the plane mark is
   used for the main navbar/loader/footer only. */

/* ══ 5c. CLICK PASS-THROUGH FOR FIXED TOP CHROME ════════════════════════════
   On the interior (edito) pages the fixed top bar (.navbarEdito, ~mix-blend
   and near-invisible), its stretched empty back-link, and the .navbarMask
   gradient span the full-width top band with default pointer-events. Any form
   field scrolled beneath that band was visible but unclickable (the chrome ate
   the click) — size/scroll-dependent, so it hit different fields at different
   widths. Let the empty chrome pass clicks through; keep the real controls
   (the ABM/Back link + the Contact button) interactive. No visual change. */
/* Decorative fixed/sticky chrome that has NO interactive content of its own
   must not eat clicks:
     .navbarEdito  – fixed top bar (mix-blend, ~invisible)
     .navbarMask   – fixed 120px gradient
     .cover        – fixed full-viewport backdrop
     .navbarEdito_back – the wide (~29vw) back area
     .edito .header    – the STICKY "contact" title pinned top-left (~37vw)
                         over the form's whole left column the entire scroll */
.navbarEdito,
.navbarMask,
.cover,
.navbarEdito_back,
.edito .header { pointer-events: none; }

/* re-enable only the genuine controls */
.navbarEdito_back a,
.navbarEdito_actions,
.navbarEdito_actions a,
.navbarEdito_actions button { pointer-events: auto; }

/* the empty back-link was position:absolute inset:0 over the full ~29vw × nav
   height; shrink it to a compact top-left box on its visible "ABM" label so
   "back" still works but it no longer overlaps any form field */
.navbarEdito_back a {
    right: auto !important;
    bottom: auto !important;
    width: 96px !important;
    height: 52px !important;
}

/* ══ 6. CONTACT FORM ════════════════════════════════════════════════════════
   Class-based (cf_*) so it overrides the engine's global bare input/label
   rules. NOTE: the .edito .content area is WHITE (#fff) — so all form text is
   DARK (near-black) with deep-emerald accents for contrast. Used by
   en/contact.html. */
.contact { padding-bottom: 8rem; }
.contact_intro {
    max-width: 46rem;
    margin: 0 0 3.5rem;
    font-weight: 300;
    color: rgba(0,0,0,.68);
}
.contact_intro strong { color: #000; font-weight: 500; }

.cform { max-width: 62rem; }

/* layout: responsive 2-col grid */
.cform_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.4rem 3rem;
}
.cform_full { grid-column: 1 / -1; }
@media (max-width: 700px) { .cform_grid { grid-template-columns: 1fr; gap: 2rem; } }

/* a labelled field */
.cf_field { position: relative; display: flex; flex-direction: column; }
.cf_label {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
    top: auto; left: auto; right: auto;
    display: block;
    text-align: left;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(0,0,0,.55);
    margin-bottom: .7rem;
}
.cf_label .req { color: var(--abm-emerald-deep); margin-left: .2em; }

/* text inputs / textarea / select */
.cf_input, .cf_select, .cf_textarea {
    width: 100%;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(0,0,0,.25) !important;
    border-radius: 0 !important;
    padding: .55rem 0 .7rem !important;
    color: #0a0a0a !important;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.4;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.cf_textarea { resize: vertical; min-height: 7rem; }
.cf_input::placeholder, .cf_textarea::placeholder { color: rgba(0,0,0,.35); }
.cf_input:focus, .cf_select:focus, .cf_textarea:focus {
    outline: none !important;
    border-bottom-color: var(--abm-emerald) !important;
    box-shadow: 0 1px 0 0 var(--abm-emerald);
}
/* custom dropdown (replaces native <select>) — matches the underline fields */
.cf_dropdown { position: relative; }
.cf_dd_trigger {
    all: unset;
    box-sizing: border-box;
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    border-bottom: 1px solid rgba(0,0,0,.25);
    padding: .55rem 0 .7rem;
    font-size: 1.05rem; font-weight: 400; line-height: 1.4;
    color: #0a0a0a;
    cursor: pointer;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.cf_dd_trigger:focus-visible { outline: none; }
.cf_dd_value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf_dd_value.is-placeholder { color: rgba(0,0,0,.35); }
.cf_dd_chevron { flex: none; color: rgba(0,0,0,.5); transition: transform .28s cubic-bezier(0.19,1,0.22,1), color .2s ease; }

.cf_dropdown.is-open .cf_dd_trigger {
    border-bottom-color: var(--abm-emerald);
    box-shadow: 0 1px 0 0 var(--abm-emerald);
}
.cf_dropdown.is-open .cf_dd_chevron { transform: rotate(180deg); color: var(--abm-emerald-deep); }

/* the panel */
.cf_dd_list {
    position: absolute;
    top: calc(100% + 8px); left: 0; right: 0;
    z-index: 40;
    margin: 0; padding: .35rem;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    box-shadow: 0 22px 55px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.06);
    max-height: 17rem; overflow-y: auto;
    opacity: 0; transform: translateY(-8px) scale(.985); transform-origin: top center;
    pointer-events: none;
    transition: opacity .2s ease, transform .22s cubic-bezier(0.19,1,0.22,1);
}
.cf_dropdown.is-open .cf_dd_list { opacity: 1; transform: none; pointer-events: auto; }

.cf_dd_opt {
    padding: .62rem .8rem;
    border-radius: 8px;
    font-size: .95rem; font-weight: 400; line-height: 1.3;
    color: rgba(0,0,0,.8);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, padding-left .15s ease;
}
.cf_dd_opt + .cf_dd_opt { margin-top: 1px; }
.cf_dd_opt:hover, .cf_dd_opt.is-focus {
    background: rgba(108,189,69,.1);
    color: var(--abm-emerald-deep);
    padding-left: 1.05rem;
}
.cf_dd_opt.is-selected { color: var(--abm-emerald-deep); font-weight: 500; }
.cf_dd_opt.is-selected::after { content: "✓"; float: right; color: var(--abm-emerald); }

/* tidy emerald scrollbar inside the panel */
.cf_dd_list::-webkit-scrollbar { width: 8px; }
.cf_dd_list::-webkit-scrollbar-thumb { background: rgba(108,189,69,.3); border-radius: 8px; border: 2px solid #fff; }
.cf_dd_list::-webkit-scrollbar-track { background: transparent; }

/* checkbox / radio groups */
.cf_group { display: flex; flex-wrap: wrap; gap: .7rem 1rem; }
.cf_check {
    position: relative;
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .55rem .95rem;
    border: 1px solid rgba(0,0,0,.22);
    border-radius: 40px;
    font-size: .9rem; font-weight: 400;
    color: rgba(0,0,0,.8);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
    user-select: none;
}
.cf_check input { position: absolute; opacity: 0; width: 0; height: 0; }
.cf_check .dot {
    width: 9px; height: 9px; border-radius: 50%;
    border: 1px solid rgba(0,0,0,.35);
    transition: background .2s ease, border-color .2s ease;
    flex: none;
}
.cf_check:hover { border-color: var(--abm-emerald); color: #000; }
.cf_check:has(input:checked) {
    border-color: var(--abm-emerald);
    background: rgba(108,189,69,.14);
    color: #000;
}
.cf_check:has(input:checked) .dot {
    background: var(--abm-emerald);
    border-color: var(--abm-emerald);
    box-shadow: 0 0 8px rgba(108,189,69,.5);
}

/* consent inline checkbox */
.cf_consent { display: flex; align-items: flex-start; gap: .7rem; font-size: .85rem; font-weight: 400; color: rgba(0,0,0,.65); }
.cf_consent a { color: var(--abm-emerald-deep); text-decoration: underline; }
.cf_consent .req { color: var(--abm-emerald-deep); }
.cf_consent input { margin-top: .25rem; accent-color: var(--abm-emerald); width: 16px; height: 16px; flex: none; }

/* submit */
.cform_actions { margin-top: 3rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cf_submit {
    all: unset;
    box-sizing: border-box;
    display: inline-flex; align-items: center; gap: .7rem;
    padding: 1rem 2.2rem;
    background: var(--abm-emerald);
    color: #ffffff;
    font-size: .95rem; font-weight: 600; letter-spacing: .02em;
    border-radius: 40px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cf_submit:hover { background: var(--abm-emerald-deep); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(108,189,69,.35); }
.cf_submit:active { transform: translateY(0); }
.cf_submit .arrow { font-size: 1.1rem; line-height: 1; }

.cform_note { font-size: .8rem; color: rgba(0,0,0,.45); font-weight: 400; }

/* success state */
.cform_success {
    display: none;
    padding: 2.5rem;
    border: 1px solid rgba(108,189,69,.5);
    border-radius: 16px;
    background: rgba(108,189,69,.08);
}
.cform_success h3 { font-size: 1.6rem; font-weight: 400; margin-bottom: .6rem; color: #000; }
.cform_success p { color: rgba(0,0,0,.7); font-weight: 400; }
.cform_success a { color: var(--abm-emerald-deep); }
.cform.is-sent .cform_grid,
.cform.is-sent .cform_actions { display: none; }
.cform.is-sent .cform_success { display: block; }

/* ── §6  Homepage top nav: fit the 4 page links (Our Story · Capabilities ·
   Work · Press) without wrapping. Engine set fixed nth-child widths for the
   original 3 scroll-links; reset to content width + even spacing. ── */
.navbar_nav { justify-content: center; }
.navbar_nav a, .navbar_nav_link { overflow: visible !important; }   /* hover slides chars ~19px right; don't clip them */
.navbar_nav a { width: auto !important; margin-left: clamp(2.6rem, 5.4vw, 6.5rem); white-space: nowrap; letter-spacing: .04em; }
.navbar_nav a:first-child { margin-left: 0; }
.navbar_nav a span { white-space: nowrap; }

/* ── §7  Homepage logo: ensure it's never clipped. Desktop keeps the engine's
   container/animation untouched (changing its width shifts the mark off-screen
   during the intro transform). On mobile the engine's ~66px container was
   cutting the 96px mark's "M", so fit the mark to the container there. ── */
.navbar_logo { overflow: visible !important; }
.navbar_logo img { max-width: 96px !important; }
@media (max-width: 900px) {
  .navbar_logo, .navbar_logo a { overflow: visible !important; }
  .navbar_logo img { max-width: 76px !important; }
}

/* ============ Footer social icons (added 2026-08-12; centered in the gap) ============ */
/* Icons are centered horizontally in the empty band BETWEEN the ABM logo (left)
   and the contact/site-map text (right), aligned to the logo's vertical center.
   The logo column is 37.5% and the text is offset by 25%, so 50% is exactly the
   centre of that gap. The row is the positioning context; the 58px height +
   align-items:center line the icons up with the 58px-tall logo. */
.footer .row{position:relative}
.footer_brand{display:flex;align-items:center;flex-wrap:nowrap}
.footer_brand .footer_logo{flex:0 0 auto}
.footer_social{position:absolute;left:45%;top:0;height:58px;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:.7rem;flex-wrap:nowrap;margin:0;z-index:2}
.footer_social_link{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:999px;color:rgba(255,255,255,.72);border:1px solid rgba(255,255,255,.18);background:transparent;transition:color .25s ease,border-color .25s ease,background-color .25s ease,transform .25s ease}
.footer_social_link svg{width:18px;height:18px;fill:currentColor;display:block}
.footer_social_link:hover,.footer_social_link:focus-visible{color:#6cbd45;border-color:#6cbd45;background-color:rgba(108,189,69,.12);transform:translateY(-3px)}
/* Stacked footer: drop the icons back into normal flow, under the logo. */
@media (max-width: 979px){
  .footer_brand{flex-wrap:wrap;padding-left:clamp(1rem,4vw,3rem)}
  .footer_social{position:static;transform:none;height:auto;justify-content:flex-start;flex-wrap:wrap;margin-top:1rem}
  .footer_social_link{width:38px;height:38px}
}

/* ============ FAQ page: fix tan navbar over the blue hero (added 2026-08-12) ============ */
/* The navbarEdito uses mix-blend-mode:difference so its white chrome stays visible on
   the white contact form. But the FAQ hero (manifesto-1) is strongly BLUE, and white
   ⊖ blue = tan/brown. The FAQ page is dark throughout, so on THIS page only we drop the
   blend and force the logo + Back + nav links to true white. Other pages are untouched. */
.faq-page .navbarEdito{mix-blend-mode:normal !important}
.faq-page .editoBack,
.faq-page .editoBack span,
.faq-page .editoPages a{color:#fff !important}
.faq-page .editoPages a[aria-current="page"]{color:#6cbd45 !important}
