.service-deck { padding: 0 var(--gutter); }
.deck-stage { position: relative; max-width: 1440px; margin: auto; }
.deck-panel { position: relative; display: flex; align-items: center; min-height: 480px; overflow: hidden; background: #151515; }
.deck-copy { position: relative; z-index: 3; width: 43%; max-width: 540px; padding: 78px 32px 28px; }
.deck-copy h1, .deck-copy h2 { font-size: clamp(30px, 3vw, 44px); letter-spacing: -.035em; }
.deck-description { max-width: 370px; font-size: 14px; line-height: 1.6; margin-top: 16px; color: #d1d1d1; }
.deck-primary { margin-top: 20px; }
.deck-copy .button { font-size: 12px; }
.deck-related { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 16px; font-size: 11px; }
.deck-related > span { width: 100%; color: #a7a7a7; font-size: 10px; }
.deck-related a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; color: #d6c18c; }
.deck-related a:hover { color: #f3d680; text-decoration: underline; text-underline-offset: 4px; }
.brand-guidance { display: none; }
.deck-visual { position: absolute; inset: 0; overflow: hidden; }
.deck-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#151515 0%,#151515 34%,#151515c7 43%,#15151538 57%,transparent 68%); }
.deck-visual img { width: 100%; height: 100%; object-fit: contain; object-position: right center; }
.deck-controls { position: absolute; top: 0; left: 0; right: 0; z-index: 6; padding: 0 24px; background: linear-gradient(180deg,#151515ef,#1515158c); backdrop-filter: blur(10px); display: flex; align-items: center; gap: 18px; min-height: 54px; border-bottom: 1px solid var(--line); }
.chapter-nav { display: flex; align-items: stretch; gap: clamp(16px,2.3vw,38px); align-self: stretch; }
.chapter-nav a { display: flex; align-items: center; font-size: 14px; font-weight: 500; color: #bbb; border-bottom: 2px solid transparent; white-space: nowrap; min-height: 48px; }
.chapter-nav a[aria-current='step'] { color: #e5c46d; border-bottom-color: var(--gold); }
.chapter-nav a:hover { color: #edcf83; }
.chapter-nav a:focus-visible { outline:none; text-decoration:underline; text-decoration-color:#edcf83; text-decoration-thickness:2px; text-underline-offset:5px; }
.step-controls { display: flex; gap: 6px; margin-left: auto; }
.step-controls button { border: 1px solid #555; background: #222; border-radius: 4px; width: 38px; height: 36px; font-size: 18px; line-height: 1; }
.step-controls button:hover { border-color: var(--gold); color: var(--gold); }
.step-controls button:disabled { opacity: .3; cursor: default; }
.deck-autoplay { position:absolute; right:12px; top:auto; bottom:12px; z-index:8; display:flex; align-items:center; justify-content:center; gap:7px; min-width:36px; min-height:36px; padding:8px; border:0; border-radius:0; background:transparent; color:#e5dfd0; font-size:11px; }
.deck-autoplay>span { display:flex; align-items:center; }
.deck-autoplay .icon { width:15px; height:15px; flex-basis:15px; color:#d5b363; }
.deck-autoplay:hover { background:transparent; }
.deck-autoplay [data-playback-label] { display:none; }
.deck-autoplay:disabled { opacity: .55; cursor: default; }
.deck-more { font-size: 11px; color: #bbb; white-space: nowrap; }
.deck-more:hover { color: var(--gold); }
.quick-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 12px 0; }
.contact-card { position:relative; padding:16px 20px; border:1px solid #3b3a35; border-radius:8px; background:#1e1e1b; }
.contact-card-heading { display:flex; flex-direction:column; align-items:flex-start; gap:7px; }
.quick-place { color:#f3f1eb; font-size:22px; line-height:1.2; font-weight:650; }
.quick-hours { display:inline-flex; align-items:center; gap:7px; font-size:11px; color:#d4d1c8; white-space:nowrap; }
.quick-hours .icon { width:16px; height:16px; }
.contact-address { display:flex; flex-direction:column; margin:8px 0 0; font-style:normal; line-height:1.5; color:#d8d5cc; font-size:12px; }
.quick-email { color:#dfbc58; font-size:13px; text-underline-offset:3px; }
.quick-email:hover { text-decoration: underline; }
.contact-links { display:flex; flex-direction:column; align-items:flex-start; gap:5px; margin-top:10px; padding-right:120px; }
.contact-links>a { display:inline-flex; align-items:center; gap:10px; min-height:24px; }
.contact-links .icon { color:#d8b653; width:17px; height:17px; flex-shrink:0; }
.quick-phone { font-size:23px; line-height:1.2; font-weight:500; white-space:nowrap; }
.quick-phone:hover { color:#e8c873; }
.quick-map { position:absolute; right:20px; bottom:17px; font-size:11px; min-height:38px; padding:8px 12px; gap:7px; }
.quick-place:hover { color: #f5d17a; }
.deck-enhanced .deck-stage { height: min(900px, calc(100svh - 72px)); min-height: 570px; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.deck-enhanced .deck-panels { position: relative; overflow: hidden; }
.deck-enhanced .deck-panel { position: absolute; inset: 0; min-height: 0; visibility: hidden; pointer-events: none; }
.deck-enhanced .deck-panel.is-active, .deck-enhanced .deck-panel.is-leaving { visibility: visible; }
.deck-enhanced .deck-panel.is-active { z-index: 2; pointer-events: auto; }
.deck-enhanced .deck-panel.is-leaving { z-index: 1; }
.deck-enhanced .deck-panel.is-entering .deck-visual { animation: frame-in 700ms cubic-bezier(.22,.75,.2,1) both; }
.deck-enhanced .deck-panel.is-entering .deck-visual img { animation: camera-in 850ms cubic-bezier(.2,.65,.2,1) both; }
.deck-enhanced .deck-panel.is-entering .deck-copy { animation: copy-in 530ms 100ms both; }
.deck-enhanced .deck-panel.is-leaving .deck-copy { animation: copy-out 230ms both; }
.story-scroll { scroll-padding-top: 72px; }
.story-page .service-overview, .story-page .locations { min-height: min(900px,calc(100svh - 72px)); display: flex; flex-direction: column; justify-content: center; padding-top: 30px; padding-bottom: 30px; }
.service-overview { background: linear-gradient(120deg,#24211b,#1c1c1c 42%,#171717); border-top: 1px solid #786338; border-bottom: 1px solid #786338; }
.overview-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 26px; }
.overview-heading .eyebrow { font-size: 10px; margin-bottom: 10px; }
.overview-heading h2 { font-size: clamp(28px,2.7vw,38px); letter-spacing: -.035em; }
.overview-heading > p { color: #bbb; font-size: 13px; line-height: 1.65; max-width: 400px; }
.overview-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.service-index { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.service-index article { min-width: 0; position: relative; padding: 0 0 4px; }
.service-card-visual { display:block; color:inherit; text-decoration:none; position:relative; min-height:0; overflow:hidden; border:1px solid #ffffff16; background:#141414; }
.service-card-visual:focus-visible,.diagnosis-photo:focus-visible { outline:2px solid #dfbd62; outline-offset:3px; }
@media (hover:hover) { .service-card-visual:hover h3 { color:#dfbd62; } }
.service-card-visual::after { content:''; position:absolute; inset:25% 0 0; background:linear-gradient(transparent,#0b0b0be8); pointer-events:none; }
.service-photo { display:block; width:100%; height:auto; aspect-ratio:16 / 9; object-fit:cover; }
.service-card-visual h3 { position:absolute; z-index:1; left:16px; right:12px; bottom:14px; color:#fff; text-shadow:0 1px 12px #000; }
.service-index h3 { font-size: 19px; }
.service-index p { color: #bbb; font-size: 12px; line-height: 1.55; margin-top: 7px; }
.service-link { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; margin-top: 4px; color: #dfc57f; font-size: 12px; }
.service-link .icon { width: 15px; height: 15px; }
.service-link:hover { color: #ffdf91; text-decoration: underline; text-underline-offset: 4px; }
.diagnosis-feature { align-self: start; border: 1px solid #564d39; background: #141414; overflow: hidden; }
.diagnosis-photo { display:block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.diagnosis-photo img { width: 100%; height: 100%; object-fit: contain; }
.diagnosis-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,#141414,transparent); }
.diagnosis-photo > span { position: absolute; z-index: 1; left: 22px; bottom: 10px; color: #dfc57f; font-size: 10px; letter-spacing: .05em; }
.diagnosis-content { padding: 8px 22px 22px; }
.diagnosis-content h3 { font-size: 23px; line-height: 1.2; }
.diagnosis-content > p { color: #bdbdbd; font-size: 12px; line-height: 1.6; margin-top: 10px; }
.diagnosis-content ol { list-style: none; margin: 14px 0; padding: 0; font-size: 11px; color: #d0d0d0; }
.diagnosis-content li { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid #ffffff10; }
.diagnosis-content li span { color: #b39751; font-size: 9px; }
.diagnosis-content .button { font-size: 11px; min-height: 38px; }
.diagnosis-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.diagnosis-actions .service-link { margin: 0; }
.section-next { display: flex; align-items: center; justify-content: end; gap: 12px; padding-top: 20px; margin-top: 16px; border-top: 1px solid #ffffff15; color: #ddc58b; font-size: 12px; }
.section-next > span { margin-right: auto; font-size: 11px; color: #999; }
.section-next .icon { transform: rotate(90deg); width: 16px; height: 16px; }
.story-page .locations .location-map { height: clamp(180px,23svh,240px); }
.story-page .locations { padding-top:24px; padding-bottom:24px; }
.story-page .locations .section-intro { margin-bottom: 20px; }
.story-page .locations h2 { font-size: 34px; }
.story-page .location-request { margin-top: 22px; padding-top: 20px; }
.story-page .footer { padding-top:32px; padding-bottom:24px; }
/* On desktop, the second view fits below the fixed header. Images retain their
   full framing; small/zoomed viewports keep the natural document flow. */
@media (min-width:1101px) and (min-height:680px) {
  .story-page .locations { min-height:calc(100svh - 72px); }
  .story-page .service-overview { height:calc(100svh - 72px); min-height:0; padding-top:20px; padding-bottom:16px; }
  .service-overview .overview-heading { flex:none; margin-bottom:16px; }
  .service-overview .overview-layout { flex:1; min-height:0; }
  .service-index { min-height:0; grid-template-rows:repeat(2,minmax(0,1fr)); gap:16px 28px; }
  .service-index article { display:grid; grid-template-rows:minmax(0,1fr) auto auto; gap:7px; min-height:0; padding:0; }
  .service-card-visual { height:100%; }
  .service-photo { min-height:0; height:100%; aspect-ratio:auto; }
  .service-index p, .service-index .service-link { margin:0; }
  .service-index p { min-height:3.1em; }
  .diagnosis-feature { height:100%; min-height:0; display:grid; grid-template-rows:minmax(0,1fr) auto; }
  .diagnosis-photo { min-height:0; aspect-ratio:auto; }
  .service-overview .section-next { flex:none; padding-top:10px; margin-top:12px; }
}
@keyframes frame-in { from { transform: translate3d(calc(var(--direction, 1) * 5%),0,0); opacity: 0; } to { transform: translate3d(0,0,0); opacity: 1; } }
@keyframes camera-in { from { transform: scale(1.035); } to { transform: scale(1); } }
@keyframes copy-in { from { opacity: 0; transform: translate3d(0,10px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes copy-out { to { opacity: 0; transform: translate3d(0,-8px,0); } }
@media (max-width: 1100px) {
  .deck-more { display: none; }
  .deck-copy { width: 46%; padding: 76px 24px 24px; }
  .deck-copy h1, .deck-copy h2 { font-size: 36px; }
  .chapter-nav { flex: 1; justify-content: space-between; gap: 14px; }
  .chapter-nav a { font-size: 13px; }
  .contact-address { display: flex; flex-direction: column; gap: 0; }
  .contact-card { gap: 12px; padding: 10px 14px; }
  .contact-links .button { padding: 8px 10px; }
  .quick-phone { font-size:20px; }
  .contact-links { padding-right:90px; }
  .quick-map { right:14px; padding:8px; font-size:10px; }
}
@media (max-width: 900px) {
  .deck-enhanced .deck-stage { height: calc(100svh - 64px); }
  .deck-copy h1, .deck-copy h2 { font-size: 32px; }
  .deck-description { font-size: 13px; }
  .step-controls { display: none; }
  .story-scroll { scroll-padding-top: 64px; }
  .overview-layout { gap: 24px; grid-template-columns: 1fr; }
  .service-index { gap: 20px 24px; }
  .service-index h3 { font-size: 18px; }
  .service-index p { font-size: 12px; }
}
@media (max-width: 600px) {
  .deck-enhanced .deck-stage { height:auto; min-height:0; grid-template-rows:minmax(470px,calc(100svh - 374px)) auto; }
  .deck-controls { display: block; min-height: 58px; padding: 6px 8px 0; background: #151515dc; }
  .brand-guidance { display: block; font-size: 9px; line-height: 1.4; color: #c9c9c9; margin-bottom: 2px; }
  .chapter-nav { display: flex; justify-content: space-between; gap: clamp(3px,1vw,6px); width: 100%; }
  .chapter-nav a { justify-content: center; min-height: 34px; padding: 0; font-size: clamp(8px,2.45vw,11px); font-weight: 500; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #ddd; }
  .chapter-nav a[aria-current='step'] { background: transparent; border-bottom-color: #b89542; color: #f0d286; }
  .deck-panel { display: flex; flex-direction: column; min-height: 480px; justify-content: flex-end; }
  .deck-visual { position: absolute; inset: 54px 0 auto; height: 48%; }
  .deck-visual img { object-position: 70% center; }
  .deck-visual::after { background: linear-gradient(0deg,#151515,transparent 35%); }
  .deck-copy { padding: 14px 12px 16px; width: 100%; max-width: none; background: linear-gradient(0deg,#151515 90%,#15151500); }
  .deck-copy .eyebrow { font-size: 9px; margin-bottom: 8px; }
  .deck-copy h1, .deck-copy h2 { font-size: 26px; line-height: 1.12; }
  .deck-copy h1 br, .deck-copy h2 br { display: none; }
  .deck-description { font-size: 12px; line-height: 1.5; margin-top: 10px; }
  .deck-primary { margin-top: 12px; }
  .deck-related { margin-top: 8px; column-gap: 16px; font-size: 10px; }
  .deck-related > span { font-size: 9px; }
  .deck-related a { min-height: 32px; }
  .deck-copy .button { font-size: 11px; min-height: 38px; }
  .deck-autoplay { right: 12px; top: auto; bottom: 12px; min-height: 32px; font-size: 11px; }
  .quick-contact { grid-template-columns:1fr; gap:10px; padding:8px 0; }
  .contact-card { padding:14px 16px; }
  .quick-place { font-size:21px; }
  .quick-hours { font-size:11px; }
  .contact-address { margin-top:7px; font-size:12px; }
  .quick-email { font-size:13px; }
  .contact-links { gap:4px; margin-top:8px; padding-right:90px; }
  .quick-phone { font-size:21px; }
  .quick-map { right:16px; bottom:14px; font-size:10px; padding:8px; gap:5px; }
  .story-scroll { scroll-padding-top: 60px; }
  .story-page .service-overview, .story-page .locations { min-height: 0; padding-top: 28px; padding-bottom: 24px; }
  .overview-heading { display: block; margin-bottom: 20px; }
  .overview-heading h2 { font-size: 27px; }
  .overview-heading > p { margin-top: 10px; font-size: 12px; }
  .overview-layout { grid-template-columns: 1fr; gap: 20px; }
  .service-index { grid-template-columns: 1fr; gap: 24px; }
  .service-index article { padding-top: 0; }
  .service-photo { margin-bottom: 10px; }
  .service-index h3 { font-size: 16px; line-height: 1.2; }
  .service-index p { font-size: 11px; line-height: 1.5; }
  .service-link { font-size: 10px; gap: 6px; }
  .diagnosis-content { padding: 6px 18px 18px; }
  .diagnosis-content h3 { font-size: 22px; }
  .section-next { font-size: 11px; }
  .section-next > span { display: none; }
  .story-page .locations h2 { font-size: 28px; }
  .story-page .locations .location-map { height: 180px; }
}
@media (forced-colors: active) {
  .chapter-nav a[aria-current='step'] { border-color: Highlight; }
  .deck-copy { background: Canvas; }
}

/* Each desktop view follows the actual browser viewport, including browser
   zoom and resized windows. Content can grow when a shorter view cannot fit. */
@media (min-width:901px) {
  .deck-enhanced .deck-stage {height:calc(var(--story-viewport-height,100svh) - var(--story-header-height,72px));min-height:var(--story-hero-min-height,440px)}
  .story-page .service-overview,.story-page .locations {min-height:calc(var(--story-viewport-height,100svh) - var(--story-header-height,72px))}
  .story-scroll {scroll-padding-top:var(--story-header-height,72px)}
}
@media (min-width:1101px) and (min-height:680px) {
  .story-page .service-overview {height:calc(var(--story-viewport-height,100svh) - var(--story-header-height,72px))}
}
@media (min-width:901px) and (max-height:720px) {
  .deck-copy {padding-top:66px;padding-bottom:20px}
}
@media (min-width:901px) {
  .service-deck[data-compact-view] .quick-contact {display:none}
}
@media (min-width:1601px) {
  /* Balance the composition against BOTH dimensions. A panoramic window must
     not pull the text and photograph to opposite edges of the screen. */
  .story-page {--story-width:clamp(1360px,calc((var(--story-viewport-height,100svh) - var(--story-header-height,72px))*1.65),1920px);--gutter:max(28px,calc((100vw - var(--story-width))/2))}
  .story-page .deck-stage {max-width:var(--story-width);container-type:inline-size}
  .deck-copy {width:46%;max-width:640px;padding-inline:32px}
  .deck-copy h1,.deck-copy h2 {font-size:clamp(36px,3cqw,54px)}
  .deck-description {font-size:clamp(14px,1cqw,17px);max-width:38ch}
  .deck-copy .eyebrow {font-size:12px}
  .deck-copy .button {font-size:clamp(12px,.9cqw,16px)}
  .deck-related {font-size:clamp(11px,.8cqw,14px)}
  .deck-related>span {font-size:11px}
  .chapter-nav a {font-size:14px}
}
