/* Homepage project carousel: original images remain fully visible. */
.banner{position:relative;aspect-ratio:16/9;min-height:640px;background:#182622;isolation:isolate}
.banner::after{display:none}
.hero-gallery{position:absolute;inset:0;overflow:hidden;background:#182622}
.hero-slide{position:absolute;inset:0;margin:0;opacity:0;visibility:hidden;transition:opacity .7s ease,visibility .7s;pointer-events:none}
.hero-slide.is-active{opacity:1;visibility:visible;pointer-events:auto}
.hero-slide img{width:100%;height:100%;object-fit:cover;display:block}
.hero-slide::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#10241ed9 0%,#10241e80 29%,transparent 61%,#10241ee6 100%);pointer-events:none}
.hero-slide figcaption{position:absolute;bottom:28px;left:var(--pad);right:260px;z-index:1;color:#fff;line-height:1.4;text-align:left}
.hero-slide figcaption a{display:block;color:inherit;text-decoration:none;font-size:clamp(17px,1.8vw,26px);font-weight:600;max-width:48ch}
.hero-slide figcaption a:hover{text-decoration:underline;text-underline-offset:4px}
.hero-slide figcaption span,.hero-slide figcaption small{display:block;font-size:12px;margin-top:5px;color:#e1e9dc}
.banner .banner-in{position:relative;inset:auto;z-index:1;padding-top:32px;padding-bottom:160px;pointer-events:none}
.banner-in a{pointer-events:auto}
.banner .cintillo{margin-bottom:10px}
.banner h1{font-size:clamp(34px,3.8vw,65px)}
.banner-lead{margin-top:12px;max-width:65ch}
.banner-cta{margin-top:16px}
.hero-controls{position:absolute;right:var(--pad);bottom:30px;z-index:2;display:flex;align-items:center;gap:10px;color:white}
.hero-controls button{width:42px;height:42px;display:grid;place-items:center;border:1px solid #ffffff80;border-radius:8px;background:#182622b3;color:white;font:inherit;font-size:20px;cursor:pointer}
.hero-controls button:hover{background:#314f3b}
.hero-count{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.hero-gallery a:focus-visible,.hero-controls button:focus-visible{outline:3px solid white;outline-offset:4px}
@media(max-width:900px){
 .banner{aspect-ratio:auto;min-height:0;display:flex;flex-direction:column}
 .hero-gallery{position:relative;inset:auto;aspect-ratio:auto;height:calc(56.25vw + 110px);width:100%;flex-shrink:0}
 .hero-slide img{height:calc(100% - 100px);object-fit:cover}
 .hero-slide::after{display:none}
 .hero-slide figcaption{bottom:16px;right:var(--pad)}
 .hero-slide figcaption a{font-size:16px;max-width:none}
 .hero-slide figcaption span,.hero-slide figcaption small{font-size:11px}
 .hero-controls{bottom:110px;right:16px;gap:7px;background:#182622b3;padding:5px;border-radius:8px}
 .hero-controls button{width:36px;height:36px}
 .banner .banner-in{padding:25px var(--pad) 32px;background:#182622}
 .banner h1{font-size:clamp(34px,7vw,58px)}
 .banner .banner-lead{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.hero-slide{transition:none}}

/* Fit the entire desktop introduction and carousel within the first viewport. */
.hero-discover{display:none}
@media(min-width:901px){
 .banner{aspect-ratio:auto;height:calc(100svh - var(--ave-header-height,93px));min-height:0;overflow:hidden}
 .banner .banner-in{position:absolute;left:0;right:0;top:32px;bottom:auto;padding-top:0;padding-bottom:0}
 .banner h1{font-size:clamp(34px,3.8vw,65px);line-height:1.04;max-width:22ch}
 .banner .cintillo{font-size:11px;margin-bottom:10px;line-height:1.4}
 .banner .hero-legal-name{font-size:12px;line-height:1.4;margin-top:4px}
 .banner .banner-lead{font-size:15px;line-height:1.5;max-width:65ch;margin-top:14px;hyphens:none}
 .banner .banner-cta{margin-top:18px;gap:12px}
 .banner .banner-cta .btn{padding:12px 18px;min-height:46px}
 .hero-slide::after{background:linear-gradient(180deg,#10241ed9 0%,#10241e80 29%,transparent 61%,#10241ee6 100%)}
 .hero-slide figcaption{bottom:24px;right:51%;padding-top:14px;border-top:1px solid #ffffff55}
 .hero-slide figcaption a{font-size:clamp(14px,1.2vw,19px)}
 .hero-controls{right:calc(var(--pad) + 65px);bottom:28px}
 .hero-discover{display:block;position:absolute;z-index:3;bottom:36px;left:52%;color:#fff;font-size:11px;letter-spacing:.09em;text-transform:none;text-decoration:none}
 .hero-discover:hover{text-decoration:underline;text-underline-offset:5px}
 .hero-discover:focus-visible{outline:2px solid white;outline-offset:5px}
}
@media(min-width:901px) and (max-height:730px){
 .banner .banner-in{top:24px;bottom:auto}
 .banner h1{font-size:clamp(32px,7.5svh,50px)}
 .banner .banner-lead{font-size:13px;margin-top:8px;max-width:85ch}
 .banner .banner-cta{margin-top:12px}
 .banner .banner-cta .btn{padding:9px 15px;min-height:42px;font-size:13px}
 .banner .cintillo{margin-bottom:8px}
 .hero-slide figcaption{bottom:18px}
 .hero-controls{bottom:22px}
 .hero-discover{bottom:32px}
}
@media(min-width:901px) and (max-height:520px){
 .banner .banner-in{top:16px;bottom:auto}
 .banner h1{font-size:30px}
 .banner .banner-lead{margin-top:6px;font-size:12px}
 .banner .cintillo{font-size:10px;margin-bottom:6px}
 .banner .hero-legal-name{font-size:10px}
 .hero-slide figcaption a{font-size:13px}
 .hero-slide figcaption span,.hero-slide figcaption small{font-size:10px}
}

/* Mobile reading order: introduction, photographs, experience, projects. */
.hero-title-mobile{display:none}
@media(max-width:900px){
 .hero-title-desktop{display:none}
 .hero-title-mobile{display:inline}
 .banner .banner-in{order:-1;width:100%;box-sizing:border-box}
}

@media(max-width:900px){.hero-gallery{isolation:isolate}.hero-slide.is-active{z-index:1}.hero-slide img{position:relative;z-index:0}}
