/* DM MEDIA Production v1.8: premium 3-slide hero, accessible service flip cards, calmer typography. */
:root{--font-title:'Space Grotesk',sans-serif;--font-text:'DM Sans',sans-serif}
body.dmmp-atelier{font-family:var(--font-text);font-weight:400;line-height:1.65;letter-spacing:0;-webkit-font-smoothing:antialiased}
body.dmmp-atelier :is(h1,h2,h3,h4){font-family:var(--font-title);font-weight:700;line-height:1.16;letter-spacing:-.04em;text-wrap:balance}
body.dmmp-atelier :is(p,li){overflow-wrap:break-word}
body.dmmp-atelier .container{min-width:0}
body.dmmp-atelier .dm-section-heading h2,body.dmmp-atelier .dm-home-section-header h2{font-size:clamp(26px,2.6vw,39px);line-height:1.13;letter-spacing:-.04em}
body.dmmp-atelier .dm-inner-hero h1{font-size:clamp(44px,6.5vw,88px);line-height:1.02;letter-spacing:-.055em}
body.dmmp-atelier .dm-home-service-body h3,body.dmmp-atelier .dm-service-tile h3{font-weight:700;letter-spacing:-.025em}
body.dmmp-atelier .dm-home-service-body p{font-size:12px;line-height:1.55}
body.dmmp-atelier .dm-unified-header .nav-links a{font-weight:600;letter-spacing:.005em}
body.dmmp-atelier :is(.dm-home-label,.dm-home-kicker,.dm-kicker,.eyebrow){font-weight:700}
body.dmmp-atelier :is(.dm-home-pill-gradient,.dm-gradient-button,.header-cta){font-weight:700}
body.dmmp-atelier .dm-home{overflow:clip}
/* Homepage hero: 3 separately editable WordPress images, no image files packaged in theme. */
body.dmmp-atelier .dm-home-hero.dm-hero-slider{height:clamp(635px,55vw,825px);min-height:635px;max-height:none;display:block;position:relative;padding:0;isolation:isolate;background:#080d1b;overflow:hidden}
.dm-hero-slides,.dm-hero-slide,.dm-hero-slide-shade{position:absolute;inset:0}
.dm-hero-slide{opacity:0;pointer-events:none;z-index:0;transition:opacity .95s cubic-bezier(.2,.65,.28,1);overflow:hidden}
.dm-hero-slide.is-active{opacity:1;pointer-events:auto;z-index:1;transition:opacity .95s cubic-bezier(.2,.65,.28,1)}
.dm-hero-slide-image{position:absolute;inset:0;height:100%;width:100%;object-fit:cover;object-position:center center;filter:saturate(1.09) contrast(1.04);transform:scale(1.045);transition:transform 8s ease-out}
.dm-hero-slide.is-active .dm-hero-slide-image{transform:scale(1)}
.dm-hero-slide-shade{background:linear-gradient(90deg,rgba(4,8,20,.98) 0%,rgba(5,9,22,.95) 23%,rgba(5,9,22,.78) 43%,rgba(5,9,22,.28) 70%,rgba(5,9,22,.08) 100%),linear-gradient(0deg,rgba(3,7,18,.5),transparent 28%);z-index:1}
body.dmmp-atelier .dm-home-hero-content{display:none}
.dm-hero-slide-content{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding-top:calc(var(--dm-header-total,112px) + 36px);padding-bottom:114px;height:100%;max-width:100%}
body.dmmp-atelier .dm-hero-slide-heading{font-family:var(--font-title);font-weight:700;font-size:clamp(40px,4.8vw,75px);letter-spacing:-.065em;line-height:1.055;margin:0 0 24px;max-width:790px;color:#f8f9fa}
.dm-hero-slide-heading span{display:block}
.dm-hero-slide-heading .dm-home-accent{background:linear-gradient(98deg,#4396ff,#ed34b8 53%,#ff9a25);-webkit-background-clip:text;background-clip:text;color:transparent;max-width:100%;width:fit-content}
body.dmmp-atelier .dm-hero-slide-content>p{font-size:clamp(14px,1.1vw,17px);line-height:1.7;color:#e0e7f6;max-width:565px;margin:0 0 30px}
body.dmmp-atelier .dm-hero-slide-content .dm-home-kicker{font-size:11px;letter-spacing:.21em;margin-bottom:16px}
.dm-hero-slider-controls{position:absolute;left:50%;transform:translateX(-50%);bottom:38px;z-index:6;display:flex;align-items:center;gap:23px;pointer-events:none}
.dm-hero-slider-controls>*{pointer-events:auto}
.dm-hero-slider-status{font-size:12px;font-weight:700;color:#dce5f8;display:flex;align-items:center;gap:9px;letter-spacing:.16em;font-variant-numeric:tabular-nums}
.dm-hero-slider-status span:first-child{font-size:22px;color:#fff;font-family:var(--font-title)}
.dm-hero-slider-separator{color:#fc4cab}
.dm-hero-slider-dots{display:flex;align-items:center;gap:9px;flex:1;max-width:290px}
.dm-hero-dot{width:clamp(46px,6vw,75px);height:24px;padding:10px 0;background:transparent;border:0;display:flex;align-items:center;cursor:pointer}
.dm-hero-dot span{width:100%;height:3px;display:block;background:rgba(219,228,251,.35);border-radius:9px;overflow:hidden;position:relative}
.dm-hero-dot.is-active span{background:rgba(255,255,255,.48)}
.dm-hero-dot.is-active span:after{content:'';display:block;width:100%;height:100%;background:linear-gradient(90deg,#0a7cff,#ff2d9b,#ff8a00);transform:scaleX(0);transform-origin:left;animation:dmHeroProgress var(--dm-hero-delay,6500ms) linear forwards}
.dm-hero-slider.is-paused .dm-hero-dot span:after{animation-play-state:paused}
@keyframes dmHeroProgress{to{transform:scaleX(1)}}
.dm-hero-slider-nav{display:flex;gap:8px;margin-left:auto;align-items:center}
.dm-hero-nav-btn,.dm-hero-pause{border:1px solid rgba(255,255,255,.26);background:rgba(12,17,32,.7);backdrop-filter:blur(7px);border-radius:50%;width:42px;height:42px;display:grid;place-items:center;color:white;font-size:19px;cursor:pointer;transition:background .25s,transform .25s,border-color .25s}
.dm-hero-pause{font-size:15px;width:36px;height:36px;margin-left:5px}
.dm-hero-nav-btn:hover,.dm-hero-pause:hover{transform:translateY(-2px);border-color:#ff2d9b;background:rgba(255,45,155,.2)}
.dm-hero-slider button:focus-visible{outline:3px solid #ff8a00;outline-offset:3px}
.dm-hero-slide.is-active .dm-hero-slide-heading,.dm-hero-slide.is-active .dm-home-kicker,.dm-hero-slide.is-active .dm-home-hero-actions,.dm-hero-slide.is-active .dm-hero-slide-content>p{animation:dmHeroEnter .65s ease both}
.dm-hero-slide.is-active .dm-hero-slide-heading{animation-delay:.12s}.dm-hero-slide.is-active .dm-hero-slide-content>p{animation-delay:.18s}.dm-hero-slide.is-active .dm-home-hero-actions{animation-delay:.25s}
@keyframes dmHeroEnter{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}
/* Flip card structure — NO service page navigation when a box is clicked. */
.dm-flip-card{position:relative;perspective:1400px;isolation:isolate;overflow:visible!important;min-width:0;max-width:100%}
.dm-flip-inner{height:100%;width:100%;position:relative;transform-style:preserve-3d;transition:transform .72s cubic-bezier(.22,.7,.16,1);border-radius:inherit}
.dm-flip-card.is-flipped .dm-flip-inner{transform:rotateY(180deg)}
.dm-flip-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden;border-radius:inherit}
.dm-flip-front{background:#090f1c;display:flex;flex-direction:column}
.dm-flip-back{transform:rotateY(180deg);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:clamp(16px,1.6vw,26px);background:radial-gradient(ellipse at 110% -10%,rgba(255,45,155,.2),transparent 60%),linear-gradient(144deg,#121b32,#0b101e 75%);border:1px solid rgba(255,103,174,.55)}
.dm-flip-back-kicker{font-size:10px;font-weight:700;color:#ff72b9;letter-spacing:.14em;display:block;margin:0 0 9px}
.dm-flip-back .dm-flip-back-icon{width:36px;height:36px;object-fit:contain;display:block;margin-bottom:7px}
body.dmmp-atelier .dm-flip-back h3{font-size:clamp(16px,1.38vw,23px);line-height:1.22;font-weight:700;letter-spacing:-.028em;margin:0 0 10px}
body.dmmp-atelier .dm-flip-back p{font-size:clamp(12px,.95vw,14px);line-height:1.6;color:#d1d8e8;margin:0 0 18px;flex:0 1 auto;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:8;overflow:hidden}
.dm-flip-back-actions{margin-top:auto;display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%}
.dm-flip-back-actions a{display:inline-flex;gap:8px;align-items:center;justify-content:center;border-radius:99px;background:linear-gradient(110deg,#e5139c,#ff8a00);padding:10px 13px;color:#fff;font-size:11px;font-weight:700;line-height:1.3}
.dm-flip-back-actions button{border:1px solid rgba(255,255,255,.35);border-radius:99px;background:transparent;color:#fff;font-size:11px;font-weight:700;padding:9px 11px}
.dm-flip-back-actions a:hover,.dm-flip-back-actions button:hover{filter:brightness(1.15)}
.dm-flip-hit{position:absolute;inset:0;display:block;width:100%;height:100%;opacity:0;background:transparent;border:0;cursor:pointer;z-index:3}
.dm-flip-card:focus-within{outline:2px solid #ff8a00;outline-offset:4px}
.dm-flip-hint{font-size:10px;color:#ff9bca;font-weight:700;margin-top:8px;letter-spacing:.02em}
/* Match existing responsive 6-card layout while making card fronts & backs equal size. */
body.dmmp-atelier .dm-home-service-card.dm-flip-card{height:340px;min-height:340px;display:block;overflow:visible;background:#0b1424}
.dm-home-service-front .dm-home-service-visual{flex:0 0 155px}
.dm-home-service-front .dm-home-service-body{flex:1;min-height:0;padding:11px 11px 15px}
.dm-home-service-front .dm-home-service-body p{flex:1;margin-bottom:4px}
.dm-home-service-front .dm-home-service-heading{min-height:44px}
.dm-home-service-front .dm-home-circle-arrow{width:24px;height:24px;font-size:15px}
body.dmmp-atelier .dm-service-tile.dm-flip-card{height:405px;display:block;overflow:visible}
.dm-service-front{isolation:isolate}
.dm-service-front:before{content:'';z-index:-1;position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,9,22,.08) 13%,rgba(5,9,22,.96) 94%)}
.dm-service-front .dm-service-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.dm-service-front .dm-service-overlay{position:relative;height:100%;z-index:1;pointer-events:none}
.dm-service-tile.dm-flip-card .dm-flip-back p{font-size:14px;line-height:1.65;-webkit-line-clamp:9}
.dm-service-tile.dm-flip-card .dm-flip-back h3{font-size:22px}
.dm-service-tile.dm-flip-card:hover .dm-service-bg{transform:scale(1.045)}
/* Revert old whole-card navigation hover decoration, retain subtle lift. */
body.dmmp-atelier .dm-home-service-card.dm-flip-card:hover{transform:translateY(-3px)}
body.dmmp-atelier .dm-service-tile.dm-flip-card:hover{transform:translateY(-3px)}
@media(max-width:1180px){body.dmmp-atelier .dm-home-services-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}body.dmmp-atelier .dm-home-service-card.dm-flip-card{height:345px}.dm-home-service-front .dm-home-service-visual{flex-basis:170px}}
@media(max-width:900px){body.dmmp-atelier .dm-home-hero.dm-hero-slider{height:715px}.dm-hero-slide-shade{background:linear-gradient(90deg,rgba(3,8,19,.95),rgba(3,8,19,.75) 52%,rgba(3,8,19,.36)),linear-gradient(0deg,rgba(2,5,16,.5),transparent 30%)}body.dmmp-atelier .dm-hero-slide-heading{font-size:clamp(40px,7.4vw,64px)}.dm-hero-slide-content{padding-top:calc(var(--dm-header-total,112px) + 20px);padding-bottom:110px}}
@media(max-width:760px){body.dmmp-atelier .dm-home-hero.dm-hero-slider{height:clamp(660px,89vh,810px);min-height:660px}.dm-hero-slide-image{object-position:68% center}.dm-hero-slide-shade{background:linear-gradient(90deg,rgba(3,8,19,.96),rgba(3,8,19,.82) 58%,rgba(3,8,19,.49)),linear-gradient(0deg,rgba(2,5,16,.65),transparent 36%)}body.dmmp-atelier .dm-hero-slide-heading{font-size:clamp(36px,8.6vw,56px);letter-spacing:-.05em;max-width:620px}.dm-hero-slide-content{padding-top:calc(var(--dm-header-total,112px) + 30px);padding-bottom:115px}body.dmmp-atelier .dm-hero-slide-content>p{font-size:14px;max-width:480px}.dm-hero-slider-controls{bottom:22px;gap:10px}.dm-hero-slider-dots{gap:6px}.dm-hero-dot{width:36px}.dm-hero-slider-nav{gap:5px}.dm-hero-nav-btn{width:34px;height:34px;font-size:16px}.dm-hero-pause{width:32px;height:32px}.dm-hero-slider-status span:first-child{font-size:19px}body.dmmp-atelier .dm-home-services-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}body.dmmp-atelier .dm-home-service-card.dm-flip-card{height:352px}body.dmmp-atelier .dm-services-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}body.dmmp-atelier .dm-service-tile.dm-flip-card{height:430px}.dm-service-tile.dm-flip-card .dm-flip-back h3{font-size:19px}}
@media(max-width:520px){body.dmmp-atelier .dm-home-hero.dm-hero-slider{height:clamp(650px,88vh,800px);min-height:650px}.dm-hero-slide-content{justify-content:center;padding-top:calc(var(--dm-header-total,112px) + 15px);padding-bottom:95px}body.dmmp-atelier .dm-hero-slide-heading{font-size:clamp(34px,9vw,46px);max-width:100%;overflow-wrap:break-word}body.dmmp-atelier .dm-hero-slide-content .dm-home-kicker{font-size:9px;letter-spacing:.16em}body.dmmp-atelier .dm-hero-slide-content>p{font-size:14px;line-height:1.6;margin-bottom:22px}.dm-home-hero-actions{gap:15px}.dm-home-pill{min-height:44px;padding:10px 17px}.dm-hero-slider-controls{gap:7px}.dm-hero-slider-dots{max-width:126px;gap:5px}.dm-hero-dot{width:30px}.dm-hero-slider-status{font-size:10px;gap:4px}.dm-hero-slider-nav{gap:3px}.dm-hero-slider-controls{bottom:19px}body.dmmp-atelier .dm-home-services-grid,body.dmmp-atelier .dm-services-cards{grid-template-columns:1fr;gap:17px}body.dmmp-atelier .dm-home-service-card.dm-flip-card{height:365px}body.dmmp-atelier .dm-service-tile.dm-flip-card{height:420px}.dm-home-service-front .dm-home-service-visual{flex-basis:195px}.dm-flip-back{padding:23px}.dm-home-service-front .dm-home-service-body p{font-size:13px}.dm-home-service-front .dm-home-service-body h3{font-size:16px}}
@media(max-width:350px){body.dmmp-atelier .dm-hero-slide-heading{font-size:32px}.dm-hero-slider-nav .dm-hero-pause{display:none}.dm-home-watch{font-size:12px}.dm-home-play-icon{width:35px;height:35px}}
@media(hover:none){body.dmmp-atelier .dm-flip-card:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.dm-hero-slide,.dm-hero-slide-image,.dm-flip-inner,.dm-hero-nav-btn,.dm-hero-pause{transition:none!important}.dm-hero-slide.is-active :is(.dm-hero-slide-heading,.dm-home-kicker,.dm-home-hero-actions,.dm-hero-slide-content>p){animation:none!important}.dm-hero-dot.is-active span:after{animation:none!important;transform:scaleX(1)}}
/* Newly selected slides must reveal copy and overlay immediately even while opacity crossfades. */
.dm-hero-slide.is-active > .dm-hero-slide-shade,.dm-hero-slide.is-active > .dm-hero-slide-content{visibility:visible!important}
