/* =========================================================
   YXE WEB STUDIOS — INDEX / HOMEPAGE
   Rewritten page-specific stylesheet

   Keep global:
   - typography / buttons / containers in style.css
   - ambient background in background.css
   - page-specific styles for the homepage here

   This file intentionally contains ONLY homepage components.
   ========================================================= */


/* =========================================================
   01 — HERO
   ========================================================= */

.hero-new {
    position: relative;
    min-height: calc(100vh - 82px);
    min-height: 760px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: 72px 0 88px;
}

.hero-new .container {
    position: relative;
    z-index: 5;
    width: min(1440px, calc(100% - 48px));
    margin-inline: auto;
}

.hero-new-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    align-items: center;
    gap: clamp(36px, 5vw, 88px);
}

.hero-intro {
    position: relative;
    z-index: 4;
    max-width: 720px;
}

.hero-new .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: #159cff;
    font-family: "Exo 2", sans-serif;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-new .eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    flex: 0 0 32px;
    background: #159cff;
    box-shadow: 0 0 12px rgba(21,156,255,.75);
}

.hero-new h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(3rem, 5vw, 5.45rem);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.065em;
    text-wrap: balance;
}

.hero-new h1 .gradient-text {
    display: block;
    margin-top: .04em;
    background: linear-gradient(
        105deg,
        #fff 0%,
        #a9caff 34%,
        #168cff 70%,
        #00d9ff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-new-copy {
    max-width: 610px;
    margin: 30px 0 0;
    color: rgba(205,220,242,.78);
    font-family: "Exo 2", sans-serif;
    font-size: 1.02rem;
    line-height: 1.78;
}

.hero-new-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 34px;
}

.hero-new-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.hero-text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #dce8f8;
    font-family: "Exo 2", sans-serif;
    font-size: .94rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .25s ease, transform .25s ease;
}

.hero-text-link span {
    color: #159cff;
    transition: transform .25s ease;
}

.hero-text-link:hover {
    color: #fff;
}

.hero-text-link:hover span {
    transform: translateX(5px);
}


/* =========================================================
   HERO VISUAL
   Important:
   The image is NOT inside a card or bordered frame.
   Both old and new wrapper class names are supported.
   ========================================================= */

.hero-visual {
    position: relative;
    width: 100%;
    min-width: 0;
    justify-self: end;
    z-index: 2;
    padding: 0;
}

.hero-visual-glow {
    position: absolute;
    width: 82%;
    height: 82%;
    top: 9%;
    left: 9%;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(0,140,255,.28) 0%,
            rgba(0,100,255,.12) 35%,
            transparent 72%
        );
    filter: blur(55px);
    pointer-events: none;
    z-index: -1;
}

/* New wrapper used by the current index.php */
.hero-visual-frame,
/* Older wrapper kept compatible */
.hero-visual-image {
    position: relative;
    width: min(100%, 790px);
    margin-left: auto;
    overflow: visible;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    transform: translateX(2%);
}

/* Atmospheric glow behind the artwork */
.hero-visual-frame::after,
.hero-visual-image::after {
    content: "";
    position: absolute;
    inset: 10% 8% 6%;
    z-index: -1;
    border-radius: 50%;
    background: rgba(0,112,255,.17);
    filter: blur(65px);
    pointer-events: none;
}

/* Image itself — no card styling */
.hero-visual-frame img,
.hero-visual-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    border: 0 !important;
    outline: 0;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    object-fit: contain;
    filter:
        saturate(1.08)
        contrast(1.04)
        drop-shadow(0 30px 65px rgba(0,0,0,.42))
        drop-shadow(0 0 35px rgba(0,125,255,.16));
    transform: translateZ(0);
    transition: transform .45s ease, filter .45s ease;
}

.hero-visual:hover .hero-visual-frame img,
.hero-visual:hover .hero-visual-image img {
    transform: translateY(-5px) translateZ(0);
    filter:
        saturate(1.1)
        contrast(1.05)
        drop-shadow(0 36px 75px rgba(0,0,0,.48))
        drop-shadow(0 0 48px rgba(0,140,255,.22));
}

.hero-visual-caption {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
    padding-right: 4%;
    color: rgba(210,224,244,.56);
    font-family: "Exo 2", sans-serif;
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .17em;
}

.hero-caption-line,
.hero-visual-caption span {
    width: 28px;
    height: 1px;
    flex: 0 0 28px;
    background: #159cff;
    box-shadow: 0 0 10px rgba(21,156,255,.7);
}


/* =========================================================
   02 — SHARED STORY SECTIONS
   ========================================================= */

.story-section,
.story-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-top: 1px solid rgba(255,255,255,.035);
}

.story-section {
    min-height: 820px;
    display: flex;
    align-items: center;
}

.story-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse 55% 55% at 15% 50%,
            rgba(59,130,246,.055),
            transparent 70%
        ),
        radial-gradient(
            ellipse 45% 60% at 85% 20%,
            rgba(29,78,216,.045),
            transparent 72%
        );
}

.story-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(1,4,9,.22),
            transparent 25%,
            transparent 75%,
            rgba(1,4,9,.24)
        );
}

.story-section .container,
.story-cta .container {
    position: relative;
    z-index: 5;
}

.story-number {
    position: absolute;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    color: rgba(255,255,255,.018);
    font-family: "Orbitron", sans-serif;
    font-size: clamp(12rem, 25vw, 28rem);
    font-weight: 700;
    line-height: .75;
    letter-spacing: -.09em;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.story-intro .story-number,
.story-difference .story-number {
    right: -40px;
}

.story-services .story-number,
.story-work .story-number,
.story-client .story-number {
    left: -40px;
}

.story-row {
    position: relative;
    width: 100%;
    min-height: 620px;
    display: flex;
    align-items: center;
}

.story-row-left {
    justify-content: flex-start;
}

.story-row-right {
    justify-content: flex-end;
}

.story-copy {
    position: relative;
    z-index: 5;
    width: min(650px, 100%);
}

.story-row-right .story-copy {
    margin-left: auto;
}

.story-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: #5fa3ff;
    font-family: "Exo 2", sans-serif;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.story-kicker::before {
    content: "";
    width: 31px;
    height: 1px;
    flex: 0 0 31px;
    background: linear-gradient(90deg, #2563eb, #69a8ff);
    box-shadow: 0 0 10px rgba(59,130,246,.7);
}

.story-copy h2,
.story-services-copy h2,
.work-showcase-header h2,
.story-cta h2 {
    margin: 0;
    color: #fff;
    font-family: "Orbitron", sans-serif;
    font-weight: 700;
    letter-spacing: -.065em;
    line-height: .99;
    text-wrap: balance;
}

.story-copy h2,
.story-services-copy h2 {
    max-width: 720px;
    font-size: clamp(3rem, 5.3vw, 5.8rem);
}

.story-copy p,
.story-services-copy p {
    max-width: 610px;
    margin: 30px 0 0;
    color: rgba(255,255,255,.78);
    font-family: "Exo 2", sans-serif;
    font-size: clamp(.96rem, 1.1vw, 1.08rem);
    line-height: 1.8;
}

.story-copy p + p {
    margin-top: 17px;
}

.story-line {
    position: absolute;
    width: 720px;
    height: 1px;
    z-index: 1;
    opacity: .75;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(59,130,246,.22),
            rgba(117,176,255,.55),
            rgba(59,130,246,.16),
            transparent
        );
    box-shadow:
        0 0 12px rgba(59,130,246,.35),
        0 0 35px rgba(29,78,216,.18);
    pointer-events: none;
}

.story-line-left {
    right: -190px;
    top: 34%;
    transform: rotate(-24deg);
}

.story-line-right {
    left: -190px;
    bottom: 30%;
    transform: rotate(23deg);
}


/* =========================================================
   03 — INTRO / IDEA
   ========================================================= */

.story-intro {
    min-height: 720px;
}

.story-intro .story-copy {
    max-width: 680px;
}


/* =========================================================
   04 — SERVICES
   ========================================================= */

.story-services {
    min-height: 880px;
}

.story-services-layout {
    display: grid;
    grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr);
    align-items: center;
    gap: clamp(55px,8vw,120px);
    min-height: 680px;
}

.story-services-list-wrap {
    width: min(560px,100%);
}

.story-services-copy {
    width: min(680px,100%);
    margin-left: auto;
}

.story-service-list {
    width: 100%;
    margin-top: 48px;
    border-top: 1px solid rgba(255,255,255,.10);
}

.story-service-list a {
    position: relative;
    display: grid;
    grid-template-columns: 45px minmax(0,1fr) 30px;
    align-items: center;
    gap: 16px;
    min-height: 68px;
    padding: 0 8px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #fff;
    text-decoration: none;
    transition:
        background .3s ease,
        padding .3s ease,
        border-color .3s ease;
}

.story-service-list a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,transparent,#3b82f6,transparent);
    box-shadow: 0 0 12px rgba(59,130,246,.8);
    opacity: 0;
    transition: opacity .3s ease;
}

.story-service-list a:hover {
    padding-left: 18px;
    background: linear-gradient(90deg,rgba(29,78,216,.10),transparent 70%);
    border-color: rgba(59,130,246,.22);
}

.story-service-list a:hover::before {
    opacity: 1;
}

.story-service-list span {
    color: rgba(255,255,255,.32);
    font-family: "Orbitron", sans-serif;
    font-size: .62rem;
    letter-spacing: .1em;
}

.story-service-list strong {
    color: #fff;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(.75rem,1vw,.9rem);
    font-weight: 600;
}

.story-service-list b {
    color: #5fa3ff;
    font-size: .95rem;
    font-weight: 400;
    text-align: right;
    transition: color .25s ease, transform .25s ease;
}

.story-service-list a:hover b {
    color: #fff;
    transform: translate(3px,-3px);
}


/* =========================================================
   05 — SELECTED WORK / PORTFOLIO
   =========================================================
   This section is intentionally kept complete because it is
   homepage portfolio content, not a separate portfolio page.
   ========================================================= */

.story-work {
    position: relative;
    min-height: 1000px;
    padding: 120px 0;
}

.work-showcase-header {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(300px,.55fr);
    align-items: end;
    gap: 60px;
    margin-bottom: 70px;
}

.work-showcase-header h2 {
    font-size: clamp(3.1rem,5.2vw,5.7rem);
}

.work-showcase-intro {
    max-width: 430px;
    margin-left: auto;
}

.work-showcase-intro p {
    margin: 0 0 24px;
    color: rgba(255,255,255,.66);
    font-family: "Exo 2", sans-serif;
    font-size: .98rem;
    line-height: 1.75;
}

.story-text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #dce8f8;
    font-family: "Exo 2", sans-serif;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .25s ease;
}

.story-text-link span {
    color: #5fa3ff;
    transition: transform .25s ease;
}

.story-text-link:hover {
    color: #fff;
}

.story-text-link:hover span {
    transform: translateX(5px);
}




/* Bottom portfolio navigation */
.work-showcase-bottom {
    display: grid;
    grid-template-columns: auto minmax(40px,1fr) auto auto;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    color: rgba(255,255,255,.38);
    font-family: "Exo 2", sans-serif;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .18em;
}

.work-showcase-line {
    height: 1px;
    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.06),
            rgba(59,130,246,.38)
        );
}

.work-showcase-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7eb4ff;
    text-decoration: none;
    transition: color .25s ease;
}

.work-showcase-all span {
    transition: transform .25s ease;
}

.work-showcase-all:hover {
    color: #fff;
}

.work-showcase-all:hover span {
    transform: translate(3px,-3px);
}


/* =========================================================
   06 — DIFFERENCE
   ========================================================= */

.story-difference {
    min-height: 850px;
}

.story-principles {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
    max-width: 650px;
    margin-top: 42px;
}

.story-principles div {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 18px 16px;
    border-top: 1px solid rgba(96,165,250,.22);
    background:
        linear-gradient(
            145deg,
            rgba(20,43,76,.18),
            rgba(3,8,15,.12)
        );
}

.story-principles strong {
    color: #5fa3ff;
    font-family: "Orbitron", sans-serif;
    font-size: .62rem;
    letter-spacing: .12em;
}

.story-principles span {
    color: rgba(255,255,255,.72);
    font-family: "Exo 2", sans-serif;
    font-size: .82rem;
    line-height: 1.45;
}

.story-large-word {
    position: absolute;
    right: -30px;
    bottom: -18px;
    color: rgba(255,255,255,.018);
    font-family: "Orbitron", sans-serif;
    font-size: clamp(7rem,18vw,18rem);
    font-weight: 700;
    letter-spacing: -.08em;
    line-height: .8;
    pointer-events: none;
    user-select: none;
}


/* =========================================================
   07 — CLIENT TESTIMONIAL
   ========================================================= */

.story-client {
    min-height: 760px;
}

.story-client-copy {
    max-width: 700px;
}

.story-quote-mark {
    margin: -10px 0 5px;
    color: #159cff;
    font-family: Georgia, serif;
    font-size: 7rem;
    line-height: .65;
    text-shadow: 0 0 30px rgba(21,156,255,.22);
}

.story-client blockquote {
    max-width: 700px;
    margin: 0;
    color: #fff;
    font-family: "Exo 2", sans-serif;
    font-size: clamp(1.5rem,2.4vw,2.25rem);
    font-weight: 400;
    line-height: 1.35;
}

.story-client-name {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.story-client-name > span {
    width: 30px;
    height: 1px;
    flex: 0 0 30px;
    background: #159cff;
    box-shadow: 0 0 10px rgba(21,156,255,.7);
}

.story-client-name strong,
.story-client-name small {
    display: block;
}

.story-client-name strong {
    color: #fff;
    font-family: "Orbitron", sans-serif;
    font-size: .72rem;
    letter-spacing: .08em;
}

.story-client-name small {
    margin-top: 5px;
    color: rgba(255,255,255,.4);
    font-family: "Exo 2", sans-serif;
    font-size: .68rem;
}


/* =========================================================
   08 — FINAL CTA
   ========================================================= */

.story-cta {
    min-height: 620px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,.05);
}

.story-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(
            circle at 75% 50%,
            rgba(37,99,235,.18),
            transparent 42%
        );
    pointer-events: none;
}

.story-cta-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(280px,.55fr);
    align-items: end;
    gap: 70px;
}

.story-cta h2 {
    max-width: 800px;
    font-size: clamp(3.2rem,6vw,6.4rem);
}

.story-cta-action {
    max-width: 400px;
    margin-left: auto;
}

.story-cta-action p {
    margin: 0 0 28px;
    color: rgba(255,255,255,.62);
    font-family: "Exo 2", sans-serif;
    font-size: 1rem;
    line-height: 1.75;
}

.story-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #fff;
    font-family: "Orbitron", sans-serif;
    font-size: .86rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
}

.story-cta-link span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(75,155,255,.5);
    border-radius: 50%;
    color: #159cff;
    transition:
        transform .25s ease,
        background .25s ease,
        color .25s ease;
}

.story-cta-link:hover span {
    transform: translate(3px,-3px);
    background: #159cff;
    color: #03101e;
}


/* =========================================================
   09 — GENERAL HOMEPAGE SAFETY
   ========================================================= */

/* Prevent long headings, images or links from forcing a
   horizontal scrollbar on unusual viewport sizes. */

.hero-new *,
.story-section *,
.story-cta *,
.work-project-card {
    max-width: 100%;
}

.hero-new img,
.story-section img,
.story-cta img {
    max-width: 100%;
}


/* =========================================================
   10 — TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .hero-new {
        min-height: auto;
        padding: 95px 0 85px;
    }

    .hero-new-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-intro {
        max-width: 780px;
    }

    .hero-visual {
        width: min(100%,900px);
        justify-self: center;
    }

    .hero-visual-frame,
    .hero-visual-image {
        margin-inline: auto;
        transform: none;
    }

    .story-services-layout,
    .story-cta-row {
        grid-template-columns: 1fr;
    }

    .story-services-copy,
    .story-cta-action {
        margin-left: 0;
    }

    .work-showcase-header {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .work-showcase-intro {
        margin-left: 0;
    }
}


/* =========================================================
   11 — TABLET / SMALL LAPTOP
   ========================================================= */

@media (max-width: 800px) {

    .hero-new .container {
        width: min(100% - 36px,700px);
    }

    .hero-new {
        padding: 75px 0 70px;
    }

    .hero-new h1 {
        font-size: clamp(2.8rem,9vw,4.8rem);
    }

    .hero-new-copy {
        max-width: 650px;
    }

    .story-section {
        min-height: auto;
        padding: 110px 0;
    }

    .story-row {
        min-height: auto;
    }

    .story-number {
        top: 80px;
        transform: none;
        font-size: clamp(8rem,28vw,15rem);
    }

    .story-intro .story-number,
    .story-difference .story-number {
        right: -25px;
    }

    .story-services .story-number,
    .story-work .story-number,
    .story-client .story-number {
        left: -25px;
    }

    .story-services-layout {
        min-height: auto;
        gap: 70px;
    }

    .work-project-grid {
        grid-template-columns: 1fr;
    }

    .work-project-saskpoker {
        grid-column: auto;
    }

    .work-project-saskpoker .work-project-image,
    .work-project-image {
        aspect-ratio: 16 / 10;
    }

    .work-showcase-bottom {
        grid-template-columns: 1fr auto;
        gap: 14px;
    }

    .work-showcase-line {
        display: none;
    }

    .work-showcase-bottom > span:nth-of-type(2) {
        display: none;
    }

    .story-principles {
        grid-template-columns: 1fr;
    }

    .story-cta {
        min-height: auto;
        padding: 110px 0;
    }
}


/* =========================================================
   12 — MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .hero-new .container {
        width: min(100% - 28px,520px);
    }

    .hero-new {
        padding: 62px 0 58px;
    }

    .hero-new .eyebrow {
        margin-bottom: 19px;
        font-size: .61rem;
        letter-spacing: .14em;
    }

    .hero-new h1 {
        max-width: 100%;
        font-size: clamp(2.55rem,11vw,4rem);
        line-height: .94;
        letter-spacing: -.055em;
    }

    .hero-new-copy {
        margin-top: 24px;
        font-size: .92rem;
        line-height: 1.7;
    }

    .hero-new-actions {
        align-items: flex-start;
        gap: 18px;
        margin-top: 28px;
    }

    .hero-visual {
        width: 100%;
        padding-top: 0;
    }

    .hero-visual-frame,
    .hero-visual-image {
        width: 108%;
        margin-left: -4%;
    }

    .hero-visual-caption {
        justify-content: flex-start;
        padding-right: 0;
        font-size: .56rem;
        letter-spacing: .12em;
    }

    .story-section {
        padding: 90px 0;
    }

    .story-copy h2,
    .story-services-copy h2,
    .work-showcase-header h2,
    .story-cta h2 {
        font-size: clamp(2.55rem,11.5vw,4rem);
    }

    .story-kicker {
        margin-bottom: 21px;
        font-size: .59rem;
        letter-spacing: .17em;
    }

    .story-copy p,
    .story-services-copy p {
        margin-top: 23px;
        font-size: .92rem;
        line-height: 1.72;
    }

    .story-service-list {
        margin-top: 34px;
    }

    .story-service-list a {
        grid-template-columns: 32px minmax(0,1fr) 22px;
        min-height: 60px;
        gap: 9px;
        padding-inline: 4px;
    }

    .story-service-list strong {
        font-family: "Exo 2", sans-serif;
        font-size: .82rem;
    }

    .story-service-list a:hover {
        padding-left: 10px;
    }

    .story-work {
        padding: 90px 0;
    }

    .work-showcase-header {
        margin-bottom: 45px;
    }

    .work-project-grid {
        gap: 34px;
    }

    .work-project-details {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .work-project-view {
        font-size: .65rem;
    }

    .work-showcase-bottom {
        margin-top: 42px;
        font-size: .54rem;
    }

    .story-quote-mark {
        font-size: 5.5rem;
    }

    .story-client blockquote {
        font-size: 1.35rem;
    }

    .story-cta {
        padding: 90px 0;
    }

    .story-cta-row {
        gap: 42px;
    }
}


/* =========================================================
   13 — VERY SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .hero-new .container {
        width: min(100% - 22px,390px);
    }

    .hero-new h1 {
        font-size: clamp(2.35rem,12vw,3.4rem);
    }

    .hero-new-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-new-actions .btn {
        width: auto;
    }

    .work-project-image,
    .work-project-saskpoker .work-project-image {
        aspect-ratio: 4 / 3;
    }

    .work-project-number {
        top: 13px;
        left: 14px;
    }

    .work-project-arrow {
        top: 11px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
}


/* =========================================================
   14 — REDUCED MOTION
   ========================================================= */

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

    .hero-visual-frame img,
    .hero-visual-image img,
    .hero-text-link,
    .hero-text-link span,
    .story-text-link span,
    .story-service-list a,
    .story-service-list b,
    .work-project-image img,
    .work-project-arrow,
    .work-showcase-all span,
    .story-cta-link span {
        transition: none !important;
    }
}
/* =========================================================
   PORTFOLIO — EDITORIAL PROJECT GALLERY
   ========================================================= */

.portfolio-editorial {
    position: relative;
    padding: 120px 0 160px;
    overflow: hidden;
}


/* =========================================================
   INTRO
   ========================================================= */

.portfolio-editorial-intro {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: end;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto 150px;
}

.portfolio-editorial-intro h1 {
    margin: 18px 0 0;
    max-width: 850px;
    font-size: clamp(3rem, 5.5vw, 5.8rem);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 600;
}

.portfolio-editorial-intro p {
    max-width: 470px;
    margin: 0 0 8px;
    color: rgba(255,255,255,.62);
    font-size: 1rem;
    line-height: 1.8;
}


/* =========================================================
   PROJECT
   ========================================================= */

.portfolio-project {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    align-items: center;
    gap: clamp(50px, 8vw, 130px);
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 0;
}

.portfolio-project + .portfolio-project {
    margin-top: 40px;
}


/* =========================================================
   ALTERNATING LAYOUT
   ========================================================= */

.portfolio-project-right {
    grid-template-columns: minmax(280px, .65fr) minmax(0, 1.35fr);
}

.portfolio-project-right .portfolio-project-visual {
    order: 2;
}

.portfolio-project-right .portfolio-project-content {
    order: 1;
}


/* =========================================================
   PROJECT NUMBER
   ========================================================= */

.portfolio-project-number {
    position: absolute;
    top: 30px;
    left: 0;
    font-size: .7rem;
    letter-spacing: .18em;
    color: rgba(255,255,255,.35);
    font-weight: 600;
}

.portfolio-project-right .portfolio-project-number {
    left: auto;
    right: 0;
}


/* =========================================================
   PROJECT IMAGE
   ========================================================= */

.portfolio-project-visual {
    position: relative;
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    overflow: visible;
}

.portfolio-project-image {
    position: relative;
    width: 100%;
    overflow: visible;
    transition:
        transform .7s cubic-bezier(.22,.61,.36,1),
        filter .7s ease;
}

.portfolio-project-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}


/* =========================================================
   IMAGE HOVER
   ========================================================= */

.portfolio-project-visual:hover .portfolio-project-image {
    transform: translateY(-8px) scale(1.015);
    filter: brightness(1.08);
}


/* =========================================================
   VIEW PROJECT LABEL
   ========================================================= */

.portfolio-project-view {
    position: absolute;
    right: 22px;
    bottom: 22px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 15px;

    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;

    color: #fff;

    background: rgba(3,8,15,.72);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    opacity: 0;
    transform: translateY(8px);

    transition:
        opacity .4s ease,
        transform .4s ease;
}

.portfolio-project-view strong {
    font-size: 1rem;
    line-height: 1;
}

.portfolio-project-visual:hover .portfolio-project-view {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   PROJECT CONTENT
   ========================================================= */

.portfolio-project-content {
    max-width: 460px;
}

.portfolio-project-category {
    display: block;
    margin-bottom: 20px;

    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;

    color: rgba(255,255,255,.42);
}

.portfolio-project-content h2 {
    margin: 0 0 24px;

    font-size: clamp(2.4rem, 4vw, 4.5rem);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 600;

    color: #fff;
}

.portfolio-project-content p {
    margin: 0 0 28px;

    max-width: 430px;

    color: rgba(255,255,255,.58);
    font-size: .98rem;
    line-height: 1.8;
}


/* =========================================================
   PROJECT LINK
   ========================================================= */

.portfolio-project-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: #fff;
    text-decoration: none;

    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;

    transition:
        color .3s ease,
        gap .3s ease;
}

.portfolio-project-link span {
    font-size: 1rem;
}

.portfolio-project-link:hover {
    color: #60a5fa;
    gap: 17px;
}


/* =========================================================
   SUBTLE PROJECT DIVIDER
   ========================================================= */

.portfolio-project::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.08),
            transparent
        );
}

.portfolio-project:last-of-type::after {
    display: none;
}


/* =========================================================
   BACKGROUND ATMOSPHERE
   ========================================================= */

.portfolio-editorial::before {
    content: "";

    position: absolute;
    width: 700px;
    height: 700px;

    left: -350px;
    top: 25%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(37,99,235,.10),
            transparent 68%
        );

    filter: blur(50px);
    pointer-events: none;
}

.portfolio-editorial::after {
    content: "";

    position: absolute;
    width: 650px;
    height: 650px;

    right: -325px;
    top: 60%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(59,130,246,.08),
            transparent 68%
        );

    filter: blur(50px);
    pointer-events: none;
}


/* =========================================================
   END
   ========================================================= */

.portfolio-editorial-end {
    text-align: center;
    max-width: 800px;
    margin: 150px auto 0;
    padding-top: 80px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.portfolio-editorial-end h2 {
    margin: 18px auto 30px;

    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -.04em;
    font-weight: 600;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .portfolio-editorial {
        padding: 90px 0 120px;
    }

    .portfolio-editorial-intro {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 100px;
    }

    .portfolio-project,
    .portfolio-project-right {
        grid-template-columns: 1fr;
        gap: 45px;
        padding: 80px 0;
    }

    .portfolio-project-right .portfolio-project-visual,
    .portfolio-project-right .portfolio-project-content {
        order: initial;
    }

    .portfolio-project-content {
        max-width: 600px;
    }

    .portfolio-project-number,
    .portfolio-project-right .portfolio-project-number {
        top: 20px;
        left: 0;
        right: auto;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .portfolio-editorial {
        padding: 70px 0 90px;
    }

    .portfolio-editorial-intro {
        margin-bottom: 70px;
    }

    .portfolio-editorial-intro h1 {
        font-size: clamp(2.7rem, 12vw, 4rem);
    }

    .portfolio-editorial-intro p {
        font-size: .92rem;
        line-height: 1.7;
    }

    .portfolio-project,
    .portfolio-project-right {
        gap: 32px;
        padding: 65px 0;
    }

    .portfolio-project-content h2 {
        font-size: clamp(2.3rem, 11vw, 3.5rem);
        margin-bottom: 18px;
    }

    .portfolio-project-content p {
        font-size: .9rem;
        line-height: 1.7;
    }

    .portfolio-project-view {
        right: 12px;
        bottom: 12px;
        padding: 8px 12px;
        font-size: .62rem;
    }

    .portfolio-project-number {
        font-size: .62rem;
    }

    .portfolio-editorial-end {
        margin-top: 90px;
        padding-top: 60px;
    }

}
/* =========================================================
   PORTFOLIO PROJECT ACTIONS
   ========================================================= */

.portfolio-project-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}


/* PRIMARY — EXPLORE PROJECT */

.portfolio-project-actions .portfolio-project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    text-decoration: none;
}


/* SECONDARY — LIVE WEBSITE */

.portfolio-project-actions .portfolio-project-link-external {
    opacity: 0.65;
}

.portfolio-project-actions .portfolio-project-link-external:hover {
    opacity: 1;
}


/* MOBILE */

@media (max-width: 600px) {

    .portfolio-project-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .portfolio-project-actions .portfolio-project-link {
        width: 100%;
    }

}
