/*
 * About page, section 1 (hero, first on the page): "GX is Uniquely Placed" slider (#section_placed in
 * Views/gxAbout1.cshtml). Script: ~/scripts/gxAboutPlaced.js. How to edit it:
 * docs/about-page.md, "Uniquely Placed hero".
 *
 * Brought back from the Home 26 "Uniquely Placed" slider of 25 Nov 2026 (commit 9a08edf):
 * one card at a time, the next slide fades in over it, its text at the bottom left of the
 * card, and a dark pill of tabs under it. Sizes from Figma (1920 frame): card 1080x548, 16px
 * corners, text 40px in from the bottom left; tabs 70x40 in a #333336 pill, the current one
 * black.
 *
 * Layout: .gx-placed-slider is a grid with two rows (card, controls). Each slide is
 * display: contents, so every slide's card goes in the same cell, stacked; only the current
 * one shows. Every rule here starts with #section_placed.
 *
 * Phone layout (phones and touch tablets held upright, iPad mini included, like the rest of
 * the site): full-width card (30rem at most), 4:5, smaller heading, tabs and text. Phones
 * held sideways get the wide card.
 */

/* First section on the page: the background runs up under the fixed header, and the content
   starts below it. --gx-placed-nav is the header's height (gxStyle.css: 66px, 54px up to
   990px wide). */
#section_placed {
    --gx-placed-dim: rgba(0, 0, 0, 0.6);   /* dark layer over the background; 0 = none, 1 = black */
    --gx-placed-nav: 66px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--gx-placed-nav) + 3.5rem) 0 4rem;
    overflow: hidden;
    color: var(--gx-white);
}
@media (max-width: 990px) {
    #section_placed { --gx-placed-nav: 54px; }
}
/* At least the screen's height at every width (phones and upright tablets included), so the
   next section never shows under it on a tall screen; the content stays centred. */
#section_placed { min-height: 100vh; }

/* ---- Background (image or video), covering the section, with the dark layer over it ---- */
#section_placed .gx-placed-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
#section_placed .gx-placed-bg picture {
    display: block;
    width: 100%;
    height: 100%;
}
#section_placed .gx-placed-bg-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 72%;   /* trims mostly off the top, little off the grass */
}
#section_placed .gx-placed-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gx-placed-dim);
}

#section_placed .gx-placed-inner {
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

/* ---- Heading ---- */
#section_placed .gx-placed-head { text-align: center; }
#section_placed .gx-placed-heading {
    margin: 0;
    font-family: indivisible, sans-serif;
    font-weight: 500;
    font-size: clamp(32px, 2.9vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--gx-white);
}

/* ---- Slider grid ---- */
#section_placed .gx-placed-slider {
    display: grid;
    grid-template-columns: 100%;
    grid-template-areas:
        "card"
        "controls";
    /* 1080px (Figma), smaller when needed so the header, heading, card and tabs fit a laptop
       screen's height (never under 28rem). 25rem = everything on screen but the card
       (about 290px above it, the tabs and a gap under it). */
    width: min(67.5rem, 100%, max(28rem, calc((100vh - 25rem) * 1080 / 548)));
    margin: 2.75rem auto 0;
}
#section_placed .gx-placed-slide { display: contents; }

/* The card: the next slide fades in on top while the one before stays under it
   (.is-leaving), so the change never dips to black. The script removes .is-leaving after
   FADE_MS (600ms). */
#section_placed .gx-placed-card {
    grid-area: card;
    position: relative;
    z-index: 0;
    aspect-ratio: 1080 / 548;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;   /* keeps the rounded corners on the videos in Safari */
    background: #000;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.12);
    touch-action: pan-y;  /* vertical page scroll stays native; sideways swipes change the slide */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
#section_placed .gx-placed-slide.is-leaving > .gx-placed-card {
    opacity: 1;
    visibility: visible;
    transition: none;
}
#section_placed .gx-placed-slide.is-active > .gx-placed-card {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0s;
}

/* The slide's video or image fills the card. */
#section_placed .gx-placed-media {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    opacity: 0.3;
}
/* Upside down (Embedded). */
#section_placed .gx-placed-media--flip { transform: scaleY(-1); }

/* ---- Text on the card, bottom left, over the video or image ----
   A soft dark fade behind it keeps it readable on bright videos and images; change its
   strength with --gx-placed-text-shade (0 = none). */
#section_placed .gx-placed-text {
    --gx-placed-text-shade: 0.55;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 80px 40px 40px;   /* the top padding is room for the fade */
    text-align: left;
    color: var(--gx-white);
    /* background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent); */
    background: linear-gradient(to top, rgba(0, 0, 0, var(--gx-placed-text-shade)), transparent);
   
    pointer-events: none;
}
#section_placed .gx-placed-title {
    margin: 0;
    font-family: indivisible, sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--gx-white);
}
#section_placed .gx-placed-sub {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--gx-grey);
}

/* The current slide's text rises in as the card arrives. */
@keyframes gxPlacedTextIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}
#section_placed .gx-placed-slide.is-active .gx-placed-text { animation: gxPlacedTextIn 0.6s ease 0.3s both; }

/* ---- Tabs and pause button ---- */
#section_placed .gx-placed-controls {
    grid-area: controls;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 0;
}
/* Hidden (keeping its space) until the script has added the tabs. */
#section_placed .gx-placed-controls:not(.is-ready) { visibility: hidden; }

#section_placed .gx-placed-tabs {
    position: relative;
    display: inline-flex;
    min-height: 48px;
    padding: 4px;
    border-radius: 25px;
    background: #333336;
}
/* The black pill behind the current tab; the script sets its place and width. */
#section_placed .gx-placed-tabs-pill {
    position: absolute;
    top: 4px;
    left: 0;
    width: var(--gx-placed-pill-w, 70px);
    height: 40px;
    border-radius: 25px;
    background: #000;
    transform: translateX(var(--gx-placed-pill-x, 4px));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#section_placed .gx-placed-tab {
    position: relative;
    z-index: 1;
    min-width: 70px;
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 25px;
    background: transparent;
    color: var(--gx-white);
    /* Figma: Freight Display Pro Medium Italic (the site's serif font). */
    /* font-family: freight-display-pro, serif; */
    /* font-style: italic; */
    font-weight: 400;
    font-size: 18px;
    letter-spacing: -0.2px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}
#section_placed .gx-placed-tab:focus-visible,
#section_placed .gx-placed-toggle:focus-visible {
    outline: 2px solid var(--gx-primary);
    outline-offset: 2px;
}

#section_placed .gx-placed-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #333336;
    color: var(--gx-white);
    cursor: pointer;
    transition: background-color 0.3s ease;
}
#section_placed .gx-placed-toggle:hover { background: #48484c; }
#section_placed .gx-placed-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
/* Pause icon while playing, play icon while paused. */
#section_placed .gx-placed-icon-play,
#section_placed .is-paused .gx-placed-icon-pause { display: none; }
#section_placed .is-paused .gx-placed-icon-play { display: block; }

@media (prefers-reduced-motion: reduce) {
    #section_placed .gx-placed-card,
    #section_placed .gx-placed-slide.is-active > .gx-placed-card,
    #section_placed .gx-placed-tabs-pill { transition: none; }
    #section_placed .gx-placed-slide.is-active .gx-placed-text { animation: none; }
}

/* Tablets held sideways and small laptops: the same card, smaller text. */
@media (max-width: 991.98px) {
    #section_placed { padding: calc(var(--gx-placed-nav) + 3rem) 0 3rem; }
    #section_placed .gx-placed-slider { margin-top: 2rem; }
    #section_placed .gx-placed-text { gap: 12px; padding: 0px 28px 28px; }
    #section_placed .gx-placed-title { font-size: 26px; }
    #section_placed .gx-placed-sub { font-size: 16px; line-height: 1.35; }
}

/* Phone layout: phones and touch tablets held upright (iPad mini included). A phone held
   sideways gets the wide card instead, like the Home 26 hero: the tall 4:5 card would not
   fit its short screen. */
@media (max-width: 767.98px) and (orientation: portrait),
       (orientation: portrait) and (hover: none) and (pointer: coarse) {
    #section_placed { padding: calc(var(--gx-placed-nav) + 2.5rem) 0 3rem; }
    /* #section_placed .gx-placed-heading { font-size: clamp(30px, 6.5vw, 44px); } */
    #section_placed .gx-placed-slider {
        width: 100%;
        max-width: 44rem;   /* upright tablets: keeps the 4:5 card on screen */
        margin-top: 1.75rem;
    }
    /* Taller than desktop (4:5) so the text has room over the video; the media is trimmed
       at the sides. */
    #section_placed .gx-placed-card { aspect-ratio: 4 / 5; }
    #section_placed .gx-placed-text { gap: 10px; padding: 0px 24px 24px; }
    #section_placed .gx-placed-title { font-size: 24px; }
    #section_placed .gx-placed-sub { font-size: 15px; }
}




/* text added to unique section 2 */



.blur-effect {
    filter: blur(1px);
    transform: scale(1.05);
}

#section_placed .gx-placed-card {
    container-type: inline-size
}

#section_placed .gx-unique-title {
    font-family:indivisible, sans-serif;
    margin: 0;
    font-size: 32px;
    font-size: max(20px, 2.96cqw);
    font-weight: 600;
    line-height: 1;
    color: var(--gx-white);
    letter-spacing: -0.02em;
    border-top:none;
}
#section_placed .gx-unique-sub {
    margin: 0;
    font-size: 18px;
    font-size: max(14px, 1.67cqw);
    font-weight: 500;
    line-height: 1.3;
    color: var(--gx-grey);
}



.gx-unique-text-right-inner p {
    margin-bottom: 0;
}

.gx-unique-text-right-wrap{
    width:100%;
}
.gx-unique-text-wrapper {
    display: flex;
    flex-direction: row;
}
.gx-unique-text-left-wrap {
    width:410px
}
/* .gx-unique-title {    
    color:#fff;
    font-size: 32px;
    font-family: Indivisible;
    font-weight: 600;
} */

.bdr-grey-top {
    border-top:1px solid #666;
}

.gx-unique-sub-text {    
    color: #A8A8A8;
    font-size: 18px;
    font-size: max(14px, 1.67cqw);
    font-family: Indivisible;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.gx-unique-text-big{    
    font-family: Indivisible;
    font-size:26px;
    /* font-size: max(18px, 2.96cqw); */
    font-size:clamp(18px, 2.96cqw, 26px);
    font-weight: 500;
    line-height: 1;
    color: var(--gx-white);
    letter-spacing: -0.02em;
    padding:0 0 5px;
}

.whiteBold-Text {
    font-weight: 600;
    color: #fff;
}

#section_unique .slick-slide .gx-unique-text {
    opacity:0;
    transition: opacity 0.3s ease-in-out;
}

#section_unique .slick-slide.slick-current .gx-unique-text {
    opacity:1;
}

@media (min-width: 768px) and (max-width: 991.98px) and (orientation: portrait) {
    #section_unique .gx-unique-card {
        aspect-ratio: 9 / 9;
    }
}

@media (max-width: 767.98px) {
    #section_unique .gx-unique-card { aspect-ratio: 9 / 14; }
    .gx-unique-text-wrapper {
        flex-direction: column;
    }
    .gx-unique-text-left-wrap,
    .gx-unique-text-right-wrap {
        width:100%;
    }
    .gx-unique-sub-text {
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    #section_placed .gx-placed-media {
        height:52%;
    }
    #section_placed .gx-placed-text {
        background: linear-gradient(
            to top,
            #000 0%,
            #000 80%,
            rgba(0, 0, 0, 0.5) 90%,
            transparent 100%
        );
    }
}


/* iPad Air 5 – Portrait */
@media only screen 
and (min-width: 768px) 
and (max-width: 991px) 
and (orientation: portrait) {
    #section_placed .gx-placed-slider {       
        max-width: 34rem;  
    }
    .gx-unique-text-wrapper {
        display: flex;
        flex-direction: column;
    }
    #section_placed .gx-placed-media {
        width: 100%;
        height: 66%;
    }
    #section_placed .gx-placed-text {
        background: linear-gradient(
            to top,
            #000 0%,
            #000 80%,
            rgba(0, 0, 0, 0.5) 90%,
            transparent 100%
        );
    }
    .gx-unique-text-left-wrap {
        width:100%;
    }
    #section_placed .gx-placed-media {
        opacity: 0.7;
    }
}

/* iPad Pro 13 – Portrait */
@media only screen 
and (min-width: 992px) 
and (max-width: 1100px) 
and (orientation: portrait) {
    #section_placed .gx-placed-slider {       
        max-width: 44rem;  
    }
    .gx-unique-text-wrapper {
        display: flex;
        flex-direction: column;
    }
    #section_placed .gx-placed-media {
        width: 100%;
        height: 66%;
    }
    #section_placed .gx-placed-text {
        background: linear-gradient(
            to top,
            #000 0%,
            #000 80%,
            rgba(0, 0, 0, 0.5) 90%,
            transparent 100%
        );
    }
     .gx-unique-text-left-wrap {
        width:100%;
    }
    #section_placed .gx-placed-media {
        opacity: 0.7;
    }
}


@media (max-width: 575.98px) {
    #section_placed .gx-placed-controls { gap: 8px; }
    #section_placed .gx-placed-tabs { min-height: 44px; }
    #section_placed .gx-placed-tabs-pill { height: 36px; }
    #section_placed .gx-placed-tab {
        min-width: 56px;
        height: 36px;
        padding: 0 12px;
        font-size: 14px;
    }
    #section_placed .gx-placed-toggle { width: 44px; height: 44px; }
    #section_placed .gx-placed-media {
        opacity: 0.7;
    }
}