:root {
    --brand: #0a408a;
    --brand-dark: #062c61;
    --brand-deep: #041c3f;
    --accent: #ea0404;
    --accent-dark: #bc0000;
    --ink: #0b1728;
    --muted: #667085;
    --line: #dbe3ee;
    --soft: #f4f7fb;
    --white: #fff;
    --radius: 22px;
    --shadow: 0 22px 60px rgba(4, 28, 63, .13);
    --shadow-small: 0 12px 32px rgba(4, 28, 63, .09);
    --container: 1500px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 100px 0; }
.section--soft { background: var(--soft); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { width: 30px; height: 3px; border-radius: 20px; background: var(--accent); content: ""; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 60px; align-items: end; margin-bottom: 46px; }
.section-heading h2 { margin: 12px 0 0; font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1.05; letter-spacing: -.045em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; transition: .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { color: var(--white); background: var(--accent); box-shadow: 0 12px 30px rgba(234, 4, 4, .25); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--outline { color: var(--white); border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.btn--outline:hover { color: var(--brand-deep); background: var(--white); }
.btn--blue { color: var(--white); background: var(--brand); }
.btn--blue:hover { background: var(--brand-dark); }
.btn:focus-visible, .filter-btn:focus-visible, .menu-toggle:focus-visible, .carousel-btn:focus-visible, .project-card:focus-visible { outline: 3px solid #7db7ff; outline-offset: 3px; }

.topbar { color: #dbeafe; background: var(--brand-deep); font-size: .86rem; }
.topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar__group { display: flex; align-items: center; gap: 24px; }
.topbar a:hover { color: var(--white); }
.header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(219,227,238,.8); background: rgba(255,255,255,.92); backdrop-filter: blur(18px); }
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.03em; }
.logo__mark { width: 46px; aspect-ratio: 1; display: grid; place-items: center; color: var(--white); border-radius: 14px; background: linear-gradient(145deg, var(--brand), var(--brand-deep)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); font-size: 1.35rem; }
.logo__text strong, .logo__text span { display: block; }
.logo__text strong { font-size: 1.08rem; line-height: 1; }
.logo__text span { margin-top: 5px; color: var(--muted); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: 25px; font-size: .94rem; font-weight: 750; }
.nav__links a { position: relative; }
.nav__links a:not(.btn)::after { position: absolute; bottom: -8px; left: 0; width: 0; height: 2px; background: var(--accent); content: ""; transition: width .2s ease; }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; color: var(--brand-deep); border: 0; border-radius: 12px; background: var(--soft); cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 20px; height: 2px; margin: 5px auto; background: currentColor; content: ""; transition: .2s ease; }

.page-hero { position: relative; min-height: 600px; display: grid; align-items: center; overflow: hidden; color: var(--white); background: linear-gradient(100deg, rgba(4,28,63,.97) 0%, rgba(4,28,63,.88) 48%, rgba(10,64,138,.55) 100%), var(--hero-image) center/cover; }
.page-hero::before { position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to right, black, transparent 80%); content: ""; }
.page-hero::after { position: absolute; right: -180px; bottom: -330px; width: 650px; height: 650px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018); content: ""; }
.page-hero__content { position: relative; z-index: 2; max-width: 850px; padding: 92px 0 120px; }
.page-hero .eyebrow { color: #b9d8ff; }
.page-hero h1 { max-width: 800px; margin: 18px 0 24px; font-size: clamp(3.25rem, 7vw, 6.8rem); line-height: .92; letter-spacing: -.065em; }
.page-hero h1 span { color: #7db7ff; }
.page-hero__lead { max-width: 710px; margin: 0; color: #dbeafe; font-size: clamp(1.05rem, 2vw, 1.24rem); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-strip { position: relative; z-index: 4; margin-top: -48px; }
.hero-strip__inner { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid rgba(219,227,238,.75); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.hero-strip__item { min-height: 112px; display: flex; align-items: center; gap: 16px; padding: 26px 30px; border-right: 1px solid var(--line); }
.hero-strip__item:last-child { border-right: 0; }
.hero-strip__icon { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; color: var(--brand); border-radius: 13px; background: #eaf2ff; font-size: 1.15rem; font-weight: 900; }
.hero-strip__item strong, .hero-strip__item span { display: block; }
.hero-strip__item strong { line-height: 1.2; }
.hero-strip__item div span { color: var(--muted); font-size: .88rem; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-btn { min-height: 44px; padding: 0 18px; color: #42526a; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 800; cursor: pointer; transition: .2s ease; }
.filter-btn:hover { color: var(--brand); border-color: #a8c5ec; }
.filter-btn.is-active { color: var(--white); border-color: var(--brand); background: var(--brand); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project-card { position: relative; min-height: 430px; display: flex; align-items: flex-end; overflow: hidden; padding: 28px; color: var(--white); border: 0; border-radius: var(--radius); background: var(--brand-dark) var(--project-image) center/cover; box-shadow: var(--shadow-small); cursor: pointer; isolation: isolate; text-align: left; transition: transform .3s ease, box-shadow .3s ease; }
.project-card::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(to top, rgba(2,15,35,.97), rgba(4,28,63,.2) 65%, rgba(4,28,63,.05)); content: ""; }
.project-card::after { position: absolute; z-index: -1; inset: 0; border: 1px solid rgba(255,255,255,.18); border-radius: inherit; content: ""; pointer-events: none; }
.project-card:hover { transform: translateY(-7px); box-shadow: 0 28px 60px rgba(4,28,63,.2); }
.project-card[hidden] { display: none; }
.project-card__content { width: 100%; }
.project-card__topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.project-card__category { color: #b9d8ff; font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.project-card__arrow { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(255,255,255,.1); transition: .25s ease; }
.project-card:hover .project-card__arrow { color: var(--brand-deep); background: var(--white); }
.project-card h3 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.13; letter-spacing: -.035em; }
.project-card p { margin: 10px 0 0; color: #dbeafe; font-size: .92rem; }
.empty-state { padding: 64px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); text-align: center; }
.empty-state__icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 20px; color: var(--white); border-radius: 18px; background: linear-gradient(145deg, var(--brand), var(--brand-deep)); font-size: 1.35rem; font-weight: 900; }
.empty-state h3 { margin: 0; font-size: 1.55rem; }
.empty-state p { max-width: 560px; margin: 10px auto 24px; color: var(--muted); }

.testimonial-shell { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.testimonial-main { min-height: 460px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(34px, 6vw, 68px); }
.quote-mark { color: var(--accent); font-family: Georgia, serif; font-size: 5.6rem; line-height: .65; }
.testimonial-slide { display: none; animation: fade .4s ease; }
.testimonial-slide.is-active { display: block; }
.testimonial-quote { max-width: 740px; margin: 25px 0 32px; font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.4; letter-spacing: -.03em; }
.testimonial-meta { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar { width: 52px; height: 52px; display: grid; place-items: center; color: var(--white); border-radius: 50%; background: linear-gradient(145deg, var(--brand), var(--brand-deep)); font-weight: 900; }
.testimonial-avatar--photo { object-fit: cover; }
.testimonial-meta strong, .testimonial-meta span { display: block; }
.testimonial-meta span { color: var(--muted); font-size: .88rem; }
.testimonial-controls { display: flex; align-items: center; gap: 12px; margin-top: 36px; }
.carousel-btn { width: 46px; height: 46px; display: grid; place-items: center; color: var(--brand); border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; transition: .2s ease; }
.carousel-btn:hover { color: var(--white); border-color: var(--brand); background: var(--brand); }
.testimonial-count { margin-left: 8px; color: var(--muted); font-size: .85rem; font-weight: 800; }
.testimonial-empty h3 { margin: 30px 0 8px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.testimonial-empty p { color: var(--muted); }
.testimonial-aside { position: relative; min-height: 460px; overflow: hidden; color: var(--white); background: linear-gradient(145deg, rgba(10,64,138,.9), rgba(4,28,63,.97)), var(--testimonial-image) center/cover; }
.testimonial-aside::before { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 50px 50px; content: ""; }
.testimonial-aside__content { position: absolute; z-index: 2; right: 34px; bottom: 34px; left: 34px; padding: 25px; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; background: rgba(4,28,63,.58); backdrop-filter: blur(12px); }
.testimonial-aside__content strong, .testimonial-aside__content span { display: block; }
.testimonial-aside__content strong { margin-bottom: 7px; font-size: 1.1rem; }
.testimonial-aside__content span { color: #cfe0f5; font-size: .9rem; }

.cta { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(120deg, var(--brand), var(--brand-deep)); }
.cta::after { position: absolute; top: -260px; right: -110px; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); content: ""; }
.cta__inner { position: relative; z-index: 2; min-height: 360px; display: flex; align-items: center; justify-content: space-between; gap: 50px; padding-block: 74px; }
.cta h2 { max-width: 720px; margin: 0; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.055em; }
.cta p { max-width: 650px; margin: 18px 0 0; color: #cfe0f5; }
.cta__actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 12px; }

.footer { padding: 78px 0 24px; color: #d7e0ed; background: #03142e; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .7fr .8fr 1fr; gap: 52px; }
.footer .logo__text span, .footer p { color: #9fb0c7; }
.footer h4 { margin: 0 0 20px; color: var(--white); }
.footer ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.footer li, .footer a { color: #aebed2; }
.footer a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 54px; padding-top: 22px; color: #8092aa; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }

.project-dialog { width: min(680px, calc(100% - 32px)); max-height: min(860px, calc(100dvh - 32px)); padding: 0; overflow: auto; color: var(--ink); border: 0; border-radius: var(--radius); box-shadow: 0 35px 100px rgba(2,15,35,.38); }
.project-dialog::backdrop { background: rgba(2,15,35,.72); backdrop-filter: blur(5px); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 30px 30px 22px; color: var(--white); background: linear-gradient(120deg, var(--brand), var(--brand-deep)); }
.dialog-header small { color: #b9d8ff; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.dialog-header h3 { margin: 7px 0 0; font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.1; }
.dialog-close { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; color: var(--white); border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(255,255,255,.08); cursor: pointer; font-size: 1.4rem; }
.dialog-body { padding: 30px; }
.dialog-body > p { margin: 0 0 22px; color: var(--muted); }
.dialog-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dialog-fact { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.dialog-fact[hidden], [data-dialog-field-container][hidden] { display: none; }
.dialog-fact span, .dialog-fact strong { display: block; }
.dialog-fact span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.dialog-fact strong { margin-top: 4px; }
.dialog-testimonial { margin-top: 22px; padding: 23px; border-left: 4px solid var(--accent); border-radius: 0 15px 15px 0; background: #fff6f6; }
.dialog-testimonial[hidden] { display: none; }
.dialog-testimonial__label { color: var(--accent-dark); font-size: .72rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.dialog-testimonial blockquote { margin: 11px 0 18px; font-size: 1.05rem; font-weight: 650; }
.dialog-testimonial__customer { display: flex; align-items: center; gap: 10px; }
.dialog-testimonial__avatar { width: 36px; height: 36px; display: grid; place-items: center; color: var(--white); border-radius: 50%; background: var(--brand); font-size: .75rem; font-weight: 900; }
.dialog-testimonial__customer strong, .dialog-testimonial__customer span { display: block; }
.dialog-testimonial__customer span { color: var(--muted); font-size: .8rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.unpublished-page { min-height: 58vh; display: grid; align-items: center; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
    .menu-toggle { display: block; }
    .nav__links { position: absolute; top: 82px; right: 20px; left: 20px; display: none; align-items: stretch; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
    .nav__links.is-open { display: flex; }
    .nav__links a { padding: 9px; }
    .section-heading { grid-template-columns: 1fr; gap: 20px; }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .project-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .testimonial-shell { grid-template-columns: 1fr; }
    .testimonial-aside { min-height: 320px; }
    .cta__inner { align-items: flex-start; flex-direction: column; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .container { width: calc(100% - 28px); }
    .topbar { display: none; }
    .nav { min-height: 74px; }
    .logo__mark { width: 42px; }
    .logo__text strong { font-size: .98rem; }
    .logo__text span { font-size: .61rem; }
    .nav__links { top: 74px; right: 14px; left: 14px; }
    .page-hero { min-height: 590px; }
    .page-hero__content { padding: 80px 0 104px; }
    .page-hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
    .hero-strip { margin-top: -28px; }
    .hero-strip__inner { grid-template-columns: 1fr; }
    .hero-strip__item { min-height: 90px; padding: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
    .hero-strip__item:last-child { border-bottom: 0; }
    .section { padding: 74px 0; }
    .project-grid { grid-template-columns: 1fr; }
    .project-card, .project-card:last-child:nth-child(odd) { min-height: 390px; grid-column: auto; }
    .testimonial-main { min-height: 400px; padding: 34px 24px; }
    .testimonial-aside { min-height: 280px; }
    .testimonial-aside__content { right: 20px; bottom: 20px; left: 20px; }
    .dialog-facts { grid-template-columns: 1fr; }
    .cta__actions { width: 100%; }
    .cta__actions .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* Brinell header logo image */
.header .logo__mark--image {
    width: 190px;
    height: 72px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.header .logo__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left bottom;
}