/* =========================================================
   THREADS OF IDENTITY
   SHOFT CIC — COMPLETE PAGE STYLESHEET
   Benchmark: The Inside View with Nana

   IMPORTANT MOBILE RULE:
   On split sections, the CONTENT ALWAYS COMES FIRST
   on mobile. Images follow the description.

   IMPORTANT VIDEO RULE:
   YouTube is displayed using a thumbnail link, not an iframe.
   ========================================================= */


/* =========================================================
   01. DESIGN TOKENS
   ========================================================= */

:root {
    --toi-blue: #293981;
    --toi-blue-dark: #1f2d70;
    --toi-blue-deep: #172252;
    --toi-gold: #f4b45d;
    --toi-gold-dark: #d9973e;
    --toi-white: #ffffff;
    --toi-off-white: #f7f8fb;
    --toi-soft: #eef1f7;
    --toi-ink: #172039;
    --toi-muted: #667085;
    --toi-line: rgba(23, 32, 57, 0.10);
    --toi-white-line: rgba(255, 255, 255, 0.16);

    --toi-radius-sm: 14px;
    --toi-radius-md: 22px;
    --toi-radius-lg: 30px;
    --toi-radius-xl: 38px;

    --toi-shadow-soft: 0 16px 45px rgba(19, 31, 78, 0.08);
    --toi-shadow: 0 24px 65px rgba(19, 31, 78, 0.13);

    --toi-container: 1280px;
    --toi-transition: 260ms cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   02. PAGE-WIDE RESET
   ========================================================= */

.toi-hero,
.toi-section,
.toi-impact,
.toi-gallery,
.toi-video,
.toi-cta {
    width: 100%;
    box-sizing: border-box;
}

.toi-hero *,
.toi-section *,
.toi-impact *,
.toi-gallery *,
.toi-video *,
.toi-cta * {
    box-sizing: border-box;
}

.toi-hero img,
.toi-section img,
.toi-impact img,
.toi-gallery img,
.toi-video img {
    display: block;
    max-width: 100%;
}

.toi-hero a,
.toi-section a,
.toi-impact a,
.toi-gallery a,
.toi-video a,
.toi-cta a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   03. TYPOGRAPHY
   ========================================================= */

.toi-hero h1,
.toi-section h2,
.toi-heading h2,
.toi-impact-heading h2,
.toi-cta h2,
.toi-video-card h3,
.toi-fabric-card h3,
.toi-theme-grid h3,
.toi-purpose-word,
.toi-perspective-main h3 {
    font-family: "Manrope", sans-serif;
}

.toi-hero p,
.toi-section p,
.toi-heading p,
.toi-impact-heading p,
.toi-video-card p,
.toi-cta p {
    font-family: "Inter", sans-serif;
}


/* =========================================================
   04. EYEBROWS
   ========================================================= */

.toi-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    color: var(--toi-gold);
    font-size: 0.70rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.toi-eyebrow::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.toi-eyebrow--light {
    color: var(--toi-gold);
}


/* =========================================================
   05. HERO
   ========================================================= */

.toi-hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            var(--toi-blue-deep) 0%,
            var(--toi-blue) 55%,
            #32468f 100%
        );
    isolation: isolate;
}

.toi-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            90deg,
            rgba(15, 24, 67, 0.96) 0%,
            rgba(23, 36, 95, 0.91) 34%,
            rgba(23, 36, 95, 0.70) 60%,
            rgba(23, 36, 95, 0.25) 100%
        );
}

.toi-hero__inner {
    position: relative;
    width: min(calc(100% - 80px), var(--toi-container));
    min-height: 720px;
    margin: 0 auto;
    padding: 80px 0;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.88fr);
    gap: 70px;
    align-items: center;
}

.toi-hero__content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.toi-hero__content h1 {
    margin: 0;
    color: var(--toi-white);
    font-size: clamp(4rem, 6.1vw, 6.25rem);
    line-height: 0.94;
    font-weight: 800;
    letter-spacing: -0.055em;
}

.toi-hero__content h1 span {
    display: block;
    color: var(--toi-gold);
}

.toi-hero__lead {
    max-width: 570px;
    margin: 30px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.02rem;
    line-height: 1.8;
}


/* =========================================================
   06. HERO TAGS
   ========================================================= */

.toi-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 27px;
}

.toi-hero__tags span {
    min-height: 38px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--toi-white);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    transition:
        background var(--toi-transition),
        border-color var(--toi-transition),
        transform var(--toi-transition);
}

.toi-hero__tags span:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(244, 180, 93, 0.55);
    transform: translateY(-2px);
}


/* =========================================================
   07. BUTTONS
   ========================================================= */

.toi-hero__actions,
.toi-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.toi-hero__actions {
    margin-top: 32px;
}

.toi-hero__actions .btn,
.toi-cta-actions .btn {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 25px;
    border-radius: 999px;
    font-family: "Manrope", sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
        transform var(--toi-transition),
        box-shadow var(--toi-transition),
        background var(--toi-transition);
}

.toi-hero__actions .btn:hover,
.toi-cta-actions .btn:hover {
    transform: translateY(-3px);
}

.toi-hero__actions .btn-gold,
.toi-cta-actions .btn-gold {
    background: var(--toi-gold);
    color: var(--toi-blue-deep);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.toi-hero__actions .btn-gold:hover,
.toi-cta-actions .btn-gold:hover {
    background: #ffd08a;
}

.toi-hero__actions .btn-light,
.toi-cta-actions .btn-light {
    border: 1px solid rgba(255, 255, 255, 0.30);
    background: rgba(255, 255, 255, 0.07);
    color: var(--toi-white);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.toi-hero__actions .btn-light:hover,
.toi-cta-actions .btn-light:hover {
    background: rgba(255, 255, 255, 0.14);
}


/* =========================================================
   08. HERO MEDIA
   ========================================================= */

.toi-hero__media {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 5px solid var(--toi-white);
    border-radius: 30px;
    background: #dfe4ef;
    box-shadow: 0 30px 75px rgba(5, 13, 55, 0.30);
}

.toi-hero__media img {
    width: 100%;
    aspect-ratio: 1.08 / 1;
    object-fit: cover;
    object-position: center;
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.toi-hero__media:hover img {
    transform: scale(1.025);
}

.toi-hero__media figcaption,
.toi-photo figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 55px 28px 25px;
    background:
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(15, 24, 67, 0.12) 20%,
            rgba(15, 24, 67, 0.88) 78%,
            rgba(15, 24, 67, 0.96) 100%
        );
}

.toi-hero__media figcaption::before,
.toi-photo figcaption::before {
    content: "";
    width: 28px;
    height: 2px;
    margin-bottom: 11px;
    background: var(--toi-gold);
    border-radius: 999px;
}

.toi-hero__media figcaption strong,
.toi-photo figcaption strong {
    display: block;
    margin: 0 0 6px;
    color: var(--toi-white);
    font-family: "Manrope", sans-serif;
    font-size: 0.70rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.toi-hero__media figcaption span,
.toi-photo figcaption span {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.45;
}


/* =========================================================
   09. GENERAL SECTIONS
   ========================================================= */

.toi-section {
    padding: 125px 0;
    background: var(--toi-white);
}

.toi-section .container,
.toi-impact .container,
.toi-cta .container {
    width: min(calc(100% - 80px), var(--toi-container));
    margin: 0 auto;
}

.toi-soft,
.toi-textile,
.toi-themes,
.toi-gallery,
.toi-video {
    background: var(--toi-off-white);
}

.toi-dark,
.toi-purpose {
    background: var(--toi-blue);
    color: var(--toi-white);
}


/* =========================================================
   10. SPLIT SECTIONS — DESKTOP
   ========================================================= */

.toi-split {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
    gap: 100px;
    align-items: center;
}

/*
   Reverse sections deliberately alternate the desktop composition.

   MOBILE DOES NOT USE THIS ORDER.
   Mobile is forced to CONTENT -> IMAGE below.
*/
.toi-split--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
}

.toi-content {
    max-width: 620px;
    min-width: 0;
}

.toi-content h2 {
    margin: 0;
    color: var(--toi-ink);
    font-size: clamp(2.6rem, 4.3vw, 4.35rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.toi-content h2 span {
    display: block;
    color: var(--toi-blue);
}

.toi-content p {
    margin: 22px 0 0;
    color: var(--toi-muted);
    font-size: 0.98rem;
    line-height: 1.85;
}

.toi-content .toi-lead {
    margin-top: 28px;
    color: var(--toi-ink);
    font-size: 1.08rem;
    line-height: 1.75;
    font-weight: 500;
}


/* =========================================================
   11. DARK CONTENT
   ========================================================= */

.toi-dark .toi-content h2 {
    color: var(--toi-white);
}

.toi-dark .toi-content h2 span {
    color: var(--toi-gold);
}

.toi-light-text {
    color: rgba(255, 255, 255, 0.76) !important;
}


/* =========================================================
   12. PHOTO COMPONENT
   ========================================================= */

.toi-photo {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: var(--toi-radius-xl);
    background: var(--toi-blue-deep);
    box-shadow: var(--toi-shadow);
}

.toi-photo img {
    width: 100%;
    min-height: 500px;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.toi-photo:hover img {
    transform: scale(1.025);
}

.toi-photo--border {
    border: 5px solid var(--toi-white);
}


/* =========================================================
   13. HIGHLIGHTS / STATEMENTS
   ========================================================= */

.toi-highlight {
    margin-top: 30px;
    padding: 23px 26px;
    background: var(--toi-soft);
    border-left: 4px solid var(--toi-gold);
    border-radius: 10px;
}

.toi-highlight strong {
    display: block;
    margin-bottom: 7px;
    color: var(--toi-blue);
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    line-height: 1.45;
}

.toi-highlight span {
    display: block;
    color: var(--toi-muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

.toi-dark-statement {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 30px;
    padding: 25px 27px;
    border-left: 4px solid var(--toi-gold);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.toi-dark-statement span {
    color: var(--toi-gold);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.toi-dark-statement strong {
    color: var(--toi-white);
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    line-height: 1.55;
}


/* =========================================================
   14. SECTION HEADINGS
   ========================================================= */

.toi-heading {
    max-width: 760px;
    margin: 0 auto 60px;
}

.toi-heading--center {
    text-align: center;
}

.toi-heading h2,
.toi-impact-heading h2 {
    margin: 0;
    color: var(--toi-ink);
    font-size: clamp(2.5rem, 4.5vw, 4.25rem);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.toi-heading h2 span,
.toi-impact-heading h2 span {
    color: var(--toi-blue);
}

.toi-heading p,
.toi-impact-heading p {
    max-width: 650px;
    margin: 24px 0 0;
    color: var(--toi-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.toi-heading--center p {
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   15. FABRIC CARDS
   ========================================================= */

.toi-fabric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.toi-fabric-card {
    min-height: 280px;
    padding: 32px 28px;
    background: var(--toi-white);
    border: 1px solid var(--toi-line);
    border-radius: 17px;
    box-shadow: var(--toi-shadow-soft);
    transition:
        transform var(--toi-transition),
        box-shadow var(--toi-transition);
}

.toi-fabric-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--toi-shadow);
}

.toi-fabric-card > span {
    display: block;
    margin-bottom: 45px;
    color: var(--toi-gold);
    font-family: "Manrope", sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.toi-fabric-card h3 {
    margin: 0 0 13px;
    color: var(--toi-blue);
    font-size: 1.2rem;
}

.toi-fabric-card p {
    margin: 0;
    color: var(--toi-muted);
    font-size: 0.90rem;
    line-height: 1.75;
}


/* =========================================================
   16. CHECK LIST
   ========================================================= */

.toi-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 20px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.toi-checks li {
    position: relative;
    padding-left: 23px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.90rem;
    line-height: 1.55;
}

.toi-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.48em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--toi-gold);
}


/* =========================================================
   17. THEMES
   ========================================================= */

.toi-theme-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.toi-theme-grid article {
    min-height: 245px;
    padding: 30px 26px;
    background: var(--toi-white);
    border: 1px solid var(--toi-line);
    border-radius: 17px;
    box-shadow: var(--toi-shadow-soft);
    transition:
        transform var(--toi-transition),
        box-shadow var(--toi-transition);
}

.toi-theme-grid article:hover {
    transform: translateY(-5px);
    box-shadow: var(--toi-shadow);
}

.toi-theme-grid article > span {
    display: block;
    margin-bottom: 32px;
    color: var(--toi-gold-dark);
    font-family: "Manrope", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.toi-theme-grid h3 {
    margin: 0 0 12px;
    color: var(--toi-blue);
    font-size: 1.15rem;
}

.toi-theme-grid p {
    margin: 0;
    color: var(--toi-muted);
    font-size: 0.87rem;
    line-height: 1.7;
}


/* =========================================================
   18. PURPOSE
   ========================================================= */

.toi-purpose-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
    gap: 90px;
    align-items: center;
}

.toi-purpose-content {
    max-width: 650px;
}

.toi-purpose-content h2 {
    margin: 0;
    color: var(--toi-white);
    font-family: "Manrope", sans-serif;
    font-size: clamp(2.6rem, 4.5vw, 4.3rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.toi-purpose-content h2 span {
    display: block;
    color: var(--toi-gold);
}

.toi-purpose-content p {
    margin: 22px 0 0;
    font-size: 0.98rem;
    line-height: 1.8;
}

.toi-purpose-visual {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--toi-radius-md);
    background: rgba(255, 255, 255, 0.04);
}

.toi-purpose-word {
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: center;
}

/* =========================================================
   PURPOSE WORDS — AUTOMATIC GOLD ANIMATION
   ========================================================= */

.toi-purpose-word span {
    color: rgba(255, 255, 255, 0.10);
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;

    animation: toiPurposeWord 8s infinite ease-in-out;
}


/* Each word activates at a different point */

.toi-purpose-word span:nth-child(1) {
    animation-delay: 0s;
}

.toi-purpose-word span:nth-child(2) {
    animation-delay: 2s;
}

.toi-purpose-word span:nth-child(3) {
    animation-delay: 4s;
}

.toi-purpose-word span:nth-child(4) {
    animation-delay: 6s;
}


/* Gold highlight animation */

@keyframes toiPurposeWord {

    0%,
    18% {
        color: rgba(255, 255, 255, 0.10);
        transform: scale(1);
        text-shadow: none;
    }

    23%,
    38% {
        color: var(--toi-gold);
        transform: scale(1.035);
        text-shadow:
            0 0 25px rgba(244, 180, 93, 0.18);
    }

    43%,
    100% {
        color: rgba(255, 255, 255, 0.10);
        transform: scale(1);
        text-shadow: none;
    }

}

/* =========================================================
   19. IMPACT
   ========================================================= */

.toi-impact {
    padding: 120px 0;
    background: var(--toi-off-white);
}

.toi-impact-heading {
    max-width: 760px;
    margin: 0 auto 60px;
    text-align: center;
}

.toi-impact-heading p {
    margin-left: auto;
    margin-right: auto;
}

.toi-impact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.toi-impact-grid article {
    position: relative;
    min-height: 255px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 23px;
    text-align: center;
    background: var(--toi-white);
    border: 1px solid var(--toi-line);
    border-radius: 17px;
    box-shadow: var(--toi-shadow-soft);
    transition:
        transform var(--toi-transition),
        box-shadow var(--toi-transition);
}

.toi-impact-grid article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 3px;
    background: var(--toi-gold);
    border-radius: 0 0 3px 3px;
}

.toi-impact-grid article:hover {
    transform: translateY(-6px);
    box-shadow: var(--toi-shadow);
}

.toi-impact-grid article strong {
    display: block;
    margin-bottom: 12px;
    color: var(--toi-blue);
    font-family: "Manrope", sans-serif;
    font-size: clamp(2.8rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.toi-impact-grid article span {
    display: block;
    margin-bottom: 8px;
    color: var(--toi-blue);
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.toi-impact-grid article small {
    max-width: 220px;
    display: block;
    color: var(--toi-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}


/* =========================================================
   20. GALLERY — THREADS OF IDENTITY CAROUSEL
   ========================================================= */

.toi-gallery-carousel {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}


/* =========================================================
   MAIN IMAGE AREA
   ========================================================= */

.toi-gallery-carousel__main {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--toi-radius-lg);
    background: var(--toi-blue-deep);
    box-shadow: var(--toi-shadow);
    isolation: isolate;
}


.toi-gallery-carousel__slide {
    position: relative;
    display: none;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin: 0;
}


.toi-gallery-carousel__slide.is-active {
    display: block;
}


.toi-gallery-carousel__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


.toi-gallery-carousel__slide.is-active img {
    animation: toiGalleryFade 450ms ease;
}


@keyframes toiGalleryFade {

    from {
        opacity: 0;
        transform: scale(1.015);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}


/* =========================================================
   IMAGE OVERLAY
   ========================================================= */

.toi-gallery-carousel__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(23, 34, 82, 0.02) 45%,
            rgba(23, 34, 82, 0.42) 100%
        );
    pointer-events: none;
}


/* =========================================================
   COUNTER
   ========================================================= */

.toi-gallery-carousel__counter {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 7;

    display: inline-flex;
    align-items: center;

    min-height: 42px;
    padding: 0 15px;

    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;

    background:
        rgba(23, 34, 82, 0.72);

    color: var(--toi-white);

    font-family: "Manrope", sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.10em;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


/* =========================================================
   PREVIOUS / NEXT BUTTONS
   ========================================================= */

.toi-gallery-carousel__button {
    position: absolute;
    top: 50%;
    z-index: 8;

    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(255, 255, 255, 0.28);

    border-radius: 50%;

    background:
        rgba(23, 34, 82, 0.72);

    color: var(--toi-white);

    font-family: inherit;
    font-size: 1.25rem;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        background var(--toi-transition),
        color var(--toi-transition),
        border-color var(--toi-transition),
        transform var(--toi-transition);
}


.toi-gallery-carousel__button:hover {
    background: var(--toi-gold);
    border-color: var(--toi-gold);
    color: var(--toi-blue-deep);
}


.toi-gallery-carousel__button:active {
    transform:
        translateY(-50%)
        scale(0.94);
}


.toi-gallery-carousel__button:focus-visible {
    outline:
        3px solid
        var(--toi-gold);

    outline-offset: 4px;
}


.toi-gallery-carousel__button--prev {
    left: 22px;
}


.toi-gallery-carousel__button--next {
    right: 22px;
}


/* =========================================================
   THUMBNAILS
   ========================================================= */

.toi-gallery-carousel__thumbnails {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 16px;
    padding: 4px 2px 8px;

    overflow-x: auto;

    scroll-behavior: smooth;

    scrollbar-width: thin;

    scrollbar-color:
        var(--toi-gold)
        rgba(23, 34, 82, 0.08);
}


.toi-gallery-carousel__thumbnails::-webkit-scrollbar {
    height: 5px;
}


.toi-gallery-carousel__thumbnails::-webkit-scrollbar-track {
    background:
        rgba(23, 34, 82, 0.06);

    border-radius: 999px;
}


.toi-gallery-carousel__thumbnails::-webkit-scrollbar-thumb {
    background:
        var(--toi-gold);

    border-radius: 999px;
}


/* =========================================================
   THUMBNAIL BUTTONS
   ========================================================= */

.toi-gallery-carousel__thumbnail {
    position: relative;

    flex:
        0 0 92px;

    width: 92px;
    height: 68px;

    padding: 0;

    overflow: hidden;

    border:
        2px solid
        transparent;

    border-radius: 10px;

    background:
        var(--toi-blue-deep);

    cursor: pointer;

    opacity: 0.58;

    transition:
        opacity var(--toi-transition),
        border-color var(--toi-transition),
        transform var(--toi-transition);
}


.toi-gallery-carousel__thumbnail:hover {
    opacity: 0.90;

    transform:
        translateY(-2px);
}


.toi-gallery-carousel__thumbnail.is-active {
    border-color:
        var(--toi-gold);

    opacity: 1;

    box-shadow:
        0 7px 20px
        rgba(23, 34, 82, 0.16);
}


.toi-gallery-carousel__thumbnail:focus-visible {
    outline:
        3px solid
        var(--toi-gold);

    outline-offset: 3px;
}


.toi-gallery-carousel__thumbnail img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .toi-gallery-carousel__slide.is-active img {
        animation: none;
    }

    .toi-gallery-carousel__thumbnails {
        scroll-behavior: auto;
    }

    .toi-gallery-carousel__button,
    .toi-gallery-carousel__thumbnail,
    .toi-gallery-carousel__slide img {
        transition: none;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .toi-gallery-carousel__slide {
        aspect-ratio: 4 / 3;
    }


    .toi-gallery-carousel__button {
        width: 48px;
        height: 48px;
    }


    .toi-gallery-carousel__button--prev {
        left: 16px;
    }


    .toi-gallery-carousel__button--next {
        right: 16px;
    }


    .toi-gallery-carousel__counter {
        top: 16px;
        left: 16px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .toi-gallery-carousel__main {
        border-radius: 18px;
    }


    .toi-gallery-carousel__slide {
        aspect-ratio: 4 / 3;
    }


    .toi-gallery-carousel__button {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }


    .toi-gallery-carousel__button--prev {
        left: 12px;
    }


    .toi-gallery-carousel__button--next {
        right: 12px;
    }


    .toi-gallery-carousel__counter {
        top: 12px;
        left: 12px;

        min-height: 36px;
        padding: 0 12px;

        font-size: 0.60rem;
    }


    .toi-gallery-carousel__thumbnails {
        gap: 8px;
        margin-top: 12px;
    }


    .toi-gallery-carousel__thumbnail {
        flex-basis: 72px;

        width: 72px;
        height: 54px;

        border-radius: 8px;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 430px) {

    .toi-gallery-carousel__slide {
        aspect-ratio: 3 / 2;
    }


    .toi-gallery-carousel__button {
        width: 38px;
        height: 38px;
    }


    .toi-gallery-carousel__thumbnail {
        flex-basis: 64px;

        width: 64px;
        height: 48px;
    }

}


/* =========================================================
   21. YOUTUBE THUMBNAIL VIDEO
   ========================================================= */

.toi-video-card {
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--toi-white);
    border: 1px solid var(--toi-line);
    border-radius: 22px;
    box-shadow: var(--toi-shadow);
}

.toi-video-frame {
    position: relative;
    overflow: hidden;
    background: var(--toi-blue-deep);
    aspect-ratio: 16 / 9;
}

.toi-video-frame a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.toi-video-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.toi-video-frame a:hover img {
    transform: scale(1.025);
}

.toi-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: rgba(23, 36, 95, 0.86);
    color: var(--toi-white);
    font-size: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition:
        transform var(--toi-transition),
        background var(--toi-transition),
        color var(--toi-transition);
}

.toi-video-frame a:hover .toi-video-play {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--toi-gold);
    color: var(--toi-blue-deep);
}

.toi-video-card__body {
    padding: 30px 32px 34px;
}

.toi-video-card__body > span {
    display: block;
    margin-bottom: 10px;
    color: var(--toi-gold-dark);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.toi-video-card__body h3 {
    margin: 0 0 13px;
    color: var(--toi-blue);
    font-size: 1.35rem;
    line-height: 1.3;
}

.toi-video-card__body p {
    max-width: 850px;
    margin: 0 0 20px;
    color: var(--toi-muted);
    font-size: 0.90rem;
    line-height: 1.75;
}

.toi-video-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--toi-blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}


/* =========================================================
   22. FINAL CTA
   ========================================================= */

.toi-cta {
    padding: 95px 0;
    background: var(--toi-white);
}

.toi-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 60px;
    align-items: center;
    padding: 60px 65px;
    background: var(--toi-blue);
    border-radius: var(--toi-radius-md);
    box-shadow: var(--toi-shadow);
}

.toi-cta-content {
    max-width: 760px;
}

.toi-cta-inner h2 {
    margin: 0;
    color: var(--toi-white);
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.toi-cta-inner h2 span {
    display: block;
    color: var(--toi-gold);
}

.toi-cta-inner p {
    max-width: 650px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.94rem;
    line-height: 1.75;
}

.toi-cta-actions {
    flex-direction: column;
    min-width: 190px;
}


/* =========================================================
   23. TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .toi-hero__inner {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(370px, 0.78fr);
        gap: 50px;
    }

    .toi-fabric-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .toi-impact-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .toi-theme-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   24. TABLET / SMALL LAPTOP
   ========================================================= */

@media (max-width: 900px) {

    .toi-hero {
        min-height: 0;
    }

    .toi-hero__inner {
        min-height: 0;
        grid-template-columns: 1fr;
        padding: 75px 0 85px;
        gap: 48px;
    }

    .toi-hero__content {
        max-width: 720px;
    }

    .toi-hero__media {
        width: min(100%, 650px);
        justify-self: center;
    }


    /*
       ======================================================
       CRITICAL MOBILE / TABLET ORDER FIX

       Regardless of the desktop layout or whether
       .toi-split--reverse is present:

       1. DESCRIPTION / CONTENT
       2. IMAGE

       This is intentionally enforced with CSS order.
       ======================================================
    */

    .toi-split,
    .toi-split--reverse {
        grid-template-columns: 1fr;
        max-width: 780px;
        margin: 0 auto;
        gap: 48px;
    }

    .toi-split > .toi-content {
        order: 1;
    }

    .toi-split > .toi-photo {
        order: 2;
    }

    .toi-content {
        max-width: 720px;
    }

    .toi-photo img {
        min-height: 450px;
    }


    .toi-purpose-inner {
        grid-template-columns: 1fr;
        max-width: 780px;
        margin: 0 auto;
        gap: 35px;
    }

    .toi-purpose-visual {
        min-height: 300px;
    }


    .toi-cta-inner {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 50px 45px;
    }

    .toi-cta-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .toi-cta-actions .btn {
        flex: 1;
    }

}


/* =========================================================
   25. MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .toi-section {
        padding: 78px 0;
    }

    .toi-section .container,
    .toi-impact .container,
    .toi-cta .container {
        width: calc(100% - 36px);
    }


    .toi-hero__inner {
        width: calc(100% - 36px);
        padding: 58px 0 68px;
        gap: 34px;
    }

    .toi-hero__content h1 {
        font-size: clamp(3rem, 13.5vw, 4.4rem);
        line-height: 0.96;
    }

    .toi-hero__lead {
        font-size: 0.94rem;
        line-height: 1.72;
    }

    .toi-hero__tags {
        gap: 7px;
        margin-top: 22px;
    }

    .toi-hero__tags span {
        min-height: 35px;
        padding: 0 12px;
        font-size: 0.61rem;
    }

    .toi-hero__actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        margin-top: 27px;
    }

    .toi-hero__actions .btn {
        width: 100%;
        min-height: 55px;
    }

    .toi-hero__media {
        width: 100%;
        border-width: 4px;
        border-radius: 21px;
    }

    .toi-hero__media figcaption {
        padding: 45px 20px 18px;
    }

    .toi-hero__media figcaption strong {
        font-size: 0.62rem;
    }

    .toi-hero__media figcaption span {
        font-size: 0.68rem;
    }


    /*
       Keep the mobile ordering rule explicitly present
       at the actual mobile breakpoint as well.
    */

    .toi-split,
    .toi-split--reverse {
        display: grid;
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .toi-split > .toi-content {
        order: 1;
    }

    .toi-split > .toi-photo {
        order: 2;
    }


    .toi-content h2,
    .toi-heading h2,
    .toi-impact-heading h2 {
        font-size: clamp(2.05rem, 9vw, 3rem);
    }

    .toi-content p {
        font-size: 0.92rem;
        line-height: 1.75;
    }

    .toi-content .toi-lead {
        font-size: 0.98rem;
    }

    .toi-photo {
        border-radius: 18px;
    }

    .toi-photo img {
        min-height: 330px;
    }

    .toi-photo figcaption {
        padding: 38px 18px 16px;
    }

    .toi-photo figcaption strong {
        font-size: 0.59rem;
        letter-spacing: 0.12em;
    }

    .toi-photo figcaption span {
        font-size: 0.66rem;
    }


    .toi-highlight {
        padding: 20px;
    }

    .toi-checks {
        grid-template-columns: 1fr;
        gap: 10px;
    }


    .toi-fabric-grid,
    .toi-theme-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .toi-fabric-card,
    .toi-theme-grid article {
        min-height: 0;
        padding: 27px 24px;
    }

    .toi-fabric-card > span,
    .toi-theme-grid article > span {
        margin-bottom: 27px;
    }


    .toi-purpose-content h2 {
        font-size: clamp(2.1rem, 9vw, 3rem);
    }

    .toi-purpose-content p {
        font-size: 0.92rem;
        line-height: 1.75;
    }

    .toi-purpose-word span {
        font-size: clamp(2rem, 10vw, 3.1rem);
    }


    .toi-impact {
        padding: 78px 0;
    }

    .toi-impact-heading {
        margin-bottom: 40px;
    }

    .toi-impact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .toi-impact-grid article {
        min-height: 205px;
    }


    .toi-gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
        gap: 12px;
    }

    .toi-gallery-grid figure.toi-gallery-feature,
    .toi-gallery-grid figure.toi-gallery-feature--large,
    .toi-gallery-grid figure.toi-gallery-wide {
        grid-row: auto;
        grid-column: auto;
    }


    /* =====================================================
       YOUTUBE THUMBNAIL — MOBILE
       ===================================================== */

    .toi-video-card {
        border-radius: 15px;
    }

    .toi-video-frame {
        aspect-ratio: 16 / 9;
    }

    .toi-video-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .toi-video-play {
        width: 58px;
        height: 58px;
        font-size: 0.86rem;
    }

    .toi-video-card__body {
        padding: 24px 22px 27px;
    }

    .toi-video-card__body h3 {
        font-size: 1.20rem;
    }

    .toi-video-card__body p {
        font-size: 0.88rem;
        line-height: 1.72;
    }


    .toi-cta {
        padding: 65px 0;
    }

    .toi-cta-inner {
        display: block;
        padding: 38px 24px;
        border-radius: 17px;
    }

    .toi-cta-inner h2 {
        font-size: clamp(2.05rem, 9vw, 2.9rem);
    }

    .toi-cta-inner p {
        font-size: 0.88rem;
    }

    .toi-cta-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 25px;
    }

    .toi-cta-actions .btn {
        width: 100%;
    }

}


/* =========================================================
   26. SMALL PHONES
   ========================================================= */

@media (max-width: 430px) {

    .toi-hero__inner {
        width: calc(100% - 30px);
        padding: 50px 0 58px;
    }

    .toi-hero__content h1 {
        font-size: clamp(2.75rem, 14vw, 3.65rem);
    }

    .toi-hero__lead {
        font-size: 0.89rem;
    }

    .toi-hero__tags span {
        min-height: 33px;
        padding: 0 10px;
        font-size: 0.55rem;
    }

    .toi-hero__media {
        border-radius: 19px;
    }

    .toi-hero__media figcaption {
        padding: 36px 16px 14px;
    }

    .toi-hero__media figcaption strong {
        font-size: 0.55rem;
        letter-spacing: 0.11em;
    }

    .toi-hero__media figcaption span {
        font-size: 0.61rem;
    }


    /*
       FINAL MOBILE SAFETY RULE:
       DESCRIPTION FIRST — IMAGE SECOND.
    */

    .toi-split,
    .toi-split--reverse {
        display: flex;
        flex-direction: column;
    }

    .toi-split > .toi-content {
        order: 1;
    }

    .toi-split > .toi-photo {
        order: 2;
    }

    .toi-photo img {
        min-height: 285px;
    }

    .toi-photo figcaption {
        padding: 31px 15px 13px;
    }

    .toi-photo figcaption strong {
        font-size: 0.53rem;
    }

    .toi-photo figcaption span {
        font-size: 0.59rem;
    }


    .toi-gallery-grid {
        grid-auto-rows: 245px;
    }

    .toi-impact-grid article {
        min-height: 190px;
    }

    .toi-video-play {
        width: 54px;
        height: 54px;
    }

}


/* =========================================================
   27. ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .toi-hero__media img,
    .toi-photo img,
    .toi-gallery-grid img,
    .toi-video-frame img,
    .toi-fabric-card,
    .toi-theme-grid article,
    .toi-impact-grid article,
    .toi-hero__tags span,
    .toi-hero__actions .btn,
    .toi-cta-actions .btn {
        transition: none;
    }

    .toi-hero__media:hover img,
    .toi-photo:hover img,
    .toi-gallery-grid figure:hover img,
    .toi-video-frame a:hover img,
    .toi-fabric-card:hover,
    .toi-theme-grid article:hover,
    .toi-impact-grid article:hover,
    .toi-hero__tags span:hover,
    .toi-hero__actions .btn:hover,
    .toi-cta-actions .btn:hover {
        transform: none;
    }

}