/* v0.4 — hero slideshow, full-image gallery and navigation refinements. */
.hero-figure{margin-inline-start:30px}
.hero-photo{isolation:isolate;position:relative}
.hero-photo .hero-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;transform:scale(1.025);animation:none;transition:opacity 1.05s ease,transform 6.8s linear;pointer-events:none}
.hero-photo .hero-slide.active{opacity:1;transform:scale(1)}
.hero-enlarge{position:absolute;inset:0;z-index:2;width:100%;height:100%;padding:0;cursor:zoom-in;text-align:end}
.hero-enlarge>span{position:absolute;inset-inline-end:18px;inset-block-start:18px;display:grid;place-items:center;width:42px;height:42px;background:#0b1320b8;border:1px solid #eef2f544;font-size:23px;transition:background .25s}
.hero-enlarge:hover>span{background:var(--glass)}
.hero-slide-controls{position:absolute;inset:auto 0 0;z-index:3;display:flex;align-items:center;gap:10px;padding:23px 16px 13px;background:linear-gradient(transparent,#0b1320c9);color:white}
.hero-slide-controls button{display:grid;place-items:center;min-width:42px;min-height:42px;border:1px solid #ffffff50;background:#0b132040;transition:background .25s}
.hero-slide-controls button:hover{background:var(--glass)}
.hero-slide-controls button:focus-visible,.hero-enlarge:focus-visible{outline-offset:-3px}
.hero-slide-dots{display:flex;gap:2px;margin-inline-end:auto}
.hero-slide-dots button{min-width:24px;width:24px;border:0;background:none;padding:0}
.hero-slide-dots button:before{content:'';height:3px;width:16px;background:#ffffff77;transition:width .25s,background .25s}
.hero-slide-dots button[aria-pressed=true]:before{width:22px;background:#fff}
.hero-step-controls{display:flex;gap:5px}.hero-step-controls .arrow{margin:0}
#hero-pause{font-size:14px}
.gallery-open{display:block;padding:0;width:100%;text-align:start;cursor:zoom-in}
.gallery-expand{position:absolute;inset-inline-end:25px;inset-block-end:25px;background:var(--ink);width:50px;height:50px;display:grid;place-items:center;font-size:27px;border:1px solid #eef2f550;transition:background .25s}
.gallery-open:hover .gallery-expand{background:var(--glass)}
.dialog-image-area{height:calc(100% - 110px);position:relative;min-height:0}
.dialog-image-area .dialog-viewport{height:100%}
.viewer-step{position:absolute;inset-block-start:50%;transform:translateY(-50%);width:48px;height:54px;display:grid;place-items:center;background:#0b1320df;border:1px solid #eef2f566;color:#fff;font-size:24px;box-shadow:0 4px 16px #0003}
.viewer-step:hover{background:var(--glass)}.viewer-step .arrow{margin:0}
.viewer-previous{inset-inline-start:14px}.viewer-next{inset-inline-end:14px}
.gallery-dialog .dialog-viewport{background:#dce2e7}
.gallery-dialog .dialog-note{background:var(--deep)}
@media(min-width:768px){
 .hero-grid{grid-template-columns:1fr .65fr 1.15fr;height:clamp(430px,calc(100svh - 265px),650px)}
 .hero-bottom{display:grid;grid-template-columns:1fr 1fr;gap:30px}
 .hero-bottom>.button{justify-self:start;margin-inline-start:24%;min-width:240px}
 .hero-bottom>.hero-scroll{justify-self:end}
 .process .section-head{grid-template-columns:1fr;gap:34px;padding-block-end:64px}
 .process .section-head>h2{justify-self:center;text-align:center;width:100%;max-width:1000px}
}
@media(min-width:768px) and (max-width:1000px){.hero-grid{grid-template-columns:1fr .6fr 1.1fr}.hero-figure{margin-inline-start:20px}.hero-bottom>.button{margin-inline-start:12%;min-width:210px}}
@media(max-width:767px){
 .hero-figure{margin-inline-start:0}.hero-photo{height:420px;min-height:420px}
 .hero-slide-controls{padding:20px 12px 10px;gap:7px}.hero-slide-dots{gap:0}
 .hero-step-controls{gap:3px}.hero-slide-controls button{min-width:40px;min-height:42px}.hero-slide-dots button{min-width:23px;width:23px}
 .hero-enlarge>span{inset-block-start:12px;inset-inline-end:12px}
 .hero-bottom>.button{flex:none;width:100%}
 .gallery-expand{inset-inline-end:12px;inset-block-end:12px;width:42px;height:42px;font-size:23px}
 .viewer-step{width:40px;height:48px}.viewer-previous{inset-inline-start:6px}.viewer-next{inset-inline-end:6px}
 .gallery-dialog .dialog-toolbar h2{font-size:13px;max-width:18ch}.gallery-dialog .dialog-tools button{min-width:28px;padding:7px}
 .gallery-dialog .dialog-tools .dialog-close{font-size:10px;white-space:nowrap}
}
@media(prefers-reduced-motion:reduce){.hero-photo .hero-slide{transition:none;transform:none}.gallery-open .gallery-expand,.hero-slide-controls button{transition:none}}
