/* Index page */

/* --- HERO: video background --- */
    .section-hero { position: relative !important; overflow: hidden; }
    .hero-background-wrapper {
      position: absolute;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      contain: layout style paint;
    }
    .hero-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      display: block;
      z-index: 1;
      object-fit: cover;   /* important: fills hero like a background */
      pointer-events: none; /* important: don't block clicks */
    }
    .hero-video { transform: translateZ(0); }

    .hero-background-fade-overlay { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
    .container-hero { position: relative; z-index: 2; } /* content above canvas */


    /* ============================================================
       BRIDGE — CENTERED STATEMENT (PROJECTS → EXPERTISE)
       ============================================================ */
    .section-bridge {
      background: #ffffff;
      padding: 4rem 5% 4.5rem;
      width: 100%;
    }

    .section-bridge-inner {
      max-width: 50rem;
      margin: 0 auto;
      text-align: center;
    }

    .section-bridge-title {
      color: #111111;
      font-size: calc(1.4vw + 1.6rem);
      font-weight: 600;
      letter-spacing: -0.02em;
      line-height: 1.12;
      margin: 0 0 1rem;
    }

    .section-bridge-sub {
      color: #444446;
      font-size: 20px;
      line-height: 1.65;
      max-width: 50rem;
      margin: 0 auto;
    }

    @media screen and (max-width: 768px) {
      .section-bridge {
        padding: 3rem 1.25rem 3.5rem;
      }

      .section-bridge-title {
        font-size: calc(1vw + 1.5rem);
      }
    }

    @media screen and (max-width: 479px) {
      .section-bridge-title {
        font-size: calc(0.8vw + 1.25rem);
      }
    }

    /* ============================================================
       EXPERTISE — INTERACTIVE TAB MODULE
       ============================================================ */
    .expertise-section {
      background-color: #f5f5f7;
      padding: 4rem 0 5rem;
      width: 100%;
    }

    .expertise-matrix {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 3rem;
      max-width: 75rem;
      margin: 0 auto;
      padding: 0 5%;
      align-items: stretch;
    }

    .expertise-tabs {
      display: flex;
      flex-direction: column;
      height: 100%;
      min-height: 30rem;
    }

    .expertise-tabs-intro {
      margin-bottom: 2.5rem;
    }

    .expertise-title {
      color: #111111;
      font-size: calc(1.4vw + 1.6rem);
      font-weight: 600;
      letter-spacing: -0.02em;
      line-height: 1.12;
      margin: 0;
      text-align: left;
    }

    .expertise-sub {
      color: #444446;
      font-size: 20px;
      max-width: 36rem;
      margin: 1rem 0 0;
      line-height: 1.65;
      text-align: left;
    }

    .expertise-tab-list {
      flex: 1;
      display: grid;
      grid-template-rows: auto auto 1fr;
      align-content: stretch;
    }

    .expertise-tab {
      padding: 1.5rem 0;
      border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.06);
      cursor: pointer;
      position: relative;
      transition: border-color 0.25s ease;
    }

    .expertise-tab:last-child {
      display: flex;
      flex-direction: column;
    }

    .expertise-tab.is-active {
      border-bottom: 0.125rem solid #000000;
    }

    .expertise-tab-header {
      display: flex;
      align-items: baseline;
      gap: 0.625rem;
    }

    .expertise-tab-number {
      font-size: 0.8rem;
      font-weight: 500;
      color: rgba(0, 0, 0, 0.35);
      letter-spacing: 0.02em;
      flex-shrink: 0;
    }

    .expertise-tab-label {
      font-size: calc(0.6vw + 1.2rem);
      font-weight: 600;
      color: #111111;
      text-transform: uppercase;
      letter-spacing: -0.02em;
      line-height: 1.1;
      transition: color 0.3s ease;
    }

    .expertise-tab:not(.is-active) .expertise-tab-label {
      color: rgba(0, 0, 0, 0.28);
    }

    .expertise-tab-body-wrap {
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .expertise-tab.is-active .expertise-tab-body-wrap {
      grid-template-rows: 1fr;
    }

    .expertise-tab-body {
      overflow: hidden;
      min-height: 0;
      color: #333335;
      font-size: 1.05rem;
      line-height: 1.7;
      max-width: 38rem;
      margin: 0;
      padding: 0;
      opacity: 0;
      transform: translateY(0.625rem);
      transition:
        opacity  0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.08s,
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.08s,
        padding  0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .expertise-tab.is-active .expertise-tab-body {
      opacity: 1;
      transform: translateY(0);
      padding-top: 1.25rem;
    }

    .expertise-panel {
      background-color: #0a0a0c;
      border-radius: 0.75rem;
      box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.06);
      min-height: 30rem;
      position: relative;
      overflow: hidden;
    }

    .expertise-panel-inner {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      padding: 2rem;
      transition:
        opacity   0.5s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .expertise-panel-inner.is-leaving {
      opacity: 0;
      transform: translateX(3rem);
    }

    .expertise-panel-inner.is-entering {
      opacity: 0;
      transform: translateX(-3rem);
      transition: none;
    }

    .expertise-panel-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      pointer-events: none;
    }

    .expertise-panel-inner::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to right,
        rgba(8, 8, 10, 0.88) 0%,
        rgba(8, 8, 10, 0.65) 45%,
        rgba(8, 8, 10, 0.25) 100%
      );
      pointer-events: none;
    }

    .expertise-panel-content {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 22rem;
    }

    .expertise-panel-title {
      color: #ffffff;
      font-size: calc(0.6vw + 1.25rem);
      font-weight: 600;
      margin: 0 0 1.5rem;
      letter-spacing: -0.01em;
      line-height: 1.2;
    }

    .expertise-panel-list {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .expertise-panel-item {
      color: rgba(255, 255, 255, 0.8);
      font-size: calc(0.25vw + 0.95rem);
      letter-spacing: 0;
      line-height: 1.45;
      position: relative;
      display: inline-block;
      align-self: flex-start;
      cursor: default;
    }

    .expertise-panel-item::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 100%;
      height: 2px;
      background: rgba(255, 255, 255, 0.75);
      transform: scaleX(0);
      transform-origin: right;
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .expertise-panel-item:hover::after {
      transform: scaleX(1);
      transform-origin: left;
    }

    @media screen and (max-width: 768px) {
      .expertise-section {
        padding: 5rem 1.25rem;
      }

      .expertise-title {
        font-size: calc(1vw + 1.5rem);
      }

      .expertise-tabs-intro {
        margin-bottom: 2rem;
      }

      .expertise-matrix {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 0;
        width: 100%;
      }

      .expertise-tabs {
        min-height: auto;
      }

      .expertise-tab-list {
        display: flex;
        flex-direction: column;
      }

      .expertise-tabs,
      .expertise-panel {
        width: 100%;
      }

      .expertise-panel {
        min-height: 23.75rem;
      }

      .expertise-panel-inner {
        padding: 2rem 1.5rem;
      }
    }

    @media screen and (max-width: 479px) {
      .expertise-title { font-size: calc(0.8vw + 1.25rem); }
      .expertise-tab-label { font-size: calc(0.4vw + 1rem); }
    }

    /* ============================================================
       PARTNERS — TESTIMONIAL MARQUEE + SPLIT CTA
       ============================================================ */
    .section-partners {
      background-color: #ffffff;
      width: 100%;
      padding: 3rem 0 3rem;
    }

    .partners-inner {
      max-width: 75rem;
      margin: 0 auto;
      padding: 0 5%;
    }

    .partners-title {
      color: #111111;
      font-size: calc(1.4vw + 1.6rem);
      font-weight: 600;
      letter-spacing: -0.02em;
      line-height: 1.12;
      margin: 0 0 2rem;
    }

    .partners-marquee-outer {
      max-width: 75rem;
      margin: 0 auto;
      overflow: hidden;
    }

    .partners-marquee-wrap {
      width: 100%;
      overflow: hidden;
      margin-bottom: 2.5rem;
    }

    .partners-marquee-track {
      overflow: hidden;
      width: 100%;
    }

    .partners-marquee-content {
      display: flex;
      align-items: stretch;
      width: max-content;
      animation: partners-marquee-scroll 55s linear infinite;
      will-change: transform;
    }

    .partners-marquee-track:hover .partners-marquee-content {
      animation-play-state: paused;
    }

    @keyframes partners-marquee-scroll {
      0%   { transform: translate3d(0, 0, 0); }
      100% { transform: translate3d(-50%, 0, 0); }
    }

    /* Card container */
    .quote-card {
      background-color: #f0f0f2;
      border-radius: 0.25rem;
      width: 18rem;
      height: 22rem;
      flex-shrink: 0;
      margin-right: 0.75rem;
      position: relative;
      overflow: hidden;
      cursor: default;
      padding: 0vh !important;
      clip-path: polygon(
        0 0,
        calc(100% - 1.25rem) 0,
        100% 1.25rem,
        100% 100%,
        0 100%
      );
    }

    /* Inner layer — slides up on hover */
    .quote-card-inner {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      padding: 1.75rem;
      height: 100%;
      transform: translateY(0);
      transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .quote-card:hover .quote-card-inner {
      transform: translateY(-3.5rem);
    }

    .quote-card-label {
      display: block;
      font-size: 1.1rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: #111111;
      margin-bottom: 1.25rem;
      line-height: 1.3;
      text-align: left;
    }

    .quote-card-text {
      font-size: 1.1rem;
      line-height: 1.6;
      color: #333338;
      font-weight: 400;
      margin: 0;
      flex: 1;
      text-align: left;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 6;
      -webkit-box-orient: vertical;
    }

    /* Attribution: fades + slides in on hover */
    .quote-card-attribution {
      margin: 1.5rem 0 0;
      text-align: left;
      opacity: 0;
      transform: translateY(1.25rem);
      transition:
        opacity  0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
    }

    .quote-card:hover .quote-card-attribution {
      opacity: 1;
      transform: translateY(0);
    }

    .quote-card-name {
      display: block;
      font-size: 1.1rem;
      font-weight: 600;
      color: #111111;
      line-height: 1.35;
    }

    .quote-card-role {
      display: block;
      font-size: 1rem;
      font-weight: 400;
      color: #66666e;
      line-height: 1.4;
      margin-top: 0.2rem;
    }

    /* CTA row — contained, double border */
    .partners-cta-row {
      max-width: 75rem;
      margin: 0 auto;
      padding: 2rem 5% 2.5rem;

      display: flex;
      gap: 0.75rem;
    }

    .partners-cta {
      flex: 1;
      padding: 2.25rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      text-decoration: none;
      transition: background-color 0.2s ease;
      gap: 1rem;
      border-radius: 0.25rem;
    }

    .partners-cta--light {
      background-color: #e5e5e7;
      color: #111111;
    }

    .partners-cta--light:hover { background-color: #d8d8dc; }

    .partners-cta--dark {
      background-color: #111111;
      color: #ffffff;
    }

    .partners-cta--dark:hover { background-color: #1c1c1e; }

    .partners-cta-text {
      font-size: calc(0.3vw + 1.15rem);
      font-weight: 500;
      letter-spacing: -0.01em;
      line-height: 1.2;
    }

    .partners-cta-arrow {
      font-size: calc(0.3vw + 1.15rem);
      line-height: 1;
      flex-shrink: 0;
      transition: transform 0.2s ease;
    }

    .partners-cta:hover .partners-cta-arrow { transform: translateX(0.3rem); }

    @media screen and (max-width: 768px) {
      .section-partners { padding-top: 2rem; }

      .partners-inner { padding: 0 1.25rem; }

      .partners-title {
        font-size: calc(0.8vw + 1.35rem);
        margin-bottom: 1.5rem;
      }

      .partners-marquee-wrap { margin-bottom: 1.5rem; }

      .partners-marquee-content { animation-duration: 42s; }

      .partners-marquee-outer {
        padding: 0 1.25rem;
      }

      .quote-card {
        width: 15rem;
        height: 19rem;
        margin-right: 0.625rem;
      }

      .quote-card-text {
        -webkit-line-clamp: 5;
      }

      .quote-card-inner { padding: 1.35rem; }

      .quote-card-label,
      .quote-card-text,
      .quote-card-name { font-size: 1rem; }

      .partners-cta-row {
        flex-direction: column;
        padding: 1.5rem 1.25rem 2rem;
        gap: 0.5rem;
      }

      .partners-cta {
        flex: none;
        width: 100%;
        padding: 1.75rem 1.5rem;
        border-radius: 0.25rem;
      }

      .partners-cta-text,
      .partners-cta-arrow { font-size: calc(0.25vw + 1rem); }
    }

    @media (prefers-reduced-motion: reduce) {
      .partners-marquee-content {
        animation: none;
        overflow-x: auto;
        width: 100%;
        padding: 0 1.25rem 0.5rem;
        -webkit-overflow-scrolling: touch;
      }
      .quote-card-inner { transform: none !important; }
      .quote-card-attribution { opacity: 1 !important; transform: none !important; }
      .hero-subheadline {
        animation: none;
        opacity: 1;
        transform: none;
      }
    }

    /* Hero section: prevent text/element selection */
    .section-hero,
    .section-hero * {
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
    }

    .hero-subheadline {
      color: var(--text--white-subdued);
      text-align: right;
      font-size: 1.05rem;
      font-weight: 300;
      line-height: 1.45em;
      margin-top: 0.75rem;
      opacity: 0;
      transform: translateY(2.5rem);
      animation: hero-subheadline-fade-in 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 400ms forwards;
    }

    @keyframes hero-subheadline-fade-in {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    @media (max-width: 800px) {
      .hero-subheadline {
        text-align: center;
      }
    }
    /* ============================================
       SECTION 2 — TACTICAL INFRASTRUCTURE
       ============================================ */
    .section-tactical {
      background: #050505;
      display: flex;
      flex-direction: column;
      width: 100%;
      overflow: hidden;
    }

    /* ── Marquee Label ── */
    .marquee-label {
      text-align: center;
      font-family: monospace;
      font-size: 11px;
      font-weight: 400;
      text-transform: uppercase;
      letter-spacing: 0.25em;
      color: rgba(255, 255, 255, 0.40);
      padding: 56px 0 0;
    }

    /* ── Marquee ── */
    .marquee-wrapper {
      width: 100%;
      overflow: hidden;
      padding: 36px 0 48px;
      position: relative;
    }

    .marquee-mask {
      -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
      mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
    }

    .marquee-track {
      overflow: hidden;
      width: 100%;
    }

    .marquee-content {
      display: flex;
      align-items: center;
      gap: 64px;
      width: max-content;
      animation: marquee-scroll 45s linear infinite;
      animation-play-state: paused;
      will-change: transform;
    }

    .section-tactical.is-animating .marquee-content {
      animation-play-state: running;
    }

    .marquee-track:hover .marquee-content {
      animation-play-state: paused;
    }

    @keyframes marquee-scroll {
      0%   { transform: translate3d(0, 0, 0); }
      100% { transform: translate3d(-50%, 0, 0); }
    }

    .marquee-logo {
      height: 28px;
      width: auto;
      filter: brightness(0) invert(1) opacity(0.35);
      transition: filter 0.3s ease;
      user-select: none;
      pointer-events: auto;
    }

    .marquee-logo:hover {
      filter: brightness(0) invert(1) opacity(0.85);
    }

    /* ── Tactical Grid ── */
    .tactical-container {
      width: 100%;
      margin: 0 auto;
      padding: 120px 0 100px;
    }

    .tactical-header {
      margin-bottom: 48px;
      padding: 0 5%;
    }

    .tactical-label {
      display: block;
      font-family: monospace;
      font-size: 11px;
      font-weight: 400;
      text-transform: uppercase;
      letter-spacing: 0.25em;
      color: rgba(255, 255, 255, 0.35);
      margin-bottom: 10px;
    }

    .tactical-title {
      font-size: 36px;
      font-weight: 500;
      letter-spacing: -0.02em;
      color: #ffffff;
      line-height: 1.15em;
      margin: 0;
    }

    .tactical-map-wrapper {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .tactical-maps-grid {
      display: grid;
      grid-template-columns: 1fr 2fr;
      gap: 40px;
      width: 100%;
    }

    .tactical-map-card {
      position: relative;
      width: 100%;

      border-radius: 2px;
      padding: 28px 22px 22px;
    }

    .tactical-map-svg {
      width: 100%;
      height: auto;
      display: block;
    }
    @media (max-width: 800px) {
      .tactical-map-svg { 
        width: 87%; 
        margin-left: 2rem; 
      }
    }

    .tactical-map-card:first-child {
      overflow: visible;
      padding-top: 24px;
    }

    .tactical-map-card:first-child .tactical-map-svg {
      transform-origin: top center;
      transform: scale(1.45);
      margin-left: -10rem;
    }

    /* ── Dual-Layer Node Pulse ── */
    .node-dot {
      fill: #ffffff;
    }

    .node-ring {
      fill: none;
      stroke: rgba(255,255,255,0.35);
      stroke-width: 1.0;
      transform-origin: 0px 0px;
      animation: nodePulseOuter 3.2s ease-out infinite;
      animation-play-state: paused;
    }

    .node-ring--inner {
      stroke: rgba(255,255,255,0.55);
      stroke-width: 1.2;
      animation: nodePulseInner 2.4s ease-out infinite;
      animation-play-state: paused;
    }

    .section-tactical.is-animating .node-ring,
    .section-tactical.is-animating .node-ring--inner {
      animation-play-state: running;
    }

    .node--hq .node-ring--inner {
      animation-duration: 1.8s;
    }

    .node--hq .node-ring--outer {
      animation-duration: 2.6s;
    }

    @keyframes nodePulseInner {
      0%   { transform: scale(0.5); opacity: 0.9; }
      60%  { transform: scale(2.2); opacity: 0; }
      100% { transform: scale(2.2); opacity: 0; }
    }

    @keyframes nodePulseOuter {
      0%   { transform: scale(0.7); opacity: 0.6; }
      70%  { transform: scale(3.0); opacity: 0; }
      100% { transform: scale(3.0); opacity: 0; }
    }

    /* ── Node Labels ── */
    .node-label {
      fill: rgba(255,255,255,0.85);
      font-family: monospace;
      font-size: 6.5px;
      font-weight: 400;
      letter-spacing: 0.15em;
    }

    .node-label-sub {
      fill: rgba(255,255,255,0.35);
      font-family: monospace;
      font-size: 5px;
      font-weight: 400;
      letter-spacing: 0.12em;
    }

    /* ── Pipeline Data Flow (Double) ── */
    .pipe-flow-a {
      animation: pipeFlowA 5s linear infinite;
      animation-play-state: paused;
    }

    .pipe-flow-b {
      animation: pipeFlowB 5s linear infinite;
      animation-play-state: paused;
    }

    .section-tactical.is-animating .pipe-flow-a,
    .section-tactical.is-animating .pipe-flow-b {
      animation-play-state: running;
    }

    @keyframes pipeFlowA {
      0%   { stroke-dashoffset: 0; }
      100% { stroke-dashoffset: -48; }
    }

    @keyframes pipeFlowB {
      0%   { stroke-dashoffset: 0; }
      100% { stroke-dashoffset: 48; }
    }

    /* ── Responsive: Tablet ≤991px ── */
    @media screen and (max-width: 991px) {
      .marquee-label { padding: 48px 0 0; }
      .marquee-content { gap: 48px; animation-duration: 40s; }
      .marquee-logo { height: 24px; }
      .tactical-container { padding: 100px 0 80px; }
      .tactical-title { font-size: 30px; }
      .tactical-maps-grid { gap: 28px; }
      .tactical-map-card { padding: 22px 16px 16px; }
      .tactical-map-card:first-child .tactical-map-svg { transform: scale(1.22); }
    }

    /* ── Responsive: Mobile ≤768px ── */
    @media screen and (max-width: 768px) {
      .marquee-label { padding: 36px 20px 0; font-size: 9px; letter-spacing: 0.20em; }
      .marquee-wrapper { padding: 24px 0 36px; }
      .marquee-content { gap: 32px; animation-duration: 30s; }
      .marquee-logo { height: 20px; }
      .tactical-container { padding: 60px 0 40px; }
      .tactical-header { padding: 0 20px; margin-bottom: 32px; }
      .tactical-title { font-size: 24px; }
      .tactical-map-wrapper { padding: 0 12px; }
      .tactical-maps-grid { grid-template-columns: 1fr; gap: 24px; }
      .tactical-map-card { padding: 18px 12px 14px; }
      .tactical-map-card:first-child { display: none; }
      .node-label-sub { display: none; }
    }

    /* ── Responsive: Small Mobile ≤479px ── */
    @media screen and (max-width: 479px) {
      .marquee-content { gap: 24px; animation-duration: 24s; }
      .marquee-logo { height: 18px; }
      .tactical-title { font-size: 20px; }
      .tactical-map-card { padding: 14px 8px 10px; }
    }

    /* ── Accessibility: Reduced Motion ── */
    @media (prefers-reduced-motion: reduce) {
      .marquee-content {
        animation: none;
        animation-play-state: running;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 20px;
        width: 100%;
        justify-items: center;
      }
      .node-ring {
        animation: none;
        animation-play-state: running;
        display: none;
      }
      .pipe-flow-a,
      .pipe-flow-b {
        animation: none;
        animation-play-state: running;
      }
    }
