
/* ==========================================
   CHANAWAY5000
   HOMEPAGE STYLES
   ========================================== */

/* HERO */

.hero {
    min-height: 530px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #0d0d0d;
    color: #fff;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -12px;
    z-index: -2;
    background: url('../images/hero/boards-light.webp') center / cover no-repeat;
    filter: blur(4px);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, .92) 0%,
        rgba(0, 0, 0, .76) 36%,
        rgba(0, 0, 0, .38) 78%,
        rgba(0, 0, 0, .26) 100%
    );
}

.hero-inner {
    padding-block: 65px;
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 0 0 14px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
.section-title,
.approach-title,
.onward {
    font-family: var(--font-head);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -.025em;
}

h1 {
    font-size: clamp(54px, 6.2vw, 91px);
    line-height: .98;
    max-width: 850px;
    margin-bottom: 26px;
}

.hero-copy {
    color: #d0d0d0;
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.4;
    max-width: 535px;
    margin-bottom: 24px;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--blue);
    color: #fff;
    padding: 15px 23px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.cta:hover {
    background: #0052cf;
}

/* ==========================================
   FEATURED WORK
   ========================================== */

.work {
    padding-block: 66px 70px;
}

.work .eyebrow {
    color: var(--blue);
}

.section-title {
    font-size: clamp(38px, 4.6vw, 65px);
    line-height: 1.02;
    margin-bottom: 30px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.project {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-right: 1px solid #e3e3e3;
    padding-right: 12px;
}

.project:last-child {
    border-right: 0;
    padding-right: 12;
}

/* Consistent 16:9 thumbnail containers */

.project-image {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #ececec;
    text-decoration: none;
    color: inherit;
}

.project-image img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

.project-image:hover img,
.project-image:focus-visible img {
    transform: scale(1.035);
}

.project-placeholder {
    color: #999;
    font-size: 12px;
    font-weight: 600;
    padding: 14px;
    text-align: center;
}

/* Project information */

.project-number {
    color: var(--blue);
    font-weight: 800;
    font-size: 17px;
    margin: 14px 0 1px;
}

.project h3 {
    font-family: var(--font-head);
    font-size: clamp(17px, 1.45vw, 22px);
    line-height: 1.12;
    margin: 0 0 10px;
}

.project-title-link {
    color: inherit;
    text-decoration: none;
}

.project-title-link:hover,
.project-title-link:focus-visible {
    color: var(--blue);
}

.project-description {
    color: #747474;
    font-size: 14px;
    line-height: 1.45;
    min-height: 82px;
}

.project-link {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 10px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
}

.project-link:hover {
    color: var(--blue);
}

/* Accessible keyboard focus */

.project-image:focus-visible,
.project-title-link:focus-visible,
.project-link:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

/* ==========================================
   IDEA. SYSTEM. IMPACT.
   ========================================== */

.approach {
    background: var(--approach);
    color: #fff;
    padding-block: 70px 80px;
}

.approach-title {
    font-size: clamp(65px, 7vw, 105px);
    line-height: .95;
    margin-bottom: 28px;
}

.approach-copy {
    max-width: 470px;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.35;
}

.footer-separator {
    height: 20px;
    background: #fff;
}

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

@media (max-width: 900px) {
    .container {
        width: min(100% - 48px, 1200px);
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 34px;
    }

    .project:nth-child(2) {
        border-right: 0;
    }

    .hero {
        min-height: 480px;
    }
}

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

@media (max-width: 580px) {
    .container {
        width: calc(100% - 36px);
    }

    .hero {
        min-height: 510px;
    }

    .hero-inner {
        padding-block: 60px;
    }

    h1 {
        font-size: clamp(48px, 12vw, 70px);
    }

    .hero-copy {
        max-width: 95%;
    }

    .work {
        padding-block: 52px;
    }

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

    .project {
        border-right: 0;
        padding-right: 0;
    }

    .project-description {
        min-height: 0;
    }

    .approach {
        padding-block: 60px 65px;
    }

    .approach-title {
        font-size: clamp(58px, 13vw, 85px);
    }

    .footer-top,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-top {
        gap: 8px;
    }

    .footer-links {
        gap: 18px;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    .project-image img {
        transition: none;
    }
}

/* HOMEPAGE: Small-screen hero headline fix */
@media (max-width: 359px) {
    .hero h1 {
        font-size: 40px;
        line-height: 1;
    }
}
/* ==========================================
   HOME HERO DESKTOP ALIGNMENT
   Match Work, About, and Contact
   ========================================== */

@media (min-width: 901px) {
    .hero .hero-inner {
        padding-left: 24px;
        padding-right: 24px;
        box-sizing: border-box;
    }
}
