/* ========================================
   HOME HERO — PROOF-LED PROJECT SHOWCASE
   ======================================== */

body .hero {
    min-height: auto;
    padding: clamp(7.5rem, 11vw, 10rem) 0 clamp(5rem, 8vw, 7.5rem);
    overflow: clip;
}

.hero-container {
    grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
    gap: clamp(3rem, 6vw, 6.5rem);
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    margin-bottom: 1.4rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
}

body .hero-title {
    max-width: 12ch;
    margin-bottom: 1.5rem;
    font-size: clamp(3rem, 4.6vw, 5.25rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

body .hero-title-accent {
    display: inline;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-style: italic;
    text-decoration: none;
    letter-spacing: -0.045em;
}

body .hero-description {
    max-width: 48ch;
    margin-bottom: 1.75rem;
    color: #343434;
    font-size: 1.05rem;
    line-height: 1.65;
}

.hero-buttons {
    align-items: center;
    gap: 1.35rem;
}

.hero-work-link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #0a0a0a;
    font-size: 0.92rem;
    font-weight: 650;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.35em;
    transition: opacity 180ms ease;
}

.hero-work-link:hover {
    opacity: 0.58;
}

.hero-work-link:focus-visible,
.project-brief-intro a:focus-visible {
    outline: 3px solid #000000;
    outline-offset: 5px;
}

.hero-visual {
    min-width: 0;
    order: initial;
}

.hero-showcase {
    width: 100%;
}

.showcase-browser {
    overflow: hidden;
    border: 1px solid #111111;
    background: #ffffff;
}

.showcase-browser-bar {
    min-height: 48px;
    padding: 0 0.9rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #111111;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.showcase-browser-dots {
    display: flex;
    gap: 0.4rem;
}

.showcase-browser-dots span {
    width: 8px;
    height: 8px;
    border: 1px solid #111111;
    border-radius: 50%;
}

.showcase-url {
    min-width: 0;
    overflow: hidden;
    color: #555555;
    text-overflow: ellipsis;
    text-transform: lowercase;
    white-space: nowrap;
}

.showcase-external {
    justify-self: end;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #0a0a0a;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.28em;
    transition: opacity 180ms ease;
}

.showcase-external:hover {
    opacity: 0.55;
}

.showcase-viewport {
    position: relative;
    aspect-ratio: 1200 / 581;
    overflow: hidden;
    background: #111111;
}

.showcase-panel {
    position: absolute;
    inset: 0;
}

.showcase-panel.is-active {
    animation: showcaseReveal 180ms ease-out;
}

.showcase-panel img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

@keyframes showcaseReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.showcase-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #111111;
    border-top: 0;
}

.showcase-tab {
    min-width: 0;
    min-height: 88px;
    padding: 0.85rem 1rem;
    display: grid;
    grid-template-columns: auto 1fr;
    align-content: center;
    column-gap: 0.7rem;
    border: 0;
    border-right: 1px solid #111111;
    background: #ffffff;
    color: #0a0a0a;
    text-align: left;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
}

.showcase-tab:last-child {
    border-right: 0;
}

.showcase-tab > span {
    grid-row: 1 / span 2;
    align-self: start;
    padding-top: 0.1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
}

.showcase-tab strong,
.showcase-tab small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.showcase-tab strong {
    font-size: 0.78rem;
    line-height: 1.25;
}

.showcase-tab small {
    margin-top: 0.2rem;
    color: #666666;
    font-size: 0.75rem;
}

.showcase-tab:hover,
.showcase-tab.is-active {
    background: #0a0a0a;
    color: #ffffff;
}

.showcase-tab:hover small,
.showcase-tab.is-active small {
    color: #d3d3d3;
}

.showcase-tab:focus-visible,
.showcase-external:focus-visible {
    position: relative;
    z-index: 2;
    outline: 3px solid #000000;
    outline-offset: 4px;
}

/* ========================================
   60-SECOND PROJECT BRIEF
   ======================================== */

body .project-brief {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
    border-top: 1px solid #111111;
    background: #f5f5f2;
}

.project-brief-container {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.18fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: center;
}

.project-brief-intro {
    max-width: 520px;
}

.project-brief-kicker {
    margin: 0 0 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.project-brief-intro h2 {
    max-width: 10ch;
    margin: 0 0 1.3rem;
    color: #0a0a0a;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 4.7vw, 5.2rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.project-brief-intro > p:last-child {
    max-width: 47ch;
    margin: 0;
    color: #3e3e3e;
    font-size: 1rem;
    line-height: 1.7;
}

.project-brief-intro a {
    color: #0a0a0a;
    font-weight: 650;
    text-underline-offset: 0.25em;
}

.project-brief-terminal .hero-terminal {
    max-width: 620px;
    margin-left: auto;
    box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 1120px) {
    .hero-container {
        grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
        gap: 3rem;
    }

}

@media screen and (max-width: 900px) {
    body .hero {
        padding: 7rem 0 4.5rem;
    }

    .hero-container,
    .project-brief-container {
        grid-template-columns: 1fr;
    }

    .hero-container {
        gap: 3.5rem;
        text-align: left;
    }

    body .hero-title {
        max-width: 12ch;
    }

    .hero-kicker {
        margin-right: 0;
        margin-left: 0;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-visual {
        order: initial;
    }

    .hero-showcase {
        width: min(100%, 690px);
    }

    .project-brief-container {
        gap: 2.75rem;
    }

    .project-brief-terminal .hero-terminal {
        width: 100%;
        max-width: 620px;
        margin-left: 0;
    }
}

@media screen and (max-width: 600px) {
    body .hero {
        padding: 6.5rem 0 3.75rem;
    }

    .hero-container {
        gap: 2.75rem;
        padding: 0 1rem;
    }

    .hero-content {
        max-width: none;
    }

    body .hero-title {
        max-width: 12ch;
        margin-bottom: 1.25rem;
        font-size: clamp(2.55rem, 12vw, 4rem);
        line-height: 0.98;
        word-break: normal;
        hyphens: none;
    }

    body .hero-description {
        max-width: 34ch;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: row;
        align-items: center;
        gap: 0.85rem 1rem;
    }

    .hero-buttons .btn {
        width: auto;
        flex: 1 1 190px;
    }

    .hero-work-link {
        flex: 1 1 150px;
        justify-content: center;
    }

    .showcase-browser-bar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 0.55rem;
        padding: 0 0.75rem;
    }

    .showcase-url {
        justify-self: center;
        font-size: 0.68rem;
    }

    .showcase-tabs {
        grid-template-columns: 1fr;
    }

    .showcase-tab {
        min-height: 56px;
        grid-template-columns: 2rem 1fr auto;
        align-items: center;
        padding: 0.65rem 0.8rem;
        border-right: 0;
        border-bottom: 1px solid #111111;
    }

    .showcase-tab:last-child {
        border-bottom: 0;
    }

    .showcase-tab > span {
        grid-row: auto;
        align-self: center;
        padding-top: 0;
    }

    .showcase-tab small {
        margin-top: 0;
        text-align: right;
    }

    body .project-brief {
        padding: 4rem 0;
    }

    .project-brief-container {
        padding: 0 1rem;
    }

    .project-brief-intro h2 {
        font-size: clamp(2.45rem, 12vw, 3.7rem);
    }

    .project-brief-terminal .hero-terminal {
        width: 100%;
        max-width: none;
        margin: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-panel.is-active,
    .showcase-tab,
    .showcase-external,
    .hero-work-link {
        animation: none;
        transition: none;
    }
}
