/* Spacious architecture portfolio; all media supplied and approved by the owner. */
.home-hero { position: relative; overflow: hidden; background: var(--color-background); }
.hero-inner { position: relative; padding-top: clamp(3rem, 7vw, 7rem); padding-bottom: 3rem; }
.hero-copy { order: 0; width: 100%; }
.hero-copy h1 { 
    font-size: clamp(2.4rem, 4.8vw, 4.5rem); 
    font-weight: 500; 
    line-height: 1.25; 
    letter-spacing: -.03em; 
    word-break: keep-all; 
    overflow-wrap: break-word; 
    white-space: normal;
    margin-bottom: 1.25rem;
}
.hero-summary { 
    font-size: clamp(0.95rem, 1.4vw, 1.15rem); 
    max-width: 36rem; 
    line-height: 1.65; 
    word-break: keep-all; 
    margin-bottom: 2rem;
}
.hero-visual { order: 1; overflow: hidden; aspect-ratio: 16/11; position: relative; border-radius: 4px; }
.hero-poster { display: block; width: 100%; height: 100%; }
.hero-poster img, .hero-visual video { width: 100%; height: 100%; object-fit: cover; }
.hero-visual video { position: absolute; inset: 0; opacity: 0; }
.is-video-playing .hero-visual video { opacity: 1; }
.hero-motion-control { position: absolute; z-index: 3; bottom: 2rem; right: var(--page-gutter); min-height: 44px; padding: .6rem 1rem; border: 1px solid #fff; background: var(--color-text); color: #fff; font-size: .8rem; }
.hero-bottom { background: var(--color-background); position: relative; z-index: 2; }

/* 4K and Desktop Ultra-Wide Viewport Support */
@media (min-width: 64rem) {
    .home-hero { min-height: min(880px, calc(100svh - 6rem)); display: flex; flex-direction: column; justify-content: space-between; }
    .hero-inner { 
        display: flex; 
        align-items: center; 
        flex: 1;
        min-height: min(780px, calc(100svh - 10rem)); 
        padding-block: 5rem;
        position: relative;
    }
    .hero-copy { 
        width: 58%; 
        min-width: 36rem;
        max-width: 54rem; 
        z-index: 2; 
    }
    .hero-visual { 
        position: absolute; 
        inset: 0; 
        width: 100%; 
        height: 100%; 
        aspect-ratio: auto; 
        z-index: 0;
    }
    .has-media .hero-inner::after { 
        content: ''; 
        position: absolute; 
        inset: 0; 
        z-index: 1; 
        background: linear-gradient(90deg, rgba(28, 30, 26, 0.62) 0%, rgba(28, 30, 26, 0.42) 38%, rgba(28, 30, 26, 0.12) 68%, rgba(28, 30, 26, 0.02) 100%); 
        pointer-events: none;
    }
    .has-media .hero-copy { color: #fff; }
    .has-media .hero-summary, .has-media .eyebrow { color: #f2f0eb; }
    .has-media .eyebrow { color: #d6e2cf; }
    .has-media .text-link { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
    .is-panning .hero-poster { animation: fieldlog-pan 28s ease-in-out infinite alternate; }
    .is-paused .hero-poster { animation-play-state: paused; }
}

@media (max-width: 1023px) {
    .hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 2rem; }
    .hero-visual { width: 100%; min-height: 0; }
    .hero-copy { width: 100%; }
    .hero-copy h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
    .hero-motion-control { display: none; }
}

@keyframes fieldlog-pan { 
    from { transform: scale(1.015) translateX(0); } 
    to { transform: scale(1.075) translateX(-.8%); } 
}

@media (prefers-reduced-motion: reduce) { 
    .hero-poster { animation: none !important; } 
    .hero-motion-control { display: none; } 
}

.image-placeholder { background: linear-gradient(130deg, #e5e2d9, #d4d5cb); }
.placeholder-caption { color: #51594c; }

/* Hero live motion and frame styles */
@keyframes flKenBurns {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}
@keyframes flCinematicPan {
    0%   { transform: scale(1.06) translateX(-3%); }
    50%  { transform: scale(1.06) translateX(3%); }
    100% { transform: scale(1.06) translateX(-3%); }
}

.hero-visual.motion-ken-burns img,
.hero-visual.motion-ken-burns picture > img {
    animation: flKenBurns 18s ease-in-out infinite;
}
.hero-visual.motion-cinematic-pan img,
.hero-visual.motion-cinematic-pan picture > img {
    animation: flCinematicPan 20s ease-in-out infinite;
}

.hero-visual.frame-subtle-line { border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 2px; }
.hero-visual.frame-rounded-8 { border-radius: 8px; overflow: hidden; }
.hero-visual.frame-rounded-16 { border-radius: 16px; overflow: hidden; }
.hero-visual.frame-soft-shadow { border-radius: 8px; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14); overflow: hidden; }

/* Owner-approved five real-site photographs: slow crossfade, original files preserved. */
.hero-visual .hero-slide { position:absolute; inset:0; opacity:0; transition:opacity 1.8s ease; animation:none !important; }
.hero-visual .hero-slide.is-active { opacity:1; }
.hero-visual .hero-slide img { width:100%; height:100%; object-fit:cover; object-position:center; animation:none !important; }
.home-hero .hero-motion-control:not([hidden]) { display:inline-flex; }
@media (prefers-reduced-motion:reduce) { .hero-visual .hero-slide { transition:none; } .home-hero .hero-motion-control { display:none !important; } }

/* Owner request: hide hero pause control, reduced-motion preference remains respected. */
.home-hero .hero-motion-control { display:none !important; }
