/* Existing MGM hero: shared frames, restrained perspective and transform-only motion. */
.opening{overflow:hidden}
.header--calm{height:88px;border-bottom:0;gap:28px}
.header--calm nav{gap:30px}.header--calm nav a{color:#d2cccb;font-size:16px}
@media (hover: hover) and (pointer: fine){
.header--calm nav a:hover{color:var(--primary)}}
.header--calm .header-cta{background:var(--primary);background-image:none;padding:13px 22px;font-size:16px;border-radius:var(--control-radius)}
@media (hover: hover) and (pointer: fine){
.header--calm .header-cta:hover{background:#FFA18D;transform:none}}
.hero--calm{padding-block:92px 108px;background:var(--ink)}
.calm-grid{display:grid;grid-template-columns:minmax(0,.93fr) minmax(0,1.07fr);align-items:center;gap:clamp(28px,2.5vw,40px)}
.calm-copy{min-width:0;position:relative;z-index:1}
.hero--calm h1{font-size:clamp(3rem,4.3vw,4.25rem);line-height:1.07;font-weight:600;letter-spacing:-.055em;margin:0}
.hero--calm h1>span{display:block;white-space:normal;text-wrap:balance}
.hero--calm h1>.accent{font-weight:400;margin-top:.1em}
.hero-summary{font-size:19px;line-height:1.6;color:#c8bebc;max-width:450px;margin-top:24px}
.hero-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:28px}
.hero--calm .hero-primary,.hero-secondary{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:15px 22px;min-height:54px;max-width:100%;border:1px solid var(--primary);border-radius:var(--control-radius);background:var(--primary);background-image:none;color:var(--ink);font-size:16px;line-height:1.4;text-align:center;text-decoration:none;animation:none;transition:background .2s,border-color .2s}
.hero--calm .hero-primary{font-weight:700}.hero-secondary{font-weight:500;background:transparent;border-color:#ffffff40;color:var(--paper)}
@media (hover: hover) and (pointer: fine){
.hero--calm .hero-primary:hover{background:#FFA18D;border-color:#FFA18D;color:var(--ink)}}
@media (hover: hover) and (pointer: fine){
.hero-secondary:hover{background:#ffffff08;border-color:#ffffff73;color:var(--paper)}}
.hero-usps{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px;padding:0;margin:48px 0 0;list-style:none;border:0}
.hero-usps li{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:12px;font-size:16px;line-height:1.45;color:#d5cdcb;min-width:0;min-height:46px}
.hero-usps svg{width:30px;height:30px;stroke:var(--primary);stroke-width:1.5;margin:0;display:block}
.hero-showcase{position:relative;isolation:isolate;aspect-ratio:1.12;min-width:0;width:100%}
/* Keep the light inside the showcase vertically, so the opening never clips its fade. */
.hero-showcase::before{content:'';position:absolute;inset:0 -6%;z-index:-2;pointer-events:none;background:radial-gradient(ellipse 48% 46% at 46% 47%,#ff866c80 0%,#ff866c42 28%,#ff866c18 56%,#ff866c04 82%,#ff866c00 100%),radial-gradient(ellipse 30% 36% at 73% 37%,#f9c6a642 0%,#f9b59318 44%,#f9b59300 100%),radial-gradient(ellipse 42% 33% at 36% 67%,#ce5b492e 0%,#ce5b490c 55%,#ce5b4900 100%);mask-image:linear-gradient(to bottom,transparent 0%,#000 18%,#000 78%,transparent 100%)}
.hero-showcase::after{content:'';position:absolute;inset:0 -6%;z-index:-1;pointer-events:none;background:url('/assets/mgm-grain.svg') repeat;opacity:.08;mask-image:radial-gradient(ellipse 46% 44% at 50% 50%,#000 16%,#0006 52%,transparent 100%)}
.browser-mockup{--tilt-x:3deg;--tilt-y:7deg;--depth:-14px;--float:-8px;position:absolute;width:55%;aspect-ratio:16/10;display:flex;flex-direction:column;margin:0;min-width:0;overflow:hidden;border:1px solid #ffffff24;border-radius:12px;background:#2b241f;box-shadow:0 8px 18px #0002,0 24px 44px -12px #0006;transform:perspective(1100px) translateY(0) translateZ(var(--depth)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y))}
.browser-mockup:first-child{left:0;top:0;width:52%;z-index:1;--duration:6s;--delay:-1s;--float:-7px}
.browser-mockup:nth-child(2){left:3%;top:42%;width:52%;z-index:3;--tilt-x:2deg;--tilt-y:-3deg;--depth:6px;--duration:7s;--delay:-3s;--float:-9px;box-shadow:0 10px 22px #0003,0 30px 52px -15px #0008}
.browser-mockup:nth-child(3){right:0;top:20%;width:52%;z-index:2;--tilt-x:4deg;--tilt-y:-7deg;--depth:-6px;--duration:8s;--delay:-5s;--float:-8px}
.browser-mockup:nth-child(4){right:16%;top:64%;width:52%;z-index:4;--tilt-x:2deg;--tilt-y:-4deg;--depth:3px;--duration:7.5s;--delay:-2s;--float:-7px}
.mockup-bar{height:28px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:5px;padding:0 11px;background:#2b241f;border-bottom:1px solid #ffffff0c;color:#dad2d1;font-size:11px;line-height:1.2;white-space:nowrap}
.mockup-dots{display:flex;align-items:center;gap:4px;width:25px;flex-shrink:0}
.mockup-dots i{width:4px;height:4px;border-radius:50%;background:#908481}
.mockup-dot-space{width:25px;flex-shrink:0}
.mockup-image{flex:1;min-height:0;overflow:hidden;background:#181513}
.mockup-image img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}
@keyframes hero-float{50%{transform:perspective(1100px) translateY(var(--float)) translateZ(var(--depth)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y))}}
@media(prefers-reduced-motion:no-preference){.browser-mockup{animation:hero-float var(--duration) ease-in-out var(--delay) infinite}}
@media(max-width:1200px) and (min-width:981px){
 .calm-grid{gap:28px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .hero--calm h1{font-size:clamp(2.75rem,4.3vw,3.25rem)}
 .hero-summary{font-size:18px}.hero-actions{gap:10px}
 .hero--calm .hero-primary,.hero-secondary{padding-inline:18px}
 .hero-usps{gap:10px;margin-top:42px}
 .hero-usps li{align-items:center}.hero-usps svg{margin:0}
 .mockup-bar{height:24px;font-size:10px;padding-inline:8px}
}
@media(max-width:980px){
 .hero--calm{padding-block:64px 76px}
 .calm-grid{grid-template-columns:1fr;gap:32px}
 .calm-copy{max-width:700px}
 .hero--calm h1{font-size:clamp(3rem,6.8vw,4rem);max-width:680px}
 .hero-summary{max-width:500px}
 .hero-usps{max-width:650px}
 .hero-showcase{width:100%;max-width:660px;justify-self:center}
}
@media(max-width:600px){
 .header--calm{height:80px;gap:12px}.header--calm .header-cta{font-size:16px;padding:10px 12px}
 .hero--calm{padding-block:44px 60px}
 .calm-grid{gap:20px}
 .hero--calm h1{font-size:clamp(2.15rem,9.6vw,3.5rem);line-height:1.08;letter-spacing:-.05em}
 .hero-summary{font-size:18px;line-height:1.6;margin-top:20px}
 .hero-actions{margin-top:0;gap:10px}
 .hero-actions>a{width:100%}
 .hero--calm .hero-primary,.hero-secondary{padding:14px 17px;min-height:52px}
 .hero-usps{grid-template-columns:1fr;gap:12px;margin-top:42px}
 .hero-usps li{align-items:center;gap:12px}.hero-usps svg{margin:0}
 /* Keep the four project windows together in the same collage as desktop. */
 .hero-showcase{display:block;aspect-ratio:1.06;overflow:visible;padding:10px 0 0;max-width:100%;justify-self:center}
 .hero-showcase::before,.hero-showcase::after{display:block;inset:0 -6%}
 .hero-showcase .browser-mockup{animation:none;transform:none;border-radius:8px;box-shadow:0 6px 16px #0003}
 .hero-showcase .browser-mockup:first-child{left:0;top:3%;width:55%}
 .hero-showcase .browser-mockup:nth-child(2){left:2%;top:42%;width:55%}
 .hero-showcase .browser-mockup:nth-child(3){right:0;top:23%;width:55%}
 .hero-showcase .browser-mockup:nth-child(4){right:10%;top:64%;width:55%}
 .hero-showcase .mockup-bar{height:18px;font-size:8px;gap:2px;padding-inline:5px}
 .hero-showcase .mockup-dots{width:14px;gap:2px}.hero-showcase .mockup-dots i{width:2px;height:2px}
 .hero-showcase .mockup-dot-space{width:14px}

}
@media(max-width:360px){.header--calm{gap:8px}.header--calm .header-cta{padding-inline:10px}.hero-actions>a{width:100%}}
@media(prefers-reduced-motion:reduce){.hero-showcase{scroll-behavior:auto;scroll-snap-type:none}.browser-mockup{animation:none;transform:none}.hero-secondary{transition:none}}

/* One shared set of actions; DOM order matches the mobile reading sequence. */
.calm-grid{row-gap:0}
.calm-copy{grid-column:1;grid-row:1;align-self:end}
.hero-conversion{grid-column:1;grid-row:2;align-self:start;min-width:0}
.hero-showcase{grid-column:2;grid-row:1 / span 2;align-self:center}
@media(max-width:980px){.calm-copy{grid-column:1;grid-row:1}.hero-conversion{grid-column:1;grid-row:2}.hero-showcase{grid-column:1;grid-row:3;margin-top:32px}}
@media(max-width:600px){.calm-grid{row-gap:20px}.calm-copy{grid-row:1}.hero-showcase{grid-row:2;margin-top:0}.hero-conversion{grid-row:3}}
.hero-showcase.is-paused .browser-mockup{animation-play-state:paused}

/* Extra breathing room between hero content groups on larger screens. */
@media(min-width:981px){.hero-summary{margin-top:28px;max-width:560px;font-size:clamp(16px,1.3vw,19px);text-wrap:balance}.hero-actions{margin-top:34px}.hero--calm .hero-rating{margin-top:52px}.hero--calm .hero-usps{margin-top:54px}}

@media(max-width:980px){.hero--calm .hero-rating{margin-top:36px}}

/* Give each headline line the same relaxed rhythm at every breakpoint. */
.hero--calm #hero-title{line-height:1.2}
.hero--calm #hero-title>.accent{margin-top:0}
