/* ========================================================================== 
   web.tom.cool hero showcase — real work in the first viewport
   ========================================================================== */

#hero.hero-section {
    min-height: min(100svh, 61rem);
    align-items: stretch;
    padding: clamp(7.25rem, 11vh, 9rem) clamp(1.25rem, 4vw, 4rem) clamp(4.75rem, 8vh, 6.5rem) !important;
    text-align: left;
}

#hero.hero-section::after {
    content: none;
}

#hero .hero-bg {
    background:
        radial-gradient(circle at 74% 42%, rgba(64, 216, 255, .12), transparent 28rem),
        radial-gradient(circle at 88% 78%, rgba(124, 140, 255, .12), transparent 24rem),
        linear-gradient(rgba(124, 140, 255, .065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 140, 255, .065) 1px, transparent 1px),
        #090b18;
    background-size: auto, auto, 3.5rem 3.5rem, 3.5rem 3.5rem, auto;
}

#hero .hero-bg::before {
    position: absolute;
    inset: -20% auto -20% 57%;
    width: 1px;
    background: linear-gradient(transparent, rgba(64, 216, 255, .44) 35%, rgba(124, 140, 255, .08) 74%, transparent);
    content: '';
    transform: rotate(20deg);
    transform-origin: center;
}

#hero .hero-stage {
    position: relative;
    z-index: var(--z-above);
    display: grid;
    grid-template-columns: minmax(22rem, .82fr) minmax(34rem, 1.28fr);
    align-items: center;
    gap: clamp(3rem, 6vw, 7.5rem);
    width: min(106rem, calc(100% - clamp(0rem, 4vw, 4rem)));
    margin: auto;
}

#hero .hero-content {
    align-self: center;
    width: 100%;
    max-width: 38rem;
    margin: 0;
    padding: 0;
    text-align: left;
}

#hero .hero-badge {
    margin: 0 0 clamp(1.5rem, 3vh, 2.5rem);
}

#hero .hero-title {
    max-width: 8.5ch;
    margin: 0 0 clamp(1.5rem, 3vh, 2.25rem);
    font-size: clamp(3.75rem, 5.6vw, 6rem);
    line-height: .9;
    letter-spacing: -.04em;
    text-wrap: balance;
}

#hero .hero-title .title-gradient {
    background: none;
    color: var(--web-cyan);
    -webkit-text-fill-color: currentColor;
}

#hero .hero-title .title-outline {
    color: var(--web-ice);
    -webkit-text-fill-color: currentColor;
    -webkit-text-stroke: 0;
    opacity: .58;
}

#hero .hero-subtitle {
    max-width: 35rem;
    margin: 0 0 clamp(1.75rem, 4vh, 2.75rem);
    color: rgba(232, 236, 255, .74);
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    line-height: 1.65;
    text-align: left;
}

#hero .hero-actions {
    justify-content: flex-start;
    gap: 1rem;
    margin: 0;
    flex-wrap: nowrap;
}

.hero-showcase {
    position: relative;
    min-width: 0;
    padding: 0 0 1.5rem 1.5rem;
    transform: rotate(-1.25deg);
    transform-origin: center;
    transition: transform 600ms var(--ease-out);
}

.hero-showcase::before {
    position: absolute;
    inset: 1.5rem 0 0 0;
    border: 1px solid rgba(124, 140, 255, .3);
    background: rgba(124, 140, 255, .055);
    content: '';
}

.hero-showcase::after {
    position: absolute;
    top: 50%;
    right: -3.6rem;
    color: rgba(232, 236, 255, .45);
    content: 'STRATEGIE  /  DESIGN  /  DEVELOPMENT';
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .15em;
    pointer-events: none;
    transform: rotate(90deg) translateX(50%);
    transform-origin: right center;
}

.hero-showcase:hover,
.hero-showcase:focus-within {
    transform: rotate(0deg) translateY(-.35rem);
}

.hero-showcase-window {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(64, 216, 255, .28);
    border-radius: .75rem;
    background: #080a15;
    box-shadow: 1.4rem 1.4rem 3.25rem rgba(0, 0, 0, .34);
}

.hero-showcase-chrome {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 3rem;
    padding: .65rem 1rem;
    border-bottom: 1px solid rgba(124, 140, 255, .18);
    background: #0d1021;
    color: rgba(232, 236, 255, .58);
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .04em;
}

.hero-window-dots {
    display: flex;
    gap: .4rem;
}

.hero-window-dots i {
    width: .52rem;
    height: .52rem;
    border: 1px solid rgba(232, 236, 255, .38);
    border-radius: 50%;
}

.hero-window-dots i:first-child {
    border-color: rgba(64, 216, 255, .7);
    background: rgba(64, 216, 255, .32);
}

.hero-window-address {
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-window-count {
    color: var(--web-cyan);
}

.hero-showcase-viewport {
    position: relative;
    aspect-ratio: 16 / 9.35;
    overflow: hidden;
    background: #060711;
}

.hero-showcase-panel {
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.hero-showcase-panel.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.hero-showcase-panel > a {
    position: absolute;
    inset: 0;
    display: block;
    color: var(--web-ice);
}

.hero-showcase-panel > a:focus-visible {
    outline: 3px solid var(--web-cyan);
    outline-offset: -5px;
}

.hero-showcase-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.015);
}

.hero-showcase-panel.is-active img {
    animation: heroProjectReveal 760ms var(--ease-out) both;
}

@keyframes heroProjectReveal {
    from {
        clip-path: inset(0 0 0 14%);
        filter: blur(5px);
        transform: scale(1.055);
    }
    to {
        clip-path: inset(0);
        filter: blur(0);
        transform: scale(1.015);
    }
}

.hero-project-caption {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: .25rem 1rem;
    padding: clamp(3.75rem, 10vw, 7.5rem) clamp(1rem, 3vw, 1.75rem) clamp(1rem, 3vw, 1.6rem);
    background: linear-gradient(transparent, rgba(5, 7, 17, .94) 70%);
}

.hero-project-type {
    grid-column: 1 / -1;
    color: rgba(232, 236, 255, .7);
    font-family: var(--font-mono);
    font-size: clamp(.6rem, .7vw, .72rem);
    letter-spacing: .05em;
}

.hero-project-caption strong {
    overflow: hidden;
    font-size: clamp(1.15rem, 1.8vw, 1.7rem);
    font-weight: 760;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-project-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--web-cyan);
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.hero-showcase-foot {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    padding: 1rem 0 0 1rem;
}

.hero-showcase-foot > p {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    color: rgba(232, 236, 255, .66);
    font-size: .72rem;
    white-space: nowrap;
}

.hero-showcase-foot > p > span {
    width: .48rem;
    height: .48rem;
    border-radius: 50%;
    background: var(--accent-success);
    box-shadow: 0 0 0 .25rem rgba(16, 185, 129, .11);
}

.hero-project-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid rgba(124, 140, 255, .2);
}

.hero-project-tabs button {
    position: relative;
    min-width: 0;
    min-height: 2.9rem;
    padding: .7rem .65rem;
    border: 0;
    background: transparent;
    color: rgba(232, 236, 255, .58);
    cursor: pointer;
    font: 600 clamp(.62rem, .75vw, .72rem)/1.2 var(--font-primary);
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-project-tabs button::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--web-cyan);
    content: '';
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 500ms var(--ease-out);
}

.hero-project-tabs button span {
    margin-right: .35rem;
    color: rgba(64, 216, 255, .75);
    font-family: var(--font-mono);
    font-size: .58rem;
}

.hero-project-tabs button:hover,
.hero-project-tabs button[aria-selected='true'] {
    color: var(--web-ice);
}

.hero-project-tabs button[aria-selected='true']::after {
    transform: scaleX(1);
}

.hero-project-tabs button:focus-visible {
    outline: 2px solid var(--web-cyan);
    outline-offset: 2px;
}

.hero-showcase-live {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1180px) {
    #hero.hero-section {
        padding-inline: clamp(1.25rem, 3vw, 2.5rem) !important;
    }

    #hero .hero-stage {
        grid-template-columns: minmax(20rem, .78fr) minmax(30rem, 1.22fr);
        gap: clamp(2rem, 4vw, 4rem);
        width: 100%;
    }

    #hero .hero-title {
        font-size: clamp(3.5rem, 6.4vw, 5.25rem);
    }

    .hero-showcase::after {
        content: none;
    }

    .hero-showcase-foot {
        grid-template-columns: 1fr;
        gap: .5rem;
    }
}

@media (max-width: 900px) {
    #hero.hero-section {
        min-height: auto;
        padding-top: 7.75rem !important;
        padding-bottom: 5rem !important;
    }

    #hero .hero-stage {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        width: min(44rem, 100%);
    }

    #hero .hero-content {
        max-width: 42rem;
    }

    #hero .hero-title {
        max-width: 9ch;
        font-size: clamp(3.75rem, 10vw, 5.5rem);
    }

    .hero-showcase {
        padding: 0 0 1rem 1rem;
        transform: rotate(-.75deg);
    }

    .hero-showcase::before {
        inset: 1rem 0 0 0;
    }
}

@media (max-width: 760px) {
    #hero.hero-section {
        padding: 7rem 1rem 4rem !important;
    }

    #hero .hero-content,
    #hero .hero-subtitle {
        margin-inline: 0;
        text-align: left;
    }

    #hero .hero-badge {
        margin-inline: 0;
    }

    #hero .hero-title {
        max-width: 9ch;
        font-size: clamp(3.1rem, 15vw, 4.6rem);
    }

    #hero .hero-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
        gap: .75rem;
        width: 100%;
    }

    #hero .hero-actions .btn {
        width: auto;
        min-height: 3.25rem;
        padding: .8rem .9rem;
        font-size: .82rem;
    }

    .hero-showcase {
        padding: 0 0 .75rem .75rem;
        transform: none;
    }

    .hero-showcase:hover,
    .hero-showcase:focus-within {
        transform: none;
    }

    .hero-showcase::before {
        inset: .75rem 0 0 0;
    }

    .hero-showcase-chrome {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .hero-window-count {
        display: none;
    }

    .hero-showcase-viewport {
        aspect-ratio: 4 / 3;
    }

    .hero-project-caption {
        grid-template-columns: 1fr;
        padding-top: 4.5rem;
    }

    .hero-project-link {
        display: none;
    }

    .hero-showcase-foot {
        padding-left: .25rem;
    }

    .hero-showcase-foot > p {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    #hero .hero-stage {
        gap: 2.75rem;
    }

    #hero .hero-title {
        font-size: clamp(2.85rem, 14vw, 3.8rem);
    }

    .hero-showcase-chrome {
        min-height: 2.75rem;
        padding-inline: .75rem;
    }

    .hero-project-caption strong {
        font-size: 1.05rem;
    }

    .hero-project-tabs button {
        padding-inline: .4rem;
        font-size: .6rem;
    }

    .hero-project-tabs button span {
        display: block;
        margin: 0 0 .2rem;
    }
}

@media (max-width: 350px) {
    #hero .hero-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-showcase,
    .hero-showcase:hover,
    .hero-showcase:focus-within {
        transform: none;
    }

    .hero-showcase-panel.is-active img {
        animation: none;
    }
}
