@charset "UTF-8";

:root {
    --red: #c8000b;
    --ink: #1b1b1b;
    --muted: #777;
    --gutter: 5%;
    --rail: clamp(146px, 16vw, 220px);
    --header-height: calc(var(--rail) * 150 / 274);
    --gap: clamp(16px, 1.75vw, 25px);
    --side-width: clamp(46px, 5.6vw, 80px);
}

* { box-sizing: border-box; }

html {
    color: var(--ink);
    background: #fff;
    --header-clearance: calc(var(--header-height) + 15px);
    scroll-padding-top: var(--header-clearance);
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.5;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
button { border: none; background: transparent; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #c8000b; outline-offset: 3px; }
.full-art { width: 100%; height: auto; }
.hero-art { overflow: hidden; }
.hero-art, .billboard .carousel-slide { position: relative; isolation: isolate; }
.hero-art > .full-art, .billboard .carousel-slide img:not(.media-preview) { position: relative; z-index: 1; }
.hero-art .media-preview, .billboard .carousel-slide .media-preview {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill;
    z-index: 0; pointer-events: none; filter: blur(5px); transform: scale(1.025);
}
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
    [data-parallax] > .full-art, .billboard .carousel-slide img:not(.media-preview), .company-summary .summary-background {
        transform: translate3d(0, var(--photo-travel, 0px), 0) scale(var(--photo-scale, 1));
    }
}
.mobile-only { display: none !important; }
.preserve-lines { white-space: pre-line; }

.sr-only, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    padding: 8px 16px;
    background: white;
}

.masthead {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    height: var(--header-height);
    background: #fff;
}

.masthead-inner {
    width: 90%;
    display: flex;
    align-items: flex-end;
    margin: 0 auto;
}

.brand { flex: 0 0 var(--rail); }
.brand img { width: 100%; }
.desktop-nav { display: flex; width: 70%; }
.desktop-nav a {
    flex: 1;
    text-align: center;
    font-size: 16px;
    line-height: 30px;
    white-space: nowrap;
}
.desktop-nav a[aria-current], .desktop-nav a:hover { font-weight: 700; }

#main { padding-top: var(--header-height); min-height: 50vh; }

.case-sidebar {
    position: fixed;
    z-index: 16;
    top: calc(var(--header-height) + 15px);
    left: var(--gutter);
    width: var(--rail);
    max-height: calc(100dvh - var(--header-height) - 25px);
    overflow-y: auto;
    scrollbar-width: thin;
}
.case-sidebar details + details { margin-top: 15px; }
.case-sidebar summary {
    display: grid;
    place-items: center;
    min-height: 60px;
    color: #fff;
    background: var(--red);
    list-style: none;
    font-size: 16px;
}
.case-sidebar summary::-webkit-details-marker { display: none; }
.category-menu a {
    display: block;
    padding: 9px 6% 10px;
    color: #333;
    background: #f3f3f3;
}
.category-menu a:nth-child(even) { background: #e5e3e4; }
.category-menu span { display: block; font-size: 16px; line-height: 23px; }
.category-menu small { display: block; color: #858585; font-size: 12px; line-height: 15px; }
.category-menu a:hover, .category-menu a[aria-current],
.industry-menu a:hover, .industry-menu a[aria-current] { background: #6a6a6a; color: #fff; }
.category-menu a:hover small, .category-menu a[aria-current] small { color: #eee; }

.industry-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
}
.industry-menu a {
    display: grid;
    align-items: center;
    min-height: 38px;
    padding: 3px;
    background: #f3f3f3;
    font-size: 12px;
}
.industry-menu a:nth-child(4n + 2), .industry-menu a:nth-child(4n + 3) { background: #e5e3e4; }
.industry-menu a[aria-current], .industry-menu a:hover { background: #6a6a6a; }

.tools-rail {
    position: fixed;
    z-index: 19;
    right: 5px;
    bottom: 8%;
    width: var(--side-width);
    display: grid;
    gap: 5px;
}
.tools-rail a {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    background: var(--red);
}
.tools-rail a:hover { background: #a00008; }
.tools-rail img { width: 80%; }
.tools-rail a[data-to-top] img { width: 60%; }

.carousel { position: relative; isolation: isolate; }
.carousel-track { overflow: hidden; }
.carousel-slide img { width: 100%; }
.billboard .carousel-track { aspect-ratio: 2527 / 884; background: #f4f4f4; }
.billboard .carousel-slide, .billboard .carousel-slide a { height: 100%; display: block; }
.billboard .carousel-slide img { width: 100%; height: 100%; object-fit: contain; }

.carousel-dots {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(-50%);
}
.carousel-dots button {
    width: 22px;
    height: 25px;
    display: grid;
    place-items: center;
}
.carousel-dots button::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.66);
}
.carousel-dots button[aria-pressed="true"]::before { background: rgba(200,0,11,.85); }
.carousel [hidden] { display: none; }

.home-works, .homepage-news {
    width: 60%;
    margin-left: max(22%, calc(var(--gutter) + var(--rail) + var(--gap)));
}
.home-works { margin-top: 100px; }
.raster-heading { width: 30%; margin: 0 auto 40px; }
.raster-heading img { width: 100%; }

.work-mosaic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas: "a b c" "a b d" "e g g" "f g g" "h h i" "h h j";
    aspect-ratio: 1 / 1.46;
    gap: 10px;
    padding-right: 10px;
}
.tile-3 { grid-area: a; }
.tile-4 { grid-area: b; }
.tile-5 { grid-area: c; }
.tile-6 { grid-area: d; }
.tile-7 { grid-area: e; }
.tile-8 { grid-area: f; }
.tile-9 { grid-area: g; }
.tile-10 { grid-area: h; }
.tile-11 { grid-area: i; }
.tile-12 { grid-area: j; }
.mosaic-tile { position: relative; min-height: 0; overflow: hidden; }
.mosaic-tile a, .mosaic-tile img { display: block; width: 100%; height: 100%; }
.mosaic-tile img { object-fit: cover; transition: transform .45s; }
.mosaic-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    gap: 10px;
    padding: 12px;
    color: #fff;
    background: #000b;
    text-align: center;
    opacity: 0;
    transition: opacity .22s;
}
.mosaic-caption strong { font-size: 20px; padding-bottom: 9px; border-bottom: 1px solid #fff; }
.mosaic-caption span { font-size: 12px; letter-spacing: 3px; }
.mosaic-tile a:hover .mosaic-caption, .mosaic-tile a:focus-visible .mosaic-caption { opacity: 1; }
.mosaic-tile a:hover img { transform: scale(1.035); }
.works-more { display: block; width: min(200px, 40%); margin: 60px auto 0; }
.works-more img { width: 100%; }

.company-summary {
    margin: 30px 0;
    padding: 30px 20%;
    text-align: center;
    color: #fff;
    background: #777;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.summary-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; z-index: -1; }
.company-summary h2 { width: 40%; margin: 0 auto; }
.company-summary h2 img { width: 100%; }
.summary-text {
    display: block;
    margin: 10px auto;
    font-size: 16px;
    line-height: 2.45;
    letter-spacing: 1px;
    white-space: pre-line;
}
.summary-text:hover { text-decoration: underline; }
.summary-figures { width: 80%; margin: 30px auto; display: flex; align-items: center; justify-content: space-around; }
.summary-figures img:nth-child(odd) { width: 22%; }
.summary-figures img:nth-child(even) { width: 5%; }

.homepage-news {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 4%;
    margin-block: 60px;
}
.homepage-news h2 img { width: 63%; margin: 0 auto 30px; }
.homepage-news li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 2px dotted #eee;
    font-size: 14px;
}
.homepage-news li a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.homepage-news li a:hover, .news-more:hover { color: var(--red); text-decoration: underline; }
.homepage-news time { color: #888; font-size: 12px; white-space: nowrap; }
.news-more { display: block; font-size: 14px; color: var(--muted); text-align: center; padding: 10px; }

.why-midear { margin-top: 100px; }
.why-midear > h2 { width: 22%; margin: 0 auto 40px; }
.why-midear > h2 img { width: 100%; }
.highlight-buttons { width: 60%; margin: auto; padding: 45px 0; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; }
.highlight-buttons > * { width: 75%; justify-self: center; opacity: .45; }
.highlight-buttons > :nth-child(2) { margin-top: 70px; }
.highlight-buttons > :nth-child(3) { width: 60%; justify-self: end; }
.highlight-buttons > :nth-child(4) { width: 40%; margin-top: 30px; }
.highlight-buttons > :hover, .highlight-buttons > :focus-visible, .highlight-buttons > [aria-expanded=true] { opacity: 1; }
.highlight-panel {
    --panel-top: 35px;
    --panel-bottom: 40px;
    --image-room: calc(100svh - var(--header-clearance) - var(--panel-top) - var(--panel-bottom));
    position: relative;
    padding-block: var(--panel-top) var(--panel-bottom);
    padding-inline: max(20%, calc(var(--gutter) + var(--rail) + var(--gap))) 20%;
    background: #eee;
}
.highlight-panel img { width: 100%; }
.panel-close { position: absolute; right: 12%; top: 3px; font-size: 27px; color: #666; }
.client-logos, .team-portraits {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: clamp(4px, .6vw, 24px);
}
.team-portraits, .client-carousel { margin-inline: auto; }
/* Nine columns of square originals, eight team rows or five client rows plus the pager. */
.team-portraits { max-width: max(32rem, calc(var(--image-room) * 9 / 8)); }
.client-carousel { max-width: max(32rem, calc((var(--image-room) - 43px) * 9 / 5)); }
.client-carousel .carousel-dots { position: relative; width: max-content; margin-top: 18px; bottom: auto; }
.client-carousel button[aria-pressed="false"]::before { background: #aaa; }
@media (any-hover: hover) {
    .why-midear .client-logos img { filter: grayscale(1); transition: filter .24s ease-out; }
    .why-midear .client-logos img:hover { filter: none; }
}

.case-content {
    margin: 25px var(--gutter) 45px calc(var(--gutter) + var(--rail) + var(--gap));
    min-height: 235px;
}
.case-group + .case-group { margin-top: 16px; }
.case-group-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; color: #777; }
.case-group-heading h2 { font-size: 19px; font-weight: 400; }
.case-group-heading a { font-size: 12px; }
.case-grid { display: grid; gap: 20px 1%; }
.overview-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
.overview-grid > :nth-child(6) { display: none; }
.filtered-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
.case-card { padding: 4% 4% 10px; margin-top: 10px; min-width: 0; transition: box-shadow .2s; }
.case-card:hover, .case-card:focus-within { box-shadow: 0 2px 14px #0004; }
.case-card a { display: block; }
.case-card-image { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.case-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.case-card a:hover img { transform: scale(1.04); }
.case-card-caption { min-height: 65px; padding: 17px 3% 12px; border-bottom: 1px solid #e8e8e8; }
.case-card-caption span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; }
.case-card-caption small { font-size: 12px; color: #888; }
.project-search, .inquiry { margin: 25px 0; color: #777; }
.project-search summary, .inquiry summary { width: fit-content; font-size: 14px; }
.project-search form { display: flex; gap: 10px; margin: 15px 0; }
.project-search input, .inquiry input:not([type="checkbox"]), .inquiry textarea { border: 1px solid #ccc; padding: 8px 12px; border-radius: 0; }
.project-search button, .inquiry button { padding: 7px 20px; background: var(--red); color: #fff; }
.project-search input { max-width: 74%; }
.empty-state { padding: 30px 0; color: #777; }
.empty-state a, .return-link { color: var(--red); text-decoration: underline; }

.pagination { margin: 25px 0; display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; }
.pagination > * { min-width: 30px; min-height: 32px; padding: 5px 8px; border: 1px solid #e1e1e1; text-align: center; font-size: 12px; }
.pagination .current, .pagination a:hover { color: white; background: var(--red); border-color: var(--red); }
.pagination .disabled { color: #999; }

.project-detail { margin-right: 15%; }
.project-album { display: flex; flex-wrap: wrap; align-items: flex-start; }
.album-slot { width: 100%; min-width: 0; }
.album-slot img, .album-slot video { width: 100%; display: block; }
.album-slot video { background: #111; max-height: 85vh; }
.album-slot.slot-2.paired, .album-slot.slot-3.paired { width: 50%; }
.album-slot.slot-5.paired { width: 48.75%; }
.album-slot.slot-6.paired { width: 51.25%; }
.album-slot.slot-7.paired { width: 53.5%; }
.album-slot.slot-8.paired { width: 46.5%; }
.album-slot.slot-9.paired { width: 60.6%; }
.album-slot.slot-10.paired { width: 39.4%; }
.video-link { display: block; text-align: center; padding: 8px 12px; background: #302e2e; color: #fff; }
.project-notes { font-size: 14px; padding: 20px 0; color: #666; }
.project-notes h2 { font-size: 20px; color: #333; font-weight: 500; }
.project-notes details { margin-top: 10px; }
.project-notes h3 { margin: 16px 0 4px; font-size: 15px; }
.related-projects h2 img { width: 20%; margin: 40px auto; }

.about-section h2 img, .service-page h1 img { width: 100%; }
.about-body img { width: 100%; }
.about-body.company-introduction { width: 64%; margin: 50px auto; font-size: 14px; line-height: 25px; color: #777; }
.company-introduction p { margin-bottom: 15px; }
.company-introduction p span { color: var(--red); font-weight: 700; }
.text-heading { width: 70%; margin: 25px auto; color: #333; font-size: 22px; }
.service-tiles {
    width: 70%;
    display: grid;
    grid-template-columns: repeat(8,minmax(0,1fr));
    gap: 0 1.9%;
    margin: 40px auto;
}
.service-tiles a { grid-column: span 2; }
.service-tiles a:nth-child(5) { grid-column: 2 / span 2; }
.service-tiles a:nth-child(n+5) { margin-top: -8%; }
.service-tiles img { width: 100%; transition: transform .2s; }
.service-tiles a:hover img { transform: scale(1.02); }

.news-list-area { width: min(60%, 1100px); margin: 30px 0 65px max(20%, calc(var(--gutter) + var(--rail) + var(--gap))); }
.news-switch { display: flex; gap: 22px; color: #777; padding-bottom: 12px; border-bottom: 1px solid #eee; font-size: 14px; }
.news-switch [aria-current] { color: var(--red); }
.article-list li { border-bottom: 2px dotted #f1f1f1; }
.article-list a { position: relative; display: block; padding: 12px 140px 12px 2%; }
.article-list a:hover { background: #f3f3f3; }
.article-list span { display: block; font-size: 15px; }
.article-list small { display: block; margin-top: 5px; color: #888; font-size: 12px; }
.article-list time { position: absolute; top: 15px; right: 2%; color: #888; font-size: 12px; }
.article-detail { width: 60%; margin: 0 auto; padding: 60px 0 45px; }
.article-detail h1 { text-align: center; font-weight: 500; font-size: 24px; }
.article-date { color: #888; text-align: right; margin: 30px 0; font-size: 14px; }
.rich-content { overflow-wrap: anywhere; font-size: 15px; line-height: 2; }
.rich-content p { margin: 0 0 .8em; }
.rich-content img { max-width: 100%; height: auto !important; margin: 12px auto; }
.rich-content video { max-width: 100%; }
.rich-content a { color: #245da3; text-decoration: underline; }
.rich-content table { max-width: 100%; border-collapse: collapse; }
.rich-content th, .rich-content td { border: 1px solid #ddd; padding: 6px; }
.return-link { display: inline-block; font-size: 13px; margin-top: 22px; }

.hiring-hero { position: relative; background: #f7f7f7; }
.job-options { position: absolute; inset: auto 1% 10%; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.job-options button {
    padding: 8px 13px;
    background: #ffffff4d;
    color: #fff;
    border: 1px solid #ffffff9c;
    box-shadow: 0 3px 7px #0002;
    backdrop-filter: blur(8px);
    text-shadow: 0 1px 2px #0008;
    font-size: 15px;
}
.job-options small { display: block; font-size: 12px; }
.job-options button:hover { color: #222; background: #ffffffe0; text-shadow: none; }
.jobs-next { display: block; width: 60px; margin: -1% auto 0; position: relative; padding-bottom: 6px; }
.jobs-next img { height: 27px; margin: auto; opacity: .6; }
.job-dialog { width: min(440px, 90vw); max-height: 88dvh; padding: 28px; border: 0; color: #555; }
.job-dialog::backdrop { background: #000b; }
.job-dialog form { text-align: right; }
.job-dialog form button, .panel-close { display: inline-grid; min-width: 35px; min-height: 35px; place-content: center; font-size: 25px; }
.job-dialog .job-label { font-size: 22px; color: #c41436; margin-bottom: 8px; }
.job-dialog h2 { font-size: 16px; font-weight: 500; }
.job-description { margin-top: 28px; font-size: 13px; }
.job-email { margin-top: 25px; font-size: 13px; }
.job-email a { color: var(--red); }
.careers-intro { width: 80%; margin: 20px auto; }
.team-collage { width: 94%; margin: 10px auto; }
.collage-row { display: flex; gap: 10px; padding-bottom: 10px; align-items: stretch; }
.collage-row img { flex: 1 1 0; min-width: 0; width: 0; object-fit: cover; }
.collage-row img.double { flex-grow: 2; }

.contact-main { width: 67%; margin: 30px auto 70px; }
.contact-main h1 { color: var(--red); font-size: clamp(24px,2.45vw,36px); margin-bottom: 50px; }
.contact-columns { display: grid; grid-template-columns: 1.5fr 1fr auto; align-items: start; gap: 18px; }
.contact-lines p { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; font-size: clamp(15px,1.4vw,21px); color: #777; }
.contact-lines img { flex: none; width: 30px; }
.contact-qq { display: flex; align-items: flex-start; gap: 12px; color: #777; line-height: 2; }
.contact-qq img { width: 30px; }
.contact-qr { width: clamp(80px,8vw,130px); }
.contact-main a:hover { color: var(--red); }
.inquiry { padding-top: 15px; border-top: 1px solid #eee; }
.inquiry > form { margin-top: 16px; max-width: 680px; }
.inquiry label { display: block; font-size: 13px; }
.inquiry input:not([type="checkbox"]), .inquiry textarea { width: 100%; display: block; margin: 5px 0 15px; font-size: 14px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.consent { margin: 8px 0 16px; }
.consent input { accent-color: var(--red); width: 16px; height: 16px; vertical-align: middle; }
.form-errors, .form-success { margin-top: 15px; padding: 12px; background: #f8eeee; color: #9c0011; }
.form-success { background: #eef6eb; color: #375e2b; }

.charity-menu { width: 80%; margin: 0 auto; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 2%; padding: 35px 0; text-align: center; }
.charity-menu a { padding: 12px 0; color: #777; }
.charity-menu a:hover, .charity-menu a[aria-current] { background: #f5f5f5; color: var(--red); }
.charity-menu img { width: 70%; margin: 0 auto 13px; }
.charity-montage { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.charity-montage img { width: 100%; }
.charity-list, .charity-detail { width: 80%; margin: 25px auto 40px; }
.charity-list h2 { font-size: 20px; margin-bottom: 15px; }
.location-page { width: 86%; margin: 45px auto; }
.location-page h1 { color: var(--red); margin-bottom: 14px; font-size: 28px; }
.location-map { display: block; margin: 20px 0; }
.location-map img { width: 100%; }
.location-map span { display: block; padding: 10px 0; color: var(--red); }

.site-footer { width: 100%; }
.footer-map img { width: 100%; }
.footer-info {
    display: grid;
    grid-template-columns: 21% 20% 17% 1fr;
    gap: 5.5%;
    align-items: center;
    padding: 35px 3%;
    min-height: 200px;
    background: #666 url('/legacy/Public/admin/images/footer_bg.jpg') center / 100% 100% no-repeat;
    color: #fafafa;
    font-size: 12px;
    line-height: 2;
}
.footer-intro { font-size: 14px; line-height: 1.6; }
.footer-address img { width: 70%; margin-bottom: 6px; }
.footer-info a:hover, .footer-links a:hover { text-decoration: underline; }
.footer-links { text-align: center; background: #333; color: #fff; padding: 14px 3%; font-size: 12px; }
.footer-links a { margin: 0 9px; }

@media (min-width: 768px) and (max-width: 1150px) {
    :root { --gutter: 4%; }
    .desktop-nav { width: calc(100% - var(--rail)); }
    .desktop-nav a { font-size: 14px; }
    .case-sidebar summary { font-size: 14px; min-height: 45px; }
    .category-menu a { padding: 6px 7%; }
    .category-menu span { font-size: 14px; line-height: 21px; }
    .category-menu small { font-size: 10px; }
    .case-sidebar details + details { margin-top: 10px; }
    .home-works, .homepage-news { width: calc(100% - var(--rail) - var(--gutter) * 2 - var(--gap) - var(--side-width)); }
    .home-works { margin-top: 65px; }
    .filtered-grid, .overview-grid { grid-template-columns: repeat(auto-fit,minmax(116px,1fr)); }
    .project-detail { margin-right: calc(var(--side-width) + 12px); }
    .summary-text { font-size: 14px; }
    .contact-main { width: 82%; }
    .contact-columns { grid-template-columns: 1.4fr 1fr auto; }
    .job-options { gap: 5px; }
    .job-options button { font-size: 12px; padding: 6px; }
    .job-options small { font-size: 10px; }
}

@media (max-width: 767px) {
    :root { --header-height: 0px; --gutter: 4%; }
    .desktop-only, .masthead { display: none !important; }
    .mobile-only { display: block !important; }
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
    #main { padding-top: 0; }
    .mobile-nav {
        position: fixed;
        z-index: 30;
        bottom: 0;
        left: 0;
        right: 0;
        min-height: 55px;
        padding: 5px 0 calc(5px + env(safe-area-inset-bottom));
        background: white;
        border-top: 1px solid #e8e8e8;
        display: grid !important;
        grid-template-columns: repeat(5,1fr);
    }
    .mobile-nav a { display: grid; justify-items: center; align-content: center; gap: 2px; color: #888; font-size: 11px; }
    .mobile-nav img { width: 25px; height: 25px; object-fit: contain; }
    .mobile-nav [aria-current] { color: #c4141f; }
    .carousel-dots { bottom: 1px; }
    .carousel-dots button { width: 18px; height: 23px; }
    .carousel-dots button::before { width: 7px; height: 7px; }
    .mobile-home { width: 92%; margin: 15px auto 25px; }
    .mobile-categories { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px 4%; margin: 0 auto 14px; }
    .mobile-categories a, .service-tiles a { text-align: center; color: #666; font-size: 13px; }
    .mobile-categories img, .service-tiles img { width: 80%; aspect-ratio: 1; margin: auto; object-fit: contain; }
    .mobile-categories span { display: block; padding: 4px 0; }
    .mobile-case-filter { background: #fafafa; }
    .mobile-case-filter form { display: flex; width: 100%; }
    .mobile-case-filter label { flex: 1; }
    .mobile-case-filter select { width: 100%; background: #fff; border: 0; border-bottom: 1px solid #ddd; min-height: 42px; text-align: center; font-size: 14px; }
    .case-content { margin: 15px 4% 30px; }
    .case-group + .case-group { margin-top: 17px; }
    .case-group-heading { align-items: baseline; gap: 12px; }
    .case-group-heading h2 { font-size: 16px; color: #333; }
    .case-group-heading small { display: inline !important; font-size: 10px; color: #777; padding-left: 5px; }
    .case-group-heading a { font-size: 11px; flex: none; }
    .case-grid, .filtered-grid, .overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 4%; }
    .overview-grid > :nth-child(6) { display: block; }
    .case-card { margin: 0; padding: 0; background: #fff; box-shadow: 0 1px 8px #0002; }
    .case-card-image { width: 92%; margin: 4% auto; }
    .case-card-caption { border: 0; min-height: auto; padding: 8px 6px; background: #f3f3f3; text-align: center; color: #666; }
    .case-card-caption span { font-size: 13px; }
    .case-card-caption small { display: none; }
    .homepage-news { width: 92%; margin: 28px auto; grid-template-columns: 1fr; gap: 24px; }
    .homepage-news h2 img { width: 48%; margin-bottom: 10px; }
    .homepage-news li { font-size: 13px; padding: 8px 0; }
    .homepage-news time, .news-more { font-size: 11px; }
    .project-detail { margin: 0 0 25px; }
    .project-notes, .related-projects { margin: 0 4%; }
    .related-projects h2 img { width: 40%; margin: 22px auto; }
    .project-search { font-size: 12px; }
    .about-section h2 img { display: none; }
    .about-section h2 { text-align: center; font-size: 22px; color: #555; font-weight: 500; }
    .about-section h2 span { margin: 22px auto 12px; }
    .about-body.company-introduction { width: 92%; margin: 15px auto; font-size: 14px; }
    .service-tiles { width: 92%; display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; margin: 20px auto; }
    .service-tiles a, .service-tiles a:nth-child(5) { grid-column: auto; }
    .service-tiles a:nth-child(n+5) { margin-top: 0; }
    .service-tiles a span { margin-top: 5px; }
    .news-list-area, .article-detail, .charity-list, .charity-detail { width: 92%; margin: 20px auto; padding: 0; }
    .news-switch { font-size: 13px; }
    .article-list a { padding: 12px 0; }
    .article-list time { position: static; display: block; margin-top: 5px; font-size: 11px; }
    .article-detail h1 { font-size: 21px; }
    .article-date { margin: 15px 0; font-size: 12px; }
    .rich-content { font-size: 14px; }
    .rich-content table { display: block; overflow-x: auto; }
    .job-options { position: static; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; padding: 1px; }
    .job-options button { color: #555; background: #fff; text-shadow: none; padding: 10px 4px; border: 0; box-shadow: none; font-size: 14px; }
    .job-options small { font-size: 10px; }
    .jobs-next { margin: 5px auto; width: 38px; }
    .jobs-next img { height: 16px; }
    .team-collage { width: 100%; margin: 0; }
    .collage-row { gap: 3px; padding-bottom: 3px; }
    .contact-main { width: 92%; margin: 24px auto; }
    .contact-main h1 { margin-bottom: 25px; font-size: 22px; }
    .contact-columns { grid-template-columns: 1fr; }
    .contact-lines p { gap: 10px; font-size: 14px; margin-bottom: 12px; }
    .contact-lines img, .contact-qq img { width: 22px; }
    .contact-qq { font-size: 14px; }
    .contact-qr { width: 115px; }
    .field-grid { grid-template-columns: 1fr; }
    .charity-menu { width: 94%; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 15px 0; }
    .charity-menu a { font-size: 11px; padding: 3px; }
    .charity-menu img { margin-bottom: 5px; }
    .footer-info { display: none; }
    .footer-links { padding: 12px 4%; font-size: 10px; }
    .footer-links a, .footer-links .mobile-only { display: inline-block !important; margin: 2px 5px; }
}

@media (min-width: 768px) {
    .contact-columns { grid-template-columns: 51% 1fr; }
    .contact-lines { grid-row: 1 / 3; }
    .contact-qr { grid-column: 2; }
}
@media (max-width: 767px) {
    .hiring-hero > .full-art, .hiring-hero > .jobs-next { display: none; }
    .hiring-hero { padding: 15px 4%; background: #fff; }
    .hiring-hero .job-options, .hiring-hero .job-options[hidden] { display: contents !important; }
    .hiring-hero .job-options button { display: inline-block; min-height: 40px; padding: 0 2%; font-size: 14px; font-weight: 600; }
    .hiring-hero .job-options small { display: none; }
    .mobile-team-collage { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)); }
    .mobile-team-collage .full { grid-column: span 2; }
    .mobile-team-collage img { width: 100%; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .desktop-nav a { position: relative; }
    .desktop-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
    .desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { transform: scaleX(1); }
    .case-card { transition: transform .42s ease, box-shadow .42s ease; }
    .case-card:hover, .case-card:focus-within { transform: translateY(-4px); box-shadow: 0 10px 26px -15px #241c2066; }
    .mosaic-tile img, .case-card-image img { transition: transform .72s cubic-bezier(.2,.8,.2,1); }
    .mosaic-caption strong, .mosaic-caption span { transform: translateY(7px); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
    .mosaic-tile a:is(:hover,:focus-visible) .mosaic-caption > * { transform: translateY(0); }
    .mosaic-tile a:is(:hover,:focus-visible) img, .case-card a:is(:hover,:focus-visible) img { transform: scale(1.055); }
    .service-tiles a img, .charity-menu a img { transition: transform .45s cubic-bezier(.2,.8,.2,1); }
    .service-tiles a:is(:hover,:focus-visible) img, .charity-menu a:is(:hover,:focus-visible) img { transform: translateY(-3px) scale(1.018); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::after, *::before { transition-duration: .01ms !important; }
}
