/* Homepage refinement; shared project styles stay in style.css. */
.homepage .hero { grid-template-columns: 1.35fr 1fr; gap: 40px 80px; padding-top: clamp(40px,7svh,90px); }
.homepage h1 { font-size: clamp(48px,6.5vw,88px); font-weight: 400; line-height: 1.02; letter-spacing: -.055em; }
.homepage .hero-description { max-width: 510px; font-size: 17px; line-height: 1.85; margin-top: 30px; }
.homepage .hero-photo { transform: none; padding: 0; border: 0; background: transparent; border-radius: 0; }
.homepage .hero-photo img { aspect-ratio: 4/5; max-height: 56svh; border-radius: 2px; }
.homepage .hero-photo figcaption { color: var(--muted); border-top: 1px solid var(--line); margin-top: 16px; padding-top: 15px; }
.homepage .hero-visual { max-width: 360px; padding: 0; }
.homepage .hero-actions .button { border-radius: 2px; padding: 15px 20px; }
.homepage .hero-bottom { font-family: inherit; letter-spacing: .02em; }
.homepage #work { scroll-margin-top: 0; padding-top: 28px; padding-bottom: 60px; }
.homepage #work .section-heading { margin-bottom: 22px; align-items: center; }
.homepage #work .section-heading h2 { font-size: clamp(30px,3.5vw,46px); letter-spacing: -.04em; }
.homepage #work .section-heading .eyebrow { margin-bottom: 10px; }
.homepage .carousel-controls { margin-bottom: 16px; }
.homepage .carousel-button { width: 42px; height: 42px; }
.homepage .project-carousel.is-ready .project-image img,
.homepage .project-carousel.is-ready .project-placeholder { height: var(--spotlight-height,40svh); min-height: 180px; aspect-ratio: auto; }
.homepage .project-carousel.is-ready .project-info { padding-top: 20px; }
.homepage .project-info h3 { font-size: 24px; }
.homepage .project-info p:last-child { margin-bottom: 0; line-height: 1.65; }
.homepage .project-directory { margin-top: 42px; }
.homepage .about-copy em { font-family: inherit; font-style: normal; }
.homepage .contact-inner h2 { font-size: clamp(38px,5vw,64px); }
@media(max-width:800px) {
 .homepage .hero { gap: 35px; }
 .homepage .project-carousel.is-ready .project-info { display: block; }
 .homepage .project-carousel.is-ready .tags { justify-content: flex-start; max-width: none; }
}
@media(max-width:640px) {
 .homepage .hero { grid-template-columns: 1fr; padding-top: 40px; }
 .homepage h1 { font-size: clamp(46px,12vw,68px); }
 .homepage .hero-description { font-size: 16px; }
 .homepage .hero-visual { max-width: 300px; }
 .homepage .hero-photo img { max-height: none; }
 .homepage #work .section-heading { display: block; }
 .homepage #work .section-heading > p { margin-top: 14px; }
 .homepage .project-carousel.is-ready .project-image img { height: clamp(200px,32svh,340px); }
}

/* Image-led project spotlight */
.visually-hidden { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.homepage #work .section-heading { margin-bottom:16px; }
.homepage #work .section-heading h2 { font-size:clamp(26px,2.7vw,36px); letter-spacing:-.035em; }
.homepage #work .section-heading .eyebrow { margin-bottom:8px; }
.homepage .work-hint { font-size:12px; }
.homepage .carousel-controls { margin-bottom:12px; }
.homepage .project-image { background:#dfe2d8; border-radius:3px; isolation:isolate; }
.homepage .project-image::after { content:""; position:absolute; inset:0; z-index:1; pointer-events:none; background:linear-gradient(180deg,transparent 35%,rgba(16,23,19,.15) 55%,rgba(16,23,19,.88) 100%); }
.homepage .project-carousel .project-image img { width:100%; height:var(--spotlight-height,52svh); min-height:260px; object-fit:var(--photo-fit,cover); object-position:var(--photo-position,center); }
.homepage .project-carousel.is-ready .project-image img { min-height:260px; object-fit:var(--photo-fit,cover); }
.homepage .project-image:hover img { transform:none; }
.homepage .banner-caption { position:absolute; z-index:2; bottom:30px; left:32px; right:95px; color:#fff; display:flex; flex-direction:column; gap:10px; text-shadow:0 1px 8px rgba(0,0,0,.2); }
.homepage .banner-category { font:10px/1.5 "Courier New",monospace; text-transform:uppercase; letter-spacing:1.8px; color:#e4e9de; }
.homepage .banner-title { font-size:clamp(27px,3.3vw,44px); font-weight:400; letter-spacing:-.035em; line-height:1.1; }
.homepage .project-arrow { z-index:3; bottom:30px; right:30px; }
.homepage .project-carousel.is-ready .project-info { display:block; padding-top:14px; }
.homepage .project-info p { max-width:820px; color:var(--muted); font-size:15px; line-height:1.65; }
.homepage .project-directory { margin-top:36px; }
@media(max-width:640px) {
 .homepage #work { padding-top:24px; }
 .homepage #work .section-heading .work-hint { display:none; }
 .homepage .project-carousel.is-ready .project-image img { height:clamp(300px,48svh,480px); min-height:300px; }
 .homepage .banner-caption { bottom:24px; left:20px; right:70px; gap:8px; }
 .homepage .banner-title { font-size:28px; }
 .homepage .project-arrow { bottom:24px; right:18px; width:36px; height:36px; font-size:20px; }
}

/* Personal contact banner */
.homepage .contact-banner {
    min-height: 0;
    padding-block: clamp(48px, 7vw, 88px);
    background: #252e27;
}
.homepage .contact-banner .contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 90px);
}
.homepage .contact-portrait { margin: 0; min-width: 0; }
.homepage .contact-portrait img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 3px;
    background: #eeece5;
}
.homepage .contact-portrait figcaption {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #657063;
    font-size: 13px;
    line-height: 1.7;
}
.homepage .contact-portrait figcaption span {
    display: block;
    color: #c7cec2;
    font-size: 11px;
}
.homepage .contact-copy { min-width: 0; }
.homepage .contact-copy .eyebrow { margin-bottom: 18px; }
.homepage .contact-copy h2 {
    margin-bottom: 20px;
    font-size: clamp(36px, 4.8vw, 62px);
    font-weight: 400;
    letter-spacing: -.04em;
}
.homepage .contact-copy > p:not(.eyebrow) {
    max-width: 440px;
    color: #c7cec2;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 12px;
}
.homepage .contact-copy .contact-link {
    font-size: clamp(18px, 2.6vw, 28px);
    gap: 20px;
    line-height: 1.5;
    align-items: baseline;
}
.homepage .contact-link > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.homepage .contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.homepage .contact-socials a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid #75816f;
    border-radius: 3px;
    font-size: 13px;
}
.homepage .contact-social-icon { width: 18px; height: 18px; flex-shrink: 0; }
.homepage .contact-socials a:hover { background: #344036; border-color: #c7cec2; }
.homepage .contact-about {
    display: inline-block;
    margin-top: 22px;
    padding-block: 10px;
    color: #c7cec2;
    font-size: 13px;
    text-decoration: underline;
    text-decoration-color: #75816f;
    text-underline-offset: 5px;
}
.homepage .contact-about:hover { color: #f7f5f0; }
.homepage .contact-banner a:focus-visible { outline-color: #eab39a; }
@media (max-width: 700px) {
    .homepage .contact-banner .contact-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .homepage .contact-portrait { width: min(240px, 100%); }
    .homepage .contact-portrait img { aspect-ratio: 1; }
    .homepage .contact-copy .contact-link { font-size: clamp(17px, 5vw, 26px); gap: 12px; }
}
