/* Original implementation. No styles or vendor framework required. */
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
/* ==================== DESIGN TOKENS & BASE ==================== */
:root {
    --ink: #24282c;
    --muted: #64686d;
    --paper: #ffffff;
    --surface: #f4f4f4;
    --line: #dddddd;
    --accent: #bb2025;
    --navy: #123269;
    --container: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; color: var(--muted); background: var(--paper); font: 15px/1.8 'Poppins', Arial, sans-serif; }
button, input, summary { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink); line-height: 1.22; margin: 0 0 22px; font-weight: 700; }
h2 { font-size: 30px; letter-spacing: -1px; }
h3 { font-size: 19px; }
p { margin: 0 0 24px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #286acc; outline-offset: 5px; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: 100px; }
.lead { font-size: 18px; line-height: 1.75; }
.text-link { display: inline-block; font-weight: 700; color: var(--accent); }
.secondary-link { display: block; margin-top: 10px; }
.button { display: inline-block; padding: 13px 25px; background: #666; color: white; font-weight: 600; }
.button:hover { color: white; background: var(--ink); }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 20px; padding: 12px 24px; background: white; color: black; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.demo-note { font-size: 12px; line-height: 1.7; }
/* ==================== HEADER & NAVIGATION ==================== */
.site-header { position: absolute; top: 50px; width: 100%; z-index: 20; background: white; }
.header-inner { height: 120px; display: flex; justify-content: space-between; align-items: center; }
.brand { width: 280px; height: 220px; margin-top: -50px; align-self: flex-start; position: relative; flex-shrink: 0; display: grid; place-items: center; padding: 28px 48px 70px; isolation: isolate; }
.brand::before { content: ''; position: absolute; z-index: -1; inset: 0; background: #e0e2e3; clip-path: polygon(0 0,100% 0,100% 36%,50% 100%,0 36%); }
.brand img { width: 184px; height: auto; }
.nav-list { display: flex; align-items: center; gap: 29px; list-style: none; margin: 0; padding: 0; color: var(--ink); font-size: 13px; font-weight: 600; }
.nav-list a[aria-current], .side-links a[aria-current] { color: var(--accent); }
.services-menu { position: relative; }
.services-menu summary { list-style: none; padding: 16px 0; }
.services-menu summary::-webkit-details-marker { display: none; }
.services-menu summary::after { content: '⌄'; margin-left: 7px; }
.dropdown { position: absolute; top: 100%; left: -20px; margin: 0; padding: 12px 0; list-style: none; min-width: 230px; background: white; border-top: 3px solid #777; box-shadow: 0 8px 24px #0002; }
.dropdown a { display: block; padding: 8px 20px; }
.dropdown a:hover { background: var(--surface); }
.menu-toggle { display: none; border: 1px solid #ccc; background: white; padding: 8px 12px; }
.site-header.scrolled { position: fixed; top: 0; box-shadow: 0 3px 15px #0001; }
.site-header.scrolled .header-inner { height: 80px; }
.site-header.scrolled .brand::before { display: none; }
.site-header.scrolled .brand { width: 180px; height: 80px; margin: 0; padding: 5px 20px; }
.site-header.scrolled .brand img { width: 130px; }
/* ==================== HOME HERO ==================== */
.hero { min-height: 800px; position: relative; overflow: hidden; background: #17272d; color: white; }
.hero-slide { min-height: 800px; position: relative; isolation: isolate; background-size: cover; background-position: center; }
/* Inherit the slide's inline background-image (resolved relative to the page) for the drifting layer. */
.hero-slide::before { content: ''; position: absolute; inset: -3%; z-index: -2; background-image: inherit; background-size: cover; background-position: center; transform: scale(1.02); }
.hero-slide::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(13,27,35,.91) 0%,rgba(13,27,35,.72) 36%,rgba(13,27,35,.2) 76%),linear-gradient(0deg,rgba(13,27,35,.65),transparent 45%); }
.js .hero-slide::before { animation: hero-drift 12s ease-in-out infinite alternate; }
.hero.is-offscreen .hero-slide::before { animation-play-state: paused; }
@keyframes hero-drift {
    from { transform: translate3d(-.8%,0,0) scale(1.02); }
    to { transform: translate3d(.8%,-.6%,0) scale(1.075); }
}
.hero-content { position: relative; padding-block: 270px 150px; }
.hero-title { max-width: 700px; }
.hero-eyebrow { display: flex; align-items: center; gap: 15px; margin: 0 0 24px; font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; }
.hero-eyebrow::before { content: ''; width: 36px; height: 3px; background: #e25954; flex-shrink: 0; }
.hero-title h1, .hero-title h2 { margin: 0 0 26px; color: white; font-family: 'Poppins',Arial,sans-serif; font-size: clamp(64px,6vw,86px); font-weight: 600; line-height: 1.08; letter-spacing: -4px; }
.hero-title em { color: #f0debf; font-family: Georgia,'Times New Roman',serif; font-size: 1.15em; font-weight: 400; letter-spacing: -3px; }
.hero-description { max-width: 430px; margin: 0 0 30px; color: #e1e6e8; font-size: 15px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-actions a { display: inline-flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 52px; font-size: 13px; font-weight: 600; }
.hero-actions span { font-size: 22px; font-weight: 400; }
.hero-primary { background: var(--accent); color: white; padding: 13px 22px; transition: background .2s; }
.hero-primary:hover { background: #991a20; color: white; }
.hero-secondary { color: white; border-bottom: 1px solid #ffffff70; }
.hero-secondary:hover { color: #f0debf; border-color: #f0debf; }
.hero a:focus-visible, .hero button:focus-visible { outline-color: #f0debf; }
.hero-footer { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 22px; border-top: 1px solid #ffffff40; }
.hero-detail { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.hero-detail span { color: #d0d6d9; font-weight: 400; margin-left: 8px; }
.hero-controls { display: flex; align-items: center; gap: 18px; }
.hero-controls button { width: 44px; height: 44px; border: 1px solid #ffffff70; border-radius: 50%; background: transparent; color: white; font-size: 20px; line-height: 1; transition: background .2s; }
.hero-controls button:hover { background: #ffffff25; }
.slide-status { font-size: 11px; font-weight: 600; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
/* ==================== HOME CONTENT ==================== */
.intro-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 120px; }
.intro-copy { position: relative; }
.intro-copy::before { content: ''; position: absolute; width: 1px; height: 150px; background: repeating-linear-gradient(to bottom,#bbb 0 7px,transparent 7px 14px); transform: rotate(40deg); left: -65px; top: 25px; }
.intro h2 { color: var(--navy); text-transform: uppercase; letter-spacing: -.035em; }
.intro h2::after { content: ''; display: block; width: 52px; height: 4px; margin-top: 15px; background: var(--accent); transform: skewX(-20deg); }
.intro-services { list-style: none; padding: 0; margin: 24px 0 0; color: var(--navy); }
.intro-services li { break-inside: avoid; }
.intro-services a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-block: 7px; font-size: 14px; font-weight: 700; line-height: 1.45; letter-spacing: .065em; text-transform: uppercase; transition: color .2s; }
.intro-services a::before { content: ''; flex: 0 0 28px; width: 28px; height: 28px; background: url('hammer.png') center / contain no-repeat; transition: transform .2s; }
.intro-services a:hover::before, .intro-services a:focus-visible::before { transform: rotate(-12deg); }
.intro-services a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.projects { padding-top: 10px; }
.project-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin-top: 40px; }
.project-image { position: relative; display: block; overflow: hidden; background: #eee; cursor: zoom-in; }
.project-image img { width: 100%; transition: transform .35s ease; }
.project-image:hover img { transform: scale(1.04); }
.image-zoom { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; color: white; background: #0003; opacity: 0; transition: opacity .2s; }
.project-image:hover .image-zoom, .project-image:focus-visible .image-zoom { opacity: 1; }
.project-frame {
    --frame-width: 20px;
    flex: 0 0 calc((100% - 84px) / 4);
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1;
    padding: var(--frame-width);
    overflow: visible;
    background: #e8e5de;
    border: 1px solid #b9b5ad;
    box-shadow: 0 5px 12px #24282c20, inset 0 0 0 2px #fffdf8, inset 0 0 0 4px #c2beb5, inset 0 0 0 6px #f9f7f2;
}
.project-frame::before, .project-frame::after { content: ''; position: absolute; pointer-events: none; }
.project-frame::before { inset: 7px; border: 7px solid; border-color: #f7f5ef #c3bfb6 #aaa69d #e4e0d7; }
.project-frame::after { inset: calc(var(--frame-width) - 3px); border: 3px solid; border-color: #a8a399 #fdfbf5 #fffdf8 #b9b4aa; box-shadow: 0 0 0 1px #d6d1c7, inset 0 2px 4px #0003; }
/* Let the square frame determine the photo size, regardless of its source dimensions. */
.project-frame img {
    position: absolute;
    inset: var(--frame-width);
    width: calc(100% - 2 * var(--frame-width));
    height: calc(100% - 2 * var(--frame-width));
    object-fit: cover;
}
.project-frame:hover img { transform: none; }
.project-frame .image-zoom { inset: var(--frame-width); }
.project-frame:focus-visible .image-zoom { background: #12326999; }
.project-copy { max-width: 720px; margin-top: 36px; }
.brand-section { background: #f6f6f6; padding: 85px 0; }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 75px; align-items: center; }
.brand-art { width: 100%; max-height: 350px; object-fit: contain; }
.quote-mark { display: block; font: 70px/1 Georgia,serif; color: #303438; }
/* ==================== INTERIOR PAGES ==================== */
.page-banner { height: 370px; background: #f0f1f2; position: relative; }
.banner-inner { padding-top: 240px; padding-left: 52%; }
.breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 12px; margin-bottom: 15px; }
.page-banner h1 { color: white; background: #262a2d; font-size: 27px; padding: 24px 36px; margin: 0; clip-path: polygon(6% 0,100% 0,100% 100%,0 100%); }
.content-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 70px; align-items: start; }
.sidebar-sticky { position: sticky; top: 110px; }
.sidebar { align-self: stretch; }
.side-links { list-style: none; padding: 0; margin: 0 0 42px; }
.side-links a { display: block; padding: 12px 0; border-bottom: 1px solid #e5e5e5; color: var(--ink); }
.side-links a::before { content: '›'; margin-right: 17px; }
.sidebar h2 { font-size: 23px; margin-bottom: 17px; }
.sidebar p { margin-bottom: 12px; font-size: 13px; overflow-wrap: anywhere; }
.sidebar-contact { margin-bottom: 35px; }
.hours dl, .contact-hours { display: grid; grid-template-columns: 1fr auto; font-size: 13px; gap: 8px; }
dd { margin: 0; }
.service-scope { display: grid; grid-template-columns: 1fr 1fr; padding-left: 20px; margin-bottom: 35px; gap: 8px; }
.service-gallery { columns: 2; column-gap: 24px; }
.service-gallery .project-image { break-inside: avoid; margin-bottom: 24px; }
.service-cta { margin-top: 45px; padding: 36px; background: var(--surface); }
.service-cta h2 { font-size: 25px; }
.about-image { width: 100%; margin-bottom: 28px; }
.article-section { margin-top: 55px; }
.process-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; }
.process-grid span { font-size: 38px; color: #777; font-weight: 600; }
.process-grid h3 { margin-top: 10px; }
.process-grid p { font-size: 13px; }
.partner-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 25px; align-items: center; margin-top: 30px; }
.partner-grid img { max-height: 80px; object-fit: contain; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 45px; }
.contact-grid h2 { font-size: 20px; letter-spacing: -.5px; overflow-wrap: anywhere; }
.eyebrow { display: block; font-size: 11px; letter-spacing: 2px; margin-bottom: 12px; }
.contact-panel { background: var(--surface); padding: 45px; margin-top: 45px; display: grid; grid-template-columns: 2fr 1fr; gap: 70px; }
/* ==================== FOOTER & IMAGE VIEWER ==================== */
.site-footer { padding-top: 80px; background: #f1f1f1; }
.footer-grid { display: grid; grid-template-columns: 190px 1.2fr 1fr; gap: 70px; padding-bottom: 60px; }
.footer-brand { align-self: center; }
.footer-brand img { width: 160px; }
.site-footer h2 { font-size: 19px; letter-spacing: -.4px; }
.site-footer p, .footer-services { font-size: 13px; }
.footer-grid p { margin-bottom: 10px; }
.footer-services { display: grid; grid-template-columns: 1fr 1fr; list-style: none; padding: 0; gap: 8px 20px; }
.copyright { border-top: 1px solid #ddd; padding: 35px 0 55px; text-align: center; }
.copyright p { margin-bottom: 8px; }
.back-top { position: fixed; right: 20px; bottom: 18px; background: #24282c; color: white; width: 44px; height: 44px; display: grid; place-items: center; z-index: 10; }
.js .back-top:not(.is-visible) { display: none; }
.lightbox { border: 0; padding: 48px 18px 14px; background: #181b1e; color: white; width: min(1000px,94vw); max-height: 95vh; }
.lightbox::backdrop { background: #000d; }
.lightbox img { width: 100%; max-height: 75vh; margin: auto; object-fit: contain; }
.lightbox-close { position: absolute; right: 12px; top: 4px; background: transparent; border: 0; color: white; font-size: 32px; }
.lightbox-caption { text-align: center; font-size: 13px; margin: 15px 0 0; }
/* ==================== TABLET & MOBILE ==================== */
@media (max-width: 1000px) {
    .header-inner { height: 90px; }
    .site-header { top: 0; }
    .brand { width: 210px; height: 140px; margin: 0; padding: 12px 30px 45px; }
    .nav-list { gap: 18px; }
    .intro-grid { gap: 65px; }
    .intro-copy::before { left: -35px; }
    .content-layout { grid-template-columns: 210px minmax(0,1fr); gap: 35px; }
    .footer-grid { gap: 35px; grid-template-columns: 150px 1.2fr 1fr; }
    .page-banner { height: 300px; }
    .banner-inner { padding-top: 170px; }
    .contact-grid { gap: 25px; }
}
@media (max-width: 760px) {
    .container { width: calc(100% - 40px); }
    .section { padding-block: 60px; }
    .header-inner { min-height: 100px; height: auto; flex-wrap: wrap; padding-block: 0; }
    .site-header { position: relative; }
    .site-header.scrolled { position: relative; }
    .site-header.scrolled .header-inner { height: auto; }
    .brand, .site-header.scrolled .brand { width: 190px; height: 100px; margin: 0; padding: 10px 24px 17px; align-self: center; }
    .brand::before, .site-header.scrolled .brand::before { display: block; bottom: -25px; clip-path: polygon(0 0,100% 0,100% 58%,50% 100%,0 58%); }
    .brand img, .site-header.scrolled .brand img { width: 142px; }
    .menu-toggle { min-height: 44px; }
    .js .menu-toggle { display: block; }
    #main-navigation { flex-basis: 100%; padding-block: 30px 20px; }
    .js #main-navigation:not(.is-open) { display: none; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list > li > a { display: block; padding: 12px 0; border-bottom: 1px solid #eee; }
    .dropdown { position: static; box-shadow: none; margin-bottom: 12px; }
    .intro-grid, .brand-grid { grid-template-columns: 1fr; gap: 30px; }
    .intro-copy::before { display: none; }
    .intro-services { columns: 2; }
    .projects { padding-top: 0; }
    .project-gallery { gap: 24px; margin-block: 28px 30px; }
    .project-frame { flex-basis: calc((100% - 24px) / 2); }
    .project-copy { width: 100%; margin-top: 0; }
    .brand-section { padding: 55px 0; }
    .brand-art { max-height: 220px; }
    .page-banner { height: 185px; }
    .banner-inner { padding: 34px 0 0; }
    .page-banner h1 { font-size: 25px; padding: 20px 25px; }
    .content-layout { display: flex; flex-direction: column; gap: 45px; }
    .content-layout > article { order: -1; width: 100%; }
    .sidebar { width: 100%; }
    .sidebar-sticky { position: static; }
    .side-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
    .service-gallery { column-gap: 12px; }
    .service-gallery .project-image { margin-bottom: 12px; }
    .process-grid { gap: 16px; }
    .partner-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid, .contact-panel { grid-template-columns: 1fr; gap: 25px; }
    .contact-panel { padding: 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 35px; }
    .site-footer { padding-top: 55px; }
    h2 { font-size: 27px; }
}
@media (max-width: 480px) {
    .project-frame { flex-basis: 100%; max-width: 360px; }
    .container { width: calc(100% - 32px); }
    .brand, .site-header.scrolled .brand { width: 180px; padding-inline: 20px; }
    .process-grid { grid-template-columns: 1fr; }
    .service-scope { grid-template-columns: 1fr; }
    .service-cta { padding: 24px; }
    .side-links { grid-template-columns: 1fr; }
    .intro-services { columns: 1; }
    .intro-services a { padding-block: 9px; }
    .footer-services a { display: inline-block; padding-block: 9px; }
    .contact-panel { padding: 24px; }
}
@media (max-width: 360px) {
    .service-gallery { columns: 1; }
    .footer-services { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .motion-toggle { display: none; }
}

/* Hero composition follows the header height at each breakpoint. */
@media (max-width: 1000px) {
    .hero, .hero-slide { min-height: 700px; }
    .hero-content { padding-block: 205px 140px; }
    .hero-title h1, .hero-title h2 { font-size: 68px; }
}
@media (max-width: 760px) {
    .hero, .hero-slide { min-height: 620px; }
    .hero-content { padding-block: 80px 150px; }
    .hero-slide::before { background-position: 60% center; }
    .hero-slide::after { background: linear-gradient(90deg,rgba(13,27,35,.87),rgba(13,27,35,.47)),linear-gradient(0deg,rgba(13,27,35,.65),transparent 55%); }
    .hero-title h1, .hero-title h2 { font-size: clamp(42px,8.8vw,66px); letter-spacing: -2px; }
    .hero-title em { letter-spacing: -2px; }
    .hero-eyebrow { font-size: 9px; letter-spacing: 2px; gap: 12px; }
    .hero-description { max-width: 380px; font-size: 14px; }
    .hero-actions { gap: 16px 24px; }
    .hero-footer { bottom: 24px; align-items: flex-end; gap: 12px; }
    .hero-detail { max-width: 180px; font-size: 10px; }
    .hero-detail span { display: block; margin-left: 0; }
    .hero-controls { gap: 10px; }
}
@media (max-width: 380px) {
    .hero-content { padding-top: 65px; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
    .hero-detail { max-width: 115px; }
    .hero-controls { gap: 8px; }
    .slide-status { letter-spacing: 1px; }
}
