/* =========================================================
   GS Group - Home page additions
   Load AFTER style.css:
   <link rel="stylesheet" href="./css/home.css">
   ========================================================= */

/* ---------- Image safety: a missing image never leaves a blank hole ---------- */
.band,
.prop__media {
    background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
}

.band img,
.prop__media img {
    background: none;
}

/* =========================================================
   WHY GS GROUP - "Seven Steps" staircase
   Seven columns rise from left to right, like 35 years of
   growth. Baseline reads 1988 -> Today.
   ========================================================= */
.why {
    margin-top: clamp(56px, 8vw, 112px);
}

.why__head {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 16px clamp(28px, 6vw, 96px);
    align-items: end;
    margin-bottom: clamp(32px, 5vw, 64px);
}

.why__t {
    margin: 0;
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    line-height: 1.15;
    font-weight: 300;
    letter-spacing: -.015em;
    color: var(--heading);
}

.why__lead {
    margin: 0;
    max-width: 52ch;
    color: var(--muted);
    font-size: clamp(1rem, 1.3vw, 1.1rem);
}

.steps {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: clamp(8px, 1vw, 14px);
    align-items: end;
}

.step {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    min-height: calc(270px + var(--i) * 38px);
    padding: 20px clamp(12px, 1.3vw, 18px) 22px;
    border-top: 3px solid var(--gold);
    color: #fff;
    overflow: hidden;
    transition: transform .4s var(--ease), color .3s;
}

/* maroon fill: SOLID (fully opaque) so white text is readable in light AND dark mode.
   Each step is a little deeper than the one before. */
.step::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(160deg, var(--maroon), var(--maroon-deep));
}

@supports (background: color-mix(in srgb, red, blue)) {
    .step::before {
        background: linear-gradient(160deg,
                color-mix(in srgb, var(--maroon-deep) calc(var(--i) * 9%), var(--maroon)),
                var(--maroon-deep));
    }
}

/* light mode: soft shadow lifts the dark columns off the white page */
:root[data-theme="light"] .step {
    box-shadow: 0 14px 30px rgba(46, 6, 13, .18);
}

/* dark mode: thin outline so the columns separate from the dark page */
:root[data-theme="dark"] .step {
    outline: 1px solid rgba(255, 255, 255, .12);
    outline-offset: -1px;
}

/* gold fill: fades in on hover */
.step::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(160deg, var(--gold-soft), var(--gold));
    opacity: 0;
    transition: opacity .35s;
}

.step__n {
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    line-height: 1;
    font-weight: 300;
    letter-spacing: -.02em;
    color: var(--gold-soft);
    transition: color .3s;
}

.step__t {
    margin: 0 0 8px;
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    font-weight: 600;
    line-height: 1.25;
}

.step__d {
    margin: 0;
    font-size: .84rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, .88);
    transition: color .3s;
}

@media (hover: hover) {

    .step:hover,
    .step:focus-within {
        transform: translateY(-10px);
        color: #1a1205;
    }

    .step:hover::after,
    .step:focus-within::after {
        opacity: 1;
    }

    .step:hover .step__n,
    .step:focus-within .step__n {
        color: var(--maroon-deep);
    }

    .step:hover .step__d,
    .step:focus-within .step__d {
        color: rgba(26, 18, 5, .82);
    }
}

/* Staircase grows in, one step after another */
.js .steps:not(.is-in) .step {
    opacity: 0;
}

.js .steps.is-in .step {
    animation: stepIn .8s var(--ease) calc(var(--i) * 90ms) backwards;
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateY(46px);
    }
}

/* Baseline: 1988 ------- Today */
.steps__base {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.steps__base i {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--border));
}

.steps__base span:first-child {
    color: var(--accent);
}

.why__foot {
    margin-top: clamp(24px, 3vw, 36px);
}

/* Tablet / phone: staircase turns sideways (bars get longer) */
@media (max-width: 1200px) {
    .steps {
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: stretch;
    }

    .step {
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 20px;
        width: calc(52% + var(--i) * 6.5%);
        min-height: 0;
        padding: 18px 22px;
    }

    .step__n {
        flex: 0 0 auto;
        min-width: 2.4ch;
    }

    .step__body {
        flex: 1;
        min-width: 0;
    }

    @media (hover: hover) {

        .step:hover,
        .step:focus-within {
            transform: translateX(6px);
        }
    }
}

@media (max-width: 900px) {
    .why__head {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

@media (max-width: 560px) {
    .step {
        width: calc(78% + var(--i) * 3%);
        gap: 14px;
        padding: 16px 16px;
    }

    .step__n {
        font-size: 1.6rem;
    }

    .steps__base {
        font-size: .7rem;
    }
}

@media (max-width: 360px) {
    .why__t {
        font-size: 1.5rem;
    }
}

/* ---------- Verticals: image on each row for phones/tablets ---------- */
.vrow__img {
    display: none;
}

@media (max-width: 900px) {
    .vrow__img {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        margin-top: 16px;
        object-fit: cover;
        background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
    }
}

/* ---------- Verticals preview panel (desktop) ----------
   All six images are real <img> in the HTML, stacked on top of each other.
   The new image fades in OVER the previous one, so the panel is never blank. */
.vpreview .vlayer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 0;
    transition: none;
}

.vpreview .vlayer.is-prev {
    opacity: 1;
    z-index: 1;
}

.vpreview .vlayer.is-on {
    opacity: 1;
    z-index: 2;
    transition: opacity .45s var(--ease);
}

.vpreview__cap {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
    margin: 0;
    padding: 10px 16px;
    background: var(--maroon);
    color: #fff;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: pre;
}

/* =========================================================
   VERTICALS - Featured row (IT & Digital)
   Highlights the flagship vertical without altering the layout of
   the list: a tinted panel that bleeds into the gutter, a gold accent
   rail, a "Featured" tag and an external Explore button.
   Uses only opacity/transform for motion (GPU friendly, no layout cost).
   ========================================================= */
.vitem--feature {
    --vf-gut: clamp(10px, 1.6vw, 18px);
    position: relative;
    isolation: isolate;
    margin-inline: calc(var(--vf-gut) * -1);
    padding-inline: var(--vf-gut);
    padding-bottom: clamp(18px, 2.4vw, 28px);
    background: linear-gradient(100deg, rgba(200, 150, 46, .13), rgba(200, 150, 46, 0) 75%);
}

/* Gold accent rail along the left edge */
.vitem--feature::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--gold-soft), var(--gold));
}

/* The row's own top border sits inside the panel; keep it subtle */
.vitem--feature .vrow {
    border-top-color: transparent;
    padding-bottom: clamp(12px, 1.6vw, 18px);
}

.vitem--feature .vrow__n {
    font-weight: 700;
}

/* Keep the featured row legible while other rows dim on list hover */
@media (hover: hover) {
    .vlist:hover .vitem--feature .vrow:not(:hover) {
        opacity: .85;
    }

    .vlist .vitem--feature:hover .vrow {
        opacity: 1;
    }
}

/* "Featured" tag with a soft pulsing dot */
.vtag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-style: normal;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
}

.vtag::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    animation: vtagPulse 2.4s ease-in-out infinite;
}

@keyframes vtagPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .45;
        transform: scale(.7);
    }
}

/* Explore button: outlined pill that fills with gold on hover/focus */
.vexplore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 52px;
    /* aligns with the text column (44px number column + 8px gap) */
    padding: 11px 22px;
    border: 1.5px solid var(--gold);
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--heading);
    transition: background-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
}

.vexplore:hover,
.vexplore:focus-visible {
    background: var(--gold);
    color: #1a1205;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(200, 150, 46, .3);
}

/* Arrow icon drawn with borders (no extra assets), nudges up-right on hover */
.vexplore__ic {
    position: relative;
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transition: transform .25s var(--ease);
}

.vexplore__ic::after {
    content: "";
    position: absolute;
    top: -1px;
    right: 0;
    width: 12px;
    height: 2px;
    background: currentColor;
    transform: rotate(-45deg);
    transform-origin: right center;
}

.vexplore:hover .vexplore__ic,
.vexplore:focus-visible .vexplore__ic {
    transform: translate(2px, -2px);
}

/* Tablet / phone: the thumbnail appears inside the row, so the button follows it */
@media (max-width: 900px) {
    .vexplore {
        margin-left: 52px;
    }
}

@media (max-width: 560px) {
    .vitem--feature {
        --vf-gut: 12px;
    }

    .vexplore {
        display: flex;
        justify-content: center;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 380px) {
    .vexplore {
        padding: 11px 16px;
        font-size: .85rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .vtag::before {
        animation: none;
    }

    .vexplore,
    .vexplore__ic {
        transition: none;
    }
}

/* ---------- Smallest phones ---------- */
@media (max-width: 360px) {
    .why__t {
        font-size: 1.5rem;
    }
}

/* =========================================================
   ABOUT - Slanted gallery
   One slice per business vertical. Slices lean like a slash and
   overlap slightly; the gold line between them is the container
   background showing through the gap. Hover or focus widens a
   slice and reveals the vertical's name.
   ========================================================= */
.slash {
    --skew: clamp(26px, 7vw, 100px);
    --gap: 3px;
    position: relative;
    margin: clamp(40px, 6vw, 80px) 0 0;
}

.slash__list {
    display: flex;
    aspect-ratio: 21 / 9;
    background: linear-gradient(115deg, var(--gold), var(--gold-soft));
    /* The hover animates flex-grow, so isolate layout and paint to this strip */
    contain: layout paint;
}

.slash__item {
    flex: 1 1 0;
    min-width: 0;
    margin-left: calc(var(--skew) * -1 + var(--gap));
    clip-path: polygon(var(--skew) 0, 100% 0, calc(100% - var(--skew)) 100%, 0 100%);
    transition: flex-grow .5s var(--ease);
}

.slash__item:first-child {
    margin-left: 0;
    clip-path: polygon(0 0, 100% 0, calc(100% - var(--skew)) 100%, 0 100%);
}

.slash__item:last-child {
    clip-path: polygon(var(--skew) 0, 100% 0, 100% 100%, 0 100%);
}

.slash__item a {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
    color: #fff;
}

.slash__item a:focus-visible {
    outline-offset: -4px;
}

.slash__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}

/* Darkens the top of the slice so the name stays legible */
.slash__item a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(20, 4, 8, .78), rgba(20, 4, 8, 0) 58%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}

.slash__name {
    position: absolute;
    z-index: 2;
    top: clamp(14px, 2vw, 24px);
    left: calc(var(--skew) + 14px);
    right: 14px;
    font-size: clamp(.8rem, 1.1vw, 1rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: .03em;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .35s, transform .45s var(--ease);
}

.slash__name::before {
    content: "";
    display: block;
    width: 26px;
    height: 2px;
    margin-bottom: 8px;
    background: var(--gold-soft);
}

.slash__item:first-child .slash__name {
    left: 18px;
}

.slash__cap {
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 14px clamp(16px, 2.4vw, 28px);
    background: var(--maroon);
    color: #fff;
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.slash__cap b {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 300;
    letter-spacing: 0;
    color: var(--gold-soft);
}

@media (hover: hover) {

    .slash__item:hover,
    .slash__item:focus-within {
        flex-grow: 1.45;
    }

    .slash__item:hover img,
    .slash__item:focus-within img {
        transform: scale(1.06);
    }

    .slash__item:hover a::after,
    .slash__item:focus-within a::after {
        opacity: 1;
    }

    .slash__item:hover .slash__name,
    .slash__item:focus-within .slash__name {
        opacity: 1;
        transform: none;
    }
}

/* Touch screens have no hover, so names are always shown */
@media (hover: none) {
    .slash__item a::after {
        opacity: 1;
    }

    .slash__name {
        opacity: 1;
        transform: none;
    }
}

/* Phones: a tidy two-column grid with names always visible */
@media (max-width: 760px) {
    .slash__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--gap);
        aspect-ratio: auto;
    }

    .slash__item,
    .slash__item:first-child,
    .slash__item:last-child {
        margin-left: 0;
        clip-path: none;
        aspect-ratio: 4 / 3;
    }

    .slash__item a::after {
        opacity: 1;
        background: linear-gradient(to top, rgba(20, 4, 8, .8), rgba(20, 4, 8, 0) 60%);
    }

    .slash__name,
    .slash__item:first-child .slash__name {
        top: auto;
        bottom: 12px;
        left: 12px;
        right: 12px;
        font-size: .85rem;
        opacity: 1;
        transform: none;
    }

    .slash__name::before {
        margin-bottom: 6px;
    }

    .slash__cap {
        position: static;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .slash__item,
    .slash__item img,
    .slash__name {
        transition: none;
    }
}

/* =========================================================
   CLIENTS - Auto-sliding logo lanes
   Three lanes, one per client group. Each lane has a slanted
   title block (echoing the About gallery) and a logo track that
   scrolls on its own. Hovering a lane pauses it.
   ========================================================= */
.clanes {
    display: grid;
    gap: clamp(14px, 2vw, 22px);
}

.clane {
    --lskew: clamp(20px, 2.6vw, 34px);
    --cw: clamp(150px, 14vw, 190px);
    --cgap: clamp(12px, 1.5vw, 20px);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
}

.clane__head {
    position: relative;
    z-index: 2;
    flex: 0 0 clamp(200px, 23%, 290px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 22px calc(var(--lskew) + 18px) 22px clamp(18px, 2vw, 28px);
    color: #fff;
    background: linear-gradient(135deg, var(--lane-a, var(--maroon)), var(--lane-b, var(--maroon-deep)));
    clip-path: polygon(0 0, 100% 0, calc(100% - var(--lskew)) 100%, 0 100%);
}

.clane__title {
    margin: 0;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    font-weight: 600;
    line-height: 1.25;
}

.clane__sub {
    margin: 0;
    font-size: .82rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, .74);
}

.clane__count {
    margin: 8px 0 0;
    font-size: .82rem;
    color: rgba(255, 255, 255, .74);
}

.clane__count b {
    margin-right: 4px;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gold-soft);
}

.clane__view {
    flex: 1;
    min-width: 0;
    margin-left: calc(var(--lskew) * -1);
    display: flex;
    align-items: center;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent var(--lskew), #000 calc(var(--lskew) + 48px), #000 calc(100% - 56px), transparent);
    mask-image: linear-gradient(90deg, transparent var(--lskew), #000 calc(var(--lskew) + 48px), #000 calc(100% - 56px), transparent);
}

.clane__track {
    display: flex;
    width: max-content;
    padding: 22px 0;
}

.clane__set {
    display: flex;
    gap: var(--cgap);
    padding-right: var(--cgap);
}

.clane.is-live .clane__track {
    animation: laneMove var(--dur, 40s) linear infinite;
    will-change: transform;
}

.clane[data-dir="rev"].is-live .clane__track {
    animation-direction: reverse;
}

.clane.is-live:hover .clane__track,
.clane.is-live:focus-within .clane__track,
.clane.is-off .clane__track {
    animation-play-state: paused;
}

@keyframes laneMove {
    to {
        transform: translate3d(calc(var(--shift, 0px) * -1), 0, 0);
    }
}

.clogo {
    flex: 0 0 var(--cw);
    width: var(--cw);
}

/* Logos always sit on a white plate so they read correctly in light and dark mode */
.clogo__plate {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(72px, 7vw, 92px);
    background: #fff;
    border: 1px solid var(--border);
    transition: border-color .25s, transform .3s var(--ease), box-shadow .3s;
    /* Extra safeguard to keep child elements perfectly centered */
    line-height: 0;
    box-sizing: border-box;
}

.clogo__img {
    max-width: 78%;
    max-height: 58%;
    object-fit: contain;
    transition: filter .3s, opacity .3s;
}

@media (hover: hover) {
    .clogo__img {
        filter: grayscale(1);
        opacity: .85;
    }

    .clogo:hover .clogo__img {
        filter: none;
        opacity: 1;
    }
}

.clogo:hover .clogo__plate {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(46, 6, 13, .14);
}

.clogo__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: 2.7em;
    margin-top: 10px;
    font-size: .8rem;
    line-height: 1.35;
    text-align: center;
    color: var(--muted);
}

/* Missing logo file: show the organisation's initials instead */
.clogo.is-missing .clogo__img {
    display: none;
}

.clogo.is-missing .clogo__plate::before {
    content: attr(data-ini);
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--maroon);
}

@media (max-width: 760px) {
    .clane {
        --cw: 140px;
        flex-direction: column;
    }

    .clane__head {
        flex: none;
        padding: 18px 20px;
        clip-path: none;
    }

    .clane__view {
        margin-left: 0;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
        mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
    }

    .clane__track {
        padding: 18px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .clane__view {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .clane.is-live .clane__track {
        animation: none;
    }

    .clogo__plate,
    .clogo__img {
        transition: none;
    }
}

/* =========================================================
   MISSION - "Rising words" reveal + slow orbit rings
   Light-weight: only opacity + transform are animated (GPU,
   no layout/paint cost, no filter/blur, so mobile stays smooth).
   Ambient motion runs only while the section is on screen.
   JS: ./js/mission.js adds .mission--anim, .is-in, .is-live, .is-done
   ========================================================= */
.mission {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.mission__wrap {
    position: relative;
    z-index: 1;
}

/* ---------- Background rings + glow ---------- */
.mission__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.mission__glow {
    position: absolute;
    right: -10%;
    top: -20%;
    width: min(70vw, 760px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(227, 182, 88, .22), rgba(227, 182, 88, 0));
    transform: translate3d(0, 0, 0);
}

.mission__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(227, 182, 88, .28);
    transform: translate3d(0, 0, 0) rotate(0deg);
}

/* a small gold dot rides each ring, so the rotation is visible */
.mission__ring::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -4px;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--gold-soft);
    box-shadow: 0 0 0 4px rgba(227, 182, 88, .15);
}

.mission__ring--a {
    right: -14%;
    top: -34%;
    width: min(74vw, 820px);
    aspect-ratio: 1;
}

.mission__ring--b {
    right: 6%;
    top: -8%;
    width: min(40vw, 440px);
    aspect-ratio: 1;
    border-color: rgba(255, 255, 255, .14);
}

.mission__ring--b::after {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .1);
}

/* ---------- Eyebrow ---------- */
.mission--anim .mission__eyebrow {
    opacity: 0;
    transform: translate3d(-14px, 0, 0);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.mission--anim.is-in .mission__eyebrow {
    opacity: 1;
    transform: none;
}

/* ---------- Mission sentence: words rise out of a mask ---------- */
.mission__q .w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    /* padding so descenders (g, y, p) are not clipped by the mask */
    padding-bottom: .12em;
    margin-bottom: -.12em;
}

.mission__q .w__i {
    display: inline-block;
}

.mission--anim .mission__q .w__i {
    opacity: 0;
    transform: translate3d(0, 105%, 0);
}

.mission--anim.is-in .mission__q .w__i {
    opacity: 1;
    transform: none;
    transition: transform .9s var(--ease) var(--d, 0ms), opacity .6s ease var(--d, 0ms);
}

/* ---------- Values: gold line draws, number + title slide up ---------- */
.mvalues li {
    position: relative;
    border-top: 0;
    padding-top: 20px;
    overflow: hidden;
}

.mvalues li::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: rgba(255, 255, 255, .25);
}

.mvalues li::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-soft));
    transform: scaleX(0);
    transform-origin: left center;
}

.mvalues li b {
    display: block;
    font-weight: 400;
}

.mission--anim .mvalues li span,
.mission--anim .mvalues li b {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
}

.mission--anim.is-in .mvalues li::after {
    animation: mLine 1.3s var(--ease) calc(.9s + var(--k) * 140ms) both;
}

.mission--anim.is-in .mvalues li span,
.mission--anim.is-in .mvalues li b {
    opacity: 1;
    transform: none;
    transition: opacity .7s var(--ease) calc(1s + var(--k) * 140ms),
        transform .8s var(--ease) calc(1s + var(--k) * 140ms);
}

.mission--anim.is-in .mvalues li b {
    transition-delay: calc(1.1s + var(--k) * 140ms);
}

/* gold line draws to full width, then rests as a short accent */
@keyframes mLine {
    0% {
        transform: scaleX(0);
    }

    60% {
        transform: scaleX(1);
    }

    100% {
        transform: scaleX(.28);
    }
}

/* Hover (desktop only, after the intro has finished) */
@media (hover: hover) {
    .mission--anim.is-done .mvalues li::after {
        animation: none;
        transform: scaleX(.28);
        transition: transform .5s var(--ease);
    }

    .mission--anim.is-done .mvalues li:hover::after {
        transform: scaleX(1);
    }

    .mission--anim.is-done .mvalues li b {
        transition: transform .4s var(--ease), color .3s;
        transition-delay: 0s;
    }

    .mission--anim.is-done .mvalues li:hover b {
        transform: translate3d(6px, 0, 0);
        color: var(--gold-soft);
    }
}

/* ---------- Ambient motion: only while the section is on screen ---------- */
.mission.is-live .mission__ring--a {
    animation: mSpin 46s linear infinite;
}

.mission.is-live .mission__ring--b {
    animation: mSpin 30s linear infinite reverse;
}

.mission.is-live .mission__glow {
    animation: mGlow 9s ease-in-out infinite alternate;
}

@keyframes mSpin {
    to {
        transform: translate3d(0, 0, 0) rotate(360deg);
    }
}

@keyframes mGlow {
    to {
        transform: translate3d(-4%, 6%, 0) scale(1.08);
    }
}

/* ---------- Phones ---------- */
@media (max-width: 700px) {
    .mission__glow {
        right: -30%;
        width: 110vw;
    }

    .mission__ring--a {
        right: -40%;
        top: -14%;
        width: 120vw;
    }

    .mission__ring--b {
        display: none;
    }

    .mission--anim.is-in .mission__q .w__i {
        transition-duration: .75s, .5s;
    }

    .mission--anim.is-in .mvalues li::after {
        animation-delay: calc(.6s + var(--k) * 110ms);
    }

    .mission--anim.is-in .mvalues li span,
    .mission--anim.is-in .mvalues li b {
        transition-delay: calc(.7s + var(--k) * 110ms);
    }

    .mission--anim.is-in .mvalues li b {
        transition-delay: calc(.8s + var(--k) * 110ms);
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {

    .mission--anim .mission__eyebrow,
    .mission--anim .mission__q .w__i,
    .mission--anim .mvalues li span,
    .mission--anim .mvalues li b {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .mvalues li::after {
        transform: scaleX(.28);
        animation: none !important;
    }

    .mission.is-live .mission__ring,
    .mission.is-live .mission__glow {
        animation: none;
    }
}

/* =========================================================
   Rendering performance
   Sections far below the fold are not laid out or painted until they are
   close to the viewport. The size hint avoids scrollbar jumps; the browser
   remembers the real size after the first render ("auto").
   Not applied to #clients: script.js measures the logo lanes at load.
   ========================================================= */
#hospitality {
    content-visibility: auto;
    contain-intrinsic-size: auto 1200px;
}

#upcoming {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
}

/* Phones / touch: render these sections normally. The size estimate above is wrong on
   small screens, so the page height would change mid-scroll and feel like a jump. */
@media (max-width: 900px), (hover: none) {

    #hospitality,
    #upcoming {
        content-visibility: visible;
        contain-intrinsic-size: none;
    }
}

/* =========================================================
   MOBILE SCROLL SMOOTHNESS
   - Moving layers get their own compositor layer, so scrolling does not repaint them
   - Heavy decorative effects are lighter on phones
   ========================================================= */
.clane {
    contain: layout paint;
}

.clane__view {
    transform: translateZ(0);
}

.mission.is-live .mission__ring,
.mission.is-live .mission__glow {
    will-change: transform;
}

@media (max-width: 900px), (hover: none) {

    /* Reveal: the browser only needs to prepare the layer shortly before it animates */
    .js .reveal:not(.is-in) {
        will-change: opacity, transform;
    }

    .js .reveal.is-in {
        will-change: auto;
    }

    /* Soft shadows on large moving blocks are expensive to repaint on phones */
    :root[data-theme="light"] .step {
        box-shadow: 0 6px 14px rgba(46, 6, 13, .16);
    }

    .vtag::before {
        animation: none;
    }

    /* Big decorative glow: keep it static on phones */
    .mission.is-live .mission__glow {
        animation: none;
    }
}