/* ============================================================
         1. DESIGN TOKENS — palette pulled straight from the logo
         Gradient stops are the exact colours sampled from logo.png.
         Dark = navy wordmark colour deepened; light = cool off-white.
         No pure white anywhere.
         ============================================================ */
            /* --------------------------------------------------------
         Local names mapped onto the shared design system in
         css/main.css. No colour, font or size is defined here —
         edit the --qw-* tokens in main.css to restyle the site.
         -------------------------------------------------------- */
      :root {
        --ease: var(--qw-ease-out);
        --navy: var(--qw-navy);
        --navy-2: var(--qw-navy-2);
        --navy-3: var(--qw-navy-3);
        --paper: var(--qw-paper);
        --paper-2: var(--qw-paper-2);
        --ink: var(--qw-ink);
        --muted: var(--qw-muted);
        --muted-dark: var(--qw-muted-dark);
        --violet: var(--qw-violet);
        --indigo: var(--qw-indigo);
        --blue: var(--qw-blue);
        --sky: var(--qw-sky);
        --cyan: var(--qw-cyan);
        --mint: var(--qw-mint);
        --grad: var(--qw-grad);
        --grad-soft: var(--qw-grad-soft);
        --line: var(--qw-line);
        --line-dark: var(--qw-line-dark);
        --font-display: var(--qw-font-display);
        --font-ui: var(--qw-font-ui);
        --fs-hero: var(--qw-fs-hero);
        --fs-h2: var(--qw-fs-h2);
        --fs-h3: var(--qw-fs-h3);
        --fs-lead: var(--qw-fs-lead);
        --pad-section: var(--qw-pad-section);
        --container: var(--qw-container);
        --gutter: var(--qw-gutter);
        --ease-out: var(--qw-ease-out);
        --ease-inout: var(--qw-ease-io);
      }

      /* ============================================================
         2. RESET & BASE
         ============================================================ */
      *,
      *::before,
      *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }
      html {
        scroll-behavior: smooth;
        -webkit-text-size-adjust: 100%;
      }
      body {
        font-family: var(--font-ui);
        font-size: 1.0625rem;
        line-height: 1.6;
        color: var(--ink);
        background: var(--paper);
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
      }
      img,
      video,
      svg {
        display: block;
        max-width: 100%;
      }
      a {
        color: inherit;
        text-decoration: none;
      }
      :focus-visible {
        outline: 2px solid var(--blue);
        outline-offset: 3px;
        border-radius: 2px;
      }

      /* ============================================================
         3. TYPOGRAPHY
         ============================================================ */
      h1,
      h2,
      h3 {
        font-family: var(--font-display);
        font-weight: 600;
        line-height: 1.05;
        letter-spacing: -0.02em;
      }
      p {
        max-width: 62ch;
      }

      /* gradient text — used ONCE, on the contact climax heading */
      .grad-text {
        background: var(--grad);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }

      /* ============================================================
         4. LAYOUT UTILITIES (replace Bootstrap grid)
         ============================================================ */
      .container {
        width: 100%;
        max-width: var(--container);
        margin-inline: auto;
        padding-inline: var(--gutter);
      }
      .section {
        position: relative;
        padding-block: var(--pad-section);
      }

      /* ============================================================
         5. BUTTONS — gradient primary + ghost variant for dark
         Micro-interaction: the gradient shifts + button lifts on hover.
         ============================================================ */
      .button {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 0.55em;
        padding: 0.95em 1.9em;
        font-family: var(--font-ui);
        font-size: 0.95rem;
        font-weight: 600;
        color: #fff;
        border: 0;
        border-radius: 100px;
        background: var(--grad);
        background-size: 180% 180%;
        background-position: 0% 50%;
        transition:
          background-position 0.6s var(--ease-out),
          transform 0.4s var(--ease-out),
          box-shadow 0.4s var(--ease-out);
        box-shadow: 0 8px 24px -12px rgba(66, 105, 253, 0.7);
      }
      .button:hover {
        background-position: 100% 50%;
        transform: translateY(-2px);
        box-shadow: 0 14px 30px -12px rgba(66, 105, 253, 0.8);
      }
      .button__arrow {
        transition: transform 0.4s var(--ease-out);
      }
      .button:hover .button__arrow {
        transform: translateX(4px);
      }

      .button_ghost {
        background: transparent;
        color: var(--paper);
        border: 1px solid var(--line-dark);
        box-shadow: none;
      }
      .button_ghost:hover {
        border-color: var(--mint);
        transform: translateY(-2px);
      }

      /* ============================================================
         6. CUSTOM CURSOR (fine pointers only)
         ============================================================ */
      .cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 30px;
        height: 30px;
        border: 1.5px solid var(--cyan);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition:
          width 0.28s var(--ease-out),
          height 0.28s var(--ease-out),
          background-color 0.28s var(--ease-out);
        will-change: transform;
      }
      .cursor.is-hover {
        width: 54px;
        height: 54px;
        background: rgba(63, 187, 231, 0.15);
        border-color: var(--mint);
      }
      @media (hover: none), (pointer: coarse) {
        .cursor {
          display: none;
        }
      }



      /* ============================================================
         CONTACT PAGE — additions on top of the shared brand chrome
         (tokens / reset / type / layout / buttons / cursor /
         preloader / header, all reused verbatim above).
         ============================================================ */

      /* ============================================================
         C1. HERO — full-bleed navy console: dot-grid + two drifting
         blobs that parallax toward the pointer, and a slow rotating
         gradient ring behind the copy. Single, centred Z-column
         (title -> subheading -> lead) since the page has one job.
         ============================================================ */
      .chero {
        position: relative;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        overflow: hidden;
        background: var(--navy);
        padding: calc(var(--pad-section) + 3rem) var(--gutter)
          var(--pad-section);
      }
      .chero__grid {
        position: absolute;
        inset: 0;
        background-image: radial-gradient(
          var(--line-dark) 1px,
          transparent 1px
        );
        background-size: 34px 34px;
        -webkit-mask-image: radial-gradient(
          ellipse at 50% 42%,
          #000 0%,
          transparent 70%
        );
        mask-image: radial-gradient(
          ellipse at 50% 42%,
          #000 0%,
          transparent 70%
        );
        opacity: 0.6;
      }
      .chero__blob {
        position: absolute;
        width: 46vw;
        height: 46vw;
        max-width: 620px;
        max-height: 620px;
        border-radius: 50%;
        filter: blur(90px);
        opacity: 0.5;
        will-change: transform;
      }
      .chero__blob--1 {
        top: -16%;
        left: -12%;
        background: radial-gradient(circle, var(--violet), transparent 68%);
      }
      .chero__blob--2 {
        bottom: -20%;
        right: -10%;
        background: radial-gradient(circle, var(--cyan), transparent 68%);
      }
      .chero__ring {
        position: absolute;
        top: 50%;
        left: 50%;
        width: min(74vw, 780px);
        height: min(74vw, 780px);
        transform: translate(-50%, -50%);
        animation: chero-spin 70s linear infinite;
        opacity: 0.4;
        pointer-events: none;
      }
      .chero__ring svg {
        width: 100%;
        height: 100%;
      }
      .chero__ring circle {
        fill: none;
        stroke: url(#chero-grad);
        stroke-width: 0.4;
      }
      .chero__ring circle:nth-child(2) {
        stroke-width: 0.25;
        opacity: 0.6;
      }
      @keyframes chero-spin {
        to {
          transform: translate(-50%, -50%) rotate(360deg);
        }
      }
      .chero__inner {
        position: relative;
        z-index: 1;
        max-width: 760px;
      }
      .chero__title {
        font-size: var(--qw-fs-hero);
        /* color intentionally omitted: this heading always carries
           .grad-text (defined earlier in the cascade), which needs
           the last word on `color` to keep the fill transparent */
      }
      .chero__sub {
        margin-top: 1.1rem;
        font-family: var(--font-display);
        font-weight: 500;
        font-size: clamp(1.15rem, 2.2vw, 1.6rem);
        color: var(--mint);
      }
      .chero__lead {
        margin: 1.6rem auto 0;
        max-width: 56ch;
        color: var(--muted-dark);
        font-size: var(--fs-lead);
      }
      .chero__cue {
        position: absolute;
        bottom: clamp(1.4rem, 4vw, 2.6rem);
        left: 50%;
        transform: translateX(-50%);
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border: 1px solid var(--line-dark);
        background: rgba(255, 255, 255, 0.04);
        color: var(--paper);
        display: grid;
        place-content: center;
        cursor: pointer;
        transition:
          border-color 0.3s,
          transform 0.3s;
        animation: chero-bob 2.4s var(--ease-inout) infinite;
      }
      .chero__cue:hover {
        border-color: var(--mint);
      }
      @keyframes chero-bob {
        0%,
        100% {
          transform: translate(-50%, 0);
        }
        50% {
          transform: translate(-50%, 7px);
        }
      }

      /* ============================================================
         C2. CONNECT — sticky info column (bento pair) beside the
         form panel. Off-white paper ground, never pure white.
         ============================================================ */
      .connect {
        background: var(--paper);
      }
      .connect__grid {
        display: grid;
        grid-template-columns: minmax(260px, 380px) 1fr;
        gap: clamp(1.5rem, 3vw, 3rem);
        align-items: start;
      }

      /* -- aside: email card + decorative orbit card (bento pair) -- */
      .connect__aside {
        position: sticky;
        top: clamp(6rem, 11vw, 8.5rem);
        display: grid;
        gap: clamp(1rem, 1.8vw, 1.5rem);
      }
      .aside__card {
        position: relative;
        overflow: hidden;
        border-radius: 20px;
        border: 1px solid var(--line);
        background: var(--paper-2);
        box-shadow: 0 24px 50px -34px rgba(12, 23, 48, 0.45);
      }
      .aside__card--email {
        padding: clamp(1.6rem, 2.6vw, 2.2rem);
      }
      .aside__icon {
        display: grid;
        place-content: center;
        width: 46px;
        height: 46px;
        border-radius: 14px;
        background: var(--grad-soft);
        color: var(--indigo);
        margin-bottom: 1.1rem;
      }
      .aside__icon svg {
        width: 20px;
        height: 20px;
      }
      .aside__property {
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--muted);
      }
      .aside__value {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: 0.5rem;
        padding: 0;
        border: 0;
        background: none;
        font-family: var(--font-ui);
        font-size: clamp(0.76rem, 1.05vw, 0.88rem);
        font-weight: 500;
        color: var(--ink);
        cursor: pointer;
        text-align: left;
      }
      .aside__value-text {
        position: relative;
        white-space: nowrap;
        word-break: break-all;
      }
      .aside__value-text::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 100%;
        height: 1.5px;
        background: var(--grad);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.35s var(--ease-out);
      }
      .aside__value:hover .aside__value-text::after {
        transform: scaleX(1);
      }
      .aside__copy-icon {
        position: relative;
        flex: none;
        display: grid;
        place-content: center;
        width: 26px;
        height: 26px;
      }
      .aside__copy-icon svg {
        width: 15px;
        height: 15px;
        color: var(--muted);
        transition:
          opacity 0.25s,
          transform 0.25s;
      }
      .aside__copy-icon .icon-check {
        position: absolute;
        opacity: 0;
        transform: scale(0.6);
        color: var(--mint);
      }
      .aside__value.is-copied .icon-copy {
        opacity: 0;
        transform: scale(0.6);
      }
      .aside__value.is-copied .icon-check {
        opacity: 1;
        transform: scale(1);
      }

      /* registered-entity card: same shell as the email card, static text */
      .aside__card--company {
        padding: clamp(1.6rem, 2.6vw, 2.2rem);
      }
      .aside__company-name {
        margin-top: 0.5rem;
        font-family: var(--font-ui);
        font-size: clamp(1rem, 1.6vw, 1.1rem);
        font-weight: 600;
        color: var(--ink);
      }
      .aside__company-detail {
        margin-top: 0.4rem;
        font-size: 0.88rem;
        line-height: 1.6;
        color: var(--muted);
      }

      /* -- form panel -- */
      .connect__panel {
        position: relative;
        border-radius: 24px;
        border: 1px solid var(--line);
        background: var(--paper-2);
        box-shadow: 0 30px 60px -36px rgba(12, 23, 48, 0.4);
        padding: clamp(1.8rem, 4vw, 3.2rem);
      }
      /* animated gradient hairline ring, same masked-pseudo trick as the nav */
      .connect__panel::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1px;
        background: var(--grad);
        opacity: 0.35;
        pointer-events: none;
        -webkit-mask:
          linear-gradient(#000 0 0) content-box,
          linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
      }

      .cform {
        position: relative;
        z-index: 1;
        display: grid;
        gap: 1.4rem;
      }

      /* floating-label field: label rests inside the input until
         focused/filled, then lifts above it — no extra copy, it
         reuses the exact original placeholder words as its label */
      .field {
        position: relative;
      }
      .field__input {
        width: 100%;
        padding: 1.5rem 1.1rem 0.6rem;
        font-family: var(--font-ui);
        font-size: 1rem;
        color: var(--ink);
        background: rgba(255, 255, 255, 0.5);
        border: 1px solid var(--line);
        border-radius: 12px;
        transition:
          border-color 0.3s var(--ease-out),
          box-shadow 0.3s var(--ease-out);
      }
      .field--area .field__input {
        min-height: 132px;
        padding-top: 1.6rem;
        resize: vertical;
      }
      .field__input:hover {
        border-color: var(--muted);
      }
      .field__input:focus {
        outline: none;
        border-color: transparent;
        box-shadow:
          0 0 0 2px var(--paper-2),
          0 0 0 4px var(--blue);
      }
      .field__label {
        position: absolute;
        left: 1.1rem;
        top: 1.05rem;
        font-size: 1rem;
        color: var(--muted);
        pointer-events: none;
        transform-origin: left top;
        transition:
          transform 0.22s var(--ease-out),
          color 0.22s var(--ease-out);
      }
      .field__input:focus + .field__label,
      .field__input:not(:placeholder-shown) + .field__label {
        transform: translateY(-0.65rem) scale(0.78);
        color: var(--indigo);
      }

      /* -- security-check card: same rotation mechanics as the vendor
         widget, restyled to match the brand (colours/border/radius
         only — never the pixel geometry the rotation math depends on) -- */
      .cform__captcha.card {
        background: var(--navy);
        color: var(--paper);
        border: 1px solid var(--line-dark);
        border-radius: 16px;
        overflow: hidden;
      }
      .cform__captcha .card-header {
        padding: 0.9rem 1.4rem;
        background: rgba(255, 255, 255, 0.04);
        border-bottom: 1px solid var(--line-dark);
        font-family: var(--font-display);
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 0.03em;
        color: var(--muted-dark);
      }
      .cform__captcha .card-body {
        display: flex;
        justify-content: center;
        padding: 1.4rem;
        overflow-x: auto;
      }

      /* rotate-captcha theme hooks (consumed by
         contact/rotate/css/rotate-captcha-style.css via
         var(--theme-rotate-*, fallback)) + the one bit of vendor
         geometry that has no var hook: the circle's own fill */
      .cform__captcha {
        --theme-rotate-accent-color: var(--blue);
        --theme-rotate-accent-hover: var(--indigo);
        --theme-rotate-text-color: var(--paper);
      }
      .cform__captcha .rotate-captcha-circle {
        background-color: rgba(255, 255, 255, 0.06);
      }

      /* the vendor sheet only colours the success state, and its green
         (#22ac00) is near-illegible on the navy card — restate both
         states in brand colours instead */
      .cform__captcha .rotate-captcha-feedback {
        min-height: 1.125rem; /* reserve the line so verifying never
                                 shifts the submit button downwards */
      }
      .cform__captcha .rotate-captcha-feedback.is-success {
        color: var(--mint);
      }
      .cform__captcha .rotate-captcha-feedback.is-error {
        color: #ff9d9d;
        font-weight: 600;
      }
      .cform__captcha .is-success-image {
        border-color: var(--mint) !important;
      }
      /* keyboard parity: the rotate arrows are <i> elements that the
         engine promotes to role="button" + tabindex, so they need a
         visible focus ring of their own */
      .cform__captcha .rotate-captcha-arrow:focus-visible,
      .cform__captcha .rotate-captcha-new-problem:focus-visible,
      .cform__captcha .rotate-captcha-verify-btn:focus-visible {
        outline: 2px solid var(--mint);
        outline-offset: 3px;
        border-radius: 6px;
      }
      /* the wheel is the one bit of vendor geometry the rotation maths
         depends on — never shrink it below the sheet's own breakpoint,
         just let the card scroll if the viewport is narrower */
      .cform__captcha .rotate-captcha-image {
        pointer-events: none;
      }

      /* honeypot: must stay in the layout for bots to find, invisible
         to people. display:none would let smarter bots skip it. */
      .cform__hp {
        position: absolute;
        left: -9999px;
        width: 1px;
        height: 1px;
        overflow: hidden;
      }

      /* response popup — brand skin over contact/response-popup/css */
      .response-popup {
        --theme-popup-accent-color: var(--navy-2);
        --theme-popup-text-color: var(--paper);
        /* the vendor sheet ships z-index:999, which loses to the fixed
           header (9999) and the mobile overlay nav (10000) — the
           backdrop has to cover both */
        z-index: 10001;
        background-color: var(--qw-navy-94, rgba(12, 23, 48, 0.94));
      }
      .response-popup-content {
        border: 1px solid var(--line-dark);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
        font-family: var(--font-ui);
      }
      .response-popup-content b {
        font-family: var(--font-display);
      }
      /* vendor sets line-height:0 on the close glyph, which collapses it
         to a 0px-tall box — the × paints but is barely clickable. Give
         it a real 32px hit area. */
      .response-popup-close {
        display: grid;
        place-items: center;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        line-height: 1;
        border-radius: 8px;
      }
      .response-popup-close:hover {
        background: rgba(255, 255, 255, 0.08);
      }
      .response-popup-close:focus-visible {
        outline: 2px solid var(--mint);
        outline-offset: 2px;
      }

      .cform__submit-wrap {
        display: flex;
        justify-content: flex-end;
      }
      .cform__submit {
        width: 100%;
        justify-content: center;
        transition:
          background-position 0.6s var(--ease-out),
          transform 0.25s var(--ease-out),
          box-shadow 0.4s var(--ease-out),
          opacity 0.3s;
      }
      .cform__submit[disabled] {
        opacity: 0.45;
        cursor: not-allowed;
        box-shadow: none;
        transform: none !important;
      }

      /* ============================================================
         C3. RESPONSIVE
         ============================================================ */
      /* swap the floating desktop nav links for the burger + overlay
         menu below ~tablet width (mirrors the other rebuilt pages) */
      @media (max-width: 992px) {
        .connect__grid {
          grid-template-columns: 1fr;
        }
        .connect__aside {
          position: static;
          grid-template-columns: 1fr 1fr;
        }
      }
      @media (max-width: 560px) {
        .connect__aside {
          grid-template-columns: 1fr;
        }
      }

      /* ============================================================
         C4. REDUCED MOTION
         ============================================================ */
      @media (prefers-reduced-motion: reduce) {
        .chero__ring,
        .chero__cue {
          animation: none !important;
        }
      }
