/* MarTechBar theme — layout and brand components. Colours and type come from theme.json. */
:root{
	--mtb-teal:var(--wp--preset--color--teal,#0F4C5C);
	--mtb-teal-deep:var(--wp--preset--color--teal-deep,#0B3A46);
	--mtb-saffron:var(--wp--preset--color--saffron,#E9A23B);
	--mtb-ivory:var(--wp--preset--color--ivory,#FAF8F3);
	--mtb-stone:var(--wp--preset--color--stone,#EDE8DE);
	--mtb-graphite:var(--wp--preset--color--graphite,#1D2427);
	--mtb-muted:var(--wp--preset--color--muted,#46555A);
	--mtb-line:var(--wp--preset--color--line,#DDD7CB);
	--mtb-line-strong:var(--wp--preset--color--line-strong,#7E8B88);
	--mtb-accent-text:var(--wp--preset--color--accent-text,#7F5410);
	--mtb-inv-muted:var(--wp--preset--color--inverse-muted,#D4E3E0);
	--mtb-inv-line:#3E6E79;
	--mtb-serif:var(--wp--preset--font-family--serif);
	--mtb-sans:var(--wp--preset--font-family--sans);
	--mtb-img:url("../img/");
}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.mtb-site *,.mtb-site *::before,.mtb-site *::after{box-sizing:border-box}
.mtb-content p,.mtb-content h1,.mtb-content h2,.mtb-content h3,.mtb-content h4,.mtb-content ul,.mtb-content figure,
.mtb-header p,.mtb-footer p,.mtb-footer ul{margin:0}
.mtb-site a:focus-visible,.mtb-site button:focus-visible,.mtb-site input:focus-visible,.mtb-site select:focus-visible,.mtb-site textarea:focus-visible{outline:2px solid var(--mtb-teal);outline-offset:3px}
.skip-link.screen-reader-text:focus{background:var(--mtb-ivory);color:var(--mtb-teal);padding:12px 16px;z-index:1000}

/* ---------- layout ---------- */
.mtb-wrap{max-width:1200px;margin-left:auto;margin-right:auto;padding-left:32px;padding-right:32px;width:100%}
.mtb-section{padding-top:112px;padding-bottom:112px}
.mtb-section--sm{padding-top:72px;padding-bottom:72px}
.mtb-section--flush-top{padding-top:0}
.mtb-band-stone{background:var(--mtb-stone)}
.mtb-band-teal{background:var(--mtb-teal);color:var(--mtb-ivory)}
.mtb-stack{display:flex;flex-direction:column;gap:24px}
.mtb-stack--8{gap:8px}.mtb-stack--12{gap:12px}.mtb-stack--16{gap:16px}.mtb-stack--32{gap:32px}.mtb-stack--48{gap:48px}
.mtb-measure{max-width:760px}
.mtb-measure-sm{max-width:680px}
.mtb-measure-lg{max-width:980px}
.mtb-grid-2,.mtb-grid-3,.mtb-grid-4,.mtb-grid-5{display:grid;gap:24px}
.mtb-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.mtb-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.mtb-grid-4{grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}
.mtb-grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.mtb-split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:64px;align-items:start}
.mtb-split--center{align-items:center}
.mtb-rule{border-top:1px solid var(--mtb-line);padding-top:24px}
.mtb-band-teal .mtb-rule{border-top-color:var(--mtb-inv-line)}

/* ---------- type ---------- */
.mtb-label{font-family:var(--mtb-sans);font-size:13px;font-weight:600;line-height:1.3;letter-spacing:.08em;text-transform:uppercase;color:var(--mtb-muted)}
.mtb-label--accent{color:var(--mtb-accent-text)}
.mtb-display{font-family:var(--mtb-serif);font-weight:500;font-size:clamp(42px,5.2vw,64px);line-height:1.05;letter-spacing:-.01em;color:var(--mtb-teal)}
.mtb-h1{font-family:var(--mtb-serif);font-weight:500;font-size:clamp(34px,3.6vw,44px);line-height:1.12;color:var(--mtb-teal)}
.mtb-h2{font-family:var(--mtb-serif);font-weight:600;font-size:clamp(26px,2.4vw,30px);line-height:1.2;color:var(--mtb-teal)}
.mtb-h3{font-family:var(--mtb-sans);font-weight:600;font-size:21px;line-height:1.3;color:var(--mtb-graphite)}
.mtb-lead{font-size:20px;line-height:1.6}
.mtb-quote{font-family:var(--mtb-serif);font-style:italic;font-size:26px;line-height:1.4;color:var(--mtb-teal)}
.mtb-statement{font-family:var(--mtb-serif);font-weight:500;font-size:24px;line-height:1.3;color:var(--mtb-teal)}
.mtb-muted{color:var(--mtb-muted)}
.mtb-small{font-size:16px;line-height:1.55}
.mtb-strong{font-weight:600}
.mtb-num{font-family:var(--mtb-serif);font-weight:500;font-size:30px;line-height:1;color:var(--mtb-teal);font-variant-numeric:lining-nums}
.mtb-bar-before::before{content:"";display:block;width:30px;height:5px;background:var(--mtb-saffron);margin-bottom:24px}
.mtb-band-teal .mtb-display,.mtb-band-teal .mtb-h1,.mtb-band-teal .mtb-h2,.mtb-band-teal .mtb-h3,.mtb-band-teal .mtb-quote,.mtb-band-teal .mtb-num,.mtb-band-teal h2,.mtb-band-teal h3,.mtb-band-teal h4{color:var(--mtb-ivory)}
.mtb-band-teal .mtb-label,.mtb-band-teal .mtb-muted{color:var(--mtb-inv-muted)}
.mtb-band-teal a:not(.wp-element-button){color:var(--mtb-ivory)}

/* ---------- buttons ---------- */
.mtb-site .wp-block-button .wp-block-button__link{min-height:52px;display:inline-flex;align-items:center;justify-content:center}
.mtb-site .wp-block-button.is-style-outline .wp-block-button__link{background:transparent;color:var(--mtb-graphite);border:1.5px solid var(--mtb-line-strong);padding:14px 24px}
.mtb-site .wp-block-button.is-style-outline .wp-block-button__link:hover{border-color:var(--mtb-teal);color:var(--mtb-teal);background:transparent}
.mtb-site .wp-block-button.mtb-btn-inverse .wp-block-button__link{background:var(--mtb-ivory);color:var(--mtb-teal);border-color:var(--mtb-ivory)}
.mtb-site .wp-block-button.mtb-btn-inverse .wp-block-button__link:hover{background:#FFFFFF;border-color:#FFFFFF;color:var(--mtb-teal)}
.mtb-site .wp-block-button.mtb-btn-inverse-outline .wp-block-button__link{background:transparent;color:var(--mtb-ivory);border:1.5px solid var(--mtb-inv-muted)}
.mtb-site .wp-block-button.mtb-btn-inverse-outline .wp-block-button__link:hover{border-color:var(--mtb-ivory);background:transparent;color:var(--mtb-ivory)}
.mtb-more a,a.mtb-more{font-weight:600;text-decoration:none;display:inline-flex;align-items:center;min-height:48px}
.mtb-more a:hover,a.mtb-more:hover{text-decoration:underline}

/* ---------- header ---------- */
.mtb-header{background:var(--mtb-ivory);border-bottom:1px solid var(--mtb-line);position:relative;z-index:20}
.mtb-header__in{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:20px;padding-bottom:20px}
.mtb-header__nav{display:flex;align-items:center;gap:28px}
.mtb-lockup{display:inline-flex;align-items:center;gap:14px;text-decoration:none;color:var(--mtb-teal)}
.mtb-lockup:hover{color:var(--mtb-teal)}
.mtb-lockup img{width:36px;height:36px;display:block}
.mtb-word{font-family:var(--mtb-serif);font-weight:500;font-size:26px;line-height:1;letter-spacing:-.01em}
.mtb-header .wp-block-navigation .wp-block-navigation-item__content{color:var(--mtb-graphite);text-decoration:none;padding:12px 0}
.mtb-header .wp-block-navigation .wp-block-navigation-item__content:hover{color:var(--mtb-teal)}
.mtb-header .wp-block-navigation .current-menu-item>.wp-block-navigation-item__content,
.mtb-header .wp-block-navigation .wp-block-navigation-item__content[aria-current="page"]{color:var(--mtb-teal);font-weight:600;text-decoration:underline;text-decoration-color:var(--mtb-saffron);text-decoration-thickness:3px;text-underline-offset:10px}
.mtb-header .wp-block-button .wp-block-button__link{min-height:48px;font-size:17px;padding:12px 20px}
.mtb-header .wp-block-navigation-item.mtb-nav-contact{display:none}
.mtb-header .is-menu-open .wp-block-navigation-item.mtb-nav-contact{display:flex}
.mtb-header .wp-block-navigation__responsive-container.is-menu-open{background:var(--mtb-ivory);padding:24px}
.mtb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{font-size:22px;padding:10px 0}

/* ---------- hero ---------- */
.mtb-hero{position:relative;overflow:hidden;padding-top:96px;background-repeat:no-repeat;background-position:center bottom;background-size:100% auto}
.mtb-hero--wave{background-image:url("../img/wave-on-ivory.svg");padding-bottom:max(16vw,120px)}
.mtb-hero--dots{background-image:url("../img/dotwave-on-ivory.svg");padding-bottom:max(26vw,180px)}
.mtb-hero--dots .mtb-hero__copy{max-width:640px}
.mtb-hero--plain{padding-bottom:80px}
.mtb-hero-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:56px;align-items:center}

/* engine chart */
.mtb-engine{margin:0;background:var(--mtb-teal);color:var(--mtb-ivory);border-radius:8px;padding:36px}
.mtb-engine .mtb-engine__title{font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--mtb-inv-muted);margin:0 0 28px}
.mtb-engine__rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:24px}
.mtb-engine__head{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px}
.mtb-engine__name{font-weight:600;font-size:18px}
.mtb-engine__dur{font-size:15px;color:var(--mtb-inv-muted);text-align:right}
.mtb-engine__track{height:10px;background-image:radial-gradient(circle,rgba(212,227,224,.38) 1.3px,transparent 1.7px);background-size:10px 10px}
.mtb-engine__bar{height:10px;background:#5BB5A8}
.mtb-engine__bar--on{background:var(--mtb-saffron)}
.mtb-engine .mtb-engine__note{margin:28px 0 0;font-size:16px;line-height:1.55;color:var(--mtb-inv-muted)}

/* ---------- proof ---------- */
.mtb-proof .mtb-fig{font-family:var(--mtb-serif);font-weight:600;font-size:44px;line-height:1;color:var(--mtb-teal);font-variant-numeric:lining-nums tabular-nums;letter-spacing:-.01em}
.mtb-proof .mtb-proof__bar{height:5px;margin-bottom:16px}
.mtb-proof .mtb-proof__bar--on{width:30px;background:var(--mtb-saffron)}
.mtb-content .mtb-proof .mtb-proof__label{margin-top:8px;font-size:16px;line-height:1.55;color:var(--mtb-muted)}

/* ---------- cards ---------- */
.mtb-card{background:#FFFFFF;border:1px solid var(--mtb-line);border-radius:8px;padding:32px}
.mtb-card--lg{padding:40px}
.mtb-card--stone{background:var(--mtb-stone);border-color:var(--mtb-stone);justify-content:space-between}
.mtb-card--ivory{background:var(--mtb-ivory)}
.mtb-card--teal{background:var(--mtb-teal);border-color:var(--mtb-teal);color:var(--mtb-ivory)}
.mtb-card--teal .mtb-h2,.mtb-card--teal h3{color:var(--mtb-ivory)}
.mtb-card--teal .mtb-label,.mtb-card--teal .mtb-muted{color:var(--mtb-inv-muted)}
.mtb-card .wp-block-buttons{margin-top:auto;padding-top:12px}
.mtb-row-between{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:24px}

/* ---------- episodes ---------- */
.mtb-ep{display:grid;grid-template-columns:168px minmax(0,1fr);gap:24px;align-items:start;padding:24px 0;border-top:1px solid var(--mtb-line)}
.mtb-ep:last-child{border-bottom:1px solid var(--mtb-line)}
.mtb-thumb{aspect-ratio:16/9;border-radius:8px;background-color:var(--mtb-teal);background-image:radial-gradient(circle,rgba(212,227,224,.45) 1.3px,transparent 1.6px);background-size:15px 15px;background-position:7px 7px;display:flex;align-items:center;justify-content:center;text-decoration:none}
.mtb-thumb span{width:40px;height:40px;border-radius:50%;background:var(--mtb-ivory);display:flex;align-items:center;justify-content:center}
.mtb-ep .mtb-ep__title{font-weight:600;margin:6px 0 0}

/* ---------- portrait, lists ---------- */
.mtb-portrait{max-width:440px}
.mtb-portrait img{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:center 30%;border-radius:8px;display:block}
.mtb-portrait figcaption{margin-top:12px;font-size:16px;color:var(--mtb-muted);text-align:left}
.mtb-ticks{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px}
.mtb-ticks li{position:relative;padding-left:34px}
.mtb-ticks li::before{content:"";position:absolute;left:0;top:.72em;width:18px;height:5px;background:var(--mtb-line-strong)}
.mtb-ticks li:first-child::before{background:var(--mtb-saffron)}

/* ---------- what we fix table ---------- */
.mtb-area{display:grid;grid-template-columns:minmax(0,1.1fr) repeat(3,minmax(0,1fr));gap:32px;padding:40px 0;border-top:1px solid var(--mtb-line)}
.mtb-area .mtb-h2{font-size:26px}
.mtb-area__k{display:block;margin-bottom:6px}
.mtb-area__change{font-weight:600}

/* ---------- call to action band ---------- */
.mtb-cta{position:relative;overflow:hidden;background-color:var(--mtb-teal);background-image:url("../img/dotwave-on-teal.svg");background-repeat:no-repeat;background-position:center bottom;background-size:100% auto;color:var(--mtb-ivory);padding-top:104px;padding-bottom:max(20vw,160px)}
.mtb-cta__copy{max-width:620px}
.mtb-cta .mtb-lead{color:var(--mtb-inv-muted)}

/* ---------- forms ---------- */
.mtb-form{display:flex;flex-direction:column;gap:16px}
.mtb-form .mtb-f2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.mtb-form label{display:flex;flex-direction:column;gap:8px;font-size:16px;font-weight:600;color:var(--mtb-graphite)}
.mtb-form .mtb-hint{font-weight:400;color:var(--mtb-muted);font-size:15px}
.mtb-form input,.mtb-form textarea,.mtb-form select{font:400 18px/1.4 var(--mtb-sans);color:var(--mtb-graphite);background:#FFFFFF;border:1.5px solid var(--mtb-line-strong);border-radius:4px;padding:13px 14px;width:100%}
.mtb-form textarea{min-height:140px;resize:vertical}
.mtb-form button{align-self:flex-start;margin-top:8px;min-height:52px;padding:14px 24px;border-radius:4px;border:1.5px solid var(--mtb-teal);background:var(--mtb-teal);color:var(--mtb-ivory);font:600 18px/1.2 var(--mtb-sans);cursor:pointer}
.mtb-form button:hover{background:var(--mtb-teal-deep)}
.mtb-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.mtb-notice{border-radius:4px;padding:16px 20px;font-weight:600}
.mtb-notice--ok{background:#E3F0E8;color:#2F6F4E;border:1px solid #2F6F4E}
.mtb-notice--err{background:#F6E4E0;color:#A33A2B;border:1px solid #A33A2B}

/* ---------- footer ---------- */
.mtb-footer{background:var(--mtb-graphite);color:var(--mtb-inv-muted);padding:64px 0 48px}
.mtb-footer__top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:40px;padding-bottom:40px;border-bottom:1px solid #3A4448}
.mtb-footer .mtb-lockup,.mtb-footer .mtb-lockup:hover{color:var(--mtb-ivory)}
.mtb-footer__cols{display:flex;flex-wrap:wrap;gap:56px}
.mtb-footer__col{display:flex;flex-direction:column}
.mtb-footer .mtb-footer__col .mtb-label{color:var(--mtb-inv-muted);margin-bottom:8px}
.mtb-footer a{color:var(--mtb-ivory);text-decoration:none;display:inline-flex;min-height:44px;align-items:center}
.mtb-footer a:hover{text-decoration:underline;color:var(--mtb-ivory)}
.mtb-footer__bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;padding-top:24px;font-size:15px}
.mtb-footer .mtb-footer__blurb{max-width:420px;font-size:16px;line-height:1.55;margin-top:16px}

/* ---------- text pages and posts ---------- */
.mtb-text{max-width:760px;margin:0 auto;padding:96px 32px 112px}
.mtb-text .wp-block-post-title{margin:0 0 32px}
.mtb-text .wp-block-post-content>*+*{margin-top:20px}
.mtb-text .wp-block-post-content h2{margin-top:48px}

/* ---------- responsive ---------- */
@media (max-width:1020px){
	.mtb-grid-5,.mtb-grid-4,.mtb-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
	.mtb-split,.mtb-hero-grid{grid-template-columns:minmax(0,1fr);gap:40px}
	.mtb-engine{max-width:560px}
	.mtb-area{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
	.mtb-wrap{padding-left:20px;padding-right:20px}
	.mtb-section{padding-top:64px;padding-bottom:64px}
	.mtb-section--sm{padding-top:48px;padding-bottom:48px}
	.mtb-section--flush-top{padding-top:0}
	.mtb-hero{padding-top:56px}
	.mtb-hero--plain{padding-bottom:48px}
	.mtb-cta{padding-top:64px}
	.mtb-grid-2,.mtb-grid-3,.mtb-grid-5,.mtb-area,.mtb-form .mtb-f2{grid-template-columns:minmax(0,1fr)}
	.mtb-grid-4{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
	.mtb-grid-4.mtb-grid-4--stack{grid-template-columns:minmax(0,1fr)}
	.mtb-proof .mtb-fig{font-size:34px}
	.mtb-area{gap:12px}
	.mtb-area--head{display:none}
	.mtb-ep{grid-template-columns:minmax(0,1fr)}
	.mtb-card,.mtb-card--lg{padding:24px}
	.mtb-engine{padding:28px 24px}
	.mtb-header .mtb-header__cta{display:none}
	.mtb-header__nav{gap:12px}
	.mtb-text{padding:56px 20px 64px}
}

/* mobile menu overlay */
.mtb-header .wp-block-navigation__responsive-container.is-menu-open{background-color:var(--mtb-ivory)!important;padding:24px 20px}
.mtb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{align-items:flex-start;padding-top:56px}
.mtb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container{align-items:flex-start;gap:8px}
.mtb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{font-family:var(--mtb-serif);font-size:30px;color:var(--mtb-teal)}
