/* Made Engineering: layout and components. Pairs with theme.json. */
:root {
	--made-pad: 64px;
	--made-label: 17.5rem;
	--made-gap: 1.5rem;
	--made-section: 9rem;
	--made-black: var(--wp--preset--color--black, #231f20);
	--made-mid: var(--wp--preset--color--mid, #5e5b5a);
	--made-light: var(--wp--preset--color--light, #aba8a7);
	--made-green: var(--wp--preset--color--green, #1f3d30);
	--made-green-dark: var(--wp--preset--color--green-dark, #13281f);
}
body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks > * { margin-block: 0; }
.made-main { margin: 0; }
.made-content > * { margin-block: 0; }

/* ---------- sections and the label/content grid ---------- */
.made-section { box-sizing: border-box; max-width: 1440px; margin: 0 auto !important; padding: 0 var(--made-pad) var(--made-section); }
.made-section.made-pt-xl { padding-top: var(--made-section); }
.made-page-header { padding-bottom: 6rem; }
.made-wide { padding-bottom: var(--made-section); }
.made-row { display: grid; grid-template-columns: var(--made-label) minmax(0, 1fr); gap: 2rem var(--made-gap); align-items: start; }
.made-row > * { margin: 0 !important; }
.made-row.has-rule { border-top: 1px solid var(--made-black); padding-top: 2rem; }
.made-row__body > * + * { margin-top: 1.25rem; }
.made-row__body > .made-grid, .made-row__body > .made-also, .made-row__body > .made-faq, .made-row__body > .made-split, .made-row__body > .made-mt { margin-top: 3rem; }
.made-row__body > .made-split:first-child { margin-top: 0; }
.made-row__label { display: flex; flex-direction: column; gap: 1.25rem; }
.made-row__label > * { margin: 0; }
.made-row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 4.5rem; }
.made-row-head > .made-row { flex: 1; }
.made-row-head > * { margin: 0 !important; }

/* ---------- type ---------- */
.made-label { font-size: var(--wp--preset--font-size--small); line-height: 1.3; margin: 0; }
.made-label a { color: inherit; }
.made-tag { font-size: 0.9375rem; line-height: 1.3; margin: 0; }
.made-small, .made-small-body { font-size: var(--wp--preset--font-size--small); }
.made-small-body { line-height: 1.5; }
.made-muted { color: var(--made-mid); }
.made-measure { max-width: 42rem; }
.made-lead { font-size: clamp(1.5rem, 2.5vw, 2.375rem); line-height: 1.18; letter-spacing: -0.01em; max-width: 60rem; }
.made-lead-sm { font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.35; letter-spacing: -0.01em; max-width: 46rem; }
.made-intro { font-size: 1.125rem; line-height: 1.55; }
.made-h1 { font-size: var(--wp--preset--font-size--xx-large); line-height: 1.02; letter-spacing: -0.025em; }
.made-h2-sm { font-size: clamp(1.75rem, 2.6vw, 2.375rem); }
.made-h2-lg { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.05; letter-spacing: -0.02em; }
.made-h2-sm a, .made-h1 a { color: inherit; }
.made-statement { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.3; letter-spacing: -0.01em; }
.made-step-num { font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1; letter-spacing: -0.02em; color: var(--made-light); margin-bottom: 3rem !important; }

/* ---------- grids and cells ---------- */
.made-grid { display: grid; gap: 0 2rem; }
.made-grid > * { margin: 0 !important; }
.made-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.made-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.made-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.made-grid-2-1 { grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.made-grid-1-2 { grid-template-columns: 1fr 2fr; gap: 1.5rem; }
.made-image-pair { gap: 1.5rem; }
.made-cell { border-top: 1px solid var(--made-black); padding: 1.25rem 1.25rem 2.5rem 0; }
.made-cell > * { margin: 0; }
.made-cell > * + * { margin-top: 0.75rem; }
.made-cell--card { display: flex; flex-direction: column; padding-bottom: 3rem; }
.made-cell--card > * + * { margin-top: 1.25rem; }
.made-cell__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.made-cell__top > * { margin: 0 !important; }
.made-cell__more { margin-top: auto !important; padding-top: 1.25rem; }

/* ---------- images ---------- */
.made-icon { margin: 0 !important; flex: 0 0 auto; }
.made-icon img { display: block; height: auto; }
.made-icon-28 img { width: 28px; } .made-icon-36 img { width: 36px; } .made-icon-40 img { width: 40px; } .made-icon-56 img { width: 56px; }
.made-figure > * { margin: 0; }
.made-figure > * + * { margin-top: 0.75rem; }
[class*="made-cover-"] { margin: 0; }
[class*="made-cover-"] img { display: block; width: 100%; object-fit: cover; }
.made-cover-34 img { height: 34rem; } .made-cover-38 img { height: 38rem; } .made-cover-40 img { height: 40rem; }

/* ---------- lists and rows ---------- */
.made-also__row, .made-machine-list__row { display: flex; align-items: center; gap: 0.75rem 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--made-light); flex-wrap: wrap; }
.made-also__row > *, .made-machine-list__row > * { margin: 0 !important; }
.made-also__name { flex: 0 0 15rem; }
.made-also__row > p:last-child { flex: 1 1 18rem; }
.made-machine-list__row { border-top-color: var(--made-black); }
.made-machine-list__row > p:nth-child(2) { flex: 1 1 auto; }
.made-also > p { margin: 0 0 1rem; }
.made-split { display: flex; flex-wrap: wrap; gap: 2rem 3rem; }
.made-split > * { margin: 0 !important; }
.made-split__main { flex: 1 1 22rem; }
.made-split__main > * + * { margin-top: 1rem; }
.made-split__side { flex: 1 1 22rem; }
.made-spec__row { display: flex; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--made-light); font-size: 0.9375rem; }
.made-spec__row > * { margin: 0 !important; }
.made-spec__key { flex: 0 0 9rem; color: var(--made-mid); font-size: var(--wp--preset--font-size--x-small); padding-top: 0.1rem; }
.made-faq__row { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; border-top: 1px solid var(--made-black); padding: 1.25rem 0 1.75rem; }
.made-faq__row > * { margin: 0 !important; }
.made-faq__q { flex: 1 1 18rem; }
.made-faq__row > p:last-child { flex: 2 1 24rem; font-size: 0.9375rem; line-height: 1.55; }
.made-am { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: flex-start; }
.made-am > * { margin: 0 !important; }
.made-am__logo img { width: 128px; height: auto; }
.made-am__text { flex: 1 1 24rem; max-width: 42rem; }
.made-am__text > * + * { margin-top: 1.25rem; }
.made-article-wrap { padding-bottom: 0; }
.made-article { padding-bottom: 6rem; }

/* ---------- buttons ---------- */
.wp-block-buttons { gap: 0.75rem; }
.wp-block-button__link { transition: background-color .2s ease; }
.made-btn-outline .wp-block-button__link { background: transparent; color: var(--made-black); border: 1px solid var(--made-black); }
.made-btn-outline .wp-block-button__link:hover { background: rgba(35, 31, 32, .08); color: var(--made-black); }
.made-btn-outline-light .wp-block-button__link { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .7); }
.made-btn-outline-light .wp-block-button__link:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- link hover: slight blur ---------- */
a { transition: filter .2s ease; }
a:not(.wp-block-button__link):not(:has(img)):hover { filter: blur(1.2px); }

/* ---------- hero ---------- */
.made-hero { margin: 0 !important; padding: 0 var(--made-pad) 4.5rem !important; }
.made-hero .wp-block-cover__inner-container { max-width: 1312px; margin: 0 auto; width: 100%; }
.made-hero__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2.5rem; }
.made-hero__inner > * { margin: 0 !important; }
.made-hero__main { flex: 1 1 40rem; max-width: 64rem; }
.made-hero__main > * + * { margin-top: 1.75rem; }
.made-hero__title { font-size: clamp(2.5rem, 4.8vw, 4.5rem); line-height: 1; letter-spacing: -0.025em; color: #fff; }
.made-hero__lead { font-size: clamp(1.0625rem, 1.4vw, 1.375rem); line-height: 1.45; max-width: 40rem; color: rgba(255, 255, 255, .86); }
.made-hero__tag { font-size: var(--wp--preset--font-size--small); line-height: 1.4; color: #fff; }
.made-hero__tag mark { color: rgba(255, 255, 255, .5) !important; }

/* ---------- floating header ---------- */
.made-header > * { margin: 0 !important; }
.made-header__bar { position: fixed; top: 0; left: 0; right: 0; height: 0; z-index: 50; mix-blend-mode: difference; color: #fff; }
.made-header__bar > * { margin: 0 !important; }
.made-header__logo { position: absolute; top: 20px; left: 24px; margin: 0; }
.made-header__logo img { width: 216px; height: auto; display: block; }
.made-header__icons { position: absolute; top: 12px; left: 50%; margin-left: -11px !important; display: flex; flex-direction: column; gap: 2px; }
.made-header__icons > * { margin: 0 !important; }
.made-header__icons img { width: 22px; height: 22px; display: block; }
nav.made-nav { position: absolute; top: 39px; right: 216px; font-size: 0.9375rem; line-height: 1; white-space: nowrap; }
.made-nav .wp-block-navigation__container { position: static; flex-wrap: nowrap; }
.made-nav a, .made-nav .wp-block-navigation-item__content { color: #fff; }
.made-nav .wp-block-navigation__container { gap: 0; }
.made-nav .wp-block-navigation__container > li + li::before { content: "/"; color: rgba(255, 255, 255, .55); }
.made-header__cta { position: fixed; top: 25px; right: 24px; z-index: 51; margin: 0 !important; }
.made-header__cta .wp-block-button__link { font-size: var(--wp--preset--font-size--x-small); padding: 0.85rem 1rem; white-space: nowrap; }
.admin-bar .made-header__bar, .admin-bar .made-header__cta { margin-top: 32px !important; }
/* open mobile menu: drop the blend so the overlay reads normally */
.made-header__bar:has(.is-menu-open) { mix-blend-mode: normal; }
.made-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--made-black); color: #fff; padding: 2rem; }
.made-nav .is-menu-open .wp-block-navigation__container > li + li::before { content: none; }
.made-nav .is-menu-open .wp-block-navigation-item__content { font-size: 1.75rem; }

/* ---------- projects ---------- */
.made-projects .wp-block-post-template { gap: 4.5rem 2rem; }
.made-card__image { margin: 0 0 0.75rem; }
.made-card__image img { display: block; width: 100%; height: 30rem !important; object-fit: cover; }
.made-card__caption { display: grid; grid-template-columns: 28px 1fr; column-gap: 0.75rem; font-size: var(--wp--preset--font-size--small); line-height: 1.3; }
.made-card__caption > * { margin: 0 !important; }
.made-card__caption .made-machine { display: contents; }
.made-card__caption .made-machine__icons { grid-column: 1; grid-row: 1 / span 3; }
.made-card__caption .made-machine__names { grid-column: 2; grid-row: 2; color: var(--made-mid); text-transform: uppercase; }
.made-card__title { grid-column: 2; grid-row: 1; font-size: var(--wp--preset--font-size--small); letter-spacing: 0; text-transform: uppercase; line-height: 1.3; }
.made-card__title a { color: inherit; }
.made-card__meta { grid-column: 2; grid-row: 3; color: var(--made-mid); text-transform: uppercase; }
.made-machine { display: flex; align-items: flex-start; gap: 0.75rem; }
.made-machine__icons { display: flex; gap: 4px; }
.made-machine__icons img { width: 28px; height: 28px; display: block; }
.made-machine__names a { color: inherit; }
.made-machine--stack { flex-direction: column; }
.made-machine--stack .made-machine__icons img { width: 56px; height: 56px; }
.made-project-facts { margin-top: 2rem !important; max-width: 42rem; }
.made-project-hero img { display: block; width: 100%; max-height: 48rem; object-fit: cover; }
.made-prose > * + * { margin-top: 1.25rem; }
.made-prose { max-width: 46rem; }
.made-filters-wrap { padding-bottom: 2.5rem; }
.made-filters { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.made-filters li { margin: 0; }
.made-filters a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.9rem; border: 1px solid var(--made-black); font-size: var(--wp--preset--font-size--x-small); text-transform: uppercase; }
.made-filters .current-cat a { background: var(--made-black); color: #fff; }
.made-pagination { margin-top: 3rem; font-size: var(--wp--preset--font-size--small); }

/* ---------- quote band ---------- */
.made-quote { background: #fff; padding: 5.5rem 4rem; display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: flex-end; justify-content: space-between; }
.made-quote > * { margin: 0 !important; }
.made-quote__text { flex: 1 1 28rem; }
.made-quote__text > * + * { margin-top: 1rem; }
.made-quote__text > p:last-child { max-width: 36rem; }

/* ---------- contact ---------- */
.made-contact { display: flex; flex-wrap: wrap; gap: 4rem; }
.made-contact > * { margin: 0 !important; }
.made-contact__form { flex: 3 1 32rem; }
.made-contact__aside { flex: 1 1 18rem; }
.made-contact__aside > p { margin: 0; }
.made-contact__aside > p.made-small { margin-top: 2.25rem; margin-bottom: 0.5rem; }
.made-contact__aside > p.made-small:first-child { margin-top: 0; }
.made-contact__big { font-size: 1.375rem; }
.made-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.5rem; }
.made-form__field { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; }
.made-form__full { grid-column: 1 / -1; }
.made-form label { font-size: var(--wp--preset--font-size--x-small); color: var(--made-mid); }
.made-form input, .made-form select, .made-form textarea { font: inherit; font-size: 1rem; color: var(--made-black); background: transparent; border: 0; border-bottom: 1px solid var(--made-black); padding: 0.6rem 0; min-height: 44px; border-radius: 0; }
.made-form input[type="file"] { border: 1px dashed var(--made-mid); padding: 1.5rem; }
.made-form__hint { font-size: var(--wp--preset--font-size--x-small); color: var(--made-mid); }
.made-form__submit { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; margin: 0; }
.made-form button { font: inherit; min-height: 48px; padding: 0 1.5rem; background: var(--made-green); color: #fff; border: 0; font-size: var(--wp--preset--font-size--small); letter-spacing: .02em; cursor: pointer; transition: background-color .2s ease; }
.made-form button:hover { background: var(--made-green-dark); }
.made-map { display: block; width: 100%; height: 26rem; border: 0; filter: grayscale(1); }

/* ---------- footer ---------- */
.made-footer { border-top: 1px solid var(--made-black); padding-top: 5rem; padding-bottom: 4rem; margin-top: 9rem !important; }
.made-footer > * + * { margin-top: 5rem; }
.made-footer__top { display: flex; flex-wrap: wrap; gap: 2.5rem 3rem; justify-content: space-between; align-items: flex-start; }
.made-footer__top > * { margin: 0 !important; }
.made-footer__logo img { width: min(294px, 100%); height: auto; display: block; }
.made-footer__cols { display: flex; flex-wrap: wrap; gap: 2.5rem 4rem; font-size: 0.9375rem; line-height: 1.45; }
.made-footer__cols > * { margin: 0 !important; }
.made-footer__col > * { margin: 0; }
.made-footer__col > .made-small { margin-bottom: 0.5rem; }
.made-footer__am img { width: 64px; height: auto; display: block; }
.made-footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: baseline; }
.made-footer__bottom > * { margin: 0 !important; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.made-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	nav.made-nav { right: 200px; }
}
@media (max-width: 781px) {
	:root { --made-pad: 24px; --made-section: 5rem; }
	.made-row { grid-template-columns: 1fr; }
	.made-grid-2, .made-grid-3, .made-grid-4, .made-grid-2-1, .made-grid-1-2, .made-form { grid-template-columns: 1fr; }
	.made-projects .wp-block-post-template { grid-template-columns: 1fr !important; }
	.made-header__logo img { width: 150px; }
	.made-header__icons { display: none; }
	nav.made-nav { right: 20px; top: 24px; }
	.made-header .made-header__cta { display: none; }
	.made-contact > * { flex-basis: 100% !important; min-width: 0; }
	/* Comfortable tap targets on phones */
	.made-nav .wp-block-navigation__responsive-container-open { padding: 10px; margin: -10px; }
	.made-footer a { display: inline-block; padding: 0.3rem 0; }
	.made-filters a { min-height: 44px; display: inline-flex; align-items: center; }
	.made-form { grid-template-columns: minmax(0, 1fr); }
	.made-cover-34 img, .made-cover-38 img, .made-cover-40 img { height: 22rem; }
	.made-card__image img { height: 26rem !important; }
	.made-quote { padding: 3rem 1.5rem; }
	.made-row-head { flex-direction: column; align-items: flex-start; }
	.made-also__name { flex-basis: 100%; }
}

/* Quote form states */
.made-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.made-form-done { padding: 2rem 0; border-top: 1px solid var(--made-black); }
.made-form-done .made-h3 { margin: 0 0 0.75rem; }
.made-form-error { color: #9b2c1f; margin: 0 0 1.5rem; }
