/*
Theme Name: Conway Mineral Group - Cinematic Investor V6
Theme URI: https://cmgilib.org/
Author: Conway Mineral Group, Inc
Description: Cinematic investor-focused corporate theme for Conway Mineral Group, Inc. Includes editable page banners and staff profiles.
Version: 6.0.0
Requires at least: 6.0
Text Domain: cmgi
*/
:root{--cmgi-ink:#171b1d;--cmgi-deep:#101719;--cmgi-gold:#c89b3c;--cmgi-gold-light:#e4c77e;--cmgi-paper:#f6f5f1;--cmgi-muted:#697176;--cmgi-line:#e5e3dc;--cmgi-white:#fff;--cmgi-width:1240px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--cmgi-ink);background:#fff;font:16px/1.7 Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}img{max-width:100%;height:auto}a{color:inherit;text-decoration:none}a:hover{color:var(--cmgi-gold)}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.cmgi-top{background:#0c1112;color:#d4d7d5;font-size:11px;letter-spacing:.035em}.cmgi-top-inner{max-width:var(--cmgi-width);margin:auto;padding:8px 26px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.cmgi-top a{color:#e5c77e}.cmgi-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.97);backdrop-filter:blur(12px);border-bottom:1px solid #e8e6df;box-shadow:0 4px 18px #00000008}.cmgi-nav-wrap{max-width:var(--cmgi-width);min-height:94px;margin:auto;padding:12px 26px;display:flex;align-items:center;justify-content:space-between;gap:28px}.cmgi-brand{display:flex;align-items:center;gap:14px;min-width:250px;color:var(--cmgi-deep)}.cmgi-logo{display:block;width:76px;height:68px;object-fit:contain;object-position:center;flex:0 0 auto}.cmgi-brand strong{display:block;font-size:15px;line-height:1.25;letter-spacing:.07em;font-weight:800}.cmgi-brand small{display:block;color:#96712c;font-size:10px;letter-spacing:.22em;margin-top:5px;font-weight:700}.cmgi-menu{display:flex;align-items:center;justify-content:flex-end;gap:clamp(10px,1.6vw,24px);flex-wrap:wrap}.cmgi-menu a{display:inline-block;color:#273034;font-size:11px;font-weight:800;letter-spacing:.065em;text-transform:uppercase;padding:12px 0;border-bottom:2px solid transparent;transition:.2s}.cmgi-menu a:hover,.cmgi-menu .current-menu-item>a{color:#98722b;border-color:var(--cmgi-gold)}.cmgi-menu ul{list-style:none;margin:0;padding:0;display:flex;gap:clamp(10px,1.6vw,24px);flex-wrap:wrap}.cmgi-menu li{position:relative}.cmgi-menu .sub-menu{display:none;position:absolute;top:100%;left:-18px;min-width:220px;padding:10px 18px;background:#fff;box-shadow:0 12px 28px #0002;border-top:2px solid var(--cmgi-gold);flex-direction:column;gap:0}.cmgi-menu li:hover>.sub-menu,.cmgi-menu li:focus-within>.sub-menu{display:flex}.cmgi-menu .sub-menu a{display:block;padding:9px 0;border:0}
.cmgi-hero{min-height:470px;background:#202729 center/cover no-repeat;position:relative;color:white;display:flex;align-items:center;isolation:isolate}.cmgi-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,15,17,.88) 0%,rgba(8,15,17,.63) 48%,rgba(8,15,17,.13) 100%);z-index:-1}.cmgi-hero-inner{position:relative;width:min(var(--cmgi-width),calc(100% - 52px));margin:auto;padding:76px 0}.cmgi-hero h1{max-width:850px;font-size:clamp(36px,5.4vw,70px);line-height:1.04;letter-spacing:-.035em;margin:0 0 18px;font-weight:800}.cmgi-hero p{max-width:660px;margin:0;color:#f1f0ec;font-size:clamp(16px,1.6vw,20px);line-height:1.65}.cmgi-hero .cmgi-kicker{color:#e8c979}.cmgi-kicker{font-size:11px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:#98722b;margin:0 0 12px}.cmgi-crumb{font-size:11px;letter-spacing:.08em;text-transform:uppercase;margin-top:24px;color:#e5d9bd}.cmgi-crumb a{color:#e9c979}.cmgi-btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:var(--cmgi-gold);color:#15191a;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;padding:14px 22px;margin-top:22px;border:1px solid var(--cmgi-gold);transition:.2s}.cmgi-btn:after{content:'→';font-size:16px}.cmgi-btn:hover{background:transparent;color:#fff;border-color:#e4c77e}
.cmgi-container{max-width:var(--cmgi-width);margin:auto;padding:78px 26px}.cmgi-section-head{max-width:760px;margin-bottom:32px}.cmgi-h2{font-size:clamp(29px,3.4vw,45px);line-height:1.15;letter-spacing:-.025em;margin:0 0 18px;color:var(--cmgi-deep)}.cmgi-lead{font-size:18px;line-height:1.8;color:#515b5e;max-width:880px}.cmgi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:30px}.cmgi-card{background:#fff;border:1px solid var(--cmgi-line);box-shadow:0 12px 35px #161b1d08;transition:transform .25s,box-shadow .25s}.cmgi-card:hover{transform:translateY(-4px);box-shadow:0 18px 42px #161b1d12}.cmgi-card-body{padding:25px}.cmgi-card h3{margin:0 0 9px;font-size:19px;line-height:1.3;color:var(--cmgi-deep)}.cmgi-card p{margin:0;color:var(--cmgi-muted);font-size:14px}.cmgi-icon{color:#a47c2d;font-size:24px;margin-bottom:12px}.cmgi-split{display:grid;grid-template-columns:1fr 1fr;gap:58px;align-items:center}.cmgi-photo{min-height:390px;background-position:center;background-size:cover;position:relative}.cmgi-photo:after{content:"";position:absolute;inset:14px -14px -14px 14px;border:1px solid var(--cmgi-gold);z-index:-1}.cmgi-band{background:var(--cmgi-deep);color:#fff;position:relative;overflow:hidden}.cmgi-band:before{content:"";position:absolute;width:440px;height:440px;border:1px solid #ffffff12;border-radius:50%;right:-150px;top:-190px}.cmgi-band .cmgi-h2{color:#fff}.cmgi-band .cmgi-lead,.cmgi-band p{color:#c6ccca}.cmgi-band .cmgi-card{background:#192224;border-color:#344043}.cmgi-band .cmgi-card h3{color:#fff}.cmgi-band .cmgi-card p{color:#b8c0bf}.cmgi-band .cmgi-btn:hover{color:#fff}.cmgi-feature-row{display:grid;grid-template-columns:repeat(4,1fr);background:#f4f2ec;border-top:1px solid #e6e1d5;border-bottom:1px solid #e6e1d5}.cmgi-feature{padding:25px 16px;text-align:center;border-right:1px solid #e1ddd2}.cmgi-feature:last-child{border:0}.cmgi-feature span{display:block;font-size:24px;color:#a47c2d;margin-bottom:6px}.cmgi-feature b{display:block;font-size:12px;letter-spacing:.07em;text-transform:uppercase}.cmgi-home-search{max-width:var(--cmgi-width);margin:0 auto;padding:20px 26px}.cmgi-search-form{display:flex;gap:10px;max-width:600px;margin-left:auto}.cmgi-search-form input{flex:1;min-width:0;border:1px solid #d9d7d0;padding:12px 14px;font:inherit}.cmgi-search-form button{border:0;background:var(--cmgi-deep);color:white;padding:0 20px;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;cursor:pointer}.cmgi-search-form button:hover{background:#98722b}.cmgi-staff-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cmgi-staff-card{text-align:left;overflow:hidden}.cmgi-staff-card img{display:block;width:100%;height:280px;object-fit:cover;object-position:center 25%;border-bottom:3px solid var(--cmgi-gold)}.cmgi-staff-initials{height:280px;display:flex;align-items:center;justify-content:center;background:linear-gradient(140deg,#182224,#354144);color:#e4c77e;font-size:54px;font-weight:800;letter-spacing:3px;border-bottom:3px solid var(--cmgi-gold)}.cmgi-staff-card .cmgi-card-body{padding:20px 22px}.cmgi-staff-card h3{font-size:18px}.cmgi-staff-card p{font-size:12px;letter-spacing:.06em;text-transform:uppercase}.cmgi-contact-panel{background:var(--cmgi-paper);padding:32px;border-left:3px solid var(--cmgi-gold)}.cmgi-footer{background:#0b1112;color:#cbd0ce;padding:58px 26px 20px;border-top:3px solid var(--cmgi-gold)}.cmgi-footer-inner{max-width:var(--cmgi-width);margin:auto;display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:38px}.cmgi-footer strong{color:#fff;font-size:13px;letter-spacing:.08em}.cmgi-footer small{color:#aab3b0}.cmgi-footer-nav{display:flex;gap:12px;flex-wrap:wrap;font-size:10px;text-transform:uppercase;letter-spacing:.06em}.cmgi-footer-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:12px;flex-wrap:wrap}.cmgi-copy{max-width:var(--cmgi-width);margin:38px auto 0;padding-top:16px;border-top:1px solid #293335;color:#84908c;font-size:10px;letter-spacing:.04em}.cmgi-news{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.cmgi-news article{border-top:3px solid var(--cmgi-gold);padding:20px;background:#f7f6f2}.cmgi-news time{font-size:10px;color:#98722b;text-transform:uppercase;letter-spacing:.1em}.cmgi-news h3{font-size:18px;line-height:1.35;margin:9px 0}.cmgi-readmore{font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:#98722b}
@media(max-width:980px){.cmgi-nav-wrap{align-items:flex-start;flex-direction:column;gap:12px}.cmgi-menu{justify-content:flex-start}.cmgi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cmgi-staff-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cmgi-footer-inner{grid-template-columns:1fr 1fr}.cmgi-hero{min-height:410px}}
@media(max-width:640px){.cmgi-top-inner{justify-content:center;text-align:center;padding:8px 14px}.cmgi-nav-wrap{padding:12px 16px;min-height:0}.cmgi-brand{min-width:0}.cmgi-logo{width:60px;height:58px}.cmgi-brand strong{font-size:12px}.cmgi-brand small{font-size:9px}.cmgi-menu{gap:4px 13px}.cmgi-menu ul{gap:4px 13px}.cmgi-menu a{font-size:9px;padding:5px 0}.cmgi-menu .sub-menu{left:0}.cmgi-hero{min-height:360px}.cmgi-hero-inner{width:calc(100% - 34px);padding:50px 0}.cmgi-hero:before{background:linear-gradient(90deg,rgba(8,15,17,.9),rgba(8,15,17,.42))}.cmgi-container{padding:52px 17px}.cmgi-grid,.cmgi-split,.cmgi-news{grid-template-columns:1fr}.cmgi-feature-row{grid-template-columns:repeat(2,1fr)}.cmgi-feature{padding:18px 10px}.cmgi-photo{min-height:260px;margin-right:12px}.cmgi-staff-card img,.cmgi-staff-initials{height:220px}.cmgi-home-search{padding:14px 17px}.cmgi-search-form{flex-direction:column}.cmgi-search-form button{padding:13px}.cmgi-footer{padding:42px 18px 18px}.cmgi-footer-inner{grid-template-columns:1fr;gap:22px}.cmgi-copy{margin-top:25px}}

/* Compact upper-right dropdown navigation */
.cmgi-nav-wrap{position:relative;flex-direction:row;align-items:center}
.cmgi-menu{position:relative;margin-left:auto;display:block;flex:0 0 auto}
.cmgi-menu summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:13px 17px;background:var(--cmgi-deep);color:#fff;font-size:11px;font-weight:900;letter-spacing:.12em}
.cmgi-menu summary::-webkit-details-marker{display:none}
.cmgi-menu summary span{font-size:17px;line-height:1}
.cmgi-menu[open] summary{background:#98722b}
.cmgi-menu-panel{position:absolute;right:0;top:calc(100% + 12px);z-index:200;min-width:250px;padding:10px 18px;background:#fff;border-top:3px solid var(--cmgi-gold);box-shadow:0 14px 32px #0002}
.cmgi-menu-panel ul{display:flex;flex-direction:column;gap:0;list-style:none;margin:0;padding:0}
.cmgi-menu-panel li{position:relative}
.cmgi-menu-panel a{display:block;padding:12px 4px;color:#273034;font-size:11px;font-weight:800;letter-spacing:.065em;text-transform:uppercase;border-bottom:1px solid #eee}
.cmgi-menu-panel li:last-child>a{border-bottom:0}
.cmgi-menu-panel a:hover{color:#98722b}
.cmgi-menu-panel .sub-menu{display:none;position:static;padding:0 0 0 14px;box-shadow:none;border:0}
.cmgi-menu-panel li:hover>.sub-menu,.cmgi-menu-panel li:focus-within>.sub-menu{display:block}
@media(max-width:980px){.cmgi-nav-wrap{align-items:center;flex-direction:row}.cmgi-menu{justify-content:flex-end}}
@media(max-width:640px){.cmgi-nav-wrap{flex-direction:row;align-items:center}.cmgi-menu{margin-left:auto}.cmgi-menu-panel{right:0;min-width:220px}}

/* Immersive gold showcase: CSS perspective, depth, and gentle motion. */
.cmgi-gold-hero{min-height:650px;display:block;background:radial-gradient(ellipse at 76% 46%,#5b4624 0%,#25231c 34%,#101719 75%);overflow:hidden;isolation:isolate}
.cmgi-gold-hero:before{background:linear-gradient(100deg,rgba(6,12,14,.55),rgba(6,12,14,0) 80%)}
.cmgi-gold-glow{position:absolute;right:0;top:0;width:70%;height:100%;background:radial-gradient(ellipse at center,#d2a33a30,transparent 66%);pointer-events:none}
.cmgi-gold-layout{max-width:1320px;margin:auto;display:grid;grid-template-columns:52% 48%;align-items:center;min-height:600px;padding:20px 30px;position:relative}
.cmgi-gold-layout .cmgi-hero-inner{width:100%;padding:55px 0;z-index:3}
.cmgi-gold-layout h1{font-size:clamp(37px,4.6vw,69px);max-width:690px;text-shadow:0 5px 22px #0007}
.cmgi-gold-layout .cmgi-hero-sub{font-size:15px;color:#c9d0ca;margin-top:15px;max-width:500px}
.cmgi-gold-stage{height:510px;position:relative;perspective:1100px;transform-style:preserve-3d}
.cmgi-gold-orbit{position:absolute;inset:16% 2% 12%;border:1px solid #eac66a3d;border-radius:50%;transform:rotate(-20deg) rotateX(60deg);box-shadow:0 0 90px #e9bc4e16}
.cmgi-gold-item{position:absolute;margin:0;padding:9px;background:linear-gradient(135deg,#e4bd64b8,#503f2499);border:1px solid #e8c577aa;border-radius:17px;box-shadow:0 28px 48px #0009,0 0 42px #e4b44726;transform-style:preserve-3d;transition:transform .5s ease,box-shadow .5s ease;animation:cmgiFloat 7s ease-in-out infinite}
.cmgi-gold-item img{width:100%;height:100%;object-fit:cover;display:block;border-radius:10px}
.cmgi-gold-item figcaption{position:absolute;bottom:-34px;left:0;right:0;text-align:center;color:#e7c679;font-size:10px;font-weight:800;letter-spacing:.2em;text-shadow:0 2px 8px #000}
.cmgi-gold-bars{width:61%;height:290px;top:14%;left:3%;transform:rotateY(-16deg) rotateZ(-7deg);z-index:2}
.cmgi-gold-raw{width:57%;height:265px;right:0;bottom:6%;transform:rotateY(13deg) rotateZ(8deg);z-index:3;animation-delay:-3s}
.cmgi-gold-bars:hover{transform:rotateY(0) rotateZ(0) scale(1.06);box-shadow:0 35px 60px #000b}
.cmgi-gold-raw:hover{transform:rotateY(0) rotateZ(0) scale(1.06);box-shadow:0 35px 60px #000b}
.cmgi-hero-bottom{position:relative;text-align:center;border-top:1px solid #e3c16a35;padding:15px;color:#c4a563;letter-spacing:.3em;font-size:10px;font-weight:800}
.cmgi-hero-bottom span{margin:0 22px}
@keyframes cmgiFloat{0%,100%{translate:0 0}50%{translate:0 -12px}}
@media(max-width:850px){.cmgi-gold-layout{grid-template-columns:1fr;padding:20px;gap:0}.cmgi-gold-layout .cmgi-hero-inner{padding:42px 0 10px}.cmgi-gold-stage{height:390px;max-width:620px;width:100%;margin:auto}.cmgi-gold-bars{height:235px}.cmgi-gold-raw{height:220px}.cmgi-gold-hero{min-height:0}}
@media(max-width:480px){.cmgi-gold-layout{padding:12px 18px}.cmgi-gold-stage{height:295px}.cmgi-gold-bars{height:170px;top:9%}.cmgi-gold-raw{height:155px;bottom:11%}.cmgi-gold-item{padding:5px;border-radius:10px}.cmgi-gold-item img{border-radius:6px}.cmgi-hero-bottom{letter-spacing:.1em;font-size:9px}.cmgi-hero-bottom span{margin:0 8px}}
@media(prefers-reduced-motion:reduce){.cmgi-gold-item{animation:none;transition:none}}

/* Enhanced CSS-only 3D homepage motion */
.cmgi-gold-stage{isolation:isolate;animation:cmgiStageBreathe 11s ease-in-out infinite}
.cmgi-gold-stage::before{content:"";position:absolute;inset:5% 0 0;border-radius:50%;background:radial-gradient(ellipse,#e3ad4630,transparent 66%);filter:blur(20px);animation:cmgiAura 7s ease-in-out infinite;pointer-events:none}
.cmgi-gold-orbit{animation:cmgiOrbit 18s linear infinite;transform-origin:center}
.cmgi-gold-item{overflow:visible;backface-visibility:hidden;will-change:transform,translate;animation:cmgiFloat 7s ease-in-out infinite,cmgiTilt 9s ease-in-out infinite}
.cmgi-gold-raw{animation-delay:-3s,-2s}
.cmgi-gold-item::after{content:"";position:absolute;inset:9px;border-radius:10px;pointer-events:none;background:linear-gradient(115deg,transparent 24%,#fff7c500 35%,#fff7c552 48%,#fff7c500 59%,transparent 75%);background-size:250% 100%;mix-blend-mode:screen;animation:cmgiShimmer 6s ease-in-out infinite}
.cmgi-gold-raw::after{animation-delay:-2.5s}
.cmgi-gold-layout .cmgi-hero-inner{animation:cmgiReveal .9s both}
.cmgi-gold-glow{animation:cmgiAura 9s ease-in-out infinite}
@keyframes cmgiTilt{0%,100%{rotate:-2deg}50%{rotate:2deg}}
@keyframes cmgiShimmer{0%,16%{background-position:150% 0}52%,100%{background-position:-150% 0}}
@keyframes cmgiOrbit{0%{rotate:0deg}100%{rotate:360deg}}
@keyframes cmgiAura{0%,100%{opacity:.55;scale:1}50%{opacity:1;scale:1.08}}
@keyframes cmgiStageBreathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes cmgiReveal{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@media(hover:hover){.cmgi-gold-item:hover{animation-play-state:paused;z-index:5}.cmgi-gold-item:hover::after{animation-duration:2s}}
@media(prefers-reduced-motion:reduce){.cmgi-gold-stage,.cmgi-gold-stage::before,.cmgi-gold-orbit,.cmgi-gold-item,.cmgi-gold-item::after,.cmgi-gold-layout .cmgi-hero-inner,.cmgi-gold-glow{animation:none!important;transition:none!important}}

/* Staff profile photo framing */
.cmgi-staff-card img{width:100%;height:310px;object-fit:cover;object-position:center top;display:block;background:#f8f8f8;}
.cmgi-staff-card{overflow:hidden;}
@media(max-width:640px){.cmgi-staff-card img{height:290px;}}

/* About Us: two-photo mining gallery */
.cmgi-about-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:32px 0 40px}
.cmgi-about-gallery-card{margin:0;overflow:hidden;border-radius:18px;background:#101c18;box-shadow:0 14px 32px rgba(0,0,0,.16);transition:transform .35s ease,box-shadow .35s ease}
.cmgi-about-gallery-card:hover{transform:translateY(-6px);box-shadow:0 22px 42px rgba(0,0,0,.22)}
.cmgi-about-gallery-card img{display:block;width:100%;height:290px;object-fit:cover}
.cmgi-about-gallery-card figcaption{padding:15px 20px;color:#f7d581;font-weight:700;letter-spacing:.04em}
@media(max-width:700px){.cmgi-about-gallery{grid-template-columns:1fr;gap:16px}.cmgi-about-gallery-card img{height:240px}}
@media(prefers-reduced-motion:reduce){.cmgi-about-gallery-card{transition:none}.cmgi-about-gallery-card:hover{transform:none}}

/* Screenshot-inspired corporate page visuals */
.cmgi-sector-photo{display:block;width:100%;height:175px;object-fit:cover;transition:transform .5s ease}.cmgi-card{overflow:hidden}.cmgi-card:hover .cmgi-sector-photo{transform:scale(1.05)}.cmgi-wide-image{margin:24px 0 34px;border-radius:12px;overflow:hidden;box-shadow:0 10px 32px rgba(0,0,0,.14)}.cmgi-wide-image img{display:block;width:100%;height:260px;object-fit:cover}.cmgi-values{margin:26px 0 38px}.cmgi-values .cmgi-feature{font-weight:700;min-height:85px;display:flex;align-items:center;justify-content:center;text-align:center}.cmgi-page-photo-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}@media(max-width:650px){.cmgi-page-photo-gallery{grid-template-columns:1fr}.cmgi-wide-image img{height:180px}}

/* Homepage background: supplied nine-panel reference image. */
body.home .cmgi-gold-hero{background-image:linear-gradient(95deg,rgba(5,10,13,.90) 0%,rgba(5,10,13,.76) 45%,rgba(5,10,13,.48) 100%),url('assets/homepage-background-reference.jpg');background-size:cover;background-position:center center;background-repeat:no-repeat;}
body.home .cmgi-gold-hero:before{background:transparent;}
body.home .cmgi-gold-glow{opacity:.28;}
@media(max-width:700px){body.home .cmgi-gold-hero{background-position:38% center;background-image:linear-gradient(rgba(5,10,13,.86),rgba(5,10,13,.73)),url('assets/homepage-background-reference.jpg');}}

/* Interactive depth scene — homepage only */
body.home .cmgi-4d-stage{perspective:1100px;touch-action:pan-y;isolation:isolate;overflow:visible}
body.home .cmgi-4d-scene{position:absolute;inset:0;transform-style:preserve-3d;transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .16s ease-out;will-change:transform}
body.home .cmgi-4d-scene .cmgi-gold-bars{transform:translateZ(75px) rotateY(-16deg) rotateZ(-7deg)}
body.home .cmgi-4d-scene .cmgi-gold-raw{transform:translateZ(145px) rotateY(13deg) rotateZ(8deg)}
body.home .cmgi-4d-scene .cmgi-gold-orbit{transform:translateZ(-35px) rotate(-20deg) rotateX(60deg)}
body.home .cmgi-4d-depth{position:absolute;pointer-events:none}
body.home .cmgi-4d-depth-back{inset:10%;border-radius:50%;background:radial-gradient(ellipse,#e6af3e42,transparent 68%);transform:translateZ(-90px);filter:blur(10px)}
body.home .cmgi-4d-depth-front{top:6%;right:4%;font-size:26px;color:#f7d57b;text-shadow:0 0 18px #f2bf46;transform:translateZ(185px);animation:cmgiSpark 4s ease-in-out infinite alternate}
@keyframes cmgiSpark{from{opacity:.35;translate:0 0}to{opacity:1;translate:0 -14px}}
body.home .cmgi-4d-controls{position:absolute;bottom:0;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:7px;z-index:8;white-space:nowrap}
body.home .cmgi-4d-controls button{background:#101b1edb;color:#f5d681;border:1px solid #c89b4a;border-radius:30px;padding:9px 13px;font-size:12px;cursor:pointer;box-shadow:0 5px 20px #0007}
body.home .cmgi-4d-controls button:hover,body.home .cmgi-4d-controls button:focus-visible{background:#b78428;color:#081012;outline:2px solid #fff;outline-offset:2px}
@media(max-width:480px){body.home .cmgi-4d-controls{bottom:-4px}body.home .cmgi-4d-controls button{padding:7px 9px;font-size:11px}}
@media(prefers-reduced-motion:reduce){body.home .cmgi-4d-scene{transition:none!important}body.home .cmgi-4d-depth-front{animation:none!important}}

/* Investor-focused homepage: scoped styles, no fragile 3D JS dependencies */
.investor-home{background:#fff;color:#142023}.investor-home *{box-sizing:border-box}.investor-hero{position:relative;isolation:isolate;min-height:680px;overflow:hidden;background:#081317;color:white}.investor-hero-image{position:absolute;inset:0;z-index:-2;background-size:cover;background-position:center;animation:investor-pan 22s ease-in-out infinite alternate}.investor-hero:after{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 77% 48%,rgba(216,163,54,.12),transparent 35%)}.investor-hero-content{display:grid;grid-template-columns:1.18fr .82fr;gap:4rem;align-items:center;min-height:660px;padding-top:75px;padding-bottom:75px}.investor-eyebrow,.investor-section-kicker{font-size:12px;font-weight:800;letter-spacing:2.5px;color:#d5a744}.investor-dot{display:inline-block;background:#e9b84e;width:8px;height:8px;border-radius:50%;margin-right:10px;box-shadow:0 0 14px #e9b84e}.investor-copy h1{font-size:clamp(44px,5.4vw,82px);line-height:1.07;letter-spacing:-2px;margin:24px 0;color:#fff;font-weight:800}.investor-copy h1 em{color:#e7b950;font-style:normal}.investor-intro{max-width:650px;color:#e0e5e3;font-size:clamp(17px,1.55vw,21px);line-height:1.7}.investor-actions{display:flex;gap:18px;flex-wrap:wrap;margin-top:35px}.investor-primary,.investor-secondary{display:inline-flex;align-items:center;justify-content:center;gap:18px;padding:16px 24px;text-decoration:none!important;border-radius:4px;font-size:14px;font-weight:800;transition:transform .25s,background .25s}.investor-primary{background:#e9b94f;color:#121b1e!important}.investor-secondary{border:1px solid #b6c0c2;color:white!important}.investor-primary:hover,.investor-secondary:hover{transform:translateY(-3px)}.investor-primary:hover{background:#ffce69}.investor-proof{display:flex;gap:20px;flex-wrap:wrap;margin-top:46px;color:#d2d8d6;font-size:12px}.investor-proof span:before{content:'✓';color:#e9b94f;margin-right:7px}.investor-showcase{position:relative;min-height:440px;animation:investor-rise 1s ease-out both}.investor-photo{position:absolute;overflow:hidden;border-radius:12px;border:1px solid rgba(255,211,119,.35);box-shadow:0 30px 75px #0009;background:#f9f4e8}.investor-photo img{width:100%;height:100%;object-fit:cover;display:block}.investor-photo-main{width:76%;height:370px;right:0;top:0;transform:rotate(3deg)}.investor-photo-small{width:51%;height:240px;left:0;bottom:0;transform:rotate(-6deg)}.investor-showcase-label{position:absolute;right:0;bottom:0;background:#e9b94f;color:#111c1e;padding:16px 22px;border-radius:4px;box-shadow:0 12px 30px #0005}.investor-showcase-label span{display:block;font-size:10px;letter-spacing:2px}.investor-showcase-label strong{font-size:16px}.investor-bottom-line{height:5px;background:linear-gradient(90deg,#9a6a1a,#ffd57b,#9a6a1a)}.investor-overview{display:grid;grid-template-columns:1fr 1fr;gap:70px;padding-top:95px;padding-bottom:95px}.investor-home h2{font-size:clamp(30px,3.1vw,47px);line-height:1.15;letter-spacing:-1px;margin:14px 0 22px}.investor-overview p:not(.investor-section-kicker){font-size:18px;line-height:1.8;color:#536063}.investor-text-link{color:#a16b0a;font-weight:800;text-decoration:none}.investor-sectors{background:#f5f6f3;padding:85px 0 95px}.investor-heading{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:30px}.investor-heading>p{max-width:280px;color:#647072}.investor-sector-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.investor-sector{position:relative;min-height:310px;overflow:hidden;border-radius:6px;color:#fff!important;background:#102025;text-decoration:none!important}.investor-sector:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#061013ed,transparent 65%)}.investor-sector img{width:100%;height:310px;object-fit:cover;transition:transform .5s}.investor-sector:hover img{transform:scale(1.08)}.investor-sector-number{position:absolute;top:20px;left:20px;z-index:1;color:#ffd47a;font-size:12px;font-weight:800}.investor-sector-name{position:absolute;z-index:1;bottom:22px;left:20px;right:20px;font-size:19px;font-weight:800;display:flex;justify-content:space-between;gap:10px}.investor-sector-name b{color:#ffd47a}.investor-values{padding-top:90px;padding-bottom:90px}.investor-value-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:32px}.investor-value-grid article{padding:30px;border:1px solid #dfe4e1;border-top:3px solid #d7a73b}.investor-value-grid article>span{color:#b5811d;font-weight:800}.investor-value-grid h3{font-size:20px;margin:16px 0 8px}.investor-value-grid p{color:#586467;line-height:1.65}.investor-cta{background:#0a1c20;color:#fff;padding:75px 0}.investor-cta-inner{display:grid;grid-template-columns:1.3fr .7fr;gap:60px;align-items:center}.investor-cta h2{color:#fff}.investor-cta p:not(.investor-section-kicker){color:#c4cfcc;line-height:1.7}.investor-cta-links{display:flex;flex-direction:column;align-items:flex-start;gap:18px}.investor-cta-links>a:not(.investor-primary){color:#e9b94f}.investor-cta-links span{font-size:13px;color:#c3ccca}@keyframes investor-pan{from{transform:scale(1)}to{transform:scale(1.08)}}@keyframes investor-rise{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}@media(max-width:900px){.investor-hero-content{grid-template-columns:1fr;gap:35px}.investor-showcase{min-height:330px;max-width:520px;width:100%;margin:auto}.investor-photo-main{height:285px}.investor-photo-small{height:180px}.investor-sector-grid{grid-template-columns:repeat(2,1fr)}.investor-overview,.investor-cta-inner{grid-template-columns:1fr;gap:25px}}@media(max-width:600px){.investor-hero-content{padding-top:55px;padding-bottom:50px}.investor-copy h1{letter-spacing:-1px}.investor-proof{gap:12px}.investor-showcase{min-height:280px}.investor-photo-main{height:240px}.investor-photo-small{height:160px}.investor-overview,.investor-values{padding-top:55px;padding-bottom:55px}.investor-sectors{padding:55px 0}.investor-sector-grid{gap:12px}.investor-sector,.investor-sector img{height:240px;min-height:240px}.investor-sector-name{font-size:15px;left:12px;right:12px}.investor-value-grid{grid-template-columns:1fr}.investor-heading{display:block}.investor-cta{padding:55px 0}}@media(prefers-reduced-motion:reduce){.investor-hero-image,.investor-showcase{animation:none}.investor-sector img,.investor-primary,.investor-secondary{transition:none}}

/* Header search: aligned immediately left of the upper-right dropdown menu */
.cmgi-header-search{display:flex;align-items:stretch;margin-left:auto;width:clamp(160px,22vw,290px);height:43px;border:1px solid #d9d1bd;border-radius:5px;overflow:hidden;background:#fff;box-shadow:0 3px 12px #0000000a}
.cmgi-header-search input{width:100%;min-width:0;padding:0 12px;border:0;outline-offset:-3px;background:transparent;color:#172022;font:inherit;font-size:13px}
.cmgi-header-search button{width:45px;flex:none;background:#d9a629;color:#10191a;border:0;cursor:pointer;font-size:17px}
.cmgi-header-search button:hover,.cmgi-header-search button:focus-visible{background:#f0c15a}
.cmgi-header .cmgi-menu{margin-left:0}
.cmgi-nav-wrap{gap:12px}
@media(max-width:640px){.cmgi-nav-wrap{flex-wrap:wrap}.cmgi-header-search{order:3;width:100%;margin:0;height:40px}.cmgi-header .cmgi-menu{margin-left:auto}}

/* Investor relations callout — homepage only */
.investor-home .cmgi-investor-relations{background:linear-gradient(120deg,#102720,#09171a);color:#fff;padding:88px 0}.investor-home .cmgi-investment-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:65px;align-items:center}.investor-home .cmgi-investor-relations h2{color:#fff}.investor-home .cmgi-investor-relations p{color:#d6e1dc;line-height:1.75;max-width:640px}.investor-home .cmgi-investor-relations .investor-primary{margin-top:16px}.investor-home .cmgi-investment-panel{background:#fff;color:#152324;border-radius:8px;padding:32px;border-top:5px solid #e9b94f;box-shadow:0 25px 60px #0004}.investor-home .cmgi-investment-panel h3{font-size:23px;margin:0 0 18px}.investor-home .cmgi-investment-panel ul{list-style:none;padding:0;margin:0}.investor-home .cmgi-investment-panel li{padding:12px 0 12px 26px;border-bottom:1px solid #e6ebe8;position:relative;line-height:1.5}.investor-home .cmgi-investment-panel li:before{content:'✓';position:absolute;left:0;color:#aa781b;font-weight:900}.investor-home .cmgi-investment-panel .cmgi-investment-note{color:#667473;font-size:12px;margin:20px 0 0}.investor-home .investor-copy h1{font-size:clamp(40px,4.9vw,72px)}@media(max-width:850px){.investor-home .cmgi-investment-layout{grid-template-columns:1fr;gap:28px}.investor-home .cmgi-investor-relations{padding:60px 0}}

/* CINEMATIC V6 — homepage only */
body.home .cmgi-header{background:#0c1516;color:#fff;border-color:#2b3430}body.home .cmgi-brand{color:#fff}body.home .cmgi-brand strong{color:#fff}body.home .cmgi-header-search{border-color:#97742c}body.home .cmgi-menu summary{background:#e7b84c;color:#111}
.cinematic-home{background:#fff}.cinematic-home .cinematic-hero{position:relative;min-height:730px;background:#091418;color:#fff;overflow:hidden;isolation:isolate}.cinematic-home .cinematic-backdrop{position:absolute;inset:-5%;background:linear-gradient(90deg,rgba(3,12,15,.94),rgba(3,12,15,.75) 49%,rgba(3,12,15,.32)),url('assets/home-hero.jpg') center/cover;z-index:-2;transform:scale(1.08);animation:cmgi-cinematic-pan 24s ease-in-out infinite alternate}.cinematic-home .cinematic-hero:after{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 79% 50%,#e3a63b22,transparent 47%);z-index:-1}.cinematic-home .cinematic-inner{max-width:1240px;margin:auto;padding:90px 26px 115px;display:grid;grid-template-columns:1.08fr .92fr;align-items:center;gap:55px;min-height:700px}.cinematic-home .cinematic-kicker{font-size:12px;letter-spacing:3px;font-weight:800;color:#f0c25f;text-transform:uppercase}.cinematic-home h1{font-size:clamp(43px,5.2vw,76px);letter-spacing:-2px;line-height:1.06;color:white;margin:22px 0}.cinematic-home h1 span{color:#f0c25f}.cinematic-home .cinematic-lead{font-size:18px;color:#d7e1df;line-height:1.8;max-width:650px}.cinematic-home .cinematic-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:32px}.cinematic-home .cinematic-button{display:inline-flex;align-items:center;gap:16px;padding:15px 22px;background:#f0c25f;color:#101819!important;border-radius:5px;font-weight:800;transition:transform .25s,background .25s}.cinematic-home .cinematic-button:hover{transform:translateY(-4px);background:#ffdb86}.cinematic-home .cinematic-button.secondary{background:transparent;color:#fff!important;border:1px solid #d5c9a7}.cinematic-home .cinematic-trust{display:flex;gap:16px;flex-wrap:wrap;margin-top:40px;font-size:12px;color:#e6e3d7}.cinematic-home .cinematic-trust span:before{content:'◆';color:#f0c25f;margin-right:8px}.cinematic-home .cinematic-stage{position:relative;height:485px;perspective:950px;touch-action:pan-y;--rx:0deg;--ry:0deg}.cinematic-home .cinematic-scene{position:absolute;inset:0;transform-style:preserve-3d;transform:rotateX(var(--rx)) rotateY(var(--ry));transition:transform .18s ease-out}.cinematic-home .cinematic-glow{position:absolute;inset:12%;border-radius:50%;background:#e7ae4244;filter:blur(70px);transform:translateZ(-60px)}.cinematic-home .cinematic-img{position:absolute;object-fit:cover;border-radius:15px;border:1px solid #efca72a1;box-shadow:0 30px 60px #0009;backface-visibility:hidden}.cinematic-home .cinematic-img.gold{width:70%;height:340px;right:2%;top:10%;transform:translateZ(65px) rotate(5deg);animation:cmgi-float 6s ease-in-out infinite}.cinematic-home .cinematic-img.raw{width:50%;height:225px;left:0;bottom:1%;transform:translateZ(115px) rotate(-8deg);animation:cmgi-float2 7s ease-in-out infinite}.cinematic-home .cinematic-tag{position:absolute;right:0;bottom:0;z-index:3;background:#eabb57;color:#17201d;padding:15px 18px;font-weight:800;border-radius:5px;box-shadow:0 15px 35px #0006}.cinematic-home .cinematic-orbit{position:absolute;inset:9%;border:2px solid #f1bf5470;border-radius:50%;transform:translateZ(-25px) rotate(-20deg);box-shadow:0 0 40px #d4a34e33}.cinematic-home .cinematic-motion-note{font-size:12px;color:#c9d3ce;margin-top:12px}.cinematic-home .cinematic-accent{height:5px;background:linear-gradient(90deg,#735019,#ffe49b,#9e711d)}.cinematic-home .cinematic-reveal{opacity:1;transform:none}.cinematic-home.js-ready .cinematic-reveal{opacity:0;transform:translateY(24px);transition:opacity .75s,transform .75s}.cinematic-home.js-ready .cinematic-reveal.is-visible{opacity:1;transform:none}.cinematic-home .cinematic-strip{background:#112522;color:#f5ead1;padding:22px 26px;text-align:center;letter-spacing:1.3px;font-size:13px;font-weight:700}.cinematic-home .cinematic-strip span{color:#e8b852;margin:0 16px}.cinematic-home .cinematic-stage:focus-visible{outline:2px solid #f5ca69;outline-offset:5px}@keyframes cmgi-cinematic-pan{from{transform:scale(1.08) translateX(0)}to{transform:scale(1.16) translateX(-1.5%)}}@keyframes cmgi-float{0%,100%{translate:0 0}50%{translate:0 -13px}}@keyframes cmgi-float2{0%,100%{translate:0 0}50%{translate:0 14px}}@media(max-width:900px){.cinematic-home .cinematic-inner{grid-template-columns:1fr;padding-top:65px;gap:22px}.cinematic-home .cinematic-stage{height:390px;max-width:520px;width:100%;margin:auto}.cinematic-home .cinematic-img.gold{height:280px}.cinematic-home .cinematic-img.raw{height:190px}}@media(max-width:560px){.cinematic-home .cinematic-inner{padding:48px 20px 65px}.cinematic-home h1{letter-spacing:-1px}.cinematic-home .cinematic-stage{height:285px}.cinematic-home .cinematic-img.gold{height:210px}.cinematic-home .cinematic-img.raw{height:145px}.cinematic-home .cinematic-tag{font-size:11px;padding:10px}.cinematic-home .cinematic-strip{font-size:11px}.cinematic-home .cinematic-strip span{margin:0 5px}}@media(prefers-reduced-motion:reduce){.cinematic-home .cinematic-backdrop,.cinematic-home .cinematic-img{animation:none!important}.cinematic-home.js-ready .cinematic-reveal{opacity:1;transform:none;transition:none}.cinematic-home .cinematic-scene{transition:none}}

/* V7 photo clarity and crop improvements */
.cmgi-hero{background-position:center center;background-size:cover;background-repeat:no-repeat}
.cmgi-photo{background-size:cover;background-position:center center;min-height:330px}
.cmgi-about-gallery-card img{object-fit:cover;object-position:center;aspect-ratio:16/10;height:auto;min-height:260px}
.cmgi-sector-photo,.cmgi-wide-image img,.cinematic-sector img{object-fit:cover;object-position:center}
@media(max-width:700px){.cmgi-about-gallery-card img{min-height:210px}}

/* V8 curated high-resolution stock mining imagery */
.cinematic-home .cinematic-backdrop { background-image: linear-gradient(90deg,rgba(3,12,15,.94),rgba(3,12,15,.75) 49%,rgba(3,12,15,.32)), url('https://images.unsplash.com/photo-1523848309072-c199db53f137?auto=format&fit=crop&w=2400&q=85'); background-position:center; }
.cmgi-hero {background-position:center center;background-size:cover;}
.cmgi-about-gallery-card img,.investor-sector img,.cmgi-sector-photo,.cmgi-wide-image img {object-fit:cover;object-position:center;}

/* V10: crisp high-resolution import/export feature photograph */
.cmgi-shipping-hd{position:relative;overflow:hidden;min-height:330px;background:#172a31}
.cmgi-shipping-hd img{width:100%;height:clamp(330px,40vw,570px);object-fit:cover;object-position:center;display:block}
.cmgi-shipping-hd:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.76));pointer-events:none}
.cmgi-shipping-caption{position:absolute;z-index:1;bottom:26px;left:clamp(18px,5vw,60px);right:20px;color:#fff;font-size:clamp(22px,3vw,44px);font-weight:800;text-shadow:0 2px 12px #000}

/* V11: high-resolution logistics photography */
.cmgi-wide-image img { width:100%;height:auto;object-fit:cover;display:block; }
.cmgi-hero { background-position:center center; background-size:cover; }

/* Investor Relations V16 */
.cmgi-ir{padding-top:3rem;padding-bottom:3rem}.cmgi-ir-intro{max-width:960px;margin-bottom:3rem}.cmgi-ir-section{margin:3rem 0}.cmgi-ir-section>.cmgi-h2{margin-bottom:1.25rem}.cmgi-ir .cmgi-card{overflow:hidden}.cmgi-ir .cmgi-card-body p{line-height:1.65}.cmgi-ir-link{color:#b38a2b;font-weight:700;text-decoration:none}.cmgi-ir-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.cmgi-ir-steps>div{padding:1.35rem;border:1px solid #dfd6c0;border-radius:12px;background:#f8f5ed}.cmgi-ir-steps b{color:#8d6b21}.cmgi-ir-steps p{margin-bottom:0}.cmgi-ir-contact{padding:2rem;border-radius:18px;background:#142020;color:#f6f4ef}.cmgi-ir-contact .cmgi-h2,.cmgi-ir-contact h3{color:#fff}.cmgi-ir-contact a:not(.cmgi-btn){color:#e8bc60}.cmgi-ir-notice{font-size:.84rem;line-height:1.6;color:#626262;margin-top:2rem}@media(max-width:800px){.cmgi-ir-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.cmgi-ir-steps{grid-template-columns:1fr}.cmgi-ir-contact{padding:1.25rem}}
