/*
Theme Name: Executive Connection
Description: Editable WordPress block theme for The Executive Connection.
Version: 1.1.5
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: executive-connection
*/

@font-face {
    font-family: "Source Sans Variable";
    src: url(assets/fonts/SourceSansVariable-Roman.otf) format("opentype");
    font-weight: 200 900;
    font-display: swap;
}
@font-face {
    font-family: "Source Sans Variable";
    src: url(assets/fonts/SourceSansVariable-Italic.otf) format("opentype");
    font-weight: 200 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Source Serif Variable";
    src: url(assets/fonts/SourceSerifVariable-Roman.otf) format("opentype");
    font-weight: 200 900;
    font-display: swap;
}

:root {
    --ec-unit: min(1.25px, 0.069444444vw);
    --ec-white: #fcfcfd;
    --ec-muted: #dadadc;
    --ec-gold: #c89d67;
    --ec-serif: "Goudy Old Style", Garamond, Baskerville, "Source Serif Variable", serif;
    --ec-italic: "Goudy Old Style", Garamond, "Times New Roman", serif;
    --ec-sans: "Source Sans Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --ec-navy: linear-gradient(112deg, #0e172b 0%, #102a4c 100%);
    --ec-panel: linear-gradient(180deg, #0f1929 0%, #a685663e 100%);
    --ec-panel-border: 1px solid #d9af7a24;
}
body {
    margin: 0;
    background: #0e192c;
    color: var(--ec-white);
    font: 350 clamp(16px, calc(22 * var(--ec-unit)), 27px)/1.32 var(--ec-sans);
}
.wp-site-blocks > * { margin-block-start: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ec-gold); outline-offset: 4px; }
.ec-section { margin: 0; background: var(--ec-navy); color: var(--ec-muted); }
.ec-wrap { width: min(90.7%, 1633px); margin-inline: auto; }
.ec-section :where(.wp-block-group) > * { margin-block: 0; }
.ec-section .wp-block-image { min-width: 0; margin: 0; }
.ec-section .wp-block-image img { display: block; max-width: 100%; }
.ec-section :is(h1, h2, .ec-statement) {
    color: var(--ec-white);
    font-family: var(--ec-serif);
    text-transform: uppercase;
    font-weight: 400;
    line-height: 1.02;
}
.ec-section h2 {
    font-size: clamp(35px, calc(65 * var(--ec-unit)), 81px);
    letter-spacing: .018em;
    line-height: 1.085;
}
.ec-section .ec-gold {
    color: var(--ec-gold);
    font-family: var(--ec-italic);
    font-style: italic;
    text-transform: none;
    font-weight: 400;
}
.ec-section .ec-label {
    color: var(--ec-muted);
    font: 700 clamp(15px, calc(20 * var(--ec-unit)), 25px)/1.19 var(--ec-sans);
    font-variant-caps: normal;
    letter-spacing: 0;
    text-transform: uppercase;
}
.ec-section .ec-number {
    color: var(--ec-muted);
    font: 400 clamp(32px, calc(52 * var(--ec-unit)), 65px)/1 var(--ec-serif);
    font-family: "Baskerville Old Face", Baskerville, "Times New Roman", serif;
    font-variant-numeric: lining-nums tabular-nums;
}
.ec-section .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    min-height: clamp(38px, calc(44 * var(--ec-unit)), 55px);
    box-sizing: border-box;
    padding: .45em .95em;
    color: var(--ec-white);
    background: #ffffff13;
    border: 1px solid #ffffff33;
    border-radius: 99px;
    font: 400 clamp(13px, calc(18 * var(--ec-unit)), 23px)/1 var(--ec-serif);
    text-transform: uppercase;
    letter-spacing: .015em;
    text-decoration: none;
}
.ec-section .wp-block-button__link:hover { background: #ffffff29; }
.ec-section .ec-gold-button .wp-block-button__link {
    background: linear-gradient(100deg, #a67d42, #c39a60);
    border-color: #caa16b;
}
.ec-center, .ec-centered { text-align: center; }
.ec-centered > .ec-gold {
    margin-top: calc(26 * var(--ec-unit));
    font-size: clamp(19px, calc(31 * var(--ec-unit)), 39px);
}

/* Deck page 1 */
.home .wp-site-blocks {
    background: #041022 url(assets/hero-surface.webp) center top / 100% calc(870 * var(--ec-unit)) no-repeat;
}
.ec-header { padding: calc(36 * var(--ec-unit)) 0 0; background: #041022; }
.home :is(.ec-header, .ec-hero) { background: transparent; }
.ec-nav {
    display: flex;
    align-items: center;
    gap: calc(30 * var(--ec-unit));
    width: min(90.14%, 1622px);
    min-height: calc(86 * var(--ec-unit));
    padding: calc(8 * var(--ec-unit)) calc(35 * var(--ec-unit));
    box-sizing: border-box;
    margin-inline: auto;
    background: linear-gradient(100deg, #193352, #102849);
    border-radius: 99px;
}
.ec-nav .wp-block-site-logo { flex: 0 0 auto; margin: 0; }
.ec-nav .wp-block-site-logo img {
    display: block;
    width: clamp(80px, calc(125 * var(--ec-unit)), 156px);
    height: auto;
}
.ec-nav .wp-block-navigation {
    width: 100%;
    margin-block: 0;
    font: 400 clamp(14px, calc(20 * var(--ec-unit)), 25px)/1.15 var(--ec-sans);
}
.ec-nav .wp-block-navigation__container {
    width: 100%;
    justify-content: space-between;
    gap: 0;
}
.ec-nav .wp-block-navigation-item__content {
    padding: calc(12 * var(--ec-unit)) calc(14 * var(--ec-unit));
    white-space: nowrap;
}
.ec-nav .current-menu-item > .wp-block-navigation-item__content {
    min-width: calc(132 * var(--ec-unit));
    box-sizing: border-box;
    text-align: center;
    border-radius: 99px;
    background: linear-gradient(100deg, #a77d44, #c4995f);
    color: #fff;
}
.ec-hero { background: #041022 url(assets/hero-surface.webp) center / cover; }
.ec-hero .ec-wrap {
    width: min(94%, 1692px);
    box-sizing: border-box;
    min-height: calc(748 * var(--ec-unit));
    padding: calc(32 * var(--ec-unit)) 0 calc(72 * var(--ec-unit));
    text-align: center;
}
.ec-hero .wp-block-image {
    width: min(68%, calc(913 * var(--ec-unit)));
    margin-inline: auto;
}
.ec-hero h1 {
    margin-top: calc(10 * var(--ec-unit));
    font-size: clamp(27px, calc(47 * var(--ec-unit)), 59px);
    letter-spacing: .017em;
}
.ec-hero p.ec-gold {
    margin-top: calc(23 * var(--ec-unit));
    font: italic 300 clamp(18px, calc(31 * var(--ec-unit)), 39px)/1.2 var(--ec-sans);
}
.ec-hero .ec-wrap::after {
    content: "";
    display: block;
    width: 88%;
    height: 1px;
    margin: calc(49 * var(--ec-unit)) auto 0;
    background: #ffffff26;
}

/* Deck page 2 */
.ec-services .ec-wrap { padding-block: calc(64 * var(--ec-unit)) calc(72 * var(--ec-unit)); }
.ec-services .ec-centered { margin-bottom: calc(69 * var(--ec-unit)); }
.ec-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(16 * var(--ec-unit));
}
.ec-card, .ec-stat, .ec-detail-card, .ec-industry-card {
    box-sizing: border-box;
    border: var(--ec-panel-border);
    background: var(--ec-panel);
}
.ec-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, calc(181 * var(--ec-unit)));
    gap: calc(22 * var(--ec-unit));
    min-height: calc(240 * var(--ec-unit));
    padding: calc(20 * var(--ec-unit)) calc(20 * var(--ec-unit)) calc(20 * var(--ec-unit)) calc(30 * var(--ec-unit));
}
.ec-card-copy {
    display: grid;
    grid-template-rows: minmax(calc(58 * var(--ec-unit)), auto) 1fr auto;
    padding-bottom: calc(10 * var(--ec-unit));
}
.ec-card-title { display: flex; align-items: center; gap: calc(14 * var(--ec-unit)); }
.ec-card-copy > p {
    margin-top: calc(14 * var(--ec-unit));
    font-size: clamp(15px, calc(17 * var(--ec-unit)), 21px);
    line-height: 1.48;
}
.ec-card-copy > .wp-block-buttons { margin-top: calc(14 * var(--ec-unit)); }
.ec-card .wp-block-button__link { min-width: calc(192 * var(--ec-unit)); justify-content: center; }
.ec-card-image, .ec-detail-image { position: relative; overflow: hidden; }
.ec-card-image img, .ec-detail-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ec-card-image::after, .ec-detail-image::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, #0001 9%, #0006 48%, #000e 100%);
    pointer-events: none;
}

/* Deck pages 3?6 */
.ec-detail .ec-wrap { padding-block: calc(72 * var(--ec-unit)); }
.ec-detail-top { margin-bottom: calc(61 * var(--ec-unit)); }
.ec-detail-top .wp-block-buttons { position: relative; justify-content: center; margin-bottom: calc(13 * var(--ec-unit)); }
.ec-detail-top .wp-block-button__link { min-width: calc(255 * var(--ec-unit)); justify-content: center; }
.ec-detail-top h2 { font-size: clamp(35px, calc(71 * var(--ec-unit)), 89px); line-height: 1.03; }
.ec-detail-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, calc(450 * var(--ec-unit)));
    gap: calc(30 * var(--ec-unit));
    padding: calc(25 * var(--ec-unit));
    min-height: calc(482 * var(--ec-unit));
}
.ec-detail-copy { padding: calc(18 * var(--ec-unit)) 0 calc(10 * var(--ec-unit)) calc(24 * var(--ec-unit)); }
.ec-detail-copy h1.ec-label { font-size: clamp(23px, calc(33 * var(--ec-unit)), 41px); letter-spacing: -.018em; }
.ec-detail-copy > p { margin-top: calc(9 * var(--ec-unit)); font-size: clamp(16px, calc(20 * var(--ec-unit)), 25px); }
.ec-detail-columns, .ec-benefit {
    display: grid;
    grid-template-columns: minmax(0, .52fr) minmax(0, 1fr);
    gap: calc(16 * var(--ec-unit));
    margin-top: calc(24 * var(--ec-unit));
}
.ec-detail-columns :is(.ec-need, .ec-help) {
    padding: calc(20 * var(--ec-unit));
    border: 1px solid #ffffff19;
    border-radius: 3px;
}
.ec-need { background: #b68e6226; }
.ec-help { background: #e2e7f222; }
.ec-need .ec-label { color: var(--ec-gold); }
.ec-detail-columns :is(p, ul) { margin-top: calc(13 * var(--ec-unit)); }
.ec-help ul { padding-inline-start: 1em; }
.ec-help li + li { margin-top: calc(9 * var(--ec-unit)); }
.ec-detail-columns :is(p, li), .ec-benefit > p { font-size: clamp(15px, calc(17 * var(--ec-unit)), 21px); }
.ec-benefit > .ec-gold { font-size: clamp(20px, calc(28 * var(--ec-unit)), 35px); }
.ec-detail-image { min-height: calc(430 * var(--ec-unit)); border-radius: 5px; }

/* Deck page 7 */
.ec-experience { background: linear-gradient(110deg, #222532, #20354d); overflow: hidden; }
.ec-experience .ec-wrap {
    position: relative;
    box-sizing: border-box;
    min-height: calc(735 * var(--ec-unit));
    padding-block: calc(71 * var(--ec-unit)) calc(63 * var(--ec-unit));
}
.ec-experience-copy { position: relative; z-index: 1; max-width: calc(816 * var(--ec-unit)); }
.ec-experience-copy > p {
    margin-top: calc(31 * var(--ec-unit));
    font-size: clamp(18px, calc(24 * var(--ec-unit)), 30px);
}
.ec-experience .ec-portrait {
    position: absolute;
    bottom: 0;
    right: calc(-64 * var(--ec-unit));
    width: calc(699 * var(--ec-unit));
}
.ec-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(25 * var(--ec-unit));
    margin-top: calc(74 * var(--ec-unit));
}
.ec-stat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: .45em;
    min-height: calc(230 * var(--ec-unit));
    padding: calc(21 * var(--ec-unit));
    background: linear-gradient(180deg, #15253c30, #a685663d);
    font-size: clamp(15px, calc(20 * var(--ec-unit)), 25px);
    line-height: 1.24;
}
.ec-stat .ec-number { font-size: clamp(34px, calc(74 * var(--ec-unit)), 92px); }
.ec-experience-copy > .ec-stats + p { margin-top: calc(56 * var(--ec-unit)); }
.ec-why .ec-wrap { padding-block: calc(73 * var(--ec-unit)) calc(57 * var(--ec-unit)); }
.ec-why .ec-wrap > h2.ec-gold { font-size: clamp(32px, calc(46 * var(--ec-unit)), 57px); }
.ec-why :is(.ec-split, .ec-why-body) { display: block; }
.ec-why .ec-statement {
    max-width: none;
    margin-top: calc(9 * var(--ec-unit));
    color: var(--ec-muted);
    font: 400 clamp(17px, calc(24 * var(--ec-unit)), 30px)/1.3 var(--ec-sans);
    text-transform: none;
}
.ec-why .ec-rows { margin-top: calc(26 * var(--ec-unit)); }
.ec-row {
    display: grid;
    grid-template-columns: calc(84 * var(--ec-unit)) minmax(0, 1fr);
    align-items: center;
    min-height: calc(111 * var(--ec-unit));
    border-bottom: 1px solid #ffffff12;
    box-sizing: border-box;
}
.ec-row:last-child { border-bottom: 0; }
.ec-row h3 + p { margin-top: calc(7 * var(--ec-unit)); }
.ec-why .ec-row {
    grid-template-columns: calc(62 * var(--ec-unit)) minmax(0, 1fr);
    min-height: calc(84 * var(--ec-unit));
}
.ec-why .ec-row > .wp-block-group {
    display: grid;
    grid-template-columns: calc(359 * var(--ec-unit)) minmax(0, 1fr);
    align-items: center;
}
.ec-why .ec-row .ec-number { font-size: clamp(27px, calc(40 * var(--ec-unit)), 50px); }
.ec-why .ec-row .ec-label {
    font-size: clamp(16px, calc(24 * var(--ec-unit)), 30px);
    text-transform: none;
}
.ec-why .ec-row p { margin-top: 0; }

/* Deck page 8 */
.ec-industries .ec-wrap { padding-block: calc(43 * var(--ec-unit)) calc(75 * var(--ec-unit)); }
.ec-industries h2 + p { margin-top: calc(22 * var(--ec-unit)); font-size: clamp(18px, calc(24 * var(--ec-unit)), 30px); }
.ec-industry-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: calc(18 * var(--ec-unit));
    margin-top: calc(56 * var(--ec-unit));
}
.ec-industry-card { min-height: calc(425 * var(--ec-unit)); }
.ec-industry-card img { aspect-ratio: 310 / 189; width: 100%; object-fit: cover; }
.ec-industry-copy { padding: calc(21 * var(--ec-unit)) calc(23 * var(--ec-unit)); }
.ec-industry-copy .ec-label { font-size: clamp(17px, calc(25 * var(--ec-unit)), 31px); text-wrap: balance; overflow-wrap: anywhere; }
.ec-industry-copy p { margin-top: calc(8 * var(--ec-unit)); }

/* Deck page 9 */
.ec-split { display: grid; }
.ec-steps .ec-wrap { padding-block: calc(47 * var(--ec-unit)) calc(41 * var(--ec-unit)); }
.ec-steps .ec-split { grid-template-columns: minmax(0, 41fr) minmax(0, 59fr); gap: calc(14 * var(--ec-unit)); }
.ec-steps .ec-statement {
    max-width: 13em;
    font-size: clamp(27px, calc(40 * var(--ec-unit)), 50px);
}
.ec-steps .ec-statement + p {
    max-width: 20em;
    margin-top: calc(65 * var(--ec-unit));
    font-size: clamp(18px, calc(24 * var(--ec-unit)), 30px);
}
.ec-steps .ec-row .ec-number { font-size: clamp(36px, calc(60 * var(--ec-unit)), 75px); }
.ec-steps .ec-row .ec-label { font-size: clamp(17px, calc(24 * var(--ec-unit)), 30px); }
.ec-section .ec-divider {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 40px);
    margin-top: calc(27 * var(--ec-unit));
    text-align: center;
    font: 400 clamp(24px, calc(43 * var(--ec-unit)), 54px)/1.08 var(--ec-serif);
    font-variant-caps: small-caps;
}
.ec-divider::before, .ec-divider::after {
    content: "";
    flex: 1 1 0;
    min-width: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffffff27);
}
.ec-divider::after { transform: scaleX(-1); }
.ec-contact { background: #12355e url(assets/discovery-surface.webp) center / 100% 100%; }
.ec-contact .ec-wrap {
    box-sizing: border-box;
    min-height: calc(417 * var(--ec-unit));
    padding-block: calc(70 * var(--ec-unit)) calc(57 * var(--ec-unit));
}
.ec-contact .ec-split { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: calc(16 * var(--ec-unit)); }
.ec-contact h2 { max-width: 10.9em; font-size: clamp(32px, calc(54 * var(--ec-unit)), 67px); line-height: 1.06; }
.ec-contact h3.ec-gold { max-width: 17.8em; font-size: clamp(26px, calc(43 * var(--ec-unit)), 54px); line-height: 1.08; text-transform: capitalize; }
.ec-contact p { max-width: 29em; margin-top: calc(23 * var(--ec-unit)); font-size: clamp(17px, calc(24 * var(--ec-unit)), 30px); }
.ec-contact h2 + p { max-width: 23em; margin-top: calc(49 * var(--ec-unit)); }
.ec-contact .wp-block-buttons { margin-top: calc(53 * var(--ec-unit)); }
.ec-contact .ec-gold-button { width: min(100%, calc(667 * var(--ec-unit))); }
.ec-contact .ec-gold-button .wp-block-button__link { width: 100%; justify-content: center; }

/* Deck page 10 */
.ec-footer { background: #050f21 url(assets/footer-surface.webp) center / 100% 100%; color: var(--ec-white); }
.ec-footer .ec-wrap { padding-block: calc(78 * var(--ec-unit)) calc(61 * var(--ec-unit)); }
.ec-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 56.3fr) minmax(0, 13.3fr) minmax(0, 30.4fr);
    align-items: start;
    gap: calc(14 * var(--ec-unit));
}
.ec-footer .ec-footer-brand figure { width: clamp(120px, calc(173 * var(--ec-unit)), 216px); }
.ec-footer-brand > p { max-width: 32em; margin-top: calc(40 * var(--ec-unit)); font-size: clamp(16px, calc(20 * var(--ec-unit)), 25px); }
.ec-footer-grid > :not(.ec-footer-brand) {
    display: grid;
    gap: calc(18 * var(--ec-unit));
    align-content: start;
    font-size: clamp(14px, calc(16 * var(--ec-unit)), 20px);
}
.ec-footer-grid .ec-footer-links { padding-top: calc(44 * var(--ec-unit)); }
.ec-footer-grid > :last-child { padding-top: calc(70 * var(--ec-unit)); }
.ec-footer-grid .ec-label.ec-gold {
    color: var(--ec-gold);
    font: 500 clamp(17px, calc(20 * var(--ec-unit)), 25px)/1.2 var(--ec-sans);
    text-transform: none;
}
.ec-footer a { text-decoration: none; }
.ec-footer a:hover { text-decoration: underline; }
.ec-footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1em;
    margin-top: calc(39 * var(--ec-unit));
    padding-block: calc(35 * var(--ec-unit)) calc(33 * var(--ec-unit));
    border-block: 1px solid #ffffff15;
    font-size: clamp(14px, calc(20 * var(--ec-unit)), 25px);
}

@media (max-width: 950px) {
    .ec-header { padding-top: 14px; }
    .ec-nav { min-height: 53px; justify-content: space-between; }
    .ec-nav .wp-block-navigation { width: auto; }
    .ec-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
    .ec-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
    .ec-nav .wp-block-navigation__responsive-container.is-menu-open { background: #102846; color: #fff; }
    .ec-hero .ec-wrap { min-height: 0; }
    .ec-hero h1 { font-size: clamp(29px, 3.85vw, 50px); }
    .ec-card { grid-template-columns: minmax(0, 1fr) minmax(0, 31%); }
    .ec-card-copy { grid-template-rows: auto 1fr auto; }
    .ec-card-copy > p { margin-top: 9px; }
    .ec-detail-copy { padding-inline-start: 0; }
    .ec-industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ec-footer-grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, .6fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .home .wp-site-blocks { background-size: auto 540px; }
    .ec-section .ec-wrap { padding-block: 38px; }
    .ec-hero .ec-wrap { padding-block: 27px 40px; }
    .ec-hero .wp-block-image { width: min(94%, 430px); }
    .ec-hero h1 { margin-top: 10px; }
    .ec-hero .ec-wrap::after { margin-top: 24px; }
    .ec-centered > .ec-gold { margin-top: 12px; }
    .ec-services .ec-centered, .ec-detail-top { margin-bottom: 24px; }
    .ec-service-grid, .ec-detail-card, .ec-steps .ec-split, .ec-contact .ec-split { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .ec-card { min-height: 157px; padding: 12px; gap: 10px; }
    .ec-card-title { gap: 8px; }
    .ec-detail-card { padding: 14px; }
    .ec-detail-copy { padding-block: 4px; }
    .ec-detail-columns { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .ec-detail-columns :is(.ec-need, .ec-help) { padding: 12px; }
    .ec-detail-image { min-height: 0; aspect-ratio: 450 / 430; }
    .ec-experience .ec-wrap { display: flex; flex-direction: column-reverse; padding-bottom: 0; }
    .ec-experience-copy { max-width: none; }
    .ec-experience .ec-portrait { position: static; width: min(78%, 340px); margin-inline: auto; }
    .ec-experience-copy > p, .ec-experience-copy > .ec-stats + p { margin-top: 18px; }
    .ec-stats { margin-top: 20px; gap: 6px; }
    .ec-stat { min-height: 122px; padding: 8px; font-size: 13px; overflow-wrap: anywhere; }
    .ec-stat .ec-number { font-size: clamp(26px, 7vw, 34px); }
    .ec-why .ec-row, .ec-row { grid-template-columns: 42px minmax(0, 1fr); padding-block: 10px; }
    .ec-why .ec-row > .wp-block-group { grid-template-columns: 1fr; gap: 2px; }
    .ec-industry-grid { gap: 8px; margin-top: 18px; }
    .ec-industry-copy { padding: 10px; }
    .ec-steps .ec-statement { max-width: none; }
    .ec-steps .ec-statement + p { margin-top: 12px; }
    .ec-steps .ec-divider { margin-top: 20px; }
    .ec-contact { background-size: cover; }
    .ec-contact h2, .ec-contact h3.ec-gold { max-width: none; }
    .ec-contact .ec-gold-button { width: auto; }
    .ec-contact h2 + p, .ec-contact p, .ec-contact .wp-block-buttons { margin-top: 12px; }
    .ec-footer-grid { grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); align-items: start; gap: 18px 10px; }
    .ec-footer-brand { grid-column: 1 / -1; }
    .ec-footer-grid .ec-footer-links, .ec-footer-grid > :last-child { padding-top: 0; }
    .ec-footer-bottom { grid-template-columns: minmax(0, 1fr); }
    .ec-footer a { overflow-wrap: anywhere; }
}


.ec-detail-top .ec-back-to-services {
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
}
.ec-detail-top .ec-back-to-services .wp-block-button__link {
    min-width: 0;
    background: transparent;
    border-color: #ffffff3b;
}
.ec-detail-top .ec-back-to-services .wp-block-button__link:hover {
    background: #ffffff13;
}
#services { scroll-margin-top: 1rem; }

@media (max-width: 640px) {
    .ec-detail-top .wp-block-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 24px;
    }
    .ec-detail-top .ec-back-to-services { position: static; transform: none; }
    .ec-detail-top .wp-block-buttons .wp-block-button { margin: 0; }
    .ec-detail-top .wp-block-buttons .wp-block-button__link {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        min-height: 48px;
        padding: 10px 8px;
        font: 500 16px/1.25 var(--ec-sans);
        text-transform: none;
    }
    .ec-detail-top h2 { font-size: clamp(23px, 7vw, 33px); line-height: 1.12; text-wrap: balance; }
}
@media (max-width: 349px) {
    .ec-detail-top .wp-block-buttons { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
.ec-industries .ec-industries-back-row { margin-bottom: 22px; }
.ec-industries .ec-industries-back .wp-block-button__link {
    background: transparent;
    border-color: #ffffff3b;
}
.ec-industries .ec-industries-back .wp-block-button__link:hover { background: #ffffff13; }

/* Discovery contact page */
.ec-contact-page .ec-wrap { width: min(90.7%, 880px); padding-block: clamp(40px, 5vw, 76px); }
.ec-contact-page h1 { margin-top: 28px; font-size: clamp(42px, 5.5vw, 78px); }
.ec-contact-page h1 + p { margin-top: .45em; font-size: clamp(23px, 2.8vw, 38px); }
.ec-contact-page .ec-contact-back .wp-block-button__link { background: transparent; }
.ec-contact-page .wpcf7 { margin-top: clamp(23px, 3vw, 42px); }
.ec-contact-page .wpcf7-form { padding: clamp(18px, 3.5vw, 42px); background: var(--ec-panel); border: var(--ec-panel-border); }
.ec-contact-page .ec-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.ec-contact-page .ec-form-wide { grid-column: 1 / -1; }
.ec-contact-page .ec-form-grid label { min-width: 0; display: block; color: var(--ec-white); font-size: 18px; }
.ec-contact-page .ec-form-grid p { margin: 0; }
.ec-contact-page .ec-form-grid .wpcf7-form-control-wrap { display: block; margin-top: 5px; }
.ec-contact-page :is(input:not([type="submit"]),select,textarea) {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #ffffff45;
    border-radius: 3px;
    background: #0d192f;
    color: var(--ec-white);
    color-scheme: dark;
    font: 400 16px/1.4 var(--ec-sans);
}
.ec-contact-page textarea { min-height: 142px; resize: vertical; }
.ec-contact-page :is(input,select,textarea):focus-visible { outline: 2px solid var(--ec-gold); outline-offset: 2px; }
.ec-contact-page input[type="submit"] {
    margin-top: 16px; min-height: 44px; padding: 9px 22px; border: 1px solid #caa16b;
    border-radius: 99px; background: linear-gradient(100deg, #a67d42, #c39a60);
    color: #091225; font: 600 17px/1.2 var(--ec-sans); cursor: pointer;
}
.ec-contact-page .wpcf7-not-valid-tip { color: #ffc4af; font-size: 15px; }
.ec-contact-page .wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 8px 12px; }
@media (max-width: 640px) {
    .ec-contact-page .ec-form-grid { grid-template-columns: minmax(0, 1fr); }
}

.ec-discovery-label-mobile { display: none; }

@media (max-width: 950px) {
    .ec-nav .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
        background: #0d1d35 !important;
        color: #fff !important;
        overflow-y: auto;
        padding: max(12px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
            max(20px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    }
    .ec-nav .is-menu-open .wp-block-navigation__responsive-close,
    .ec-nav .is-menu-open .wp-block-navigation__responsive-dialog { width: 100%; max-width: none; }
    .ec-nav .is-menu-open .wp-block-navigation__responsive-dialog { position: relative; }
    .ec-nav .is-menu-open .wp-block-navigation__responsive-dialog::before {
        content: "";
        display: block;
        width: 146px;
        height: 74px;
        background: url(assets/logo.webp) left center / contain no-repeat;
    }
    .ec-nav .is-menu-open .wp-block-navigation__responsive-container-close {
        display: grid;
        place-items: center;
        inset: 12px 0 auto auto;
        width: 48px;
        height: 48px;
        border: 1px solid #ffffff50;
        border-radius: 50%;
        color: #fff;
    }
    .ec-nav .is-menu-open .wp-block-navigation__responsive-container-close svg { width: 26px; height: 26px; fill: currentColor; }
    .ec-nav .is-menu-open .wp-block-navigation__responsive-container-content {
        align-items: stretch;
        width: 100%;
        /* Core reserves space here for its default close button. */
        padding: 16px 0 0 !important;
        border-top: 1px solid #ffffff2e;
    }
    .ec-nav .is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        gap: 10px;
        margin: 0;
        padding: 0;
    }
    .ec-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
        display: flex;
        align-self: stretch;
        width: 100%;
        margin: 0;
    }
    .ec-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        min-height: 48px;
        padding: 10px 16px;
        color: #fff;
        font: 500 18px/1.35 var(--ec-sans);
        text-align: center;
        text-decoration: none;
        white-space: normal;
    }
    .ec-nav .is-menu-open .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content {
        border-radius: 999px;
        background: linear-gradient(100deg, #a77d44, #c4995f);
    }
}

@media (max-width: 640px) {
    .ec-contact .ec-wrap { padding-block: 44px; }
    .ec-contact .ec-split { gap: 26px; }
    .ec-contact h2 { font-size: clamp(29px, 8vw, 36px); line-height: 1.15; }
    .ec-contact h3.ec-gold { font-size: clamp(25px, 6.8vw, 30px); line-height: 1.22; }
    .ec-contact p, .ec-contact h2 + p { margin-top: 16px; font-size: 18px; line-height: 1.5; }
    .ec-contact .wp-block-buttons { margin-top: 24px; }
    .ec-contact .ec-gold-button { width: 100%; }
    .ec-contact .ec-gold-button .wp-block-button__link {
        min-height: 48px;
        padding: 12px 16px;
        color: #0d192e;
        font: 600 17px/1.35 var(--ec-sans);
        text-align: center;
        text-transform: none;
        letter-spacing: 0;
    }
    .ec-contact .ec-discovery-label-desktop { display: none; }
    .ec-contact .ec-discovery-label-mobile { display: inline; }
}
