/* Responsive + accessibility for the additions */
@media (max-width:780px){
  .ticker span{font-size:.6rem;gap:2rem}.ticker-track{gap:2rem}
  .solution-card{transform:none!important}
  .warehouse-floor::after{display:none}
  .scroll-progress{height:2px}
}
@media (max-width:520px){.hero h1{animation:none}}
@media (hover:none){.solution-card:hover,.leader-card:hover,.capability-ledger>div:hover{transform:none}}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition-duration:.01ms!important}
  .hero h1{-webkit-text-fill-color:#fff}
  .ticker-track{transform:none}
}



/* =========================================
   LARGE SCREEN AND 4K RESPONSIVENESS
   ========================================= */

/* Prevent fixed-width content from overflowing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video {
    max-width: 100%;
}

.shell {
    width: min(calc(100% - var(--gutter) * 2), 1600px);
    margin-inline: auto;
}

/* Scale typography and spacing smoothly */
.hero h1 {
    font-size: clamp(2.5rem, 3.5vw, 5.5rem);
}

section {
    scroll-margin-top: 90px;
}

/* =========================================
   FOUNDERS / LEADERSHIP SECTION
   ========================================= */

.leadership-editorial-home {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.home-leader-list {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 32px);
    width: 100%;
    align-items: stretch;
}

.leader-card {
    min-width: 0;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
}

.leader-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.leader-card-meta {
    min-width: 0;
    overflow-wrap: anywhere;
}

.leader-card-meta strong {
    display: block;
    line-height: 1.35;
}

/* =========================================
   TABLETS AND SMALL LAPTOPS
   ========================================= */

@media (max-width: 1000px) {
    .shell {
        width: min(100% - 36px, 900px);
    }

    .home-leader-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {
    .shell {
        width: calc(100% - 32px);
    }

    .home-leader-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .leader-card-meta {
        padding: 12px;
    }

    .leader-card-meta strong {
        font-size: 0.95rem;
    }

    .leader-card-meta small {
        font-size: 0.8rem;
    }

    .leader-card-meta .mono {
        font-size: 0.65rem;
    }
}

/* =========================================
   4K AND ULTRA-WIDE DISPLAYS
   ========================================= */

@media (min-width: 2000px) {
    .shell {
        width: min(calc(100% - var(--gutter) * 2), 1920px);
    }

    .header-inner,
    [data-site-footer] .shell,
    .trace-page .shell {
        width: min(calc(100% - var(--gutter) * 2), 1920px);
    }

    .home-leader-list {
        gap: 36px;
    }

    .leader-card-meta {
        padding: 24px;
    }
}

/* Very narrow phones */
@media (max-width: 360px) {
    .home-leader-list {
        grid-template-columns: 1fr;
    }
}

/* Shared product-page typography and medium-scale hero visuals. */
.product-page .product-hero .page-copy h1 {
    max-width: 620px;
    margin: 0.8rem 0 1rem;
    font: 600 clamp(2.65rem, 4.1vw, 3.8rem)/1.06 var(--font-display);
    letter-spacing: -0.06em;
}

.product-page .product-hero .page-lede {
    max-width: 550px;
    margin: 0;
    font-size: clamp(0.9rem, 1vw, 1rem);
    line-height: 1.8;
    letter-spacing: normal;
}

.product-page .product-hero .route-visual,
.product-page .product-hero .trace-visual,
.product-page .product-hero .warehouse-visual {
    width: min(100%, 520px);
    max-width: 520px;
    min-height: clamp(280px, 27vw, 360px);
    height: auto;
    justify-self: end;
}

.product-page .product-hero .route-visual {
    min-height: 0;
    height: clamp(280px, 28vw, 390px);
}

.product-page .product-hero .route-visual .lt {
    height: 100%;
    overflow: hidden;
}

.product-page .product-hero .route-visual .lt-map {
    height: clamp(145px, 15vw, 205px);
    aspect-ratio: auto;
}

.product-page .product-hero .route-visual .lt-feed ul {
    min-height: 0;
}

.trace-page .shell {
    width: min(calc(100% - var(--gutter) * 2), 1600px);
}

@media (max-width: 900px) {
    .product-page .product-hero-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-page .product-hero .page-copy {
        max-width: 720px;
    }

    .product-page .product-hero .route-visual,
    .product-page .product-hero .trace-visual,
    .product-page .product-hero .warehouse-visual {
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .product-page .product-hero .page-copy h1 {
        font-size: clamp(2.3rem, 8vw, 3rem);
    }

    .product-page .product-hero .page-lede {
        font-size: 0.92rem;
        line-height: 1.75;
    }

    .product-page .product-hero .route-visual,
    .product-page .product-hero .trace-visual,
    .product-page .product-hero .warehouse-visual {
        min-height: 280px;
    }

    .product-page .product-hero .route-visual {
        height: 280px;
    }
}

@media (max-width: 600px) {
    .trace-page .shell {
        width: calc(100% - 32px);
    }
}

/* Keep every section eyebrow on the same blue-dot treatment. */
body[data-page] .section-kicker > span,
body[data-page] .label-rule {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    margin-right: 0;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px rgb(119 193 203 / 62%);
}

/* Keep the fixed header visible on very short desktop viewports. */
@media (max-height: 480px) {
    .site-header {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Keep wide, short viewports visually balanced (for example 2560 x 320). */
@media (min-width: 1101px) and (max-height: 480px) {
    body[data-page="home"] .hero,
    body[data-page="home"] .hero-inner {
        min-height: 0;
    }

    body[data-page="home"] .hero-inner {
        grid-template-areas:
            "copy scene"
            "actions scene";
        gap: 0.75rem 2rem;
        padding-block: 0.9rem 0.75rem;
    }

    body[data-page="home"] .hero-copy {
        padding-block: 0;
    }

    body[data-page="home"] .hero h1 {
        max-width: 600px;
        font-size: clamp(2.15rem, 3vw, 3rem);
    }

    body[data-page="home"] .hero-lede {
        max-width: 430px;
        margin-top: 0.7rem;
        font-size: 0.78rem;
        line-height: 1.45;
    }

    body[data-page="home"] .hero-actions {
        gap: 0.7rem 1rem;
        margin-top: 0;
    }

    body[data-page="home"] .hero-actions .button {
        padding: 0.65rem 0.85rem;
        font-size: 0.68rem;
    }

    body[data-page="home"] .hero-scene {
        width: min(100%, 520px);
        min-height: 190px;
        justify-self: end;
    }

    .product-page .product-hero-layout {
        min-height: 0;
        gap: 1rem;
        padding-block: 0.5rem 0.35rem;
    }

    .product-page .product-hero .page-copy h1 {
        margin: 0.15rem 0 0.35rem;
        font-size: clamp(1.75rem, 2.5vw, 2.3rem);
    }

    .product-page .product-hero .page-lede {
        max-width: 520px;
        font-size: 0.66rem;
        line-height: 1.2;
    }

    .product-page .product-hero .route-visual,
    .product-page .product-hero .trace-visual,
    .product-page .product-hero .warehouse-visual {
        width: min(100%, 420px);
        min-height: 0;
        height: 185px;
        max-height: 185px;
    }

    .product-page .product-hero .route-visual {
        height: 185px;
    }

    .product-page .page-hero-foot {
        min-height: 32px;
    }
}

/* Keep the home opening scene in the same medium visual range as product pages. */
@media (min-width: 1101px) and (min-height: 481px) {
    body[data-page="home"] .hero-scene {
        width: min(100%, 620px);
        justify-self: end;
    }
}

/* Keep the trace page on the same ultra-wide content grid as the other pages. */
@media (min-width: 2000px) {
    .shell,
    .header-inner,
    [data-site-footer] .shell,
    .trace-page .shell {
        width: min(calc(100% - var(--gutter) * 2), 2200px);
    }

    .product-page .product-hero-layout {
        grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
        gap: clamp(3rem, 4vw, 6rem);
    }

    .product-page .product-hero .route-visual,
    .product-page .product-hero .trace-visual,
    .product-page .product-hero .warehouse-visual {
        width: min(100%, 680px);
        max-width: 680px;
        min-height: 430px;
    }

    .product-page .product-hero .route-visual {
        height: 430px;
    }

    body[data-page="home"] .hero-scene {
        width: min(100%, 760px);
        min-height: 400px;
    }

    .trace-page .shell {
        width: min(calc(100% - var(--gutter) * 2), 2200px);
    }
}


/* Remove excessive space above the footer */
main {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

main > section:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 30px !important;
  min-height: auto !important;
}

/* Keep the footer close to the previous section */
footer,
.site-footer {
  margin-top: 0 !important;
}

/* Remove empty space caused by the last section wrapper */
main > section:last-child > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  main > section:last-child {
    padding-bottom: 24px !important;
  }
}

/* =========================================
   SERVICES / TRANSFORMATION — RESPONSIVE FIX
   ========================================= */

@media (max-width: 900px) {

  /* Stack the section heading and services list */
  .services-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .services-heading {
    padding-top: 0;
    max-width: 720px;
  }

  .services-heading h2 {
    font-size: clamp(2rem, 6vw, 3.2rem);
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .services-heading > p:last-child {
    max-width: 600px;
    font-size: 0.9rem;
    line-height: 1.75;
  }

  /* Prevent service titles from overflowing */
  .service-trigger {
    grid-template-columns: 2rem minmax(0, 1fr) 27px;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.9rem 0.2rem;
  }

  .service-trigger strong {
    min-width: 0;
    font-size: 1rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  /* Display subsection boxes in one column */
  .service-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    padding-inline: 0;
  }

  /* Remove the special desktop spanning layout */
  #service-blockchain-details .service-detail-card:first-child {
    grid-column: auto;
  }

  /* Improve individual box spacing */
  .service-detail-card {
    width: 100%;
    min-width: 0;
    padding: 1.1rem;
    border-radius: 8px;
    box-sizing: border-box;
  }

  .service-detail-card h3 {
    font-size: 1rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .service-detail-card p {
    font-size: 0.85rem;
    line-height: 1.7;
    overflow-wrap: break-word;
  }

  .service-detail-label {
    font-size: 0.58rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  /* Allow more room for expanded service details */
  .service-item.has-details:hover > .service-details,
  .service-item.has-details:focus-within > .service-details {
    max-height: 5000px;
  }
}

/* =========================================
   SMALL MOBILE SCREENS
   ========================================= */

@media (max-width: 480px) {

  .services-layout {
    gap: 1.5rem;
    padding-block: 2.5rem;
  }

  .services-heading h2 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    letter-spacing: -0.055em;
  }

  .services-heading .section-kicker {
    font-size: 0.65rem;
    line-height: 1.6;
  }

  .service-trigger {
    grid-template-columns: 1.6rem minmax(0, 1fr) 25px;
    gap: 0.55rem;
    min-height: 58px;
    padding: 0.75rem 0.1rem;
  }

  .service-trigger strong {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .service-trigger .mono {
    font-size: 0.6rem;
  }

  .service-indicator {
    width: 25px;
    height: 25px;
  }

  .service-details {
    gap: 0.75rem;
    padding-inline: 0;
  }

  .service-detail-card {
    padding: 1rem;
  }

  .service-detail-card h3 {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .service-detail-card p {
    font-size: 0.82rem;
    line-height: 1.7;
  }
}

/* Reduce the gap between Contact Us and the footer */


.site-footer > .footer-main,
.site-footer > .shell:not(.footer-base) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Align footer content closer to the top */
.site-footer .footer-grid {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Balanced spacing between Contact Us and Footer */

#contact.contact-band {
    margin-bottom: 0;
    padding-bottom: 2rem !important;
}

.site-footer {
    margin-top: 0 !important;
    padding-top: 2.5rem !important;
}

