/* Admin Bar CSS */
.admin-bar header { top: 32px; }

/* Skip Content CSS */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}
.screen-reader-text:focus{background-color:#eee;clip:auto!important;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}

/* Contact Form 7 CSS */
.contact_us_form_section .wpcf7.js,.faq_form .wpcf7.js,.subscribe_form .wpcf7.js{direction:rtl}
.wpcf7 *{direction:rtl!important}
.wpcf7 .screen-reader-response{position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;margin:-1px;padding:0;border:0;word-wrap:normal!important}
.wpcf7 form .wpcf7-response-output{margin:2em .5em 1em;padding:.2em 1em;border:2px solid #00a0d2}
.wpcf7 form.init .wpcf7-response-output,.wpcf7 form.resetting .wpcf7-response-output,.wpcf7 form.submitting .wpcf7-response-output{display:none}
.wpcf7 form.sent .wpcf7-response-output{border-color:#46b450}
.wpcf7 form.aborted .wpcf7-response-output,.wpcf7 form.failed .wpcf7-response-output{border-color:#dc3232}
.wpcf7 form.spam .wpcf7-response-output{border-color:#f56e28}
.wpcf7 form.invalid .wpcf7-response-output,.wpcf7 form.payment-required .wpcf7-response-output,.wpcf7 form.unaccepted .wpcf7-response-output{border-color:#ffb900}
.wpcf7-form-control-wrap{position:relative}
.wpcf7-not-valid-tip{font-size: 16px;line-height: normal;font-family: var(--as-semibold);}
.use-floating-validation-tip .wpcf7-not-valid-tip{position:relative;top:-2ex;left:1em;z-index:100;border:1px solid #dc3232;background:var(--white-color);padding:.2em .8em;width:24em}
.wpcf7-list-item{display:inline-block;margin:0 0 0 1em}
.wpcf7-list-item-label::after,.wpcf7-list-item-label::before{content:" "}
.wpcf7-spinner{visibility:hidden;display:inline-block;background-color:#23282d;opacity:.75;width:24px;height:24px;border:none;border-radius:100%;padding:0;margin:0 24px;position:relative}
form.submitting .wpcf7-spinner{visibility:visible}
.wpcf7-spinner::before{content:'';position:absolute;background-color:#fbfbfc;top:4px;left:4px;width:6px;height:6px;border:none;border-radius:100%;transform-origin:8px 8px;animation-name:spin;animation-duration:1s;animation-timing-function:linear;animation-iteration-count:infinite}
.wpcf7-not-valid-tip {font-size: 16px;line-height: normal;}
.wpcf7-response-output {display: none !important;}
.wpcf7-spinner { position: absolute; left: 0; margin: 0; bottom: -30px; }

.d-none { display: none; }

.lets_talk_sec form select { background-image: url(../images/select.svg); border: none; border-bottom: 2px solid rgba(20, 34, 64, 1); color: rgba(61, 90, 128, 1); font-size: 18px; height: 48px; font-weight: 400; width: 100%; outline: none; background-color: transparent; }

.btn{position:relative;}
.btn.loading{pointer-events:none;color:transparent!important}
.btn.loading::before{content:"";height:20px;width:20px;border:2px solid #fff;border-bottom:2px solid transparent!important;display:block;position:absolute;right:0;left:0;top:0;bottom:0;margin:auto;border-radius:50%;-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite}

.meadia_list_section.loading,.career_open_position_section.loading{opacity:0.5;pointer-events:none;}
.meadia_list_section.loading::after,.career_open_position_section.loading::after{content:"";height:100px;width:100px;border:5px solid #000;border-bottom:2px solid transparent!important;display:block;position:absolute;right:0;left:0;top:10%;bottom:0;margin:0 auto;border-radius:50%;-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite;z-index:9;}


@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}
.nearby_sec .map .map_container{width: 100%;height: 100%;}
.nearby_sec .map .google-map{width: 100%;height: 100%;}

.project_logo_pin{position: relative; width: 152px; background-color: #182848; height: 62px; border-radius: 5px; padding: 16px;transform: translateY(-50px);}
.project_logo_pin .arrow{    position: absolute; bottom: -50px; left: 0; right: 0; background-color: #182848; width: 10px; height: 10px; border-radius: 50%; margin: 0 auto;}
.project_logo_pin .arrow::after{content: ''; position: absolute; bottom: 0; left: 0; right: 0; background-color: #182848; height: 55px; margin: 0 auto; width: 2px;}

.landmark_pin { position: relative; width: auto; background-color: #fff; height: 36px; border-radius: 5px; padding: 5px 16px; transform: translateY(-25px); line-height: 22px; font-size: 14px; text-align: center; border: 2px solid #182848; color: #182848; font-weight: 400; }
.landmark_pin .arrow{position: absolute; bottom: -30px; left: 0; right: 0; background-color: #182848; width: 10px; height: 10px; border-radius: 50%; margin: 0 auto;}
.landmark_pin .arrow::after{content: ''; position: absolute; bottom: 0; left: 0; right: 0; background-color: #182848; height:30px; margin: 0 auto; width: 2px;}

.building-filter-results.active { display: block; }
.building-filter-results { display: none; }
.building-filter-results { padding: 0px; }

.building-filter-results.room-filter-hidden {
    display: none !important;
}

/* Career benefits reuse the Urban Renewal component. */
.career_benefits_section.security_from_sec { margin-top: 80px; padding: 0; }
.career_benefits_section.security_from_sec > .wrapper { max-width: none; padding: 0; }
.career_benefits_section .icon img { width: 40px; height: 40px; display: block; object-fit: contain; }
.career_benefit_description > :last-child { margin-bottom: 0; }
.career_benefit_description ul, .career_benefit_description ol { padding-inline-start: 1.25em; }
.career_open_position_section.career_has_instagram { padding-bottom: 16px; }
.career_instagram_section { margin-top: 80px; }
.career_instagram_section .title { margin-bottom: 40px; padding-inline: 20px; text-align: center; }
.career_instagram_section h2 { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; color: var(--primay-navy1); }
.career_instagram_section .instagram_wordmark { display: inline-flex; flex: 0 0 auto; align-items: center; transform: translateY(0.14em); }
.career_instagram_section .instagram_wordmark svg, .career_instagram_section .instagram_wordmark img { display: block; width: auto; height: 1.3em; }
.career_instagram_feed { width: 100%; max-width: none; min-width: 0; }
@media (max-width: 767px) { .career_benefits_section.security_from_sec, .career_instagram_section { margin-top: 48px; } .career_instagram_section .title { margin-bottom: 24px; } .career_instagram_section h2 { gap: 8px; } }

/* Engineering and execution: editable per-project galleries. */
.engineering_projects .engineering_project_gallery { overflow: hidden; }
.engineering_projects .showcase_item .engineering_project_slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 0;
    filter: brightness(1) contrast(1);
    transition: opacity 900ms ease-in-out, transform 500ms ease, filter 500ms ease;
}
.engineering_projects .engineering_project_slide.is-active { opacity: 1; z-index: 2; }
.engineering_projects .engineering_project_slide.is-previous { opacity: 1; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
    .engineering_projects .showcase_item:hover .engineering_project_slide {
        filter: brightness(1.1) contrast(1.06);
    }
}
@media (prefers-reduced-motion: reduce) {
    .engineering_projects .showcase_item .engineering_project_slide { transition: none; }
    .engineering_projects .showcase_item:hover .engineering_project_slide { transform: none; }
}

/* Engineering galleries: subtle RTL navigation, shown only for multiple images. */
.engineering_projects .engineering_gallery_nav {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}
.engineering_projects .engineering_gallery_arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 6px;
    border: 1px solid rgba(45, 138, 176, .65);
    border-radius: 50%;
    background: rgba(255, 255, 255, .87);
    color: #267d91;
    box-shadow: 0 2px 8px rgba(13, 23, 40, .14);
    cursor: pointer;
    pointer-events: auto;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.engineering_projects .engineering_gallery_prev { right: 10px; }
.engineering_projects .engineering_gallery_next { left: 10px; }
.engineering_projects .engineering_gallery_arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.engineering_projects .engineering_gallery_arrow:hover {
    background: #fff;
    color: #1b2d4f;
    box-shadow: 0 2px 10px rgba(13, 23, 40, .24);
}
.engineering_projects .engineering_gallery_arrow:focus-visible {
    outline: 2px solid #35acb1;
    outline-offset: 3px;
}
.engineering_projects .engineering_projects_intro p + p { margin-top: .6em; }
.engineering_projects .engineering_project_description p + p { margin-top: .5em; }
.engineering_projects .engineering_projects_intro ul,
.engineering_projects .engineering_project_description ul { list-style: disc; padding-inline-start: 1.3em; }
.engineering_projects .engineering_projects_intro ol,
.engineering_projects .engineering_project_description ol { list-style: decimal; padding-inline-start: 1.3em; }
@media (pointer: coarse) {
    .engineering_projects .engineering_gallery_arrow { width: 40px; height: 40px; }
}


/* Engineering client logos: preserve the full SVG within the marquee height. */
.page-id-739 .leading_companies_sec .marquee_common .item img {
    width: auto;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

/* Engineering project hover panels: allow four lines of description. */
section.engineering_projects .showcase_item .text p {
    -webkit-line-clamp: 4;
}

/* Personal-area project selection. */
#personal_project_button.is-disabled { opacity: .55; cursor: not-allowed; }
#personal_project_status { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--primay-navy1); }
#personal_project_status[hidden] { display: none; }


/* Personal-area dropdown: 12px inset for every project name. */
#personal_project_field option {
    padding-inline: 12px;
}
@supports (appearance: base-select) {
    #personal_project_field,
    #personal_project_field::picker(select) {
        appearance: base-select;
    }
    #personal_project_field {
        opacity: 1;
        color: transparent;
        background: transparent;
        border: 0;
    }
    #personal_project_field::picker-icon {
        display: none;
    }
    #personal_project_field::picker(select) {
        opacity: 1;
        padding: 0;
        border: 1px solid #a8c4e0;
        border-radius: 0;
        background: #fff;
        color: #1b2d4f;
        direction: rtl;
    }
    #personal_project_field option {
        display: block;
        padding: 6px 12px;
        text-align: right;
    }
    #personal_project_field option::checkmark {
        display: none;
    }
    #personal_project_field option:checked,
    #personal_project_field option:hover,
    #personal_project_field option:focus {
        background: #3b6fd8;
        color: #fff;
    }
}


/* Career benefits: reuse the homepage paper texture within this section only. */
.career_benefits_section.security_from_sec {
    position: relative;
    isolation: isolate;
    background: transparent;
}
.career_benefits_section.security_from_sec::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -40px;
    bottom: -48px;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: url("../images/hm_projects_sec_bg.png") center center / cover no-repeat;
    pointer-events: none;
}
@media (max-width: 767px) {
    .career_benefits_section.security_from_sec::before {
        top: -24px;
        bottom: -16px;
    }
}

/* Double the clear gap between the benefits texture and job cards. */
.career_benefits_section + .career_open_position_list { margin-top: 88px; }
@media (max-width: 1023px) {
    .career_benefits_section + .career_open_position_list { margin-top: 72px; }
}
@media (max-width: 767px) {
    .career_benefits_section + .career_open_position_list { margin-top: 104px; }
}


/* Article content image to caption spacing: 16px -> 8px. */
.single_media_details_content .content_image_video img {
    margin-bottom: 8px;
}


/* About management cards: full biographies and consistent empty panels. */
.administration_sec .col > .text {
    width: 100%;
    min-width: 0;
    min-height: 194px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.administration_sec .col > .text > h3,
.administration_sec .col > .text > h4,
.administration_sec .col > .text > .dot_line {
    flex-shrink: 0;
}

.administration_sec .col > .text p {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: initial;
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    text-overflow: clip;
}

.administration_sec .col:focus-visible {
    border-color: rgba(168, 196, 224, 1);
}

.administration_sec .col:focus-visible > .text {
    transform: translateY(0);
}

.administration_sec .col:focus-visible .dot_line {
    transform: scale(1);
}


/* Main browser scrollbar colors. */
html {
    scrollbar-color: #6cc1ed #0f1728;
}

/* Keep component scrollbars independent of the viewport colors. */
body {
    scrollbar-color: auto;
}

html::-webkit-scrollbar-track,
html::-webkit-scrollbar-corner {
    background-color: #0f1728;
}

html::-webkit-scrollbar-thumb {
    background-color: #6cc1ed;
}

/* Full articles supplied in Word: scoped text and media layout. */
.single_media_details_content .barel-full-article { max-width: 1100px; margin-inline: auto; display: flow-root; direction: rtl; }
.barel-full-article h3 { clear: both; color: #1b2d4f; font-size: 28px; line-height: 1.5; margin: 40px 0 20px; font-weight: 700; }
.single_media_details_content .barel-full-article p, .single_media_details_content .barel-full-article a { text-transform: none; }
.barel-full-article .barel-article-media { clear: both; max-width: min(100%, var(--media-width, 100%)); margin: 32px auto 40px; }
.barel-full-article .barel-article-media img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 8px; margin: 0; }
.barel-full-article .barel-article-media figcaption { font-size: 16px; line-height: 1.6; color: #3d5a80; margin-top: 8px; text-align: right; }
.barel-full-article .barel-portrait { float: left; clear: left; width: min(29%, 280px); margin: 8px 32px 24px 0; }
.barel-full-article .barel-person-landscape { width: min(40%, 420px); }
.barel-full-article .barel-article-video { position: relative; display: block; border-radius: 8px; overflow: hidden; }
.barel-full-article .barel-video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; box-shadow: 0 4px 24px #0005; direction: rtl; }
.barel-full-article .barel-article-video:focus-visible { outline: 3px solid #23888b; outline-offset: 5px; }
@media (max-width: 767px) {
  .barel-full-article h3 { font-size: 24px; margin-top: 30px; }
  .barel-full-article .barel-portrait, .barel-full-article .barel-person-landscape { float: none; clear: both; width: min(100%, 280px); margin: 24px auto; }
  .barel-full-article .barel-person-landscape { width: min(100%, 420px); }
}

/* Article credits: media first, one metadata row and RTL reading order. */
.media_list { direction: rtl; flex-direction: row; }
.media_item { container-type: inline-size; }
.media_footer { padding-left: 42px; gap: 0; }
.media_footer ul { flex-wrap: nowrap; gap: 0 12px; min-width: 0; width: 100%; }
.media_footer ul li { white-space: nowrap; flex-shrink: 0; font-size: clamp(13px, 3.64cqw, 18.2px); line-height: 32px; }
.media_footer ul li:not(:last-child)::before { left: -8px; width: 3px; height: 3px; }
.media_footer ul li:first-child, .single_media_banner_footer ul li:first-child, .spotlight_media_footer ul li:first-child { direction: rtl; unicode-bidi: isolate; white-space: nowrap; }
.single_media_banner_footer ul, .spotlight_media_footer ul { flex-wrap: nowrap; }
.single_media_banner_footer ul li, .spotlight_media_footer ul li { white-space: nowrap; font-size: 18.2px; }
.media_item:hover .media_text .btn em, .media_item:focus-visible .media_text .btn em { max-width: 100px; margin-left: 0; }
@media (max-width: 767px) {
 .single_media_banner_footer ul, .spotlight_media_footer ul { gap: 12px; }
 .single_media_banner_footer ul li, .spotlight_media_footer ul li { font-size: clamp(13px, 3.25vw, 18.2px); }
 .single_media_banner_footer ul li:not(:last-child)::before, .spotlight_media_footer ul li:not(:last-child)::before { left: -8px; }
}

/* Keep video keyboard activation consistent with the native site button. */
.barel-article-video:focus-visible .barel-video-play { color: var(--white); }
.barel-article-video:focus-visible .barel-video-play::after { transform: translateX(0); opacity: 1; background-color: var(--primay-navy1); }
.barel-article-video:focus-visible .barel-video-play span { background-color: var(--orange-dark); border-color: var(--orange-dark); }
.barel-article-video:focus-visible .barel-video-play span::after { transform: translateX(0); opacity: 1; }
.barel-article-video:focus-visible .barel-video-play span::before { transform: translateX(-100%); opacity: 0; }

/* Reader-requested full-width landscape portraits, preserving the original image ratio. */
.barel-full-article .barel-article-media:has(> img:is([src$="/barel-full-04-ashley-liran-1.webp"], [src$="/barel-full-04-ashley-liran-3.webp"], [src$="/barel-full-04-ashley-liran-6.webp"], [src$="/barel-full-09-article-9-img-8.webp"], [src$="/barel-full-13-article-13-img-1.webp"])) { float: none; clear: both; width: min(100%, var(--media-width, 1100px)); margin: 32px auto 40px; }

/* Reserve a separate button lane so expanded CTAs never cover article credits. */
.media_footer { padding: 12px 0 44px; }
.media_text .btn { bottom: 18px; }

/* Legal pages: preserve the WYSIWYG paragraph, heading and list rhythm. */
:is(.page-id-3, .page-id-294, .page-id-295) .default_page_content {
  line-height: 1.7;
  overflow-wrap: break-word;
}
:is(.page-id-3, .page-id-294, .page-id-295) .default_page_content p {
  margin: 0 0 1.1em;
  line-height: 1.7;
  text-transform: none;
}
:is(.page-id-3, .page-id-294, .page-id-295) .default_page_content :is(h2, h3, h4, h5, h6) {
  margin: 1.5em 0 .65em;
  line-height: 1.4;
}
:is(.page-id-3, .page-id-294, .page-id-295) .default_page_content :is(ul, ol) {
  margin: .5em 0 1.25em;
  padding-inline-start: 1.35em;
  padding-inline-end: 0;
}
:is(.page-id-3, .page-id-294, .page-id-295) .default_page_content li {
  margin-block: .4em;
  line-height: 1.7;
  text-transform: none;
}
:is(.page-id-3, .page-id-294, .page-id-295) .default_page_content li > p:last-child {
  margin-bottom: 0;
}
:is(.page-id-3, .page-id-294, .page-id-295) .default_page_content :is(strong, b) {
  font-weight: 700;
}
:is(.page-id-3, .page-id-294, .page-id-295) .default_page_content a {
  display: inline;
  font-size: inherit;
  line-height: inherit;
  text-transform: none;
  overflow-wrap: anywhere;
}
:is(.page-id-3, .page-id-294, .page-id-295) .default_page_content > :first-child {
  margin-top: 0;
}
:is(.page-id-3, .page-id-294, .page-id-295) .default_page_content > :last-child {
  margin-bottom: 0;
}

/* Keep the full project heading visible when the card is collapsed. */
.showcase_item .text_box {
    transform: translateY(calc(100% - var(--barel-card-heading-height, 40px)));
}
.showcase_item:hover .text_box,
.showcase_item:focus-within .text_box {
    transform: translateY(0);
}

/* Native SEO headings retain the existing visual hierarchy. */
.title h1.barel-section-h1{font-size:32px;line-height:40px;font-weight:700;}
.single-project .banner_big.banner .logo_box .project-slide-heading{font-size:20px;line-height:32px;color:var(--white);padding:14px 10px;background-color:#142240!important;font-weight:500!important;margin:0;}
.mistaken_project.single-project .banner_big.banner .logo_box .project-slide-heading{background-color:rgba(26,95,122,.9)!important;}
.barel-content-directory{margin:0 0 32px;text-align:right;}
.barel-content-directory a{color:var(--primay-navy1);text-decoration:underline;text-underline-offset:4px;}
.barel-content-directory p{margin-bottom:16px;}
.barel-knowledge-content img{max-width:100%;height:auto;border-radius:8px;}
.barel-knowledge-content figure,.barel-knowledge-content .wp-caption{max-width:100%;margin:24px auto;}
.barel-knowledge-content .content_text p{margin-bottom:1em;}
.barel-knowledge-content .content_text :is(h2,h3,h4){margin:1.4em 0 .6em;}
.barel-knowledge-content .content_text a{text-decoration:underline;text-underline-offset:3px;}
.barel-knowledge-content .content_text :is(ul,ol){padding-inline-start:1.5em;margin-bottom:1em;}
.barel-knowledge-content .content_text ul{list-style:disc;}
.barel-knowledge-content .content_text ol{list-style:decimal;}
.barel-knowledge-pagination{display:flex;gap:16px;justify-content:center;margin-top:32px;}
@media(max-width:767px){.title h1.barel-section-h1{line-height:32px;}.hm_projects_sec .title h1.barel-section-h1{max-width:230px;margin:0 auto;}}

/* Media filters: the knowledge-center category uses the same tab controls. */
.barel-media-tabs ul{align-items:stretch;}
.barel-media-tabs ul li a{height:100%;min-height:68px;line-height:1.35;}
.barel-media-tabs ul li.barel-knowledge-tab a{width:280px;}
@media(max-width:767px){
    .barel-media-tabs ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
    .barel-media-tabs ul li{max-width:none;min-width:0;}
    .barel-media-tabs ul li a,.barel-media-tabs ul li.barel-knowledge-tab a{width:100%;min-height:60px;font-size:14px;padding:8px;}
}

/* Project-search label: preserve the former H2 appearance without a heading. */
.model .model_had .project-search-title {
    margin: 0;
    color: var(--white);
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* Archive heading hierarchy: preserve item typography and use one page H1. */
.barel-archive-heading {
    max-width: 1440px;
    margin-inline: auto;
    padding: 112px 32px 32px;
    text-align: right;
}
.barel-archive-title {
    margin: 0;
    color: var(--primay-navy1);
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
}
.barel-archive-entry-title {
    margin: 0;
    font-size: 100%;
    line-height: normal;
    font-weight: 700;
}
.segment_projects_head .barel-archive-title {
    line-height: 32px;
}
@media (max-width: 767px) {
    .barel-archive-heading { padding: 100px 16px 24px; }
    .barel-archive-heading .barel-archive-title { font-size: 28px; line-height: 36px; }
}

/* Desktop home link: use the same 1280px breakpoint as the main navigation. */
header .had_right > .header-home-link {
    flex: 0 0 32px;
    margin-inline-end: 8px;
}
header .header-home-link img { display: block; width: 16px; height: 16px; object-fit: contain; }
header .header-home-link:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    border-radius: 4px;
}
@media screen and (max-width: 1279px) {
    header .had_right > .header-home-link {
        display: none;
    }
}

/* Accessibility: preserve layout when main receives the skip-link focus. */
#page_content { scroll-margin-top: 130px; }
#page_content:focus { outline: none; }
/* Barel accessibility: approved focus, motion control, and form feedback.
 * Brand/button colors remain unchanged at the owner's request. */
body :is(a,button,input,select,textarea,[tabindex]):focus-visible {
    outline: 3px solid #1b2d4f !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 0 4px #fff !important;
}
.custom-select-container:focus-within {
    outline: 3px solid #1b2d4f;
    outline-offset: 4px;
    box-shadow: 0 0 0 4px #fff;
}
.skip-link:focus { min-width: 44px; min-height: 44px; }
.barel-motion-control { position:fixed; right:12px; bottom:12px; z-index:999; }
.barel-motion-toggle { width:36px; height:36px; padding:4px; display:grid; place-items:center; border:0; border-radius:50%; background:transparent; cursor:pointer; color:#1b2d4f; }
.barel-motion-toggle::before { content:""; position:absolute; width:28px; height:28px; border-radius:50%; background:#fff; border:1px solid #1b2d4f; box-shadow:0 1px 3px #14224025; z-index:-1; }
.barel-motion-toggle svg { display:block; }
.barel-motion-toggle .barel-play-icon { display:none; }
.barel-motion-paused .barel-motion-toggle .barel-pause-icon { display:none; }
.barel-motion-paused .barel-motion-toggle .barel-play-icon { display:block; }
.barel-motion-tooltip { position:absolute; right:0; bottom:44px; padding:6px 10px; border-radius:5px; background:#1b2d4f; color:#fff; font-size:14px; line-height:1.4; white-space:nowrap; visibility:hidden; opacity:0; }
.barel-motion-control:hover .barel-motion-tooltip,
.barel-motion-control:focus-within .barel-motion-tooltip { visibility:visible; opacity:1; }
.barel-motion-paused *, .barel-motion-paused *::before, .barel-motion-paused *::after { animation-play-state:paused !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
.wpcf7 form:is(.invalid,.unaccepted,.failed,.aborted,.spam) .wpcf7-response-output { display:block !important; width:100%; clear:both; margin:16px 0 0; padding:12px 16px; border:2px solid #a3210a; border-radius:8px; background:#fff3f0; color:#852000; font-size:17px; line-height:1.5; }
.wpcf7 form.sent .wpcf7-response-output { display:block !important; width:100%; color:#1b2d4f; background:#fff; }
.wpcf7-not-valid-tip { color:#a3210a; }
@media (forced-colors:active) {
    .barel-motion-toggle { background:ButtonFace; color:ButtonText; border:1px solid ButtonText; }
    body :is(a,button,input,select,textarea,[tabindex]):focus-visible { outline:3px solid Highlight !important; }
}

/* Keep the motion hint hoverable and dismissible without moving focus. */
.barel-motion-tooltip::after { content:""; position:absolute; left:0; right:0; height:10px; top:100%; }
.barel-motion-control.tooltip-dismissed .barel-motion-tooltip { visibility:hidden; opacity:0; }

/* Content remains available immediately when motion is paused or using a keyboard. */
.barel-motion-paused .animate, .barel-keyboard-navigation .animate { opacity:1 !important; visibility:visible !important; transform:none !important; transition:none !important; }

/* Engineering project drawers on touch/mobile layouts only. */
@media (max-width: 1023px), (hover: none) and (pointer: coarse) {
    .engineering_projects .showcase_item { cursor: pointer; }
    .engineering_projects .showcase_item:not(.is-description-open) .text_box {
        transform: translateY(calc(100% - var(--barel-card-heading-height, 40px)));
    }
    .engineering_projects .showcase_item.is-description-open .text_box {
        transform: translateY(0);
    }
    .engineering_projects .showcase_item .engineering_project_description p {
        display: -webkit-box;
    }
}
