/* Lightweight motion system: CSS transforms, IntersectionObserver and one timer. */
:root { --motion-ease: cubic-bezier(.2,.75,.25,1); }
.hero-carousel { position: relative; perspective: 1200px; }
.hero-carousel .hero-gallery { display: block; position: relative; height: 480px; transform-style: preserve-3d; }
.hero-carousel [data-carousel-slide] {
  position: absolute; inset: 0; width: min(54%, 620px); height: 410px; margin: auto;
  opacity: 0; pointer-events: none; transform: translate3d(0,0,-360px) scale(.72);
  transition: transform 850ms var(--motion-ease), opacity 650ms ease, filter 850ms ease;
  will-change: transform, opacity;
}
.hero-carousel [data-carousel-slide].is-active { z-index: 3; opacity: 1; pointer-events: auto; transform: translate3d(0,0,80px) scale(1); filter:none; }
.hero-carousel [data-carousel-slide].is-prev { z-index: 2; opacity: .76; pointer-events: auto; transform: translate3d(-66%,0,-100px) rotateY(20deg) scale(.82); filter:saturate(.8); }
.hero-carousel [data-carousel-slide].is-next { z-index: 2; opacity: .76; pointer-events: auto; transform: translate3d(66%,0,-100px) rotateY(-20deg) scale(.82); filter:saturate(.8); }
.hero-carousel [data-carousel-slide].is-far-prev { z-index: 1; opacity: .35; transform: translate3d(-112%,0,-280px) rotateY(30deg) scale(.68); }
.hero-carousel [data-carousel-slide].is-far-next { z-index: 1; opacity: .35; transform: translate3d(112%,0,-280px) rotateY(-30deg) scale(.68); }
.hero-carousel [data-carousel-slide] img { border-radius: 10px; }
.carousel-controls { display:flex; align-items:center; justify-content:center; gap:18px; margin:0 auto 10px; }
.carousel-controls > button { width:44px; height:44px; border:1px solid var(--line); border-radius:50%; background:#fff9; color:var(--ink); font-size:18px; }
[data-carousel-dots] { display:flex; align-items:center; gap:8px; }
[data-carousel-dots] button { width:8px; height:8px; padding:0; border:0; border-radius:8px; background:#c8c1b9; transition:width .3s ease,background .3s ease; }
[data-carousel-dots] button[aria-current="true"] { width:24px; background:var(--accent); }
.scroll-progress { position:fixed; z-index:101; inset:0 auto auto 0; width:100%; height:3px; pointer-events:none; transform:scaleX(0); transform-origin:left center; background:linear-gradient(90deg,#ab3033,#eb9e76); }
.has-motion [data-reveal] { opacity:0; transform:translate3d(0,24px,0); transition:opacity 700ms var(--motion-ease),transform 700ms var(--motion-ease); }
.has-motion [data-reveal].is-visible { opacity:1; transform:translate3d(0,0,0); }
.has-motion .editorial-grid [data-reveal] { transition-delay:var(--reveal-delay,0ms); }
@media(max-width:800px) {
  .hero-carousel .hero-gallery { height:350px; }
  .hero-carousel [data-carousel-slide] { width:min(78%,520px); height:300px; }
  .hero-carousel [data-carousel-slide].is-prev { transform:translate3d(-45%,0,-150px) rotateY(13deg) scale(.78); }
  .hero-carousel [data-carousel-slide].is-next { transform:translate3d(45%,0,-150px) rotateY(-13deg) scale(.78); }
  .hero-carousel [data-carousel-slide].is-far-prev { transform:translate3d(-65%,0,-280px) scale(.68); }
  .hero-carousel [data-carousel-slide].is-far-next { transform:translate3d(65%,0,-280px) scale(.68); }
}
@media(max-width:560px) {
  .hero-carousel .hero-gallery { height:300px; margin-top:30px; }
  .hero-carousel [data-carousel-slide] { width:86%; height:auto; aspect-ratio:4/3; }
  .hero-carousel [data-carousel-slide] img { position:absolute; inset:0; }
  .hero-carousel [data-carousel-slide].is-prev { transform:translate3d(-19%,0,-130px) rotateY(9deg) scale(.78); }
  .hero-carousel [data-carousel-slide].is-next { transform:translate3d(19%,0,-130px) rotateY(-9deg) scale(.78); }
  .hero-carousel [data-carousel-slide].is-far-prev,.hero-carousel [data-carousel-slide].is-far-next { opacity:0; }
  .carousel-controls { margin-bottom:0; }
}
@media(prefers-reduced-motion:reduce) {
  .hero-carousel [data-carousel-slide], [data-carousel-dots] button, .has-motion [data-reveal] { transition:none!important; transform:none!important; }
  .has-motion [data-reveal] { opacity:1; }
}

/* Services: layered cards with manually controlled perspective. */
.service-carousel { overflow:hidden; padding:12px 0 0; outline-offset:5px; }
.service-stage { position:relative; height:440px; perspective:1400px; touch-action:pan-y; }
.service-slide { position:absolute; left:22%; top:20px; width:56%; height:390px; box-sizing:border-box; padding:32px 38px; border:1px solid #dbcec3; border-radius:22px; background:#eee7dc; box-shadow:0 24px 44px #3b241a14; transition:transform .7s var(--motion-ease),opacity .6s; backface-visibility:hidden; }
.service-slide:nth-child(2) { background:#f3dcd5; }
.service-slide:nth-child(3) { background:#242825; color:#fff; border-color:#3e443f; }
.service-slide.is-current { z-index:3; opacity:1; transform:translateZ(40px); }
.service-slide.is-left { z-index:1; opacity:.48; transform:translateX(-76%) rotateY(29deg) scale(.85); }
.service-slide.is-right { z-index:1; opacity:.48; transform:translateX(76%) rotateY(-29deg) scale(.85); }
.service-slide .service-number { display:block; margin-bottom:28px; color:var(--accent); font:italic 26px Georgia,serif; }
.service-slide:nth-child(3) .service-number { color:#f5b79b; }
.service-slide h3 { font-size:clamp(26px,3vw,38px); margin:0 0 15px; line-height:1.1; }
.service-slide p { font-size:14px; line-height:1.8; max-width:400px; opacity:.8; }
.service-slide ul { list-style:none; padding:0; margin:22px 0 0; display:flex; flex-wrap:wrap; gap:8px; }
.service-slide li { font-size:11px; padding:7px 11px; border:1px solid #998a7b60; border-radius:25px; }
.service-controls { display:flex; align-items:center; justify-content:center; gap:22px; }
.service-controls > button { width:46px; height:46px; border:1px solid var(--line); border-radius:50%; background:#fff9; font-size:20px; color:var(--ink); cursor:pointer; }
.service-dots { display:flex; gap:7px; }
.service-dots button { width:34px; height:34px; border:0; border-radius:50%; color:var(--ink); background:transparent; font-size:10px; cursor:pointer; }
.service-dots button[aria-pressed="true"] { background:var(--ink); color:#fff; }
.service-status { text-align:center; margin:13px 0 0; font-size:10px; color:var(--muted); letter-spacing:1px; }
.process .steps { position:relative; }
.process .steps article { position:relative; padding:24px 22px; border-radius:12px; transition:background .45s,box-shadow .45s; }
.process .steps article::before { content:''; position:absolute; left:0; top:12px; bottom:12px; width:3px; border-radius:3px; background:#e7ded4; transition:background .4s; }
.process .steps article.is-process-active { background:#f4e9e1; box-shadow:0 12px 30px #44271408; }
.process .steps article.is-process-active::before,.process .steps article.is-process-done::before { background:var(--accent); }
@media(max-width:650px) {
 .service-stage { height:440px; perspective:950px; }
 .service-slide { left:10%; width:80%; padding:27px 23px; height:390px; }
 .service-slide.is-current { transform:translateZ(0); }
 .service-slide.is-left { transform:translateX(-78%) rotateY(20deg) scale(.88); }
 .service-slide.is-right { transform:translateX(78%) rotateY(-20deg) scale(.88); }
 .service-slide h3 { font-size:27px; }
 .service-slide p { font-size:12px; }
 .service-slide .service-number { margin-bottom:22px; }
 .service-slide li { font-size:10px; }
}
@media(prefers-reduced-motion:reduce) {
 .service-slide,.process .steps article,.process .steps article::before { transition:none!important; }
 .service-slide.is-left,.service-slide.is-right { visibility:hidden; }
 .service-slide.is-current { transform:none; }
}

/* Independent tap surfaces over the visible side photographs. */
.hero-hit-layer { position:absolute; left:0; right:0; z-index:8; pointer-events:none; }
.hero-picture-tap { position:absolute; top:15%; bottom:15%; width:20%; min-width:0; min-height:0; padding:0; border:0; border-radius:12px; background:transparent; color:inherit; pointer-events:auto; cursor:pointer; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.hero-picture-tap--previous { left:0; }
.hero-picture-tap--next { right:0; }
.hero-picture-tap:focus-visible { outline:3px solid var(--accent); outline-offset:-4px; background:#ffffff0a; }
.carousel-controls [data-carousel-dots] button { min-height:8px; min-width:8px; }
@media(max-width:800px) { .hero-picture-tap { width:12%; } }
@media(max-width:560px) { .hero-picture-tap { width:9%; top:18%; bottom:18%; } }
@media(prefers-reduced-motion:reduce) { .hero-hit-layer { display:none; } }

/* Mobile gestures include the side-photo tap overlays. */
.hero-carousel,.hero-picture-tap,.service-stage,.album-main-photo { touch-action:pan-y pinch-zoom; }
.hero-gallery img,.service-slide img,.album-main-photo { user-select:none; -webkit-user-select:none; -webkit-user-drag:none; }
.is-swiping { cursor:grabbing; }
@media(max-width:560px) {
 .hero-carousel .hero-gallery { height:clamp(215px,65vw,300px); }
 .hero-carousel [data-carousel-slide] { width:80%; }
}
