:root {
    --primary: #000;
    --accent: #2D2D2D;
    --bg-light: #f9f9fb;
    --bg-white: #fff;
    --text: #333;
    --text-light: #666;
    --border: #e0e0e0;
    --font: 'Montserrat', sans-serif;
    --max-width: 1400px;
    --header-h: 80px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.6; background: var(--bg-white); overflow-x: hidden; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: #555; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); background: rgba(255,255,255,.95); backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid var(--border); }
.site-header > * { max-width: var(--max-width); margin: 0 auto; height: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.site-brand { display: inline-flex; align-items: center; }
.site-logo-image { display: block; width: 244px; height: auto; max-height: 64px; object-fit: contain; }
.brand-mark { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 4px solid #f47700; color: #f47700; font-size: 1rem; font-weight: 800; letter-spacing: -2px; transform: skewY(-10deg); }
.site-logo .logo-text { font-weight: 700; font-size: 1.45rem; letter-spacing: -.5px; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(22px, 3vw, 58px); }
.main-nav a { position: relative; font-weight: 600; font-size: .92rem; letter-spacing: 0; padding: 12px 0; white-space: nowrap; }
.main-nav a:hover, .current-menu-item > a { color: var(--text); }
    .main-nav a:hover::after, .current-menu-item > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px; background: #f47700; }
.current-menu-item > a { font-weight: 700; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; }

/* Layout */
#content { padding-top: var(--header-h); min-height: 400px; }

/* Hero */
.hero { min-height: 60vh; display: flex; align-items: center; justify-content: center; background: #1a1a1a; color: #fff; text-align: center; }
.hero-with-image { background-size: cover; background-position: 1% 26%; }
.hero-with-image h1 { text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.hero h1 { font-weight: 800; font-size: clamp(2rem,6vw,4rem); text-transform: uppercase; letter-spacing: 2px; padding: 60px 20px; }

/* Visual Storytelling */
.visual-storytelling { min-height: 40vh; display: flex; align-items: center; justify-content: center; background: #2a2a2a; color: #fff; text-align: center; padding: 80px 20px; }
.vs-inner { max-width: 800px; }
.vs-line-1 { font-weight: 600; font-size: clamp(1.2rem,3vw,2rem); margin-bottom: 15px; line-height: 1.3; }
.vs-line-2 { font-weight: 400; font-size: 1rem; letter-spacing: 1px; opacity: .9; }

/* Section titles */
.section-title { font-weight: 700; font-size: clamp(1.5rem,3vw,2.5rem); text-align: center; text-transform: uppercase; letter-spacing: 2px; padding: 60px 20px 30px; }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 30px; padding: 0 20px; }

/* News + Projects grid */
.news-section, .projects-section { padding: 0 5% 60px; }
.news-grid, .projects-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 30px; max-width: var(--max-width); margin: 0 auto; }
.news-card, .project-card { background: #fff; border-radius: 4px; overflow: hidden; transition: transform .2s; }
.news-card:hover, .project-card:hover { transform: translateY(-2px); }
.card-image img, .news-card-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body, .news-card-body { padding: 15px 20px 20px; }
.card-category { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); display: block; margin-bottom: 5px; }
.card-title { font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.more-btn { text-align: center; margin-top: 40px; }

/* Landing header / hero */
.home #content { background: #fff; }
.landing-hero { min-height: 676px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 1.04fr); position: relative; overflow: hidden; background: #fff; }
.landing-hero-copy { max-width: 760px; width: 100%; justify-self: end; align-self: center; padding: 80px clamp(32px, 7vw, 112px) 80px clamp(30px, 7vw, 108px); position: relative; z-index: 1; }
.landing-eyebrow { color: #f47700; font-size: .95rem; font-weight: 700; letter-spacing: 4px; margin-bottom: 25px; }
.landing-hero h1 { color: #070707; font-size: clamp(3rem, 5.1vw, 6.25rem); font-weight: 800; line-height: .96; letter-spacing: -2px; margin: 0 0 28px; }
.landing-hero h1 span { font-size: .58em; letter-spacing: -1px; }
.landing-tagline { display: flex; align-items: center; gap: 25px; margin-bottom: 23px; }
.landing-rule { width: 48px; height: 4px; background: #f47700; flex: 0 0 auto; }
.landing-tagline p { color: #4c4c4c; font-size: 1.18rem; }
.landing-services { display: flex; flex-wrap: wrap; gap: 10px 16px; color: #4b4b4b; font-size: .92rem; margin-bottom: 38px; }
.landing-services b { color: #f47700; font-weight: 700; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 32px; }
.landing-actions .btn { min-width: 242px; display: inline-flex; justify-content: space-between; align-items: center; padding: 18px 22px; font-size: .8rem; }
.landing-actions .btn span { font-size: 1.75rem; line-height: .7; font-weight: 400; }
.landing-btn-primary { background: #f47700; border-color: #f47700; }
.landing-btn-primary:hover { color: #f47700; }
.landing-btn-secondary { background: #fff; color: #202020; border-color: #9b9b9b; }
.landing-btn-secondary:hover { background: #202020; border-color: #202020; color: #fff; }
.landing-location { margin-top: 30px; color: #4c4c4c; font-size: .9rem; }
.landing-location span { color: #f47700; font-size: 1.3rem; margin-right: 10px; }
.landing-hero-media { position: relative; min-height: 676px; overflow: hidden; background: #111; }
.landing-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 85% center; }
.brand-strip { min-height: 146px; display: grid; grid-template-columns: repeat(7, 1fr); align-items: center; max-width: 1400px; margin: 0 auto; padding: 24px 36px; background: #fff; }
.brand-placeholder { min-height: 62px; display: flex; align-items: center; justify-content: center; padding: 0 18px; border-right: 1px solid #e5e5e5; color: #252525; font-size: 1rem; font-weight: 700; text-align: center; }
.brand-placeholder:last-child { border-right: 0; }
.brand-placeholder span { filter: grayscale(1); opacity: .82; }

/* Portfolio showcase layout */
.portfolio-page #content { background: var(--bg-light); }
.portfolio-page .hero { display: none; }
.portfolio-page .projects-section { max-width: 1320px; margin: 0 auto; padding: 48px 30px 82px; }
.portfolio-page .portfolio-category { border-top: 1px solid var(--border); }
.portfolio-page .portfolio-more { border-top: 1px solid var(--border); }
.portfolio-page .portfolio-group-title { font-size: clamp(1.25rem, 2vw, 1.7rem); padding: 12px 20px 34px; }
.portfolio-page .projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.portfolio-page .project-card { border-radius: 2px; box-shadow: 0 1px 5px rgba(31, 41, 55, .06); }
.portfolio-page .project-card > a { display: block; height: 100%; }
.portfolio-page .card-body { min-height: 126px; padding: 34px 36px 28px; }
.portfolio-page .card-title { font-size: 1.05rem; font-weight: 700; }
.portfolio-page .btn { background: #ee8300; border-color: #ee8300; }
.portfolio-page .btn:hover { background: transparent; color: #ee8300; }

/* Buttons */
.btn { display: inline-block; padding: 10px 30px; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; border: 2px solid var(--primary); cursor: pointer; transition: all .2s; background: var(--primary); color: #fff; }
.btn:hover { background: transparent; color: var(--primary); }

/* Clients */
.clients-section { padding: 0 5% 80px; background: #fff; }
.clients-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; max-width: var(--max-width); margin: 0 auto; }
.client-item { max-width: 150px; max-height: 80px; display: flex; align-items: center; justify-content: center; opacity: .7; transition: opacity .2s; }
.client-item:hover { opacity: 1; }
.client-item img { max-height: 60px; width: auto; }

/* Contact */
.contact-section { padding: 0 5% 80px; background: var(--bg-light); }
.contact-form { max-width: 600px; margin: 0 auto; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; }
.form-row input, .form-row textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--border); border-radius: 3px; font-family: var(--font); font-size: 1rem; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--primary); }
.contact-form button { width: 100%; }

/* Breadcrumbs */
.breadcrumbs { max-width: var(--max-width); margin: 20px auto; padding: 0 20px; font-size: .85rem; color: var(--text-light); }
.breadcrumbs a:hover { text-decoration: underline; }

/* Detail pages */
.project-detail, .post-detail { max-width: 960px; margin: 0 auto; padding: 20px; }
.detail-title { font-weight: 700; font-size: 2rem; margin-bottom: 10px; }
.detail-category, .detail-date { font-size: .85rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 20px; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 20px 0; border-radius: 4px; }
.video-container iframe, .video-container video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.detail-image { margin: 20px 0; }
.detail-image img { width: 100%; border-radius: 4px; }
.detail-content { margin-top: 20px; line-height: 1.7; }
.detail-content p { margin-bottom: 15px; }
.detail-content img { margin: 15px 0; border-radius: 4px; }

/* Generic page */
.page-content { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.page-content h1 { font-weight: 700; font-size: 2rem; margin-bottom: 15px; }
.page-content h2 { margin: 25px 0 10px; }
.page-content p { margin-bottom: 15px; }
.page-content ul, .page-content ol { margin: 10px 0 15px 25px; }

/* Portfolio categories */
.category-group { margin-bottom: 50px; }
.category-title { font-weight: 700; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px; padding-left: 10px; border-left: 3px solid var(--primary); }

/* 404 */
.page-404 { text-align: center; padding: 100px 20px; }
.page-404 h1 { font-size: 5rem; font-weight: 800; }

/* Footer */
.site-footer { background: #1a1a1a; color: #999; padding: 40px 20px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-title { color: #fff; font-weight: 700; font-size: 1.1rem; }
.footer-menu { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-menu a { font-size: .85rem; color: #999; }
.footer-menu a:hover { color: #fff; }

/* Responsive */
@media (max-width: 768px) {
    .hero-with-image { background-position: 71% 79%; }
    .main-nav { display: none; }
    .nav-toggle { display: block; }
    .main-nav.open { display: block; position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 20px; }
    .main-nav.open ul { flex-direction: column; gap: 15px; }
    .news-grid, .projects-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
    .news-section, .projects-section, .clients-section, .contact-section { padding-left: 15px; padding-right: 15px; }
    .landing-hero { grid-template-columns: 1fr; min-height: auto; }
    .landing-hero-copy { max-width: none; padding: 70px 25px 55px; }
    .landing-hero-media { min-height: 330px; }
    .landing-hero h1 { font-size: clamp(2.7rem, 12vw, 4.5rem); }
    .landing-services { font-size: .82rem; }
    .landing-actions { gap: 14px; }
    .landing-actions .btn { width: 100%; min-width: 0; }
    .brand-strip { grid-template-columns: repeat(2, 1fr); padding: 18px 15px; }
    .brand-placeholder { border-bottom: 1px solid #e5e5e5; border-right: 1px solid #e5e5e5; }
    .brand-placeholder:nth-child(2n) { border-right: 0; }
    .site-logo-image { width: 210px; max-height: 58px; }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .portfolio-page .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.project-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 24px; }
.project-filter { padding: 10px 18px; border: 1px solid #dcdce0; border-radius: 24px; background: #fff; font-size: .85rem; font-weight: 600; }
.project-filter:hover { border-color: #e86e00; color: #ab5100; }
.project-filter.is-active { background: #202831; border-color: #202831; color: #fff; }
.project-count { text-align: center; margin: 0 0 32px; color: #666; font-size: .85rem; }
.project-browser .section-title { padding-top: 0; }
.project-browser .more-btn .btn { background: #e86e00; border-color: #e86e00; color: #fff; }
/* Content sections: shared spacing, cards and orange accents. */
:root { --section-orange: #e86e00; }
section[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.home .news-section, .home .projects-section,
.home .clients-section, .home .contact-section {
    padding: clamp(56px, 7vw, 100px) max(24px, calc((100vw - 1240px) / 2));
}
.home .projects-section, .portfolio-sub-page #content { background: #f6f6f7; }
.home .section-title, .portfolio-page .portfolio-group-title {
    padding: 0 0 32px; color: #202831; letter-spacing: -.6px;
    font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.3;
}
.home .section-title::before, .portfolio-sub-page .hero h1::before {
    content: ''; display: block; width: 40px; height: 3px;
    margin: 0 auto 20px; background: var(--section-orange);
}
.home .section-subtitle { max-width: 650px; margin: -12px auto 44px; padding: 0; }
.home .news-grid, .home .projects-grid, .portfolio-sub-page .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px;
}
.news-card, .project-card {
    min-width: 0; border: 1px solid #eaeaec; border-radius: 6px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover, .project-card:hover {
    transform: translateY(-4px); box-shadow: 0 14px 32px #2028310d;
}
.project-card > a { display: flex; flex-direction: column; height: 100%; }
.card-image, .news-card-image { display: block; overflow: hidden; background: #ececee; }
.card-image img, .news-card-image img { transition: transform .35s ease; }
.project-card:hover .card-image img, .news-card:hover img { transform: scale(1.025); }
.card-body, .news-card-body, .portfolio-page .card-body {
    padding: 28px; min-height: 130px; flex: 1;
}
.card-title, .portfolio-page .card-title {
    color: #202831; font-size: 1.05rem; line-height: 1.55; font-weight: 700;
    letter-spacing: -.25px; overflow-wrap: anywhere;
}
.card-category { color: #ab5100; font-size: .68rem; margin-bottom: 12px; }
.card-category:empty { display: none; }
.home .more-btn, .portfolio-page .more-btn { margin-top: 44px; }
.home .more-btn .btn, .contact-form .btn {
    background: var(--section-orange); border-color: var(--section-orange);
    border-radius: 3px; padding: 15px 28px; letter-spacing: .3px;
}
.home .more-btn .btn:hover, .contact-form .btn:hover { background: #c75d00; color: #fff; }
.clients-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.client-item {
    max-width: none; max-height: none; min-height: 120px; padding: 24px;
    border: 1px solid #f0f0f1; opacity: .8;
}
.client-item img { max-width: 100%; max-height: 54px; object-fit: contain; }
.home .contact-section { background: #202831; color: #fff; }
.home .contact-section .section-title { color: #fff; }
.home .contact-section .section-subtitle { color: #c3c8ce; }
.contact-form { max-width: 720px; }
.form-row label { font-size: .78rem; text-transform: none; letter-spacing: .2px; margin-bottom: 9px; }
.contact-form input, .contact-form textarea {
    background: #ffffff0a; border: 1px solid #626973; color: #fff;
    padding: 15px 18px; border-radius: 4px;
}
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #ff922f; outline: 2px solid #ff922f40; }
.portfolio-sub-page .hero {
    background: #fff; color: #202831; min-height: 260px;
    padding: 64px 24px; border-bottom: 1px solid #eaeaec;
}
.portfolio-sub-page .hero h1 {
    padding: 0; font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -1px;
}
.portfolio-sub-page .projects-section { max-width: 1320px; margin: auto; padding: 60px 30px 90px; }
.site-footer { background: #181f27; padding: 42px max(24px, calc((100vw - 1240px) / 2)); border-top: 1px solid #ffffff14; }
.footer-text { font-size: .8rem; margin-top: 8px; }
.footer-menu a { color: #bdc2c8; }
a:focus-visible, button:focus-visible { outline: 3px solid #f47700; outline-offset: 5px; }
@media (max-width: 1100px) {
    .home .news-grid, .home .projects-grid, .portfolio-sub-page .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .clients-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .home .news-grid, .home .projects-grid, .portfolio-page .projects-grid,
    .portfolio-sub-page .projects-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .portfolio-page .projects-section, .portfolio-sub-page .projects-section { padding: 40px 20px 56px; }
    .card-body, .news-card-body, .portfolio-page .card-body { min-height: 0; padding: 24px; }
    .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .client-item { padding: 20px; min-height: 100px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .news-card, .project-card, .card-image img, .news-card-image img { transition: none; transform: none !important; }
}

/* Blog editorial layout */
.blog-page #content { background: #f5f6f7; }
.blog-hero { background: #202831; color: #fff; border-bottom: 1px solid #303a45; }
.blog-hero-inner { max-width: 1240px; min-height: 330px; margin: 0 auto; padding: 62px 32px 58px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 36px; }
.blog-hero-copy { max-width: 720px; }
.blog-eyebrow { color: #f47700; font-size: .73rem; font-weight: 700; letter-spacing: 3px; line-height: 1.4; margin-bottom: 15px; text-transform: uppercase; }
.blog-hero h1 { color: #fff; font-size: clamp(3rem, 7vw, 6.6rem); font-weight: 800; letter-spacing: -4px; line-height: .9; }
.blog-hero h1 span { color: #aeb6be; font-weight: 500; }
.blog-intro { max-width: 560px; margin-top: 28px; color: #c9cfd5; font-size: clamp(.98rem, 1.5vw, 1.1rem); line-height: 1.65; }
.blog-hero-stat { min-width: 132px; padding-left: 28px; border-left: 1px solid #5d6670; display: grid; gap: 2px; align-content: end; }
.blog-hero-stat strong { color: #fff; font-size: 3rem; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.blog-hero-stat span { color: #aeb6be; font-size: .76rem; letter-spacing: 1.5px; text-transform: uppercase; }
.blog-content { max-width: 1240px; margin: 0 auto; padding: 78px 32px 100px; }
.blog-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #d9dde1; }
.blog-section-heading .blog-eyebrow { margin-bottom: 8px; }
.blog-section-heading h2 { color: #202831; font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -1.3px; line-height: 1.1; }
.blog-section-note { color: #707983; font-size: .8rem; letter-spacing: .4px; }
.blog-featured { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); min-height: 420px; margin-bottom: 34px; background: #fff; border: 1px solid #e2e5e8; box-shadow: 0 16px 40px rgba(32,40,49,.08); }
.blog-featured-media, .blog-card-media { position: relative; display: block; overflow: hidden; background: #dfe3e6; }
.blog-featured-media { min-height: 420px; }
.blog-featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.blog-featured-media:hover img, .blog-card-media:hover img { transform: scale(1.035); }
.blog-media-label { position: absolute; left: 20px; bottom: 20px; padding: 9px 13px; background: #f47700; color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.blog-media-label span { margin-left: 12px; font-size: 1rem; }
.blog-media-placeholder { min-height: 100%; display: grid; place-items: center; color: #68727b; font-size: .75rem; letter-spacing: 1px; text-transform: uppercase; }
.blog-featured-body, .blog-card-body { display: flex; flex-direction: column; align-items: flex-start; }
.blog-featured-body { justify-content: center; padding: clamp(30px, 5vw, 64px); }
.blog-post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #f47700; font-size: .7rem; font-weight: 700; letter-spacing: 1.2px; line-height: 1.4; text-transform: uppercase; }
.blog-post-meta time { color: #7c858d; font-weight: 500; letter-spacing: .5px; }
.blog-featured h3 { max-width: 560px; margin: 22px 0 18px; color: #202831; font-size: clamp(1.7rem, 3vw, 2.65rem); letter-spacing: -1.2px; line-height: 1.08; }
.blog-card h3 { margin: 15px 0 12px; color: #202831; font-size: 1.18rem; letter-spacing: -.4px; line-height: 1.3; }
.blog-featured h3 a:hover, .blog-card h3 a:hover { color: #e86e00; }
.blog-featured-body > p, .blog-card-body > p { color: #68727b; font-size: .92rem; line-height: 1.7; }
.blog-read-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 28px; padding-bottom: 5px; border-bottom: 2px solid #f47700; color: #202831; font-size: .73rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.blog-read-link span { color: #f47700; font-size: 1.2rem; line-height: .7; transition: transform .2s ease; }
.blog-read-link:hover { color: #e86e00; }
.blog-read-link:hover span { transform: translateX(4px); }
.blog-secondary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.blog-card { display: grid; grid-template-columns: minmax(180px, .9fr) minmax(0, 1.1fr); min-height: 240px; background: #fff; border: 1px solid #e2e5e8; transition: transform .25s ease, box-shadow .25s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(32,40,49,.09); }
.blog-card-media img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; transition: transform .45s ease; }
.blog-card-body { padding: 28px 26px; }
.blog-card-body .blog-read-link { margin-top: auto; padding-top: 20px; }
.blog-empty { padding: 42px; background: #fff; border: 1px solid #e2e5e8; color: #68727b; text-align: center; }
@media (max-width: 900px) {
    .blog-featured { grid-template-columns: minmax(0, 1fr); }
    .blog-featured-media { min-height: 320px; }
    .blog-card { grid-template-columns: minmax(140px, .8fr) minmax(0, 1.2fr); }
}
@media (max-width: 600px) {
    .blog-hero-inner { min-height: 290px; padding: 48px 22px 42px; grid-template-columns: 1fr; gap: 28px; }
    .blog-hero h1 { letter-spacing: -2px; }
    .blog-intro { margin-top: 20px; }
    .blog-hero-stat { min-width: 0; padding: 13px 0 0; border-top: 1px solid #5d6670; border-left: 0; display: flex; align-items: baseline; gap: 10px; }
    .blog-hero-stat strong { font-size: 2rem; }
    .blog-content { padding: 52px 18px 70px; }
    .blog-section-heading { display: block; }
    .blog-section-note { margin-top: 13px; }
    .blog-featured-media { min-height: 230px; }
    .blog-featured-body { padding: 30px 24px 34px; }
    .blog-secondary-grid { grid-template-columns: 1fr; gap: 22px; }
    .blog-card { grid-template-columns: minmax(0, 1fr); }
    .blog-card-media, .blog-card-media img { min-height: 210px; }
    .blog-card-body { min-height: 245px; padding: 25px 24px 28px; }
}

/* Minimal detail pages share the open gallery's spacing and typography. */
.single-project #content, .single-post #content { background: #fff; }
.detail-breadcrumbs, .project-detail, .post-detail, .detail-navigation {
    width: calc(100% - 64px); max-width: 1240px; margin-right: auto; margin-left: auto;
}
.detail-breadcrumbs {
    display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
    margin-top: 34px; margin-bottom: 0; padding: 0;
    font-size: .75rem; color: #707070;
}
.detail-breadcrumbs > span { color: #bbb; }
.detail-breadcrumbs a:hover { color: #b45500; text-decoration: none; }
.project-detail, .post-detail { padding: 0 0 64px; }
.detail-heading { padding: 52px 0 42px; }
.detail-eyebrow {
    color: #a64f00; font-size: .7rem; font-weight: 500; text-transform: uppercase;
    letter-spacing: 1.6px; margin-bottom: 18px;
}
.detail-eyebrow span { padding: 0 9px; color: #aaa; }
.detail-heading .detail-title {
    max-width: 1050px; margin: 0; color: #242424;
    font-size: clamp(2rem, 4.6vw, 4.25rem); font-weight: 500;
    line-height: 1.12; letter-spacing: -.045em; overflow-wrap: anywhere;
}
.detail-heading .detail-date {
    margin: 22px 0 0; color: #737373; font-size: .8rem;
    text-transform: none; letter-spacing: 0;
}
.project-detail .video-container {
    height: auto; padding: 0; aspect-ratio: 16 / 9; margin: 0;
    border: 0; border-radius: 0; background: #111;
}
.project-detail .detail-image, .post-detail .detail-image { margin: 0; }
.project-detail .detail-image img, .post-detail .detail-image img {
    width: 100%; height: auto; max-height: 85vh; object-fit: contain;
    object-position: center; border-radius: 0;
}
.project-detail .detail-content, .post-detail .detail-content {
    margin-top: 38px; color: #4b4b4b; font-size: 1rem; line-height: 1.85;
    overflow-wrap: anywhere; display: flow-root;
}
.detail-content :is(p, h2, h3, h4, ul, ol, blockquote) { max-width: 760px; }
.detail-content p { margin: 0 0 24px; }
.detail-content :is(h2, h3, h4) { color: #242424; font-weight: 500; line-height: 1.35; margin: 36px 0 16px; }
.detail-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.03em; }
.detail-content :is(ul, ol) { padding-left: 22px; margin-bottom: 24px; }
.detail-content li + li { margin-top: 8px; }
.detail-content blockquote { border-left: 2px solid #e86e00; padding-left: 24px; margin: 32px 0; }
.detail-content a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #c9c9c9; }
.detail-content a:hover { color: #b45500; }
.detail-content :is(img, video) { max-width: 100%; height: auto; border-radius: 0; }
.detail-content img { margin: 0 auto; }
.detail-content figure { margin: 36px 0; max-width: 100%; }
.detail-content figcaption { margin-top: 12px; font-size: .75rem; color: #737373; text-align: center; }
.detail-content iframe { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.detail-content .wp-block-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.detail-content .wp-block-gallery figure { margin: 0; }
.detail-content .wp-block-columns { display: flex; gap: 32px; }
.detail-content .wp-block-column { flex: 1; min-width: 0; }
.detail-navigation {
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start; gap: 36px; padding: 28px 0 64px; border-top: 1px solid #e8e8e8;
}
.detail-neighbor { grid-column: 1; display: grid; gap: 9px; }
.detail-neighbor > span { color: #707070; font-size: .72rem; }
.detail-neighbor strong { font-weight: 500; font-size: .9rem; line-height: 1.5; }
.detail-next { grid-column: 3; text-align: right; }
.detail-all { grid-column: 2; align-self: center; font-size: .8rem; font-weight: 500; }
.detail-all span { margin-left: 10px; color: #b45500; }
.detail-navigation a:hover { color: #b45500; }
@media (max-width: 600px) {
    .detail-breadcrumbs, .project-detail, .post-detail, .detail-navigation { width: calc(100% - 40px); }
    .detail-breadcrumbs { margin-top: 24px; font-size: .7rem; }
    .detail-heading { padding: 36px 0 30px; }
    .detail-eyebrow { margin-bottom: 14px; font-size: .65rem; }
    .project-detail, .post-detail { padding-bottom: 40px; }
    .project-detail .detail-content, .post-detail .detail-content { margin-top: 28px; font-size: .9rem; line-height: 1.8; }
    .detail-content .wp-block-gallery { grid-template-columns: 1fr; gap: 20px; }
    .detail-content .wp-block-columns { flex-direction: column; gap: 20px; }
    .detail-content figure { margin: 28px 0; }
    .detail-navigation { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 24px 0 40px; }
    .detail-all { grid-row: 1; grid-column: 1 / -1; }
    .detail-neighbor { grid-row: 2; }
    .detail-next { grid-column: 2; }
    .detail-neighbor strong { font-size: .8rem; }
}

/* Open galleries: images and typography, with no enclosing card surfaces. */
.portfolio-page #content, .portfolio-sub-page #content,
.home .projects-section, .blog-page #content { background: #fff; }
.project-card, .news-card, .portfolio-page .project-card,
.blog-featured, .blog-card {
    background: transparent; border: 0; border-radius: 0; box-shadow: none;
    overflow: visible; min-width: 0;
}
.project-card:hover, .news-card:hover, .portfolio-page .project-card:hover,
.blog-card:hover { transform: none; box-shadow: none; }
.home .projects-grid, .home .news-grid, .portfolio-page .projects-grid,
.portfolio-sub-page .projects-grid { column-gap: 32px; row-gap: 52px; }
.card-image, .news-card-image, .blog-featured-media, .blog-card-media { border-radius: 0; }
.card-body, .news-card-body, .portfolio-page .card-body {
    min-height: 0; padding: 18px 0 0; flex: initial;
}
.card-title, .portfolio-page .card-title {
    font-size: 1rem; line-height: 1.5; font-weight: 500;
    letter-spacing: -.25px; color: #242424; overflow-wrap: break-word;
}
.project-card .card-body { display: flex; align-items: flex-start; gap: 16px; }
.project-card .card-title { flex: 1; }
.project-card .card-body::after {
    content: '\2197'; flex: 0 0 auto; color: #777; font-size: 1.2rem;
    line-height: 1.3; transition: color .2s, transform .2s;
}
.project-card > a:hover .card-body::after,
.project-card > a:focus-visible .card-body::after { color: #c55c00; transform: translate(2px, -2px); }
.project-card > a:hover .card-title, .news-card .card-title a:hover { color: #b45500; }
.card-category { font-size: .65rem; letter-spacing: 1.4px; margin-bottom: 8px; }
.project-filters { gap: 8px 28px; }
.project-filter {
    padding: 10px 0; border: 0; border-bottom: 2px solid transparent;
    border-radius: 0; background: transparent; color: #686868; font-weight: 500;
}
.project-filter:hover { color: #202020; border-color: #d2d2d2; }
.project-filter.is-active { background: transparent; border-color: #e86e00; color: #202020; }
.project-count { color: #777; font-size: .75rem; margin-bottom: 38px; }

.blog-hero { background: #fff; color: #242424; border-bottom: 1px solid #e8e8e8; }
.blog-hero h1, .blog-hero-stat strong { color: #242424; }
.blog-hero h1 span { color: #858585; }
.blog-intro, .blog-hero-stat span { color: #686868; }
.blog-hero-stat { border-color: #ddd; }
.blog-featured {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center;
    gap: clamp(28px, 5vw, 68px); min-height: 0; margin-bottom: 64px;
}
.blog-featured-media { min-height: 0; aspect-ratio: 16 / 10; }
.blog-featured-body { padding: 0; }
.blog-featured h3 { font-weight: 600; font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.2; }
.blog-featured-body > p:empty, .blog-card-body > p:empty { display: none; }
.blog-secondary-grid { gap: 48px 36px; border-top: 1px solid #e8e8e8; padding-top: 40px; }
.blog-card { display: flex; flex-direction: column; min-height: 0; }
.blog-card-media { min-height: 0; aspect-ratio: 16 / 9; }
.blog-card-media img { min-height: 0; }
.blog-card-body { padding: 22px 0 0; min-height: 0; flex: 1; }
.blog-card h3 { font-weight: 500; font-size: 1.2rem; line-height: 1.45; }
.blog-read-link { border: 0; text-transform: none; font-size: .8rem; letter-spacing: 0; font-weight: 500; }
.blog-post-meta { color: #a64f00; font-weight: 500; letter-spacing: 1px; }
.blog-empty { background: transparent; border: 0; }
@media (max-width: 900px) {
    .blog-featured { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .blog-featured-media { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
    .home .projects-grid, .home .news-grid, .portfolio-page .projects-grid,
    .portfolio-sub-page .projects-grid { row-gap: 36px; }
    .card-body, .news-card-body, .portfolio-page .card-body { padding: 14px 0 0; }
    .project-filters { gap: 4px 20px; }
    .project-filter { font-size: .78rem; }
    .blog-featured { margin-bottom: 40px; }
    .blog-secondary-grid { gap: 36px; padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    .project-card .card-body::after, .blog-featured-media img, .blog-card-media img,
    .blog-read-link span { transition: none; transform: none !important; }
}
