/* ── Industries Section ─────────────────────────────── */
.industries-section {
    /* Tablet / small-desktop baseline (768px – 1023px) */
    --ind-label-pad: 20px;
    --ind-label-fs:  var(--text-base);      /* 18px */
    --ind-row-h:     58px;                  /* 2×pad + font-size, JS will re-measure */
    --ind-line-overflow: 28px;              /* dashed extends above & below labels */
    position: relative;
    background: var(--color-black2);
    color: var(--color-white);
    padding: 20vh 0;
    overflow: clip;                 /* clip the horizontally overflowing track */
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 6vh;
}

/* Desktop & tablet (>=768px) — bumped to a full 100vh so this section
   can serve as the pinned "previous" frame for the Our Process section
   below. The triangle reveal in `.tsr-process` pins this section for
   one viewport-height of scroll, then morphs a cream clip-path over
   it; that requires the section to be at least 100vh and visually
   distinct (the dark --color-black2 background already gives good
   contrast against the cream triangle). Mobile keeps native scrolling
   so the 100vh isn't required there. */
@media (min-width: 768px) {
    .industries-section {
        min-height: 100vh;
    }
}

/* Desktop & up (>=1024px) — bigger labels + taller dashed overflow */
@media (min-width: 1024px) {
    .industries-section {
        --ind-label-pad: 26px;
        --ind-label-fs:  22px;
        --ind-row-h:     74px;              /* 2×26 + 22 */
        --ind-line-overflow: 40px;
    }
}

/* Mobile (<=767px) — smaller labels + shorter dashed overflow */
@media (max-width: 767px) {
    .industries-section {
        --ind-label-pad: 14px;
        --ind-label-fs:  14px;
        --ind-row-h:     42px;              /* 2×14 + 14 */
        --ind-line-overflow: 18px;
    }

    /* Heading runs at --text-lg (28px) on mobile — a step down from
       desktop's --text-2xl (48px). The wrap-during-scramble issue is
       fixed at the source via preserveCategories=true on the title-
       pill scramble (see industries-section.js); this size reduction
       is purely for proportion — 48px crowds the small-viewport
       composition. Animation, pill, asterisk, etc. all stay as-is —
       only the glyph size changes.

       Specificity bumped to `.industries-section .ind-title` so this
       rule beats the base `.ind-title` declaration further down in
       this file (which would otherwise win on source order, since
       both bare-`.ind-title` rules have the same specificity). */
    .industries-section .ind-title {
        font-size: var(--text-lg);
    }
}

/* Pre-entry: hide the whole section until JS has set up initial states.
   Avoids FOUC of un-animated content on cold load or reload. */
.industries-section.is-pre-entry { visibility: hidden; }

/* Header */
.ind-header {
    text-align: center;
    padding: 0 var(--pad-x);
}

.ind-title {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

/* "built" wrapped as a mini pill — dissolves during entry */
.ind-title-pill {
    display: inline-block;
    padding: 0.18em 0.2em;
    background: var(--color-black);
    color: var(--color-white);
    border-radius: var(--radius);
    transition: padding 0.5s var(--ease-primary),
                background-color 0.5s var(--ease-primary);
    will-change: padding, background-color;
}
.ind-title-pill.is-dissolved {
    padding: 0;
    background: transparent;
}

/* Subtitle wrap (asterisk above subtitle) */
.ind-sub-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.ind-asterisk {
    width: 14px;
    height: 14px;
    background-color: var(--color-white);
    -webkit-mask: url('../../assets/svg/icons/Asterisk Icon.svg') no-repeat center / contain;
            mask: url('../../assets/svg/icons/Asterisk Icon.svg') no-repeat center / contain;
    transform-origin: center center;
    will-change: transform, opacity;
}

.ind-sub {
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    letter-spacing: var(--tracking-body);
    opacity: 0.75;
}
/* SplitType char wrapping — keep chars inline, allow per-char animation */
.ind-sub .char {
    display: inline-block;
    will-change: transform, opacity;
}

/* Marquee viewport — tall enough to fit labels + dashed line overflow */
.ind-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: calc(var(--ind-row-h) * 2 + var(--ind-line-overflow) * 2);
}

/* Sliding track */
.ind-track {
    display: flex;
    align-items: stretch;
    height: 100%;
    will-change: transform;
}

.ind-cell {
    position: relative;
    flex-shrink: 0;
    display: grid;
    grid-template-rows: var(--ind-row-h) var(--ind-row-h);
    padding-block: var(--ind-line-overflow);
    padding-inline: 0 1px;
    height: calc(var(--ind-row-h) * 2 + var(--ind-line-overflow) * 2);
}

/* Vertical dashed divider — real element so GSAP can animate it.
   Scales from center on entry (blueprint draw). */
.ind-divider {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-right: var(--guide-border);
    -webkit-mask-image: linear-gradient(to bottom,
                                        transparent 0%,
                                        #000 10%,
                                        #000 90%,
                                        transparent 100%);
    mask-image: linear-gradient(to bottom,
                                transparent 0%,
                                #000 10%,
                                #000 90%,
                                transparent 100%);
    pointer-events: none;
    transform-origin: center center;
    will-change: transform;
}

/* Label pill */
.ind-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--ind-label-pad);
    background: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: var(--font-weight-medium);
    font-size: var(--ind-label-fs);
    letter-spacing: var(--tracking-tight);
    line-height: 1;
    border-radius: var(--radius);
    white-space: nowrap;
    will-change: transform, filter, opacity;
}

.ind-cell--top .ind-label {
    grid-row: 1;
    align-self: center;
    justify-self: center;
}

.ind-cell--bottom .ind-label {
    grid-row: 2;
    align-self: center;
    justify-self: center;
}

/* CTA button — cream bg, black2 text */
.ind-cta-wrap {
    display: flex;
    justify-content: center;
    padding: 0 var(--pad-x);
}

.ind-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--btn-pad-y) var(--btn-pad-x);
    background: var(--color-white);
    color: var(--color-black2);
    font-family: var(--font-btn);
    font-weight: var(--font-weight-btn);
    letter-spacing: var(--tracking-btn);
    font-size: var(--text-btn);
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform var(--duration-fast) var(--ease-primary);
}

.ind-cta:hover {
    transform: translateY(-1px);
}

.ind-cta-text {
    display: inline-block;
}

.ind-cta-text .char {
    display: inline-block;
    will-change: transform, opacity;
}
