/*
 * Bosowa front-end: header, footer, and homepage.
 * Direction and the reason behind each token live in DESIGN.md at the repo root.
 * Every class is prefixed with bw- so it never collides with the template CSS
 * (style.css) that the pages not yet redesigned still depend on.
 */

:root {
    --bw-navy: #1E478E;
    --bw-navy-deep: #122A55;
    --bw-ink: #14171F;
    --bw-muted: #565C68;
    --bw-soft: #F3F5F9;
    --bw-line: #E1E5EC;
    --bw-white: #FFFFFF;
    --bw-on-navy: #DCE4F2;
    --bw-accent: #E2231A;

    --bw-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    --bw-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --bw-wrap: 1240px;
    --bw-gutter: clamp(20px, 4vw, 40px);
    --bw-header-h: 84px;

    --bw-space-section: clamp(64px, 5vw + 40px, 112px);

    --bw-radius-sm: 8px;
    --bw-radius: 14px;
    --bw-ease: 180ms ease;
    --bw-shadow-lift: 0 18px 40px -18px rgba(18, 42, 85, 0.35);
}

/* Base ------------------------------------------------------------------ */

.bw-site {
    color: var(--bw-ink);
    font-family: var(--bw-sans);
}

.bw-site main {
    display: block;
}

.bw-wrap {
    width: 100%;
    max-width: calc(var(--bw-wrap) + 2 * var(--bw-gutter));
    margin-inline: auto;
    padding-inline: var(--bw-gutter);
}

.bw-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bw-skip {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 1000;
    padding: 12px 16px;
    border-radius: var(--bw-radius-sm);
    background: var(--bw-navy);
    color: var(--bw-white);
    font-weight: 600;
    transition: none;
}

.bw-skip:focus {
    top: 12px;
    color: var(--bw-white);
}

.bw-site a,
.bw-site button,
.bw-site summary,
.bw-site label[for],
.bw-site select {
    cursor: pointer;
}

.bw-site button:disabled {
    cursor: not-allowed;
}

.bw-site :focus-visible {
    outline: 3px solid var(--bw-navy);
    outline-offset: 3px;
}

.bw-on-dark :focus-visible,
.bw-footer :focus-visible {
    outline-color: var(--bw-white);
}

#main:focus {
    outline: none;
}

.bw-site ul.bw-reset,
.bw-site ol.bw-reset {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bw-site figure {
    margin: 0;
}

.bw-media {
    position: relative;
    overflow: hidden;
    background: var(--bw-soft);
}

.bw-media picture,
.bw-media img {
    display: block;
    width: 100%;
    height: 100%;
}

.bw-media img {
    object-fit: cover;
}

/* Type ------------------------------------------------------------------ */

.bw-display,
.bw-h2,
.bw-h3 {
    margin: 0;
    font-family: var(--bw-display);
    font-weight: 800;
    color: var(--bw-ink);
    letter-spacing: -0.02em;
}

.bw-display {
    font-size: clamp(2.25rem, 1.5rem + 2.8vw, 3.75rem);
    line-height: 1.05;
}

.bw-h2 {
    font-size: clamp(1.875rem, 1.35rem + 1.8vw, 2.875rem);
    line-height: 1.1;
}

.bw-h3 {
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Identity motif: the short red bar taken from the logo's burst, placed
 * above every section title. It is the only recurring use of the red. */
.bw-mark::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    margin-bottom: 20px;
    border-radius: 2px;
    background: var(--bw-accent);
}

.bw-kicker {
    margin: 0 0 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bw-navy);
}

.bw-prose {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--bw-muted);
}

.bw-prose p {
    margin: 0 0 1em;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.bw-prose > :last-child {
    margin-bottom: 0;
}

.bw-prose--spaced {
    margin-top: 20px;
}

/* Links and buttons ----------------------------------------------------- */

.bw-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bw-navy);
    text-decoration: none;
    transition: color var(--bw-ease), gap var(--bw-ease);
}

.bw-link svg {
    width: 18px;
    height: 18px;
}

/* The arrow on a "see all" link says "this leaves for another page". */
.bw-link:hover {
    gap: 12px;
    color: var(--bw-navy-deep);
    text-decoration: underline;
    text-underline-offset: 5px;
}

.bw-link:active {
    color: var(--bw-ink);
}

.bw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 26px;
    border: 1.5px solid var(--bw-navy);
    border-radius: var(--bw-radius-sm);
    background: var(--bw-navy);
    color: var(--bw-white);
    font-family: var(--bw-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color var(--bw-ease), border-color var(--bw-ease), color var(--bw-ease);
}

.bw-btn:hover {
    background: var(--bw-navy-deep);
    border-color: var(--bw-navy-deep);
    color: var(--bw-white);
}

.bw-btn:active {
    transform: translateY(1px);
}

.bw-btn:disabled {
    background: var(--bw-line);
    border-color: var(--bw-line);
    color: var(--bw-muted);
}

.bw-btn--light {
    background: var(--bw-white);
    border-color: var(--bw-white);
    color: var(--bw-navy);
}

.bw-btn--light:hover {
    background: var(--bw-soft);
    border-color: var(--bw-soft);
    color: var(--bw-navy-deep);
}

.bw-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1.5px solid var(--bw-line);
    border-radius: 50%;
    background: var(--bw-white);
    color: var(--bw-ink);
    transition: background-color var(--bw-ease), color var(--bw-ease), border-color var(--bw-ease), opacity var(--bw-ease);
}

.bw-icon-btn:hover {
    background: var(--bw-navy);
    border-color: var(--bw-navy);
    color: var(--bw-white);
}

.bw-icon-btn:disabled {
    opacity: 0.4;
    background: var(--bw-white);
    border-color: var(--bw-line);
    color: var(--bw-ink);
}

.bw-icon-btn svg {
    width: 20px;
    height: 20px;
}

/* Header ---------------------------------------------------------------- */

/* The template's .page-wrapper uses overflow: hidden, which silently turns
 * off position: sticky for the header inside it. overflow: clip still trims
 * stray template elements but does not create a scroll container. */
.bw-site .page-wrapper {
    overflow: visible;
    overflow: clip;
}

.bw-header {
    position: relative;
    z-index: 100;
    background: var(--bw-white);
    border-bottom: 1px solid var(--bw-line);
    transition: box-shadow var(--bw-ease);
}

.bw-header--sticky {
    position: sticky;
    top: 0;
}

/* Once the page scrolls, the sticky header lifts above the content. */
.bw-header.is-scrolled {
    box-shadow: 0 6px 24px -12px rgba(18, 42, 85, 0.25);
}

.bw-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--bw-header-h);
}

.bw-header__logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-height: 44px;
}

.bw-header__logo img {
    display: block;
    width: auto;
    height: 50px;
    max-width: 170px;
    object-fit: contain;
}

.bw-header__menu-btn {
    display: none;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 4px 8px 12px;
    border: 0;
    background: transparent;
    color: var(--bw-ink);
    font: 600 0.9375rem/1 var(--bw-sans);
}

.bw-burger,
.bw-burger::before,
.bw-burger::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: transform var(--bw-ease), background-color var(--bw-ease);
}

.bw-burger {
    position: relative;
}

.bw-burger::before,
.bw-burger::after {
    content: "";
    position: absolute;
    left: 0;
}

.bw-burger::before {
    top: -7px;
}

.bw-burger::after {
    top: 7px;
}

.bw-header.is-open .bw-burger {
    background: transparent;
}

.bw-header.is-open .bw-burger::before {
    transform: translateY(7px) rotate(45deg);
}

.bw-header.is-open .bw-burger::after {
    transform: translateY(-7px) rotate(-45deg);
}

.bw-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bw-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
}

.bw-nav__item {
    position: relative;
}

.bw-nav__link,
.bw-nav__trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: var(--bw-radius-sm);
    background: transparent;
    color: var(--bw-ink);
    font: 600 0.9375rem/1.2 var(--bw-sans);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--bw-ease), background-color var(--bw-ease);
}

.bw-nav__link:hover,
.bw-nav__trigger:hover,
.bw-nav__trigger[aria-expanded="true"] {
    color: var(--bw-navy);
    background: var(--bw-soft);
}

/* The current page is marked by a red rule and navy text, not color alone. */
.bw-nav__link[aria-current="page"],
.bw-nav__trigger.is-current {
    color: var(--bw-navy);
}

.bw-nav__link[aria-current="page"]::after,
.bw-nav__trigger.is-current::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 3px;
    border-radius: 2px;
    background: var(--bw-accent);
}

/* Contact is the one action the header asks for, so it gets the button. */
.bw-nav__link--cta {
    margin-left: 8px;
    padding-inline: 20px;
    background: var(--bw-navy);
    color: var(--bw-white);
}

.bw-nav__link--cta:hover {
    background: var(--bw-navy-deep);
    color: var(--bw-white);
}

.bw-nav__link--cta[aria-current="page"] {
    color: var(--bw-white);
}

.bw-nav__link--cta[aria-current="page"]::after {
    left: 20px;
    right: 20px;
    bottom: 6px;
    height: 2px;
    background: var(--bw-white);
}

.bw-nav__chevron {
    width: 12px;
    height: 12px;
    transition: transform var(--bw-ease);
}

.bw-nav__trigger[aria-expanded="true"] .bw-nav__chevron {
    transform: rotate(180deg);
}

.bw-nav__panel {
    display: none;
}

.bw-nav__panel.is-open {
    display: block;
}

.no-js .bw-nav__item:hover > .bw-nav__panel,
.no-js .bw-nav__item:focus-within > .bw-nav__panel {
    display: block;
}

.bw-nav__panel a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: var(--bw-radius-sm);
    color: var(--bw-ink);
    font-size: 0.9375rem;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color var(--bw-ease), color var(--bw-ease);
}

.bw-nav__panel a:hover {
    background: var(--bw-soft);
    color: var(--bw-navy);
}

.bw-nav__panel a[aria-current="page"] {
    font-weight: 700;
    color: var(--bw-navy);
}

.bw-nav__group-title {
    font-weight: 700;
}

.bw-nav__sublist a {
    color: var(--bw-muted);
}

.bw-lang {
    display: inline-flex;
    margin: 0;
    padding: 3px;
    border-radius: var(--bw-radius-sm);
    background: var(--bw-soft);
}

.bw-lang button {
    min-width: 40px;
    min-height: 38px;
    padding: 6px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--bw-muted);
    font: 700 0.8125rem/1 var(--bw-sans);
    transition: background-color var(--bw-ease), color var(--bw-ease);
}

.bw-lang button:hover {
    color: var(--bw-ink);
}

.bw-lang button[aria-pressed="true"] {
    background: var(--bw-white);
    color: var(--bw-navy);
    box-shadow: 0 1px 3px rgba(18, 42, 85, 0.18);
    cursor: default;
}

@media (min-width: 1180px) {
    .bw-nav__panel {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        min-width: 250px;
        padding: 8px;
        background: var(--bw-white);
        border: 1px solid var(--bw-line);
        border-radius: var(--bw-radius);
        box-shadow: 0 20px 48px -16px rgba(18, 42, 85, 0.28);
    }

    .bw-nav__panel--wide {
        position: fixed;
        top: calc(var(--bw-header-h) + 8px);
        left: 50%;
        transform: translateX(-50%);
        width: min(var(--bw-wrap), calc(100vw - 2 * var(--bw-gutter)));
        padding: 32px;
    }

    .bw-header:not(.bw-header--sticky) .bw-nav__panel--wide {
        position: absolute;
        top: calc(100% + 8px);
    }

    .bw-nav__item--wide {
        position: static;
    }

    .bw-nav__groups {
        columns: 5 190px;
        column-gap: 28px;
    }

    .bw-nav__group {
        break-inside: avoid;
        margin-bottom: 20px;
        padding-top: 12px;
        border-top: 2px solid var(--bw-line);
    }
}

@media (max-width: 1179.98px) {
    .bw-header__menu-btn {
        display: inline-flex;
    }

    .js .bw-nav {
        position: fixed;
        inset: calc(var(--bw-header-h) + 1px) 0 0 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 16px var(--bw-gutter) 40px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--bw-white);
    }

    .bw-header:not(.bw-header--sticky) .bw-nav {
        position: absolute;
        top: calc(100% + 1px);
        height: calc(100dvh - var(--bw-header-h));
    }

    .js .bw-header.is-open .bw-nav {
        display: flex;
    }

    .no-js .bw-header__bar {
        flex-wrap: wrap;
    }

    .no-js .bw-header__menu-btn {
        display: none;
    }

    .no-js .bw-nav,
    .bw-nav__list {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .bw-nav__list > li {
        border-bottom: 1px solid var(--bw-line);
    }

    .bw-nav__list > li:has(.bw-nav__link--cta) {
        border-bottom: 0;
        padding-top: 16px;
    }

    .bw-nav__link,
    .bw-nav__trigger {
        width: 100%;
        justify-content: space-between;
        min-height: 56px;
        padding: 14px 4px;
        border-radius: 0;
        font-size: 1.125rem;
    }

    .bw-nav__link:hover,
    .bw-nav__trigger:hover,
    .bw-nav__trigger[aria-expanded="true"] {
        background: transparent;
    }

    .bw-nav__link--cta {
        justify-content: center;
        margin-left: 0;
        border-radius: var(--bw-radius-sm);
    }

    .bw-nav__link--cta:hover {
        background: var(--bw-navy-deep);
    }

    .bw-nav__link[aria-current="page"]::after,
    .bw-nav__trigger.is-current::after {
        left: 4px;
        right: auto;
        width: 32px;
        bottom: 8px;
    }

    .bw-nav__panel {
        padding: 0 0 16px;
    }

    .bw-nav__groups {
        display: grid;
        gap: 12px;
    }

    .bw-nav__sublist {
        padding-left: 16px !important;
    }

    .bw-lang {
        align-self: flex-start;
    }

    .bw-lang button {
        min-width: 52px;
        min-height: 44px;
    }
}

body.bw-nav-open {
    overflow: hidden;
}

/* Hero slider ----------------------------------------------------------- */

/* The slides are finished banners with text set into the artwork, so the
 * hero shows each one whole at its own 16:9 ratio instead of cropping it. */
.bw-hero {
    position: relative;
    background: var(--bw-soft);
}

.bw-slider__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.bw-slider__track::-webkit-scrollbar {
    display: none;
}

.bw-hero__slide {
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: start;
    width: 100%;
    aspect-ratio: 1536 / 863;
}

.bw-hero__slide .bw-media {
    position: absolute;
    inset: 0;
    background: var(--bw-soft);
}

.bw-hero__caption {
    position: absolute;
    left: var(--bw-gutter);
    bottom: 96px;
    max-width: min(560px, calc(100% - 2 * var(--bw-gutter)));
    padding: 28px 32px;
    border-radius: var(--bw-radius);
    background: var(--bw-navy-deep);
    color: var(--bw-white);
}

.bw-hero__title {
    margin: 0;
    font-family: var(--bw-display);
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--bw-white);
}

.bw-hero__sub {
    margin: 12px 0 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--bw-white);
}

.bw-hero__caption .bw-btn {
    margin-top: 20px;
}

.bw-hero__controls {
    position: absolute;
    left: 50%;
    bottom: clamp(12px, 2vw, 28px);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px -10px rgba(18, 42, 85, 0.35);
}

.bw-hero__controls .bw-icon-btn {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
}

.bw-hero__controls .bw-icon-btn:hover {
    background: var(--bw-navy);
    color: var(--bw-white);
}

.bw-dots {
    display: flex;
    align-items: center;
}

/* Each dot keeps a 44px hit area; only the visible mark is small. */
.bw-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
}

.bw-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #8A93A6;
    transition: width var(--bw-ease), background-color var(--bw-ease);
}

.bw-dot:hover::before {
    background: var(--bw-navy);
}

.bw-dot[aria-current="true"]::before {
    width: 22px;
    background: var(--bw-accent);
}

.bw-dot[aria-current="true"] {
    width: 36px;
}

.bw-pause svg {
    width: 16px;
    height: 16px;
}

.bw-pause [data-icon-play] {
    display: none;
}

.bw-pause[aria-pressed="true"] [data-icon-play] {
    display: block;
}

.bw-pause[aria-pressed="true"] [data-icon-pause] {
    display: none;
}

@media (max-width: 767.98px) {
    .bw-hero__caption {
        position: relative;
        left: auto;
        bottom: auto;
        max-width: none;
        border-radius: 0;
        padding: 24px var(--bw-gutter);
    }

    .bw-hero__slide:has(.bw-hero__caption) {
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
    }

    .bw-hero__slide:has(.bw-hero__caption) .bw-media {
        position: relative;
        aspect-ratio: 1536 / 863;
    }

    /* On a phone the banner is short; the controls sit under it, not over it. */
    .bw-hero__controls {
        position: static;
        transform: none;
        justify-content: center;
        margin: 0 auto;
        width: max-content;
        background: transparent;
        box-shadow: none;
    }

    .bw-hero__controls [data-bw-prev],
    .bw-hero__controls [data-bw-next] {
        display: none;
    }
}

/* Sections -------------------------------------------------------------- */

.bw-section {
    padding-block: var(--bw-space-section);
}

.bw-section--soft {
    background: var(--bw-soft);
}

.bw-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: clamp(32px, 3vw + 16px, 52px);
}

.bw-section__head-text {
    max-width: 720px;
}

.bw-section__lede {
    margin: 14px 0 0;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--bw-muted);
}

/* Intro (welcome): a wide navy block, the photo bleeding to the edge. ----- */

.bw-intro {
    position: relative;
    background: var(--bw-navy);
    color: var(--bw-white);
    overflow: hidden;
}

.bw-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: clamp(420px, 42vw, 600px);
}

.bw-intro__text {
    align-self: center;
    padding: var(--bw-space-section) clamp(32px, 5vw, 80px) var(--bw-space-section) 0;
}

.bw-intro .bw-display {
    margin-bottom: 24px;
    color: var(--bw-white);
}

.bw-intro .bw-kicker {
    color: var(--bw-on-navy);
}

.bw-intro .bw-prose {
    max-width: 54ch;
    color: var(--bw-on-navy);
}

.bw-intro__points {
    margin: 28px 0 0;
}

.bw-intro__points > div {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.bw-intro__points dt {
    font-weight: 700;
    color: var(--bw-white);
}

.bw-intro__points dd {
    margin: 4px 0 0;
    color: var(--bw-on-navy);
    line-height: 1.6;
}

.bw-intro__cta {
    margin-top: 36px;
}

.bw-intro__media {
    position: relative;
    margin-right: calc(-1 * max(var(--bw-gutter), (100vw - var(--bw-wrap)) / 2));
    background: var(--bw-navy-deep);
}

.bw-intro__photo--main {
    position: absolute;
    inset: 0;
}

.bw-intro__photo--second {
    position: absolute;
    left: clamp(-80px, -5vw, -24px);
    bottom: clamp(24px, 4vw, 56px);
    width: clamp(140px, 16vw, 220px);
    aspect-ratio: 1 / 1;
    border: 6px solid var(--bw-white);
    border-radius: var(--bw-radius);
}

@media (max-width: 991.98px) {
    .bw-intro__grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .bw-intro__text {
        padding: var(--bw-space-section) 0 48px;
    }

    .bw-intro__media {
        margin-inline: calc(-1 * var(--bw-gutter));
        aspect-ratio: 4 / 3;
    }

    .bw-intro__photo--second {
        left: var(--bw-gutter);
        bottom: auto;
        top: -40px;
    }
}

/* Business units: six peer sectors, so six equal photo cards. ------------ */

.bw-units__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
}

.bw-units__grid > li {
    display: flex;
}

.bw-unit {
    flex: 1;
    position: relative;
    display: flex;
    color: inherit;
    text-decoration: none;
    flex-direction: column;
    border-radius: var(--bw-radius);
    background: var(--bw-white);
    border: 1px solid var(--bw-line);
    overflow: hidden;
    transition: box-shadow var(--bw-ease), transform var(--bw-ease), border-color var(--bw-ease);
}

/* Lift on hover: the whole card is one link, the shadow says so. */
.bw-unit:hover {
    color: inherit;
    border-color: transparent;
    box-shadow: var(--bw-shadow-lift);
    transform: translateY(-4px);
}

.bw-unit__media {
    aspect-ratio: 4 / 3;
}

.bw-unit__media img {
    transition: transform 400ms ease;
}

.bw-unit:hover .bw-unit__media img {
    transform: scale(1.04);
}

/* The name sits on a navy scrim, so white text holds contrast on any photo. */
.bw-unit__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 42, 85, 0.88) 0%, rgba(18, 42, 85, 0.55) 28%, rgba(18, 42, 85, 0) 55%);
}

.bw-unit__name {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 1;
    margin: 0;
    color: var(--bw-white);
}


.bw-unit__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 16px;
    padding: 18px 20px 20px;
}

.bw-unit__desc {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--bw-muted);
}

.bw-unit__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--bw-navy);
}

.bw-unit__more svg {
    width: 16px;
    height: 16px;
    transition: transform var(--bw-ease);
}

.bw-unit:hover .bw-unit__more svg {
    transform: translateX(4px);
}

@media (max-width: 991.98px) {
    .bw-units__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .bw-units__grid {
        grid-template-columns: 1fr;
    }
}

/* News: the newest story leads, the rest follow as a list. -------------- */

.bw-news__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(20px, 2.5vw, 32px);
    align-items: stretch;
}

.bw-story {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--bw-radius);
    background: var(--bw-white);
    overflow: hidden;
    transition: box-shadow var(--bw-ease), transform var(--bw-ease);
}

.bw-story:hover {
    box-shadow: var(--bw-shadow-lift);
    transform: translateY(-3px);
}

.bw-story:has(.bw-story__title a:focus-visible) {
    outline: 3px solid var(--bw-navy);
    outline-offset: 3px;
}

.bw-story__media img {
    transition: transform 400ms ease;
}

.bw-story:hover .bw-story__media img {
    transform: scale(1.04);
}

.bw-story__body {
    padding: 20px 22px 24px;
}

.bw-story__date {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bw-navy);
}

.bw-story__title a {
    color: var(--bw-ink);
    text-decoration: none;
}

.bw-story__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bw-story__title a:focus-visible {
    outline: none;
}

.bw-story:hover .bw-story__title a {
    color: var(--bw-navy);
}

.bw-story__excerpt {
    margin: 12px 0 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--bw-muted);
}

.bw-story--lead .bw-story__media {
    aspect-ratio: 16 / 9;
}

.bw-story--lead .bw-story__body {
    padding: 24px 28px 28px;
}

.bw-story--lead .bw-story__title {
    font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
    font-weight: 800;
    line-height: 1.2;
}

.bw-news__more {
    display: grid;
    grid-auto-rows: 1fr;
    gap: clamp(20px, 2.5vw, 32px);
}

.bw-news__more > li {
    display: flex;
}

.bw-news__more .bw-story {
    flex: 1;
}

.bw-story--compact {
    flex-direction: row;
    align-items: stretch;
}

.bw-story--compact .bw-story__media {
    flex: 0 0 42%;
    aspect-ratio: auto;
    min-height: 160px;
}

.bw-story--compact .bw-story__title {
    font-size: 1.125rem;
}

.bw-story--compact .bw-story__body {
    align-self: center;
}

.bw-story--compact .bw-story__title {
    font-size: 1.0625rem;
    line-height: 1.35;
}

@media (max-width: 991.98px) {
    .bw-news__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 479.98px) {
    .bw-story--compact .bw-story__media {
        flex-basis: 34%;
        min-height: 120px;
    }

    .bw-story--compact .bw-story__body {
        padding: 14px 16px;
    }
}

/* Horizontal strip (gallery, portfolio) --------------------------------- */

.bw-strip__track {
    gap: 20px;
    padding-bottom: 6px;
}

.bw-strip__item {
    flex: 0 0 clamp(260px, 30vw, 400px);
    scroll-snap-align: start;
}

.bw-strip__item .bw-media {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--bw-radius);
}

.bw-strip__item a {
    display: block;
    color: var(--bw-ink);
    text-decoration: none;
}

.bw-strip__item img {
    transition: transform 400ms ease;
}

.bw-strip__item a:hover img {
    transform: scale(1.04);
}

.bw-strip__caption {
    display: block;
    margin-top: 12px;
    font-family: var(--bw-display);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
}

.bw-strip__item a:hover .bw-strip__caption {
    color: var(--bw-navy);
}

.bw-slider__nav {
    display: flex;
    gap: 10px;
}

/* Video ----------------------------------------------------------------- */

.bw-video {
    position: relative;
    display: grid;
    min-height: clamp(320px, 40vw, 560px);
    align-items: end;
    color: var(--bw-white);
}

.bw-video .bw-media {
    position: absolute;
    inset: 0;
    background: var(--bw-navy-deep);
}

.bw-video__panel {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 28px;
    margin: 0 var(--bw-gutter) var(--bw-gutter);
    padding: 28px 32px;
    max-width: 720px;
    border-radius: var(--bw-radius);
    background: var(--bw-navy-deep);
}

.bw-video__panel .bw-h2 {
    flex: 1 1 280px;
    color: var(--bw-white);
}

.bw-band {
    padding-block: clamp(48px, 4vw + 24px, 80px);
    background: var(--bw-navy);
    color: var(--bw-white);
}

.bw-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
}

.bw-band .bw-h2 {
    max-width: 760px;
    color: var(--bw-white);
}

.bw-play {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1.5px solid var(--bw-white);
    border-radius: var(--bw-radius-sm);
    color: var(--bw-white);
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--bw-ease), color var(--bw-ease);
}

.bw-play:hover {
    background: var(--bw-white);
    color: var(--bw-navy-deep);
}

.bw-play svg {
    width: 16px;
    height: 16px;
}

/* Facts ----------------------------------------------------------------- */

.bw-facts__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 80px);
}

.bw-facts__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.bw-facts__list > div {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: var(--bw-radius);
    background: var(--bw-soft);
}

.bw-facts__list dt {
    order: 2;
    color: var(--bw-muted);
    font-size: 0.9375rem;
}

.bw-facts__list dd {
    margin: 0 0 6px;
    font-family: var(--bw-display);
    font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem);
    font-weight: 800;
    line-height: 1;
    color: var(--bw-navy);
}

/* Split blocks (features, why choose) ----------------------------------- */

.bw-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.bw-split__media {
    aspect-ratio: 4 / 3;
    border-radius: var(--bw-radius);
}

.bw-list {
    margin-top: 28px;
}

.bw-list > li {
    padding: 16px 0;
    border-top: 1px solid var(--bw-line);
}

.bw-list__title {
    display: block;
    font-weight: 700;
    color: var(--bw-ink);
}

.bw-list__text {
    display: block;
    margin-top: 4px;
    color: var(--bw-muted);
    line-height: 1.6;
}

@media (max-width: 991.98px) {
    .bw-split,
    .bw-facts__grid {
        grid-template-columns: 1fr;
    }
}

/* Quotes ---------------------------------------------------------------- */

.bw-quotes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.bw-quote {
    margin: 0;
    padding: 28px;
    border-radius: var(--bw-radius);
    background: var(--bw-soft);
}

.bw-quote blockquote {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--bw-ink);
}

.bw-quote figcaption {
    margin-top: 16px;
    font-size: 0.9375rem;
    color: var(--bw-muted);
}

.bw-quote figcaption strong {
    display: block;
    color: var(--bw-ink);
}

/* Contact form ---------------------------------------------------------- */

.bw-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 80px);
}

.bw-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bw-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bw-field--full {
    grid-column: 1 / -1;
}

.bw-field label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bw-ink);
}

.bw-field input,
.bw-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--bw-muted);
    border-radius: var(--bw-radius-sm);
    background: var(--bw-white);
    color: var(--bw-ink);
    font: 400 1rem/1.5 var(--bw-sans);
    transition: border-color var(--bw-ease);
}

.bw-field textarea {
    min-height: 160px;
    resize: vertical;
}

.bw-field input:hover,
.bw-field textarea:hover {
    border-color: var(--bw-ink);
}

.bw-field input:focus-visible,
.bw-field textarea:focus-visible {
    outline-offset: 0;
    border-color: var(--bw-navy);
}

@media (max-width: 991.98px) {
    .bw-contact__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .bw-form {
        grid-template-columns: 1fr;
    }
}

/* Empty state ----------------------------------------------------------- */

.bw-empty {
    margin: 0;
    padding: 24px;
    border-radius: var(--bw-radius);
    background: var(--bw-soft);
    color: var(--bw-muted);
}

/* Reveal on scroll ------------------------------------------------------ */

/* Cards rise in once as their row enters the screen, to pace reading of a
 * grid. Without JS, or with reduced motion, everything is simply visible. */
.js .bw-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 500ms ease, transform 500ms ease;
    transition-delay: var(--bw-delay, 0ms);
}

.js .bw-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Footer ---------------------------------------------------------------- */

.bw-footer {
    background: var(--bw-navy-deep);
    color: var(--bw-white);
    font-size: 0.9375rem;
}

.bw-footer a {
    color: var(--bw-white);
    text-decoration: none;
    transition: color var(--bw-ease);
}

.bw-footer a:hover {
    color: var(--bw-white);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.bw-footer__main {
    display: grid;
    grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr));
    gap: 40px clamp(24px, 4vw, 56px);
    padding-block: clamp(56px, 5vw + 24px, 88px) 48px;
}

.bw-footer__brand > a {
    display: inline-block;
}

.bw-footer address {
    font-style: normal;
}

.bw-footer__brand img {
    display: block;
    width: auto;
    height: 60px;
    max-width: 210px;
    object-fit: contain;
}

.bw-footer__brand-text {
    margin: 20px 0 0;
    max-width: 40ch;
    line-height: 1.65;
    color: #C9D3E6;
}

.bw-footer__title {
    margin: 0 0 14px;
    font-family: var(--bw-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--bw-white);
}

.bw-footer__title::before {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    margin-bottom: 14px;
    border-radius: 2px;
    background: var(--bw-accent);
}

.bw-footer__text {
    line-height: 1.7;
    color: #C9D3E6;
}

.bw-footer__links li + li {
    margin-top: 2px;
}

.bw-footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    color: #C9D3E6;
}

.bw-footer__links a:hover {
    color: var(--bw-white);
}

.bw-footer__links i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--bw-white);
    font-size: 0.875rem;
    transition: background-color var(--bw-ease);
}

.bw-footer__links a:hover i {
    background: var(--bw-navy);
}

.bw-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 32px;
    padding-block: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.bw-footer__bottom p {
    margin: 0;
    color: #C9D3E6;
}

.bw-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.bw-footer__legal a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #C9D3E6;
}

@media (max-width: 991.98px) {
    .bw-footer__main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bw-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .bw-footer__main {
        grid-template-columns: 1fr;
    }
}

/* ======================================================================
 * Inner pages
 * ====================================================================== */

/* Page header: the same navy block as the homepage intro, shorter. ------ */

.bw-pagehead {
    position: relative;
    background: var(--bw-navy);
    color: var(--bw-white);
    overflow: hidden;
}

.bw-pagehead__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

.bw-pagehead--media .bw-pagehead__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.bw-pagehead__text {
    align-self: center;
    padding-block: clamp(40px, 4vw + 20px, 72px) clamp(48px, 5vw + 20px, 88px);
}

.bw-pagehead--media .bw-pagehead__text {
    padding-right: clamp(32px, 5vw, 80px);
}

.bw-pagehead .bw-display {
    max-width: 18ch;
    color: var(--bw-white);
}

.bw-pagehead__lede {
    margin: 20px 0 0;
    max-width: 60ch;
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--bw-on-navy);
}

.bw-pagehead__media {
    position: relative;
    min-height: 320px;
    margin-right: calc(-1 * max(var(--bw-gutter), (100vw - var(--bw-wrap)) / 2));
    background: var(--bw-navy-deep);
}

.bw-pagehead__media .bw-media {
    position: absolute;
    inset: 0;
    background: var(--bw-navy-deep);
}

@media (max-width: 991.98px) {
    .bw-pagehead--media .bw-pagehead__grid {
        grid-template-columns: 1fr;
    }

    .bw-pagehead--media .bw-pagehead__text {
        padding-right: 0;
    }

    .bw-pagehead__media {
        margin-inline: calc(-1 * var(--bw-gutter));
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}

.bw-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
}

.bw-crumbs li {
    display: inline-flex;
    align-items: center;
    color: var(--bw-on-navy);
}

.bw-crumbs li + li::before {
    content: "/";
    margin-inline: 10px;
    color: rgba(220, 228, 242, 0.6);
}

.bw-crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: var(--bw-on-navy);
    text-decoration: underline;
    text-decoration-color: rgba(220, 228, 242, 0.45);
    text-underline-offset: 4px;
}

.bw-crumbs a:hover {
    color: var(--bw-white);
    text-decoration-color: var(--bw-white);
}

.bw-crumbs [aria-current="page"] {
    font-weight: 600;
    color: var(--bw-white);
}

/* Rich text from the CMS editor. ---------------------------------------- */

/* Editor content arrives with inline styles, Bootstrap grids and images.
 * These rules give it readable type without fighting that markup. */
.bw-richtext {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #3A404C;
    overflow-wrap: break-word;
}

.bw-richtext > * + * {
    margin-top: 1em;
}

.bw-richtext p {
    margin: 0 0 1em;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.bw-richtext h1,
.bw-richtext h2,
.bw-richtext h3,
.bw-richtext h4,
.bw-richtext h5 {
    margin: 1.6em 0 0.6em;
    font-family: var(--bw-display);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--bw-ink);
}

.bw-richtext h2 { font-size: 1.75rem; }
.bw-richtext h3 { font-size: 1.375rem; }
.bw-richtext h4,
.bw-richtext h5 { font-size: 1.125rem; }

.bw-richtext > :first-child {
    margin-top: 0;
}

.bw-richtext ul,
.bw-richtext ol {
    margin: 0 0 1em;
    padding-left: 1.4em;
}

.bw-richtext ul { list-style: disc; }
.bw-richtext ol { list-style: decimal; }

.bw-richtext li {
    margin: 0.35em 0;
    list-style: inherit;
}

.bw-richtext img {
    max-width: 100%;
    height: auto;
    border-radius: var(--bw-radius-sm);
}

.bw-richtext a {
    color: var(--bw-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bw-richtext a:hover {
    color: var(--bw-navy-deep);
    text-decoration-thickness: 2px;
}

/* Buttons placed inside editor content still use the template's classes. */
.bw-richtext a.theme-btn,
.bw-richtext a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border: 0;
    border-radius: var(--bw-radius-sm);
    background: var(--bw-navy);
    color: var(--bw-white);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color var(--bw-ease);
}

.bw-richtext a.theme-btn::before,
.bw-richtext a.theme-btn::after {
    display: none;
}

.bw-richtext a.theme-btn .btn-title {
    color: inherit;
    padding: 0;
}

.bw-richtext a.theme-btn:hover,
.bw-richtext a.btn:hover {
    background: var(--bw-navy-deep);
    color: var(--bw-white);
}

.bw-richtext blockquote {
    margin: 1.5em 0;
    padding: 4px 0 4px 20px;
    border-left: 4px solid var(--bw-accent);
    font-size: 1.125rem;
    color: var(--bw-ink);
}

.bw-richtext table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.bw-richtext th,
.bw-richtext td {
    padding: 10px 12px;
    border: 1px solid var(--bw-line);
    text-align: left;
}

.bw-richtext iframe {
    max-width: 100%;
}

.bw-richtext .row {
    row-gap: 24px;
}

.bw-measure {
    max-width: 780px;
}

/* Content layouts ------------------------------------------------------- */

.bw-split--top {
    align-items: start;
}

.bw-photo {
    border-radius: var(--bw-radius);
}

.bw-photo--portrait {
    aspect-ratio: 4 / 5;
}

.bw-photo--landscape {
    aspect-ratio: 4 / 3;
}

.bw-stack-photos {
    display: grid;
    gap: 16px;
}

/* Value blocks (About): EWAKO, purpose, philosophy, vision, mission. */
.bw-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.bw-value {
    padding: clamp(24px, 2.5vw, 36px);
    border-radius: var(--bw-radius);
    background: var(--bw-white);
}

.bw-value--wide {
    grid-column: 1 / -1;
}

.bw-value__title {
    margin: 0 0 14px;
    font-family: var(--bw-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bw-navy);
}

.bw-value .bw-richtext {
    font-size: 1rem;
}

@media (max-width: 767.98px) {
    .bw-values {
        grid-template-columns: 1fr;
    }
}

/* Leadership letters (message from the board). */
.bw-letters {
    display: grid;
    gap: clamp(56px, 6vw, 96px);
}

.bw-letter {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.bw-letter--flip {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.bw-letter--flip .bw-letter__media {
    order: 2;
}

.bw-letter__media {
    position: sticky;
    top: calc(var(--bw-header-h) + 24px);
}

.bw-letter__photo {
    aspect-ratio: 4 / 5;
    border-radius: var(--bw-radius);
}

.bw-letter__who {
    margin-top: 16px;
}

.bw-letter__name {
    display: block;
    font-family: var(--bw-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bw-ink);
}

.bw-letter__role {
    display: block;
    margin-top: 2px;
    color: var(--bw-muted);
}

.bw-letter__body p {
    margin: 0 0 1.1em;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #3A404C;
}

.bw-letter__body .bw-h2 {
    margin-bottom: 24px;
}

.bw-letter__list {
    margin: 0 0 1.1em;
    padding-left: 1.4em;
    list-style: decimal;
}

.bw-letter__list li {
    margin: 0.3em 0;
    list-style: decimal;
    font-size: 1.0625rem;
    color: #3A404C;
}

@media (max-width: 991.98px) {
    .bw-letter,
    .bw-letter--flip {
        grid-template-columns: 1fr;
    }

    .bw-letter--flip .bw-letter__media {
        order: 0;
    }

    .bw-letter__media {
        position: static;
        max-width: 420px;
    }
}

/* Sectors (business units index): each sector card lists its companies. */
.bw-sectors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 2.5vw, 32px);
}

.bw-sector {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    border-radius: var(--bw-radius);
    border: 1px solid var(--bw-line);
    background: var(--bw-white);
    overflow: hidden;
}

.bw-sector__media {
    min-height: 240px;
}

/* The photo fills whatever height the text column needs, without
 * pushing the column wider than its grid track. */
.bw-sector__media picture,
.bw-sector__media img {
    position: absolute;
    inset: 0;
}

.bw-sector__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
}

.bw-sector__name a {
    color: var(--bw-ink);
    text-decoration: none;
}

.bw-sector__name a:hover {
    color: var(--bw-navy);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.bw-sector__desc {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--bw-muted);
}

.bw-sector__companies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bw-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--bw-line);
    background: var(--bw-white);
    color: var(--bw-ink);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--bw-ease), border-color var(--bw-ease), color var(--bw-ease);
}

.bw-chip:hover {
    border-color: var(--bw-navy);
    color: var(--bw-navy);
}

.bw-chip[aria-current="page"] {
    border-color: var(--bw-navy);
    background: var(--bw-navy);
    color: var(--bw-white);
}

.bw-sector .bw-link {
    margin-top: auto;
}

@media (max-width: 1099.98px) {
    .bw-sectors {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .bw-sector {
        grid-template-columns: 1fr;
    }

    .bw-sector__media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}

/* Service detail: content beside a sticky sector navigator. */
.bw-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.bw-aside {
    position: sticky;
    top: calc(var(--bw-header-h) + 24px);
    display: grid;
    gap: 20px;
}

.bw-aside__block {
    padding: 24px;
    border-radius: var(--bw-radius);
    background: var(--bw-soft);
}

.bw-aside__title {
    margin: 0 0 12px;
    font-family: var(--bw-display);
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--bw-ink);
}

.bw-aside__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bw-aside__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 8px 12px;
    margin-inline: -12px;
    border-radius: var(--bw-radius-sm);
    color: var(--bw-ink);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background-color var(--bw-ease), color var(--bw-ease);
}

.bw-aside__list a:hover {
    background: var(--bw-white);
    color: var(--bw-navy);
}

.bw-aside__list a[aria-current="page"] {
    background: var(--bw-white);
    color: var(--bw-navy);
    font-weight: 700;
}

.bw-aside__list svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.bw-aside__sub {
    padding-left: 12px !important;
}

.bw-aside__sub a {
    color: var(--bw-muted);
}

@media (max-width: 991.98px) {
    .bw-detail {
        grid-template-columns: 1fr;
    }

    .bw-aside {
        position: static;
    }
}

/* Post cards and listings. ---------------------------------------------- */

.bw-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.5vw, 32px);
}

.bw-posts > li {
    display: flex;
}

.bw-posts .bw-story {
    flex: 1;
    border: 1px solid var(--bw-line);
}

.bw-posts .bw-story:hover {
    border-color: transparent;
}

.bw-story__media--card {
    aspect-ratio: 16 / 10;
}

.bw-story__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-bottom: 10px;
}

.bw-story__meta .bw-story__date {
    margin: 0;
}

.bw-story__cat {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--bw-soft);
    color: var(--bw-navy);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.bw-story__cat:hover {
    background: var(--bw-navy);
    color: var(--bw-white);
}

@media (max-width: 991.98px) {
    .bw-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .bw-posts {
        grid-template-columns: 1fr;
    }
}

.bw-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: clamp(28px, 3vw, 44px);
}

.bw-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bw-search {
    display: flex;
    align-items: stretch;
    width: min(100%, 340px);
    border: 1px solid var(--bw-muted);
    border-radius: var(--bw-radius-sm);
    background: var(--bw-white);
    overflow: hidden;
}

.bw-search:focus-within {
    outline: 3px solid var(--bw-navy);
    outline-offset: 2px;
}

.bw-search input {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    color: var(--bw-ink);
    font: 400 0.9375rem/1.4 var(--bw-sans);
}

.bw-search input:focus-visible {
    outline: none;
}

.bw-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    border: 0;
    background: var(--bw-navy);
    color: var(--bw-white);
    transition: background-color var(--bw-ease);
}

.bw-search button:hover {
    background: var(--bw-navy-deep);
}

.bw-search svg {
    width: 18px;
    height: 18px;
}

.bw-result-note {
    margin: 0 0 24px;
    color: var(--bw-muted);
}

/* Laravel's Bootstrap pagination markup, restyled. */
.bw-pager {
    margin-top: clamp(40px, 4vw, 64px);
}

.bw-pager .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bw-pager .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--bw-line);
    border-radius: var(--bw-radius-sm);
    background: var(--bw-white);
    color: var(--bw-ink);
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--bw-ease), border-color var(--bw-ease), color var(--bw-ease);
}

.bw-pager a.page-link:hover {
    border-color: var(--bw-navy);
    color: var(--bw-navy);
}

.bw-pager .active .page-link {
    border-color: var(--bw-navy);
    background: var(--bw-navy);
    color: var(--bw-white);
}

.bw-pager .disabled .page-link {
    color: #8A93A6;
    background: var(--bw-soft);
}

/* Article (post detail). ------------------------------------------------ */

.bw-article__head .bw-story__meta {
    margin-bottom: 18px;
}

.bw-article__head .bw-story__date {
    color: var(--bw-on-navy);
}

.bw-article__head .bw-story__cat {
    background: rgba(255, 255, 255, 0.14);
    color: var(--bw-white);
}

.bw-article__head .bw-story__cat:hover {
    background: var(--bw-white);
    color: var(--bw-navy);
}

.bw-pagehead .bw-display.bw-display--article {
    max-width: 28ch;
    font-size: clamp(1.875rem, 1.3rem + 2vw, 3rem);
    line-height: 1.15;
}

.bw-site .bw-article__cover {
    aspect-ratio: 16 / 9;
    margin-bottom: clamp(28px, 3vw, 40px);
    border-radius: var(--bw-radius);
}

.bw-mini-posts {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bw-mini-post {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.bw-mini-post .bw-media {
    aspect-ratio: 1 / 1;
    border-radius: var(--bw-radius-sm);
}

.bw-mini-post a {
    display: block;
    color: var(--bw-ink);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.bw-mini-post a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.bw-mini-post:hover a {
    color: var(--bw-navy);
    text-decoration: underline;
}

.bw-mini-post time {
    display: block;
    margin-bottom: 2px;
    font-size: 0.75rem;
    color: var(--bw-muted);
}

/* Galleries (our people, careers, service photos). ---------------------- */

.bw-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bw-gallery a {
    display: block;
    border-radius: var(--bw-radius);
    overflow: hidden;
}

.bw-gallery .bw-media {
    aspect-ratio: 4 / 3;
    border-radius: var(--bw-radius);
}

.bw-gallery img {
    transition: transform 400ms ease;
}

.bw-gallery a:hover img {
    transform: scale(1.04);
}

.bw-gallery--posters {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.bw-gallery--posters .bw-media {
    aspect-ratio: auto;
    background: var(--bw-soft);
}

.bw-gallery--posters img {
    height: auto;
}

.bw-gallery__caption {
    display: block;
    margin-top: 12px;
    font-weight: 700;
    color: var(--bw-ink);
}

/* Initiatives (sustainability). ----------------------------------------- */

.bw-initiatives {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.5vw, 32px);
}

.bw-initiative {
    display: flex;
    flex-direction: column;
    border-radius: var(--bw-radius);
    background: var(--bw-white);
    border: 1px solid var(--bw-line);
    overflow: hidden;
}

.bw-initiative .bw-media {
    aspect-ratio: 16 / 10;
}

.bw-initiative__body {
    padding: 22px 24px 26px;
}

.bw-initiative__body .bw-h3 {
    margin-bottom: 10px;
}

.bw-initiative__body p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--bw-muted);
}

/* The first and last initiatives span two columns, so seven items close
 * the grid without an empty slot. */
.bw-initiative--lead {
    grid-column: span 2;
    flex-direction: row;
}

.bw-initiative--lead .bw-media {
    flex: 0 0 55%;
    aspect-ratio: auto;
    min-height: 100%;
}

.bw-initiative--lead .bw-initiative__body {
    align-self: center;
}

@media (max-width: 991.98px) {
    .bw-initiatives {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .bw-initiatives {
        grid-template-columns: 1fr;
    }

    .bw-initiative--lead {
        grid-column: auto;
        flex-direction: column;
    }

    .bw-initiative--lead .bw-media {
        aspect-ratio: 16 / 10;
    }
}

/* Contact. -------------------------------------------------------------- */

.bw-contact-cards {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bw-contact-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 20px;
    border-radius: var(--bw-radius);
    background: var(--bw-soft);
}

.bw-contact-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bw-navy);
    color: var(--bw-white);
}

.bw-contact-card__icon svg {
    width: 20px;
    height: 20px;
}

.bw-contact-card__label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--bw-ink);
}

.bw-contact-card__value,
.bw-contact-card__value a {
    color: #3A404C;
    line-height: 1.6;
}

.bw-contact-card__value a {
    font-weight: 600;
    color: var(--bw-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bw-map {
    overflow: hidden;
    border-radius: var(--bw-radius);
    background: var(--bw-soft);
    aspect-ratio: 16 / 7;
}

.bw-map iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

@media (max-width: 767.98px) {
    .bw-map {
        aspect-ratio: 4 / 3;
    }
}

.bw-form-card {
    padding: clamp(24px, 3vw, 40px);
    border-radius: var(--bw-radius);
    border: 1px solid var(--bw-line);
    background: var(--bw-white);
}

.bw-form-card .bw-h2 {
    margin-bottom: 28px;
}

/* Small layout helpers for the inner pages. */
.bw-h2--sub {
    margin-bottom: 24px;
}

.bw-after {
    margin-top: 32px;
}

.bw-after-lg {
    margin-top: clamp(48px, 5vw, 64px);
}

.bw-search--block {
    width: 100%;
}

.bw-units__grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bw-units__grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1099.98px) {
    .bw-units__grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .bw-units__grid--2,
    .bw-units__grid--4 {
        grid-template-columns: 1fr;
    }
}

.bw-gallery a > .bw-media {
    display: block;
}

.bw-site address {
    font-style: normal;
}

.bw-aside__list a[aria-current] {
    background: var(--bw-white);
    color: var(--bw-navy);
    font-weight: 700;
}

.bw-empty .bw-link {
    display: flex;
    width: max-content;
    margin-top: 8px;
}

/* Pages that still use the template's .page-title banner were built for a
 * header that floated over them. The new header sits in the flow, so the
 * banner no longer needs the extra top padding. */
.bw-site .page-title {
    padding: clamp(72px, 6vw + 40px, 120px) 0 clamp(64px, 5vw + 32px, 104px);
}

.bw-site .page-title.custom-page-title {
    display: none;
}

/* Motion ---------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .bw-site *,
    .bw-site *::before,
    .bw-site *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }

    .js .bw-reveal {
        opacity: 1;
        transform: none;
    }

    .bw-unit:hover,
    .bw-story:hover {
        transform: none;
    }

    .bw-unit:hover .bw-unit__media img,
    .bw-story:hover .bw-story__media img,
    .bw-strip__item a:hover img {
        transform: none;
    }
}
