/*
 * Small design additions (2026-11). Loaded after dist/main.css.
 *
 * Tinted patterns: the shape patterns beside a project row take that project's
 * colour (set inline as --pattern-color) instead of the fixed uxactly blue, so a
 * green or purple project does not sit next to blue shapes. Same shapes, sizes
 * and positions; only the colour follows the project.
 */
.Pattern--tinted {
    background-image: none !important;
}

.Pattern--tinted::before {
    content: "";
    position: absolute;
    inset: 0;
    /* a darker shade of the project colour, so the shapes stay visible where they overlap the
       solid colour block of the same project (fallback: the project colour itself) */
    background-color: var(--pattern-color, #0552fe);
    background-color: color-mix(in oklab, var(--pattern-color, #0552fe) 65%, #000031);
    -webkit-mask-repeat: repeat;
    mask-repeat: repeat;
}

/*
 * Project filter chips: buttons with the filter-chip look below (shared with the home Workflow filter).
 */
.PortfolioFilter {
    display: flex;
    margin-bottom: 2.5rem;
}
/* the native button styling is reset; the look comes from the filter chips below */
.PortfolioFilter__chip {
    font: inherit;
    line-height: inherit;
    border: 0;
    cursor: pointer;
}

/*
 * Filter chips (projects filter + the Workflow filter on the home page), in the site's playful voice:
 * outlined pills, each led by one of uxactly's own glyphs (circle, cross, triangle, slash – the shapes
 * that float around the heroes), the chosen one in the call-to-action gradient with its glow. The glyph
 * spins on hover, the pill lifts. Tags inside project rows keep their quiet look.
 */
:is(.PortfolioFilter, .ProcessFilter__nav) {
    display: flex; flex-wrap: wrap; gap: .75rem;
}
:is(.PortfolioFilter, .ProcessFilter__nav) .Tags__item {
    --chip-ink: #000031; --chip-line: rgba(0, 0, 49, .14); --chip-glyph: #0552fe;
    display: inline-flex; align-items: center; gap: .6rem;
    height: 3rem; margin: 0; padding: 0 1.35rem 0 1.05rem;
    border-radius: 999px;
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--chip-line);
    color: var(--chip-ink);
    font-size: 1rem; font-weight: 700; letter-spacing: -.005em; white-space: nowrap;
    cursor: pointer;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s, background .2s, color .2s;
}
:is(.PortfolioFilter, .ProcessFilter__nav) .Tags__item::before {
    content: ""; flex: none; width: .95rem; height: .95rem;
    background: var(--chip-glyph);
    -webkit-mask: var(--chip-shape) center / contain no-repeat; mask: var(--chip-shape) center / contain no-repeat;
    transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background .2s;
}
:is(.PortfolioFilter, .ProcessFilter__nav) .Tags__item:nth-child(4n + 1) { --chip-shape: url(img/circle.svg); }
:is(.PortfolioFilter, .ProcessFilter__nav) .Tags__item:nth-child(4n + 2) { --chip-shape: url(img/cross.svg); }
:is(.PortfolioFilter, .ProcessFilter__nav) .Tags__item:nth-child(4n + 3) { --chip-shape: url(img/diamond.svg); }
:is(.PortfolioFilter, .ProcessFilter__nav) .Tags__item:nth-child(4n + 4) { --chip-shape: url(img/slash.svg); }
:is(.PortfolioFilter, .ProcessFilter__nav) .Tags__item:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px #0552fe; }
:is(.PortfolioFilter, .ProcessFilter__nav) .Tags__item:hover::before { transform: rotate(90deg) scale(1.1); }
:is(.PortfolioFilter, .ProcessFilter__nav) .Tags__item:focus-visible { outline: 3px solid #0552fe; outline-offset: 3px; }
:is(.PortfolioFilter, .ProcessFilter__nav) .Tags__item.Tags__item--active {
    --chip-ink: #fff; --chip-glyph: #fff;
    background: linear-gradient(135deg, #0552fe, #5c3dfe 55%, #992dfe);
    box-shadow: 0 .5rem 1.4rem rgba(5, 82, 254, .32);
}
:is(.PortfolioFilter, .ProcessFilter__nav) .Tags__item--active::before { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
    :is(.PortfolioFilter, .ProcessFilter__nav) .Tags__item,
    :is(.PortfolioFilter, .ProcessFilter__nav) .Tags__item::before { transition: none; transform: none !important; }
}
/* phones: one row you can swipe, fading out at the edge, instead of a wrapped block */
@media only screen and (max-width: 599px) {
    :is(.PortfolioFilter, .ProcessFilter__nav) {
        flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
        padding: .25rem 2.5rem .9rem 0;
        scroll-snap-type: x proximity;
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent);
        mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent);
    }
    :is(.PortfolioFilter, .ProcessFilter__nav)::-webkit-scrollbar { display: none; }
    :is(.PortfolioFilter, .ProcessFilter__nav) .Tags__item { scroll-snap-align: start; height: 2.75rem; font-size: .9375rem; }
}

/* a filter that leaves only grid cards: no empty band between the chips and the grid */
.PortfolioList--filteredEmpty { margin-bottom: 2.5rem !important; }
.PortfolioList--filteredEmpty ~ .PortfolioOthers .BlockHeader { margin-bottom: 0 !important; }
.PortfolioFilter__chip[hidden],
.PortfolioList [data-group][hidden],
.PortfolioOthers [data-group][hidden],
.PortfolioList[hidden],
.PortfolioOthers[hidden] {
    display: none !important;
}

/*
 * Project grid cards (PortfolioOthers, 2026-11). Same structure and offsets as before (title, tags and text
 * centred on the image); only the effect changes. Instead of a flat 60% wash in the project colour, one
 * neutral, softly blurred navy scrim lets the screenshot show through behind the white text. On hover the
 * scrim clears and the image zooms gently.
 * Scroll parallax is off for this grid (PortfolioOthers.php): its growing per-card speed made cards slide
 * over each other on long pages and phones.
 */
.PortfolioOthers--cards .PortfolioOthers__item { transform: none !important; }

/* every frame keeps its own shape, so the filter can switch cards between half and full width */
.PortfolioOthers--cards .PortfolioOthers__image {
    background-color: var(--card-color, #0552fe);
    aspect-ratio: 1568 / 960;
}
.PortfolioOthers--cards .PortfolioOthers__box--wide .PortfolioOthers__image { aspect-ratio: auto; }
.PortfolioOthers--cards .PortfolioOthers__image .Picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%; /* the theme's .Picture is height: 0 with a padding-top ratio */
    padding-top: 0 !important;
}
.PortfolioOthers--cards .PortfolioOthers__image .Picture__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

/* milk glass at rest: the whole card is frosted in the project colour (backdrop blur + a translucent tint of
   the unmixed hue + a faint milky sheen), white text directly on it, no panel; the screenshot shows through
   as soft shapes. On hover the glass clears to the sharp screenshot. */
.PortfolioOthers--cards .PortfolioOthers__imageOverlay {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 60%),
        color-mix(in srgb, var(--card-color, #0552fe) 66%, transparent) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    backdrop-filter: blur(18px) saturate(1.35);
    transition: opacity .45s ease;
}
.PortfolioOthers--cards .PortfolioOthers__content {
    padding: 6%;
    text-shadow: 0 1px 2px rgba(0, 0, 49, .3);
    transition: opacity .35s ease;
}
.PortfolioOthers--cards .PortfolioOthers__content .Tags__item { text-shadow: none; }
.PortfolioOthers--cards .PortfolioOthers__link:hover .PortfolioOthers__content { transform: none; }

.PortfolioOthers--cards .PortfolioOthers__link:focus-visible {
    outline: 3px solid #0552fe;
    outline-offset: 6px;
    border-radius: 1.875rem;
}
/* keyboard users get the same reveal as mouse users */
.PortfolioOthers--cards .PortfolioOthers__link:focus-visible .PortfolioOthers__content,
.PortfolioOthers--cards .PortfolioOthers__link:focus-visible .PortfolioOthers__imageOverlay { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
    .PortfolioOthers--cards .PortfolioOthers__link:hover .Picture__image,
    .PortfolioOthers--cards .PortfolioOthers__link:focus-visible .Picture__image {
        transform: scale(1.04);
    }
}
/* phones: the image is too small to carry the text, so it sits plainly under the image (no scrim, no box) */
@media (max-width: 599px) {
    /* phones: a progressive milk-glass fade from the bottom-left corner (frosted + tinted there, clear
       towards the top right), so the card keeps its colour and depth without hiding the screenshot */
    .PortfolioOthers--cards .PortfolioOthers__imageOverlay,
    .PortfolioOthers--cards .PortfolioOthers__link:hover .PortfolioOthers__imageOverlay {
        display: block;
        opacity: 1;
        background:
            linear-gradient(20deg, color-mix(in srgb, var(--card-color, #0552fe) 62%, transparent) 0%, color-mix(in srgb, var(--card-color, #0552fe) 28%, transparent) 38%, transparent 70%) !important;
        -webkit-backdrop-filter: blur(10px) saturate(1.3);
        backdrop-filter: blur(10px) saturate(1.3);
        -webkit-mask-image: linear-gradient(20deg, #000 0%, rgba(0, 0, 0, .85) 25%, rgba(0, 0, 0, .35) 50%, transparent 72%);
        mask-image: linear-gradient(20deg, #000 0%, rgba(0, 0, 0, .85) 25%, rgba(0, 0, 0, .35) 50%, transparent 72%);
    }
    .PortfolioOthers--cards .PortfolioOthers__content,
    .PortfolioOthers--cards .PortfolioOthers__link:hover .PortfolioOthers__content {
        position: static;
        display: block;
        padding: 1rem .25rem 0;
        color: #000031; /* site text colour, not the link blue */
        text-align: left;
        text-shadow: none;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
    .PortfolioOthers--cards .PortfolioOthers__content h3 { font-size: 1.625rem; margin: 0 0 .375rem; }
    .PortfolioOthers--cards .PortfolioOthers__content .Tags { justify-content: flex-start; }
    .PortfolioOthers--cards .PortfolioOthers__content p { font-size: .9375rem; line-height: 1.55; margin-bottom: 0; }
    .PortfolioOthers--cards .PortfolioOthers__item { margin-bottom: 3rem; }
}
/* browsers without backdrop-filter: a stronger tint keeps the text readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .PortfolioOthers--cards .PortfolioOthers__imageOverlay {
        background: color-mix(in srgb, var(--card-color, #0552fe) 85%, transparent) !important;
    }
}

/* the pattern element itself is absolutely positioned in project rows; give the ::before a box */
.Pattern--tinted { overflow: hidden; }
.Pattern--tinted:not(.TextSlideshow__pattern) { position: relative; }

.Pattern--tinted.Pattern--mix::before {
    -webkit-mask-image: url(img/mixed-pattern.svg); mask-image: url(img/mixed-pattern.svg);
    -webkit-mask-size: 8.9375rem 4.625rem; mask-size: 8.9375rem 4.625rem;
}
.Pattern--tinted.Pattern--x::before {
    -webkit-mask-image: url(img/cross-pattern.svg); mask-image: url(img/cross-pattern.svg);
    -webkit-mask-size: 1.75rem 1.75rem; mask-size: 1.75rem 1.75rem;
}
.Pattern--tinted.Pattern--\/::before {
    -webkit-mask-image: url(img/slash-pattern.svg); mask-image: url(img/slash-pattern.svg);
    -webkit-mask-size: 1.75rem 1.75rem; mask-size: 1.75rem 1.75rem;
}
.Pattern--tinted.Pattern--o::before {
    -webkit-mask-image: url(img/circle-pattern.svg); mask-image: url(img/circle-pattern.svg);
    -webkit-mask-size: 1.75rem 1.75rem; mask-size: 1.75rem 1.75rem;
}
.Pattern--tinted.Pattern--▽::before {
    -webkit-mask-image: url(img/diamond-pattern.svg); mask-image: url(img/diamond-pattern.svg);
    -webkit-mask-size: 2.1875rem 2.1875rem; mask-size: 2.1875rem 2.1875rem;
}

/* ---- phones: contact block and footer, adapted from the desktop layout ---- */
@media only screen and (max-width: 767px) {
    /* contact: the photo keeps still (its parallax pushed it up into the Send button on long pages) */
    .Contact [data-speed] { transform: none !important; }
    /* the name card overlaps the photo's lower edge as it does on desktop, instead of loose large text */
    .Contact .Contact__description {
        top: auto; bottom: -1.75rem; left: calc(50% - 3.5rem); right: auto;
        max-width: calc(50% + 3.5rem - 4%);
        padding: .875rem 1.125rem;
        background-color: #fff;
        box-shadow: .1875rem .1875rem 1.25rem rgba(0, 0, 49, .16);
        font-size: .9375rem; line-height: 1.5;
    }
    .Contact .Contact__description :is(p, h1, h2, h3, h4, strong, b) { margin: 0; font-size: inherit; line-height: inherit; }
    .Contact .Contact__description strong { font-size: 1rem; }
    .Contact .Contact__photo { margin-bottom: 2.5rem; }

    /* footer: the diagonal stays as the band's top edge, the content sits on solid navy below it
       (in the 130px band the links wrapped onto the light part and the Appearance button was squeezed) */
    .Footer__navigation {
        height: auto; padding-top: 4.5rem;
        background: linear-gradient(to bottom, transparent 4.5rem, #0a112a 4.5rem), rgba(5, 82, 254, .1);
    }
    .Footer__navigation::before { bottom: auto; height: calc(4.5rem + 1px); }
    .Footer__navigationContainer {
        position: relative; bottom: auto;
        display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo appearance" "nav nav";
        align-items: center; row-gap: 1.25rem;
        padding-top: .25rem; padding-bottom: 2rem;
    }
    .Footer__navigationContainer .Logo--footer { grid-area: logo; margin: 0; }
    .Footer__navigationContainer .Appearance--footer { grid-area: appearance; margin: 0; }
    .Footer__navigationContainer .Navigation--footer { grid-area: nav; margin: 0; }
    .Appearance--footer .ds-button { white-space: nowrap; }
}

/* ---- hero type: a poster feel through size and contrast only (same layout, fonts and colours) ----
   the headline grows with the window and sits tighter; the line under it gets calmer, so the two read
   as headline and caption instead of two similar sizes */
.Intro h1,
.HeroText h1 {
    letter-spacing: -.035em;
    line-height: .96;
    text-wrap: balance;
}
.Intro h1 { font-size: clamp(3rem, calc(6.6vw + 1.5rem), 8.5rem); } /* never smaller than today at any width */
/* the slogan's gradient is painted inside its text box only; let that box reach below the baseline so
   descenders (the g in design, the p and y in play) are never cut, without changing the spacing */
.Intro h1 .Intro__highlight { padding-bottom: .2em; margin-bottom: -.2em; padding-top: .06em; margin-top: -.06em; }
.HeroText h1 { font-size: clamp(2.75rem, calc(6vw + 1.5rem), 7rem); }
.Intro .BlockHeader__description p {
    margin-top: .9em;
    font-size: clamp(1.25rem, 2.1vw, 1.875rem);
    line-height: 1.4;
    text-wrap: balance;
}
.HeroText .BlockHeader__description p {
    margin-top: 1.1em;
    font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
    line-height: 1.5;
}
