/* The sixth chapter shares the CAD/CAM sticky stage and its eased handoff. */
.dental-home .service-anchor{position:absolute;left:0;top:calc(94% - 94svh);width:1px;height:1px;pointer-events:none}
.service-fallback{display:none;position:absolute;inset:0;z-index:0;overflow:clip;pointer-events:none;opacity:var(--lab-copy-opacity,0);transform:translate3d(0,var(--lab-copy-shift,0px),0);perspective:1000px;background:radial-gradient(ellipse at 52% 54%,#262a2b38,transparent 67%)}
.scene-unavailable .service-fallback,.service-panel-unavailable .service-fallback{display:block}
.service-fallback-field{--tile:min(5.3vw,9.3vh);position:absolute;left:50%;top:59%;width:calc(var(--tile) * 17.5);height:calc(var(--tile) * 8.1);transform:translate(-50%,-50%) rotateX(47deg) rotateZ(-2deg);transform-style:preserve-3d;filter:drop-shadow(0 25px 28px #000b)}
.service-fallback-cell{position:absolute;left:calc(var(--column) * var(--tile));top:calc(var(--row) * var(--tile) * .866);width:calc(var(--tile) - 3px);height:calc(var(--tile) * 1.155 - 3px);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);background:linear-gradient(125deg,#8a9091,#202425 32%,#656b6d 66%,#0f1214);transform:translateZ(calc(var(--tone) * 1px));}
.service-fallback-cell::before{content:'';position:absolute;inset:2px;clip-path:inherit;background:linear-gradient(135deg,#2e3337 12%,#55595b 28%,#22272a 52%,#6d6f70 77%,#272c2e);background-size:220% 100%;background-position:calc(var(--tone) * 24%) 50%;animation:service-fallback-sheen 9s ease-in-out infinite alternate}
.service-fallback-tooth{position:absolute;left:36%;top:11%;width:28%;height:78%;overflow:visible;transform:translateZ(3px);filter:drop-shadow(0 0 3px #ed253c60)}
@keyframes service-fallback-sheen{to{background-position:calc(var(--tone) * 24% + 30%) 50%}}
.motion-paused .service-fallback-cell::before{animation-play-state:paused}
.dental-home .lab-copy.service-copy{inset:0;display:block;gap:0;opacity:var(--lab-copy-opacity,0);transform:translate3d(0,var(--lab-copy-shift,0px),0);pointer-events:none;color:#ece8e3}
/* Service copy is a separate editorial layer over the living metal field. */
.dental-home .service-copy p{position:static;max-width:none;width:auto;opacity:1;text-align:left}
.service-intro{position:absolute;left:6.5%;top:13.3%;width:48%;text-align:left}
.service-copy .service-kicker{display:flex;align-items:center;gap:14px;margin:0 0 calc(19 * var(--dental-unit));font:400 calc(12 * var(--dental-unit))/1.4 'MyCadCam Jura','Segoe UI',sans-serif;letter-spacing:.22em;color:#b6b2af}
.service-kicker::before{content:'';width:calc(31 * var(--dental-unit));height:1px;background:#ef263e}
.service-kicker>span{color:#f13d4c;letter-spacing:.04em}
.dental-home .service-copy .service-title{position:static;margin:0;font:300 calc(76 * var(--dental-unit))/.98 'MyCadCam Jura','Segoe UI Light','Segoe UI',sans-serif;letter-spacing:-.035em;text-align:left;opacity:1;color:#f0ece6;text-transform:none}
.service-title>span{display:block;white-space:nowrap}
.service-title>span:first-child{color:#a5a4a2}
.service-title-dot{color:#f12a40}
.service-support{position:absolute;left:60.5%;top:14%;width:32%;text-align:left}
.service-copy .service-caption{margin:0 0 calc(17 * var(--dental-unit));font:400 calc(10 * var(--dental-unit))/1.3 'MyCadCam Jura','Segoe UI',sans-serif;letter-spacing:.20em;color:#aaa7a2}
.service-offerings{display:grid;grid-template-columns:repeat(3,1fr);list-style:none;margin:0;padding:0}
.service-offerings li{display:flex;flex-direction:column;gap:calc(4 * var(--dental-unit));padding:0 calc(15 * var(--dental-unit));border-left:1px solid #e4dcd228;font:400 calc(12 * var(--dental-unit))/1.4 'MyCadCam Jura','Segoe UI',sans-serif;color:#aaa6a2;white-space:nowrap}
.service-offerings li:first-child{padding-left:0;border-left:0}
.service-offerings .service-number{font-size:calc(10 * var(--dental-unit));letter-spacing:.13em;color:#eb3a4a;margin-bottom:calc(4 * var(--dental-unit))}
.service-offerings strong{font-size:calc(23 * var(--dental-unit));font-weight:400;line-height:1.15;letter-spacing:-.035em;color:#eee8e1}
.dental-home .service-copy .service-cta{display:flex;align-items:center;justify-content:space-between;gap:22px;width:calc(365 * var(--dental-unit));max-width:100%;height:calc(49 * var(--dental-unit));margin:calc(22 * var(--dental-unit)) 0 0;padding:0 calc(8 * var(--dental-unit)) 0 calc(22 * var(--dental-unit));border:1px solid #eee8e1;border-radius:50px;font:500 calc(14 * var(--dental-unit))/1.2 'MyCadCam Jura','Segoe UI',sans-serif;letter-spacing:.01em;text-transform:none;text-decoration:none;color:#171719;pointer-events:auto;background:#eee8e1;white-space:nowrap;transition:background .25s,border-color .25s,box-shadow .25s}
.service-cta-arrow{display:grid;place-items:center;flex:none;width:calc(33 * var(--dental-unit));height:calc(33 * var(--dental-unit));border-radius:50%;background:#e9223d;color:#fff;font-size:calc(21 * var(--dental-unit));line-height:1;transition:transform .25s}
.dental-home .service-copy .service-cta:hover{background:#fff;border-color:#fff;box-shadow:0 0 25px #e9223d20}
.service-cta:hover .service-cta-arrow{transform:rotate(45deg)}
.dental-home .service-copy .service-cta:focus-visible{outline:2px solid #ef4550;outline-offset:5px}
.dental-home.lab-canvas-ready .service-copy .service-title{opacity:1}
.dental-home.scene-unavailable .lab-copy.service-copy{inset:0;display:block;gap:0;opacity:var(--lab-copy-opacity,0);transform:translate3d(0,var(--lab-copy-shift,0px),0)}
.dental-home.service-active .header{padding:calc(30 * var(--dental-unit)) 3.1%;align-items:center}
.dental-home.service-active .header .dental-wordmark img{width:calc(210 * var(--dental-unit));min-width:145px}
.dental-home.service-active .nav{background:#08090a59!important;border-color:#bbb4ae5c;box-shadow:none!important;backdrop-filter:none}
.dental-home.service-active .nav a{font-family:'MyCadCam Jura','Segoe UI',sans-serif;color:#e6dfd7}
.dental-home.service-active .persistent-controls{left:3.5%;right:3.2%;bottom:4.4%;opacity:1!important}
.dental-home.service-active .persistent-controls button{font:400 calc(12 * var(--dental-unit))/1.4 'MyCadCam Jura','Segoe UI',sans-serif;letter-spacing:.20em;background:transparent;color:#d9d0c7;backdrop-filter:none;padding:0}
.dental-home.service-active .audio-toggle .equalizer{display:none}
.dental-home.service-active .dental-sound-icon{display:block;width:21px;height:19px}
.dental-home.service-active .motion-toggle::after{content:'';display:inline-block;width:8px;height:19px;margin-left:17px;border-left:1px solid currentColor;border-right:1px solid currentColor;vertical-align:-4px}
.dental-home.service-active.motion-paused .motion-toggle::after{width:0;height:0;border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:9px solid currentColor;border-right:0;vertical-align:-2px}
.dental-home.service-active .scroll-track{right:1.8%;top:13.7%;height:26.8%;transform:none;background:#bfb8b0a3}
.dental-home.service-active .scroll-track i{height:35px;background:#eee7df}
@media(max-width:699px),(max-width:1100px) and (max-aspect-ratio:13/10){
 .service-fallback-field{--tile:min(5.3vw,5.4vh);top:68%;transform:translate(-50%,-50%) rotateX(47deg) rotateZ(-2deg)}
 .service-intro{left:6%;top:13%;width:88%}
 .service-copy .service-kicker{gap:10px;font-size:9px;letter-spacing:.16em;margin-bottom:11px}
 .service-kicker::before{width:21px}
 .dental-home .service-copy .service-title{font-size:clamp(35px,9.5vw,65px);line-height:1.02;letter-spacing:-.035em}
 .service-support{left:6%;top:33.4%;width:88%}
 .service-copy .service-caption{display:none}
 .service-offerings li{font-size:10px;gap:3px;padding:0 11px}
 .service-offerings strong{font-size:19px}
 .service-offerings .service-number{font-size:8px;letter-spacing:.1em;margin-bottom:2px}
 .dental-home .service-copy .service-cta{width:100%;height:40px;margin-top:16px;padding:0 6px 0 18px;font-size:12px;gap:16px}
 .service-cta-arrow{width:28px;height:28px;font-size:19px}
 .dental-home.service-active .header{padding:22px 5%}
 .dental-home.service-active .header .dental-wordmark img{width:clamp(128px,40vw,170px);min-width:0}
 .dental-home.service-active .persistent-controls{left:5%;right:5%;bottom:2.3%}
 .dental-home.service-active .persistent-controls button{font-size:8px;letter-spacing:.02em}
 .dental-home.service-active .dental-sound-icon{width:18px;height:16px}
 .dental-home.service-active .motion-toggle::after{height:9px;width:6px;margin-left:7px;vertical-align:-1px}
 .dental-home.service-active .scroll-track{right:3%;top:18%;height:17%}
}
@media(max-height:650px) and (max-width:699px),(max-height:650px) and (max-width:1100px) and (max-aspect-ratio:13/10){
 .service-intro{top:13.8%}
 .service-copy .service-kicker{font-size:8px;margin-bottom:8px}
 .dental-home .service-copy .service-title{font-size:clamp(31px,8.7vw,48px);line-height:1}
 .service-support{top:33%}
 .service-offerings strong{font-size:16px}
 .service-offerings li{font-size:9px;gap:2px}
 .dental-home .service-copy .service-cta{height:35px;margin-top:11px;font-size:11px}
 .service-cta-arrow{height:25px;width:25px;font-size:18px}
 .dental-home.service-active .persistent-controls button{font-size:7px}
}
@media(prefers-reduced-motion:reduce){.dental-home .lab-copy.service-copy{will-change:auto}.service-cta,.service-cta-arrow{transition:none}.service-fallback-cell::before{animation:none}}

.service-fallback-cell{animation:service-fallback-wave 10s ease-in-out infinite;animation-delay:calc(var(--column) * -.3s + var(--row) * -.22s)}
@keyframes service-fallback-wave{0%,100%{transform:translateZ(0px) rotateX(-2deg)}50%{transform:translateZ(12px) rotateX(2deg)}}
.motion-paused .service-fallback-cell{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.service-fallback-cell{animation:none}}
/* Keep the same raised silhouette in the no-WebGL presentation. */
.service-fallback-tooth{transform:translateZ(28px);filter:drop-shadow(0 3px 0 #751b27) drop-shadow(0 6px 0 #282b2e) drop-shadow(0 11px 7px #000b)}
.service-fallback-tooth path:first-child{fill:#74787b;stroke:#b8b8b8;stroke-width:.065}
.service-fallback-tooth path:last-child{stroke:#ef3349;stroke-width:.027}
