/* Mat Trade 4.15.15 — additive visual refinement; original brand tokens remain authoritative. */
:root{--mt-premium-shadow:0 18px 48px rgba(66,45,26,.065)}
html{scroll-padding-top:100px}
/* Reduce pronounced inter-section gaps; leave a safe lane above the floating dock. */
.marketing-app-shell>.app-screen{min-height:unset!important;padding-top:clamp(46px,6vw,88px)!important;padding-bottom:clamp(55px,8vw,104px)!important;scroll-margin-top:112px}
.marketing-app-shell>.hero-screen{min-height:min(790px,calc(100svh - 62px))!important}
.marketing-app-shell>.final-screen{padding-bottom:142px!important}
.company-screen{position:relative;isolation:isolate}
.company-screen>.screen-heading{align-items:center;gap:18px;margin-bottom:22px}
.company-screen .screen-heading h2{max-width:810px;text-wrap:balance}
.about-accent-line{display:flex;gap:12px;align-items:center;font:800 10px/1.1 system-ui;color:#bf7b37;letter-spacing:.17em;margin:0 0 14px;text-transform:uppercase}
.about-accent-line i{height:1px;max-width:132px;flex:1;background:linear-gradient(90deg,#f8b571,transparent)}
.company-grid{gap:12px!important}
.company-story{background:linear-gradient(135deg,#fff,#fffaf5);border:1px solid rgba(242,163,78,.19);border-radius:27px!important;padding:clamp(24px,3vw,42px)!important;box-shadow:var(--mt-premium-shadow);position:relative}
.company-story:before{content:'“';font:900 92px/.7 Georgia,serif;position:absolute;top:24px;right:20px;color:rgba(255,130,24,.09);pointer-events:none}
.company-story p{max-width:680px;overflow-wrap:anywhere}
.company-story p+p{font-size:clamp(13px,1.1vw,16px)!important;color:var(--muted)!important;line-height:1.85!important}
.company-direction{border-radius:27px!important;padding:clamp(23px,3vw,34px)!important;position:relative;overflow:hidden}
.company-direction:after{content:'';position:absolute;right:-55px;top:-66px;width:260px;height:260px;border:1px solid rgba(255,255,255,.22);border-radius:50%;box-shadow:0 0 0 32px rgba(255,255,255,.04),0 0 0 75px rgba(255,255,255,.03);pointer-events:none}
.direction-top{display:flex;align-items:center;justify-content:space-between;gap:16px;position:relative;z-index:1}
.direction-symbol{border:1px solid rgba(255,255,255,.26);border-radius:17px;width:46px;height:46px;display:grid;place-items:center;font:600 24px system-ui;color:#fff}
.direction-flow{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin:36px 0 12px;position:relative;z-index:1}
.direction-flow span{padding:9px 11px;border:1px solid rgba(255,255,255,.2);border-radius:100px;background:rgba(255,255,255,.09);font:800 9px/1 system-ui;color:#fff;letter-spacing:.08em}
.direction-flow i{width:16px;height:1px;background:#ffb978;position:relative}
.direction-flow i:after{content:'';position:absolute;width:4px;height:4px;border-top:1px solid #ffb978;border-right:1px solid #ffb978;transform:rotate(45deg);right:0;top:-2px}
.company-direction p{position:relative;z-index:1}
.company-cards{gap:12px!important;margin-top:12px!important}
.company-cards article{border-radius:25px!important;padding:clamp(22px,2.6vw,36px)!important;background:#fff;border:1px solid rgba(236,209,185,.8);box-shadow:var(--mt-premium-shadow);position:relative;overflow:hidden;min-height:285px}
.purpose-card-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.purpose-glyph{height:54px;width:54px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(130deg,#fff1df,#ffe6cf);color:var(--orange);font:800 32px/1 system-ui;transform:rotate(-8deg);transition:transform .3s}
.company-cards article:hover .purpose-glyph{transform:rotate(0deg) scale(1.06)}
.company-cards article h3{margin-top:0!important;max-width:500px;font-size:clamp(19px,2.5vw,30px)!important;line-height:1.22!important;overflow-wrap:anywhere}
.company-cards article p{color:var(--muted)!important;line-height:1.8!important;opacity:1!important;visibility:visible!important;display:block!important;max-width:560px}
.account-journey,.promo-gallery{margin-top:clamp(36px,5vw,65px)}
.journey-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:18px}
.journey-heading>div{flex:1;min-width:0}.journey-heading h3{font-size:clamp(25px,3vw,43px);letter-spacing:-.04em;line-height:1.1;max-width:650px;margin:9px 0 0;text-wrap:balance}
.journey-heading>p{max-width:340px;font-size:13px;line-height:1.7;color:var(--muted);margin:0}
.journey-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;position:relative}
.journey-step{border:1px solid rgba(242,210,185,.9);border-radius:25px;background:linear-gradient(145deg,#fff,#fffaf5);padding:24px;min-width:0;position:relative;box-shadow:var(--mt-premium-shadow);transition:transform .28s,border-color .28s}
.journey-step:hover{transform:translateY(-5px);border-color:#ffbd84}
.journey-illustration{height:136px;position:relative;display:grid;place-items:center;border-radius:20px;background:radial-gradient(circle at 50% 70%,rgba(255,167,88,.2),transparent 56%),linear-gradient(125deg,#fff6ed,#fff);overflow:hidden;margin-bottom:20px;color:var(--orange)}
.journey-illustration>svg{width:54px;height:54px;z-index:2;filter:drop-shadow(0 8px 14px rgba(255,122,0,.17));animation:mt-glyph-float 5s ease-in-out infinite}
.journey-illustration>strong{position:absolute;left:15px;top:14px;color:rgba(166,99,46,.66);font:900 11px system-ui}
.journey-ring{position:absolute;border:1px solid rgba(255,122,0,.15);width:142px;height:142px;border-radius:50%;box-shadow:0 0 0 29px rgba(255,122,0,.028),0 0 0 58px rgba(255,122,0,.025)}
.journey-step>span{font:900 10px/1 system-ui;color:#dc720c;letter-spacing:.12em}
.journey-step h4{font-size:clamp(19px,2vw,25px);line-height:1.15;letter-spacing:-.035em;margin:11px 0}
.journey-step p{font-size:12px;line-height:1.75;color:var(--muted);margin:0}
/* Image-count aware, editorial gallery: do not assume a fixed image count. */
.promo-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(11px,1.7vw,18px);align-items:stretch}
.promo-gallery-grid .promo-gallery-card{display:flex;flex-direction:column;border:1px solid rgba(226,216,205,.88);border-radius:24px;background:#fff;padding:clamp(9px,1.1vw,13px);min-width:0;width:100%;text-align:left;cursor:zoom-in;box-shadow:var(--mt-premium-shadow);transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease;overflow:hidden}
.promo-gallery-grid .promo-gallery-card:hover{transform:translateY(-4px);border-color:rgba(255,128,12,.37);box-shadow:0 20px 54px rgba(66,45,26,.11)}
.promo-gallery-grid .promo-gallery-card:focus-visible{outline:3px solid #ff8b21;outline-offset:3px}
.promo-gallery-grid .promo-gallery-media{width:100%;display:grid;place-items:center;overflow:hidden;min-width:0;background:linear-gradient(145deg,#faf6f1,#f4efeb);border-radius:clamp(13px,1.6vw,18px);flex:1}
.promo-gallery-grid img{display:block;width:100%;height:100%;max-height:380px;aspect-ratio:3/4;object-fit:contain;object-position:center;min-width:0}
.promo-gallery-grid .promo-gallery-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 6px 5px;color:var(--ink);font:800 clamp(12px,1.15vw,15px)/1.4 system-ui;min-width:0;overflow-wrap:anywhere}
.promo-gallery-grid .promo-gallery-caption::after{content:'↗';flex:none;font-size:17px;color:#dc780e}
.promo-gallery-grid[data-layout="single"]{grid-template-columns:minmax(0,min(100%,510px));justify-content:center}
.promo-gallery-grid[data-layout="single"] img{max-height:600px}
.promo-gallery-grid[data-layout="pair"]{grid-template-columns:repeat(2,minmax(0,1fr));max-width:1030px;margin-inline:auto}
.promo-gallery-grid[data-layout="pair"] img{max-height:550px}
/* With three images, feature one and balance the other two beside it. */
.promo-gallery-grid[data-layout="trio"]{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);max-width:1050px;margin-inline:auto}
.promo-gallery-grid[data-layout="trio"] .promo-gallery-card:first-child{grid-row:span 2}
.promo-gallery-grid[data-layout="trio"] .promo-gallery-card:first-child img{max-height:580px}
.promo-gallery-grid[data-layout="trio"] .promo-gallery-card:not(:first-child) img{max-height:240px;aspect-ratio:5/3}
.promo-gallery-grid[data-layout="quad"]{grid-template-columns:repeat(2,minmax(0,1fr));max-width:1040px;margin-inline:auto}
.promo-gallery-grid[data-layout="quad"] img{max-height:450px}
/* Center partial final rows, whether there are five, seven, eleven, etc. */
.promo-gallery-grid[data-layout="collection"]{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch}
.promo-gallery-grid[data-layout="collection"] .promo-gallery-card{flex:0 1 calc((100% - 36px)/3);max-width:calc((100% - 36px)/3)}
.promo-gallery-grid[data-layout="collection"] img{max-height:375px}
.promo-gallery-meta{margin:0 0 13px;display:flex;align-items:center;gap:10px;color:#9a6a43;font:800 10px/1.5 system-ui;letter-spacing:.09em;text-transform:uppercase}
.promo-gallery-meta::before{content:'';width:24px;height:1px;background:#ecae70}
.promo-lightbox{width:min(90vw,720px);max-height:90dvh;border:0;border-radius:24px;padding:14px;background:#fff;box-shadow:0 28px 90px rgba(0,0,0,.25)}
.promo-lightbox::backdrop{background:rgba(12,14,14,.75);backdrop-filter:blur(5px)}
.promo-lightbox img{display:block;max-height:77dvh;max-width:100%;margin:auto;object-fit:contain}.promo-lightbox p{text-align:center;font-weight:700;font-size:12px}
.promo-lightbox form{text-align:right}.promo-lightbox button{background:#fff1e5;border:0;border-radius:12px;padding:9px 13px;cursor:pointer}
.values-strip{margin-top:20px!important;gap:10px!important}
.values-strip article{border-radius:21px!important;box-shadow:0 10px 28px rgba(66,45,26,.035)}
.final-card{isolation:isolate;box-shadow:0 30px 90px rgba(37,29,23,.18)}
.final-card h2,.final-card p,.final-card .primary-action,.final-card .eyebrow,.final-logo,.final-capabilities{position:relative;z-index:2}
.final-card:after{content:'';position:absolute;inset:0;opacity:.13;background-image:radial-gradient(rgba(255,255,255,.5) .5px,transparent .5px);background-size:18px 18px;pointer-events:none}
.final-capabilities{margin:24px auto 0;display:flex;justify-content:center;flex-wrap:wrap;gap:9px}
.final-capabilities span{border:1px solid rgba(255,255,255,.18);padding:8px 11px;border-radius:999px;font:700 10px system-ui;color:#f6e0cb;background:rgba(255,255,255,.035)}
.final-sparks i{position:absolute;width:6px;height:6px;background:#ffab58;border-radius:50%;box-shadow:0 0 22px rgba(255,156,65,.8);opacity:.45;animation:mt-spark 7s ease-in-out infinite alternate}
.final-sparks i:nth-child(1){left:11%;top:18%}.final-sparks i:nth-child(2){left:18%;top:65%;animation-delay:1s}.final-sparks i:nth-child(3){left:78%;top:13%;animation-delay:2s}.final-sparks i:nth-child(4){left:89%;top:68%;animation-delay:3s}.final-sparks i:nth-child(5){left:42%;top:9%;animation-delay:1.5s}.final-sparks i:nth-child(6){left:60%;bottom:10%;animation-delay:2.7s}.final-sparks i:nth-child(7){left:7%;bottom:19%;animation-delay:4s}
@keyframes mt-spark{to{opacity:.9;transform:translate3d(12px,-12px,0) scale(1.35)}}
@keyframes mt-glyph-float{50%{transform:translateY(-6px)}}
/* Same dock geometry on every website screen. The selected-state fill stays within its own cell. */
.bottom-app-nav{isolation:isolate}
.bottom-app-nav>a:not(.center-trade-button){min-width:0;overflow:hidden;border:1px solid transparent!important}
.bottom-app-nav>a.active:not(.center-trade-button){background:#fff4e8!important;border-color:rgba(255,128,12,.12)!important;box-shadow:inset 0 0 0 1px rgba(255,122,0,.04)!important}
.bottom-app-nav .nav-icon,.bottom-app-nav>a:not(.center-trade-button)>small{position:relative;z-index:1;pointer-events:none}
.bottom-app-nav>a.active:not(.center-trade-button):before,.bottom-app-nav>a.active:not(.center-trade-button):after{display:none!important}
@media(max-width:920px){.journey-heading{align-items:start;flex-direction:column}.journey-heading>p{max-width:700px}.journey-steps{grid-template-columns:repeat(3,minmax(0,1fr))}.journey-step{padding:16px}}
@media(max-width:700px){
 .marketing-app-shell>.app-screen{padding-top:42px!important;padding-bottom:66px!important}
 .marketing-app-shell>.hero-screen{min-height:unset!important}
 .marketing-app-shell>.final-screen{padding-bottom:120px!important}
 .company-story{padding:23px!important}.company-story p{font-size:clamp(19px,5.8vw,29px)!important}
 .company-cards article{min-height:unset!important;padding:23px!important}.company-cards article h3{font-size:clamp(20px,6vw,26px)!important}
 .journey-steps{grid-template-columns:1fr!important;gap:10px}.journey-step{padding:18px;display:grid;grid-template-columns:94px 1fr;column-gap:18px;align-items:start}
 .journey-illustration{width:94px;height:96px;grid-row:span 3;margin:0}.journey-illustration svg{width:42px;height:42px}.journey-step>span{margin-top:8px}.journey-step h4{margin:7px 0}.journey-step p{grid-column:2}
 .promo-gallery-grid[data-layout="trio"]{grid-template-columns:1fr 1fr}
 .promo-gallery-grid[data-layout="trio"] .promo-gallery-card:first-child{grid-column:1/-1;grid-row:auto;max-width:560px;justify-self:center}
 .promo-gallery-grid[data-layout="trio"] .promo-gallery-card:first-child img{max-height:490px}
 .promo-gallery-grid[data-layout="trio"] .promo-gallery-card:not(:first-child) img{max-height:290px;aspect-ratio:3/4}
 .promo-gallery-grid[data-layout="collection"] .promo-gallery-card{flex-basis:calc((100% - 12px)/2);max-width:calc((100% - 12px)/2)}
 .direction-flow{margin:25px 0 10px}
}
@media(max-width:460px){
 .promo-gallery-grid{gap:12px}
 .promo-gallery-grid[data-layout="pair"]{grid-template-columns:minmax(0,1fr);max-width:425px}
 .promo-gallery-grid[data-layout="pair"] .promo-gallery-card img{max-height:460px}
 .promo-gallery-grid[data-layout="trio"] .promo-gallery-card:first-child img{max-height:470px}
 .promo-gallery-grid[data-layout="trio"] .promo-gallery-card:not(:first-child) img{max-height:240px}
 .promo-gallery-grid[data-layout="quad"] img{max-height:260px}
 .promo-gallery-grid[data-layout="single"] img{max-height:520px}
 .promo-gallery-grid .promo-gallery-card{border-radius:20px;padding:9px}
 .promo-gallery-grid .promo-gallery-caption{font-size:12px;padding:11px 4px 4px}
}
@media(max-width:385px){.bottom-app-nav>a:not(.center-trade-button){padding:0 2px!important}.bottom-app-nav .nav-icon{font-size:16px}.bottom-app-nav small{font-size:7px!important}}
@media(prefers-reduced-motion:reduce){.journey-illustration svg,.final-sparks i{animation:none!important}.journey-step:hover,.promo-gallery-grid .promo-gallery-card:hover{transform:none!important}}
/* Preserve the established orange mission / white vision card pairing. */
.company-cards article:first-child{background:linear-gradient(140deg,#ff8e2e,#ff750b)!important;color:#fff!important}
.company-cards article:first-child p{color:rgba(255,255,255,.92)!important}
.company-cards article:first-child .purpose-card-top>span:first-child{color:#fff!important}
.company-cards article:first-child .purpose-glyph{background:rgba(255,255,255,.16);color:#fff}
.company-cards article:nth-child(2) .purpose-card-top>span:first-child{font-size:10px;font-weight:900;letter-spacing:.14em;color:#b76b29}

/* Keep the company story fully rendered as visitors enter it. */
#about{content-visibility:visible!important;contain-intrinsic-size:auto!important}

/* v4.15.16 — extended-theme contrast invariant.
   The legacy rule `body.theme-extended .company-cards article` has greater CSS
   specificity than `.company-cards article:first-child` and forced a white
   background under white Mission text. Keep the original orange Mission card
   in both theme modes, including when CMS/theme toggles at runtime. */
#about .company-cards > article.purpose-card:first-child,
body.theme-extended #about .company-cards > article.purpose-card:first-child{
  background-color:#ff7b11!important;
  background-image:linear-gradient(140deg,#ff8e2e,#ff750b)!important;
  color:#fff!important;
  border-color:rgba(255,128,22,.65)!important;
}
#about .company-cards > article.purpose-card:first-child h3,
#about .company-cards > article.purpose-card:first-child p,
#about .company-cards > article.purpose-card:first-child .purpose-card-top > span:first-child,
body.theme-extended #about .company-cards > article.purpose-card:first-child h3,
body.theme-extended #about .company-cards > article.purpose-card:first-child p{
  color:#fff!important;
  opacity:1!important;
  visibility:visible!important;
}
#about .company-cards > article.purpose-card:first-child p{color:rgba(255,255,255,.93)!important}
/* Keep the neighboring Vision card visually separate in extended theme. */
#about .company-cards > article.purpose-card:nth-child(2),
body.theme-extended #about .company-cards > article.purpose-card:nth-child(2){
  background:#fff!important;
  color:#151917!important;
}
#about .company-cards > article.purpose-card:nth-child(2) h3{color:#151917!important}
#about .company-cards > article.purpose-card:nth-child(2) p{color:#626762!important}
