/* Four photo panels: one open, three quiet vertical previews. */
.services-section{max-width:1180px;margin:0 auto;padding:72px 24px 120px;scroll-margin-top:-72px}
.services-heading{font-size:clamp(30px,3.1vw,42px);font-weight:600;line-height:1.22;letter-spacing:-1.6px;margin:0 0 34px;text-align:center}
.services-accordion{--service-open-width:580px;display:flex;gap:12px;height:clamp(440px,64svh,580px);isolation:isolate}
.service-card{position:relative;flex:1 1 0;min-width:0;overflow:hidden;border-radius:16px;background:#383b38;color:#fff;isolation:isolate;transition:flex-grow 900ms cubic-bezier(.76,0,.24,1)}
.service-card.is-active{flex-grow:3.25}
.service-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--service-position,55%) 40%;transform:scale(1.035);transition:transform 1200ms cubic-bezier(.22,1,.36,1);z-index:-2}
.service-card.is-active .service-photo{transform:scale(1)}
.service-card:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#070b0c66 0%,#070b0c03 30%,#070b0c4d 62%,#070b0ce6 100%)}
.service-card:has(.service-select:focus-visible){outline:2px solid var(--text);outline-offset:5px}
html[data-theme] body.glass-site .service-select,html[data-theme] body.glass-site .service-select:hover{position:absolute;inset:0;z-index:2;width:100%;height:100%;padding:0;border:0;border-radius:inherit;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;outline:none}
.service-heading{position:absolute;top:24px;left:28px;width:calc(var(--service-open-width) - 92px);font-size:21px;font-weight:600;line-height:1.4;letter-spacing:-.5px;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity 180ms ease}
.service-copy{position:absolute;left:28px;bottom:28px;width:calc(var(--service-open-width) - 56px);pointer-events:none;opacity:0;transform:translateY(10px);transition:opacity 180ms ease,transform 180ms ease}
.service-copy h4{font-size:clamp(25px,2.5vw,32px);font-weight:550;line-height:1.35;letter-spacing:-1px}
.service-copy p{margin-top:18px;padding-top:16px;border-top:1px solid #ffffff30;max-width:390px;font-size:13px;line-height:1.9;color:#f1efea;letter-spacing:.02em}
.service-card.is-active :is(.service-heading,.service-copy){opacity:1;transform:none;transition:opacity 400ms ease 430ms,transform 600ms cubic-bezier(.22,1,.36,1) 430ms}
.service-spine {
  position: absolute;
  inset: auto 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 550;
  line-height: 1;
  pointer-events: none;
  transition: opacity 220ms ease 240ms;
}
.service-spine-name { writing-mode: vertical-rl; letter-spacing: .12em; }
.service-card.is-active .service-spine{opacity:0;transition-delay:0ms}
html[data-theme] body.glass-site .service-contact{position:absolute;top:24px;right:24px;z-index:3;width:36px;height:36px;display:grid;place-items:center;padding:0;border-radius:50%;background:#ffffff26;color:#fff;border:1px solid #ffffff66;box-shadow:0 1px 0 #ffffff40 inset,0 3px 14px #00000012;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);opacity:0;pointer-events:none;transform:scale(.85);transition:opacity 180ms ease,transform 180ms ease}
html[data-theme] body.glass-site .service-card.is-active .service-contact{opacity:1;pointer-events:auto;transform:none;transition:opacity 350ms ease 430ms,transform 500ms cubic-bezier(.22,1,.36,1) 430ms}
html[data-theme] body.glass-site .service-contact:hover{background:#ffffff45;border-color:#ffffffb3}
.service-contact .icon{width:17px;height:17px;stroke-width:1.7}
.service-contact:focus-visible{outline-color:#fff}
.service-pagination { display: none; }
@media(min-width:768px) and (max-width:980px){.services-section{padding-inline:28px}.service-heading{left:22px;font-size:18px}.service-copy{left:22px;bottom:24px;width:calc(var(--service-open-width) - 44px)}.service-copy h4{font-size:25px}.service-copy p{font-size:12px}.service-spine{font-size:14px}html[data-theme] body.glass-site .service-contact{top:20px;right:20px;width:32px;height:32px}}
@media(max-width:767px){
  .services-section{padding:56px 24px 96px;scroll-margin-top:-56px}.services-heading{font-size:32px;line-height:1.3;letter-spacing:-1px;margin-bottom:28px}
  .services-accordion {
    position: relative;
    height: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .services-accordion::-webkit-scrollbar { display: none; }
  .service-card,.service-card.is-active {
    height: 440px;
    flex: 0 0 calc(100% - clamp(34px, 9vw, 52px));
    scroll-snap-align: end;
    transition: none;
  }
  .service-card:first-child { scroll-snap-align: start; }
  .service-photo{object-position:var(--service-position,55%) 38%;transform:none}
  html[data-theme] body.glass-site .service-select{display:none}
  .service-heading{top:24px;left:24px;width:calc(100% - 90px);font-size:20px;opacity:1}
  .service-copy{left:24px;bottom:24px;width:calc(100% - 48px);opacity:1;transform:none}
  .service-copy h4{font-size:28px}.service-copy p{font-size:13px;max-width:360px}
  .service-spine{display:none}
  html[data-theme] body.glass-site .service-card .service-contact{opacity:1;pointer-events:auto;transform:none}
  .service-pagination:not([hidden]) {
    --service-page-dot: #918b89;
    --service-page-gold: #896342;
    display: flex;
    justify-content: center;
    gap: 1px;
    margin-top: 4px;
  }
  html[data-theme="dark"] .service-pagination {
    --service-page-dot: #a7a5a8;
    --service-page-gold: #d4b391;
  }
  html[data-theme] body.glass-site .service-pagination button {
    display: grid;
    flex: none;
    place-items: center;
    width: 24px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
    transition: width 300ms cubic-bezier(.22, .75, .25, 1);
  }
  html[data-theme] body.glass-site .service-pagination button[aria-current="true"] { width: 44px; }
  .service-pagination button::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--service-page-dot);
    transition: width 300ms cubic-bezier(.22, .75, .25, 1), background-color 200ms ease;
  }
  .service-pagination button[aria-current="true"]::before {
    width: 30px;
    background: var(--service-page-gold);
  }
}
@media(max-width:380px){.services-section{padding-inline:20px}.services-heading{font-size:29px}.service-card,.service-card.is-active{height:420px}.service-heading{left:20px;font-size:18px}.service-copy{left:20px;bottom:22px;width:calc(100% - 40px)}.service-copy h4{font-size:25px}.service-copy p{font-size:12px}html[data-theme] body.glass-site .service-contact{top:22px;right:20px;width:32px;height:32px}}
@media(prefers-reduced-motion:reduce){.service-card,.service-photo,.service-heading,.service-copy,.service-spine,html[data-theme] body.glass-site .service-contact,html[data-theme] body.glass-site .service-card.is-active .service-contact,.service-card.is-active :is(.service-heading,.service-copy){transition:none;transform:none}}
@media(prefers-reduced-motion:reduce){
  html[data-theme] body.glass-site .service-pagination button,
  .service-pagination button::before { transition: none; }
}
