/* ============================================================
         1. DESIGN TOKENS — shared with the rest of the site
         Palette pulled from the logo; no pure white surfaces.
         ============================================================ */
            /* --------------------------------------------------------
         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);
        --card: var(--qw-card);
        --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);
        --line: var(--qw-line);
        --line-dark: var(--qw-line-dark);
        --shadow: var(--qw-shadow);
        --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: 66ch;
      }
      .grad-text {
        background: var(--grad);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }
      /* small labels (kept sentence-case, never all-caps) with a gradient tick */
      .eyebrow {
        display: inline-block;
        font-family: var(--font-ui);
        font-weight: 600;
        font-size: 0.82rem;
        color: var(--qw-blue-text);
        margin-bottom: 0.9rem;
        padding-left: 1.7rem;
        position: relative;
      }
      .eyebrow::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 1.2rem;
        height: 2px;
        background: var(--grad);
        transform: translateY(-50%);
      }

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

      /* ============================================================
         5. BUTTONS
         ============================================================ */
      .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%;
        box-shadow: 0 8px 24px -12px rgba(66, 105, 253, 0.7);
        transition:
          background-position 0.6s var(--ease-out),
          transform 0.4s var(--ease-out),
          box-shadow 0.4s var(--ease-out);
      }
      .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);
      }

      /* ============================================================
         6. CUSTOM CURSOR
         ============================================================ */
      .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;
        }
      }

      /* ============================================================
         9. MASTHEAD — page title over a parallax photo
         ============================================================ */
      .masthead {
        position: relative;
        min-height: 84vh;
        display: grid;
        place-content: center;
        text-align: center;
        color: var(--paper);
        background: var(--navy);
        overflow: hidden;
      }
      .masthead__bg {
        position: absolute;
        inset: -14% 0;
        z-index: 0;
        background: var(--navy);
        will-change: transform;
      }
      /* gradient blobs give the fallback (no-photo) view life too */
      .masthead__blob {
        position: absolute;
        z-index: 0;
        border-radius: 50%;
        filter: blur(70px);
        opacity: 0.45;
      }
      .masthead__blob--1 {
        width: 40vw;
        height: 40vw;
        top: -12%;
        right: -6%;
        background: radial-gradient(
          circle,
          rgba(130, 62, 231, 0.6),
          transparent 65%
        );
      }
      .masthead__blob--2 {
        width: 36vw;
        height: 36vw;
        bottom: -16%;
        left: -8%;
        background: radial-gradient(
          circle,
          rgba(63, 238, 215, 0.5),
          transparent 65%
        );
      }
      .masthead__scrim {
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(
          180deg,
          rgba(12, 23, 48, 0.72),
          rgba(12, 23, 48, 0.86)
        );
      }
      .masthead__inner {
        position: relative;
        z-index: 2;
        padding: 9rem var(--gutter) 4rem;
      }
      .masthead h1 {
        font-size: var(--fs-hero);
        margin-bottom: 1.2rem;
      }
      .masthead__sub {
        display: inline-block;
        position: relative;
        font-size: var(--fs-lead);
        color: var(--muted-dark);
        padding-bottom: 0.8rem;
      }
      .masthead__sub::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 64px;
        height: 3px;
        border-radius: 3px;
        background: var(--grad);
      }
      .masthead__scroll {
        position: absolute;
        left: 50%;
        bottom: 2rem;
        z-index: 2;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        font-size: 0.78rem;
        letter-spacing: 0.14em;
        color: var(--muted-dark);
      }
      .masthead__scroll span {
        width: 1px;
        height: 44px;
        background: var(--grad);
        transform-origin: top;
        animation: pulse 2s var(--ease-inout) infinite;
      }
      @keyframes pulse {
        0%,
        100% {
          transform: scaleY(0.4);
          opacity: 0.4;
        }
        50% {
          transform: scaleY(1);
          opacity: 1;
        }
      }

      /* ============================================================
         10. WHO WE ARE — sticky text left, scrollable blocks right
         The left column pins while the right column of blocks scrolls.
         Each right block carries a gradient "bullet".
         ============================================================ */
      .about {
        background: var(--paper);
      }
      .about__grid {
        display: grid;
        grid-template-columns: 0.92fr 1.08fr;
        gap: clamp(2rem, 5vw, 5rem);
        align-items: start;
      }
      .about__sticky {
        position: sticky;
        top: 110px;
      }
      .about__sticky h2 {
        font-size: var(--fs-h2);
        margin-bottom: 1.6rem;
      }
      /* framed image inside the sticky column, with a gradient edge */
      .about__frame {
        position: relative;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: var(--shadow);
      }
      .about__frame::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1.5px;
        background: var(--grad);
        -webkit-mask:
          linear-gradient(#000 0 0) content-box,
          linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        opacity: 0.8;
      }
      .about__frame img {
        width: 100%;
        aspect-ratio: 4/3;
        object-fit: cover;
        background: linear-gradient(135deg, var(--navy-2), var(--navy));
      }
      .about__stream {
        display: flex;
        flex-direction: column;
        gap: clamp(1.2rem, 3vw, 1.8rem);
      }
      .about__block {
        position: relative;
        background: var(--card);
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: clamp(1.7rem, 3vw, 2.4rem) clamp(1.7rem, 3vw, 2.4rem)
          clamp(1.7rem, 3vw, 2.4rem) 3.4rem;
        box-shadow: var(--shadow);
      }
      .about__block::before {
        content: "";
        position: absolute;
        left: 1.5rem;
        top: 2.4rem;
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background: var(--grad);
      }
      .about__block p {
        max-width: none;
      }
      .about__block strong {
        font-weight: 600;
      }

      /* ============================================================
         11. BENTO — Team + Values in a mixed-size grid
         Light tiles so the client's inline heading colours stay visible.
         ============================================================ */
      .bento {
        background: var(--paper-2);
      }
      .bento__grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: clamp(1rem, 1.8vw, 1.5rem);
      }
      .tile {
        position: relative;
        overflow: hidden;
        border-radius: 18px;
        box-shadow: var(--shadow);
      }
      .tile--content {
        background: var(--card);
        border: 1px solid var(--line);
        padding: clamp(2rem, 3.5vw, 3rem);
        display: flex;
        flex-direction: column;
        justify-content: center;
      }
      .tile h2 {
        font-size: var(--fs-h3);
        margin-bottom: 1rem;
      }
      .tile p {
        color: var(--qw-ink-70);
      }
      .tile--team {
        grid-column: span 7;
      }
      .tile--values {
        grid-column: span 7;
      }
      /* decorative tiles (no copy) that complete the bento shape */
      .tile--accent {
        grid-column: span 5;
        min-height: 240px;
        background: var(--navy);
      }
      .tile--accent .tile__photo-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      .tile--accent::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
          180deg,
          transparent 40%,
          rgba(12, 23, 48, 0.35)
        );
      }
      .tile--photo {
        grid-column: span 5;
        min-height: 240px;
        background: var(--navy-2) url("../img/business-meeting-with-sales-analysis-presentation-2026-01-07-02-20-36-utc.jpg") center/cover;
      }
      .tile--photo::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
          180deg,
          transparent 40%,
          rgba(12, 23, 48, 0.35)
        );
      }

      /* ============================================================
         12. DOORS — the two link cards (Services / Contact)
         ============================================================ */
      .doors {
        background: var(--navy);
        color: var(--paper);
      }
      .doors__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: clamp(1rem, 2vw, 1.5rem);
      }
      .door {
        position: relative;
        overflow: hidden;
        isolation: isolate;
        border: 1px solid var(--line-dark);
        border-radius: 18px;
        padding: clamp(2.4rem, 4vw, 3.6rem);
        min-height: 320px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 2rem;
        transition: transform 0.5s var(--ease-out);
      }
      .door__glow {
        position: absolute;
        inset: 0;
        z-index: -1;
        background: var(--grad);
        opacity: 0;
        transition: opacity 0.5s var(--ease-out);
      }
      .door:hover {
        transform: translateY(-6px);
      }
      .door:hover .door__glow {
        opacity: 0.16;
      }
      .door__sub {
        color: var(--cyan);
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0.7rem;
      }
      .door h2 {
        font-size: var(--fs-h3);
        margin-bottom: 1rem;
      }
      .door p {
        color: var(--muted-dark);
      }
      .door__arrow {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: 1px solid var(--line-dark);
        display: grid;
        place-content: center;
        position: relative;
        overflow: hidden;
        isolation: isolate;
      }
      .door__arrow::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: var(--grad);
        border-radius: 50%;
        transform: scale(0);
        transition: transform 0.45s var(--ease-out);
      }
      .door:hover .door__arrow::before {
        transform: scale(1);
      }
      .door__arrow svg {
        transition: transform 0.4s var(--ease-out);
      }
      .door:hover .door__arrow svg {
        transform: translateX(3px);
      }

      /* ============================================================
         15. RESPONSIVE
         ============================================================ */
      @media (max-width: 992px) {
        .about__grid {
          grid-template-columns: 1fr;
        }
        .about__sticky {
          position: static;
        }
        .tile--team,
        .tile--values,
        .tile--accent,
        .tile--photo {
          grid-column: 1 / -1;
        }
        .doors__grid {
          grid-template-columns: 1fr;
        }
      }

      /* ============================================================
         16. REDUCED MOTION
         ============================================================ */
      @media (prefers-reduced-motion: reduce) {
        html {
          scroll-behavior: auto;
        }
        *,
        *::before,
        *::after {
          animation-duration: 0.001ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.001ms !important;
        }
        [data-reveal] {
          opacity: 1 !important;
          transform: none !important;
        }
      }
