:root {
    --bg-primary: #f7f5f2;
    --bg-secondary: #efede9;
    --bg-dark: #1c1c1c;
    --bg-darker: #141414;
    --text-primary: #1a1a1a;
    --text-secondary: #5c5955;
    --text-light: #8a8782;
    --text-on-dark: #e8e5e0;
    --text-on-dark-muted: #a09b95;
    --accent-warm: #b8a69a;
    --accent-warm-light: #d4c8bd;
    --accent-gold: #c4a87c;
    --border-light: #e0dcd6;
    --border-medium: #c9c5bf;
    --border-dark: #3a3734;
    --white: #ffffff;
    --black: #0d0d0d;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.09);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.12);
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-fast: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    /* 系统默认字体栈 */
    --serif: 'STSong', 'Songti SC', 'SimSun', 'NSimSun', 'Noto Serif SC', serif;
    --serif-en: 'Georgia', 'Times New Roman', 'Cormorant Garamond', serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Inter', sans-serif;
    --navbar-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

body {
    font-family: var(--sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background-color: var(--accent-warm);
    color: var(--white);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 3px;
}

:focus-visible {
    outline: 2px solid var(--accent-warm);
    outline-offset: 2px;
}

/* 工具类 */
.text-emphasis {
    font-weight: 500;
    color: var(--text-primary);
}

/* ============ NAVBAR ============ */
.navbar {
    padding: 0 40px;
    height: var(--navbar-height);
    transition: background var(--transition-smooth), backdrop-filter var(--transition-smooth);
    z-index: 1030;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(247, 245, 242, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.5px solid var(--border-light);
}

.navbar .navbar-brand {
    font-family: var(--serif-en);
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #ffffff !important;
    transition: color var(--transition-fast);
    line-height: 1.1;
    text-decoration: none;
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .navbar-brand small {
    color: var(--text-primary) !important;
}

.navbar-brand small {
    display: block;
    font-family: var(--serif);
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.7) !important;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.navbar.scrolled .navbar-brand small {
    color: var(--text-light) !important;
}

.nav-link {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.5rem 0 !important;
    margin: 0 0.75rem;
    transition: color var(--transition-fast);
    position: relative;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.navbar.scrolled .nav-link {
    color: var(--text-primary) !important;
}

.navbar .navbar-toggler {
    border: none;
    padding: 8px;
    box-shadow: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.navbar .navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 22px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.navbar .navbar-toggler-icon::before,
.navbar .navbar-toggler-icon::after {
    content: '';
    display: block;
    width: 22px;
    height: 1.5px;
    background: #ffffff;
    border-radius: 1px;
}

.navbar .navbar-toggler-icon-inner {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #ffffff;
    border-radius: 1px;
}

.navbar.scrolled .navbar-toggler-icon::before,
.navbar.scrolled .navbar-toggler-icon::after,
.navbar.scrolled .navbar-toggler-icon-inner {
    background: var(--text-primary);
}

.btn-nav-cta {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff !important;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 9px 22px;
    border-radius: 0;
    transition: all var(--transition-fast);
    background: transparent;
    margin-left: 0.75rem;
    cursor: pointer;
    display: inline-block;
}

.btn-nav-cta:hover {
    background: #ffffff;
    color: var(--text-primary) !important;
    border-color: #ffffff;
}

.navbar.scrolled .btn-nav-cta {
    color: var(--text-primary) !important;
    border-color: var(--border-medium);
}

.navbar.scrolled .btn-nav-cta:hover {
    background: var(--text-primary);
    color: var(--bg-primary) !important;
    border-color: var(--text-primary);
}

/* ============ 全新极简画廊式菜单（加公司名称 + 美化） ============ */
.offcanvas {
    background: rgba(18, 17, 16, 0.88);
    backdrop-filter: blur(40px) saturate(1.4);
    -webkit-backdrop-filter: blur(40px) saturate(1.4);
    border-left: none;
    width: 80vw !important;
    max-width: 80vw;
    box-shadow: 16px 0 60px rgba(0,0,0,0.6);
}
.offcanvas-header { padding: 0; border-bottom: none; min-height: 60px; }
.offcanvas-title { display: none; }

/* 极简关闭按钮 */
.btn-close-custom {
    position: absolute; top: 24px; right: 26px; width: 28px; height: 28px;
    background: transparent; border: none; cursor: pointer; z-index: 10;
    opacity: 0.4; transition: opacity 0.3s; -webkit-tap-highlight-color: transparent;
}
.btn-close-custom:hover { opacity: 0.8; }
.btn-close-custom::before,
.btn-close-custom::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 18px; height: 1px; background: #fff;
}
.btn-close-custom::before { transform: translate(-50%, -50%) rotate(45deg); }
.btn-close-custom::after { transform: translate(-50%, -50%) rotate(-45deg); }

.offcanvas-body {
    display: flex; flex-direction: column; justify-content: center;
    padding: 60px 40px 48px;
}

/* 公司名称区域 */
.menu-brand {
    margin-bottom: 52px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}
.menu-brand .brand-en {
    font-family: var(--serif-en);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.65);
    display: block;
    margin-bottom: 6px;
}
.menu-brand .brand-cn {
    font-family: var(--serif);
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

/* 导航列表 */
.offcanvas .navbar-nav { width: 100%; }
.offcanvas .nav-item { margin-bottom: 2px; text-align: center; }

.offcanvas .nav-link {
    font-family: var(--serif) !important;
    font-size: 1.65rem !important;
    font-weight: 300 !important;
    letter-spacing: 0.1em !important;
    color: rgba(255,255,255,0.45) !important;
    padding: 15px 0 !important;
    margin: 0 !important;
    transition: all 0.4s cubic-bezier(0.25,0.1,0.25,1);
    text-decoration: none;
    display: inline-block;
    position: relative;
}
.offcanvas .nav-link::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--accent-warm-light);
    transition: width 0.4s ease;
}
.offcanvas .nav-link:hover {
    color: #fff !important;
    letter-spacing: 0.14em !important;
}
.offcanvas .nav-link:hover::after {
    width: 30px;
}
.offcanvas .nav-link.active {
    color: var(--accent-warm-light) !important;
    font-weight: 400 !important;
}

/* 遮罩 */
.offcanvas-backdrop { background: rgba(0,0,0,0.55) !important; }

@media (max-width: 991.98px) {
    .navbar { padding: 0 16px; mix-blend-mode: normal; background: rgba(20,20,20,0.85); }
    .navbar.scrolled { background: rgba(247,245,242,0.98) !important; }
    :root { --navbar-height: 64px; }
    .offcanvas { width: 80vw !important; max-width: 80vw; }
    .offcanvas-body { padding: 50px 30px 36px; }
    .menu-brand { margin-bottom: 40px; padding-bottom: 22px; }
    .menu-brand .brand-en { font-size: 1.1rem; }
    .offcanvas .nav-link { font-size: 1.4rem !important; padding: 13px 0 !important; }
    .btn-close-custom { top: 20px; right: 20px; }
}

@media (max-width: 991.98px) {
    .navbar {
        padding: 0 16px;
    }

    :root {
        --navbar-height: 64px;
    }
}

/* ============ HERO ============ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--bg-darker);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55) saturate(0.7);
    transform: scale(1.03);
    animation: heroZoom 8s ease-out forwards;
}

@keyframes heroZoom {
    from {
        transform: scale(1.08);
    }
    to {
        transform: scale(1.03);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.35) 0%, rgba(20, 20, 20, 0.15) 40%, rgba(20, 20, 20, 0.35) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    max-width: 780px;
    padding: 0 32px;
    animation: fadeUpHero 1.2s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

@keyframes fadeUpHero {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.hero-tag {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent-warm-light);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-family: var(--serif-en);
    font-size: 1.1rem;
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.06em;
    margin-bottom: 32px;
}

.hero-line {
    width: 50px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 auto 32px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeUpHero 1.2s ease forwards;
    opacity: 0;
    animation-delay: 0.9s;
    cursor: pointer;
}

.hero-scroll span {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.35);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.35;
    }
    50% {
        opacity: 0.8;
    }
}

/* ============ 通用区块 ============ */
.section {
    padding: 100px 0;
}

@media (min-width: 1800px) {
    .section {
        padding: 140px 0;
    }
}

.section-label {
    font-family: var(--sans);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 24px;
}

.section-body {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    line-height: 1.9;
}

.divider {
    width: 60px;
    height: 1px;
    background: var(--border-medium);
    margin: 32px 0;
}

/* 源起 */
.origin-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--bg-secondary);
    width: 100%;
}

.origin-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.origin-image:hover img {
    transform: scale(1.04);
}

.origin-stat {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.origin-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.origin-stat-num {
    font-family: var(--serif-en);
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1;
}

.origin-stat-label {
    font-family: var(--sans);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
}

/* 服务 */
.services-section {
    background: var(--bg-secondary);
}

.service-card {
    padding: 40px 32px;
    background: var(--bg-primary);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card-num {
    font-family: var(--serif-en);
    font-size: 3rem;
    font-weight: 300;
    color: var(--border-medium);
    margin-bottom: 20px;
    transition: color 0.3s;
}

.service-card:hover .service-card-num {
    color: var(--accent-warm);
}

.service-card-title {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.service-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
}

.service-card-line {
    width: 30px;
    height: 1px;
    background: var(--border-medium);
    margin-top: 20px;
    transition: width 0.3s, background 0.3s;
}

.service-card:hover .service-card-line {
    width: 60px;
    background: var(--accent-warm);
}

/* 工程师 */
.engineer-card {
    padding: 48px 36px;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-medium);
    transition: border-color 0.3s, box-shadow 0.3s;
    height: 100%;
}

.engineer-card:hover {
    border-left-color: var(--accent-warm);
    box-shadow: var(--shadow-md);
}

.engineer-card-label {
    font-family: var(--sans);
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 12px;
    font-weight: 500;
}

.engineer-card h4 {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.engineer-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.8;
}

/* 预算 */
.budget-section {
    background: var(--bg-darker);
}

.budget-block {
    text-align: center;
    padding: 20px 0;
}

.budget-quote {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 300;
    color: var(--text-on-dark);
    margin-bottom: 20px;
}

.budget-emphasis {
    font-family: var(--serif-en);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--accent-warm-light);
}

.budget-line {
    width: 50px;
    height: 1px;
    background: var(--border-dark);
    margin: 24px auto;
}

/* 材料 */
.material-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--border-light);
    margin-bottom: 40px;
}

.material-item {
    background: var(--bg-primary);
    padding: 28px 16px;
    text-align: center;
    transition: background 0.3s, box-shadow 0.3s;
}

.material-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.material-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.material-label {
    font-family: var(--serif);
    font-size: 0.9rem;
    font-weight: 400;
}

/* 工艺 */
.craft-section {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.craft-section .section-label {
    color: var(--text-on-dark-muted);
}

.craft-section .section-title {
    color: var(--text-on-dark);
}

.craft-section .divider {
    background: var(--border-dark);
}

.craft-item {
    border-left: 1px solid var(--border-dark);
    padding-left: 28px;
    transition: border-color 0.3s;
    height: 100%;
}

.craft-item:hover {
    border-left-color: var(--accent-warm);
}

.craft-item-icon {
    font-family: var(--serif-en);
    font-size: 2.4rem;
    color: var(--accent-warm-light);
    margin-bottom: 16px;
}

.craft-item h4 {
    font-family: var(--serif);
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-on-dark);
}

.craft-item p {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-on-dark-muted);
}

/* 作品 */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--border-light);
}

.project-item {
    position: relative;
    aspect-ratio: 5/4;
    overflow: hidden;
    background: var(--bg-secondary);
    cursor: pointer;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s, filter 0.6s;
    filter: brightness(0.95) saturate(0.8);
}

.project-item:hover img {
    transform: scale(1.05);
    filter: brightness(1) saturate(1);
}

.project-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 20, 20, 0.6), transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 32px;
    /*opacity: 0;*/
    transition: opacity 0.4s;
}

.project-item:hover .project-item-overlay {
    opacity: 1;
}

.project-item-info {
    color: #fff;
}

.project-tag {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.8;
}

.project-name {
    font-family: var(--serif);
    font-size: 1.3rem;
}

.project-location {
    font-family: var(--serif-en);
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.7;
}

/* 流程 */
.process-step {
    padding: 30px 20px 30px 0;
    border-top: 1px solid var(--border-light);
    counter-increment: step;
}

.process-step::before {
    content: '0' counter(step);
    font-family: var(--serif-en);
    font-size: 0.7rem;
    color: var(--accent-warm);
    display: block;
    margin-bottom: 12px;
}

.process-step h4 {
    font-family: var(--serif);
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.process-step p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.process-steps {
    counter-reset: step;
}

/* 边界 */
.boundary-block {
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
    padding: 40px 32px;
    border: 1px solid var(--border-light);
    position: relative;
}

.boundary-block::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--accent-warm);
}

.boundary-text {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.9;
}

/* 联系 */
.contact-section {
    background: var(--bg-secondary);
}

.contact-info-label {
    font-family: var(--sans);
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-light);
}

.contact-info-value {
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info-value:hover {
    color: var(--accent-warm);
}

.qr-placeholder {
    width: 100%;
    max-width: 160px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border-light);
    margin: 0 auto;
    transition: box-shadow 0.3s;
}

.qr-placeholder:hover {
    box-shadow: var(--shadow-md);
}

.qr-placeholder img {
    width: 100%;
    height: auto;
}

/* 页脚 */
.footer {
    background: var(--bg-darker);
    color: var(--text-on-dark-muted);
    font-size: 0.75rem;
}

.footer-brand {
    font-family: var(--serif-en);
    font-size: 1.3rem;
    color: var(--text-on-dark);
}

.footer a {
    color: var(--text-on-dark-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--text-on-dark);
}

.footer-bottom {
    border-top: 0.5px solid var(--border-dark);
    font-size: 0.65rem;
}

/* 滚动动画 */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s ease, transform 0.9s ease;
    will-change: transform, opacity;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

@media (max-width: 991.98px) {
    .section {
        padding: 70px 0;
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .material-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 50px 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .project-item-overlay {
        opacity: 1;
        padding: 20px;
    }

    .project-item img {
        filter: brightness(0.75) saturate(0.7);
    }

    .project-item:hover img {
        filter: brightness(0.85) saturate(0.85);
    }

    .material-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .material-item {
        padding: 18px 8px;
    }

    .material-emoji {
        font-size: 1.4rem;
    }

    .material-label {
        font-size: 0.7rem;
    }

    .engineer-card {
        padding: 32px 24px;
    }

    .budget-quote {
        font-size: 1.3rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 28px 20px;
    }

    .craft-item {
        padding-left: 20px;
    }

    .navbar {
        padding: 0 12px;
    }

    .navbar-brand {
        font-size: 1.3rem !important;
    }

    .navbar-brand small {
        font-size: 0.5rem !important;
    }

    .material-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1px;
    }

    .material-item {
        padding: 14px 4px;
    }

    .material-emoji {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

    .material-label {
        font-size: 0.6rem;
    }

    .engineer-card {
        padding: 24px 16px;
    }

    .budget-quote {
        font-size: 1.1rem;
    }

    .boundary-block {
        padding: 28px 16px;
    }

    :root {
        --navbar-height: 60px;
    }
}