:root {
    --bg: #1f2329;
    --panel: rgba(27, 31, 36, 0.88);
    --panel-soft: rgba(27, 31, 36, 0.72);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.75);
    --line: rgba(255, 255, 255, 0.16);
    --accent: #f37f22;
    --hero-image: url("20181121110254.jpg");
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

.site-shell {
    position: relative;
    min-height: auto;
    overflow: visible;
    scroll-behavior: smooth;
    background: #f4f4f4;
    padding-top: 96px;
    padding-left: 80px;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 28px 0 90px;
    background: var(--panel);
    z-index: 3;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    display: block;
    width: auto;
    height: 46px;
    object-fit: contain;
    margin-left: 4px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.main-nav a {
    position: relative;
    color: var(--text);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -14px;
    width: 100%;
    height: 1px;
    background: transparent;
    transition: background 0.2s ease;
}

.main-nav a:hover::after {
    background: rgba(255, 255, 255, 0.7);
}

.main-nav a[aria-current="page"]::after {
    background: rgba(255, 255, 255, 0.95);
}

.mobile-nav-groups {
    display: none;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.topbar-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--text);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, background 0.2s ease;
}

.topbar-actions a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    font: inherit;
}

.menu-toggle i {
    font-size: 1.1rem;
    line-height: 1;
}

.topbar-actions i,
.social-links i,
.bottom-rail i,
.slide-badge i {
    font-size: 1rem;
    line-height: 1;
}

.hero-slider {
    position: relative;
    min-height: 100vh;
    background: #111;
}

.slider-track {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.8s ease;
    background: var(--hero-image) center center / cover no-repeat;
}

.slide.is-active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.08) 46%, rgba(0, 0, 0, 0.18) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.05) 100%);
}

.slide-content {
    position: absolute;
    left: 50%;
    top: 64%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
}

.slide-badge span {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.slide-content h1 {
    margin: 0;
    font-size: clamp(2rem, 3.4vw, 4.2rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
}

.details-link {
    display: inline-block;
    margin-top: 34px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.68);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slider-dots {
    position: absolute;
    left: 50%;
    bottom: 76px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.dot.is-active {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.15);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.34);
    color: rgba(255, 255, 255, 0.94);
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.slider-arrow:hover {
    background: rgba(17, 24, 39, 0.54);
    border-color: rgba(255, 255, 255, 0.42);
    transform: translateY(-50%) scale(1.04);
}

.slider-arrow i {
    font-size: 1.35rem;
    line-height: 1;
}

.slider-arrow-prev {
    left: max(28px, 4vw);
}

.slider-arrow-next {
    right: max(28px, 4vw);
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    background: rgba(17, 24, 39, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    z-index: 2;
}

.scroll-cue i {
    font-size: 1.1rem;
}

.projects-screen {
    position: relative;
    min-height: auto;
    padding: 100px 48px;
    background: #ffffff;
    scroll-margin-top: 96px;
    color: #111;
}

.projects-panel {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.page-hero {
    position: relative;
    min-height: 56svh;
    display: flex;
    align-items: center;
    padding: 64px 48px 48px;
    background: var(--hero-image) center center / cover no-repeat;
    color: #fff;
}

.contact-hero {
    min-height: 48svh;
}

.about-hero {
    min-height: 62svh;
}

.projects-hero {
    min-height: 44svh;
}

.category-hero .page-hero-content {
    max-width: 900px;
}

.category-hero h1 {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(2.9rem, 5.8vw, 5.8rem);
    line-height: 0.96;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.24);
}

.category-hero .page-lead {
    max-width: 40ch;
    font-size: 1.04rem;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.42));
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding-left: 6%;
}

.page-kicker {
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 700;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.05;
    max-width: 14ch;
}

.page-lead {
    margin: 18px 0 0;
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.98rem;
    line-height: 1.8;
}

.about-section {
    padding: 60px 48px 28px;
    background: #fff;
    color: #111;
}

.about-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
    gap: 48px;
    align-items: start;
}

.about-copy {
    font-size: 0.98rem;
    line-height: 1.9;
}

.about-copy p {
    margin: 0 0 18px;
    color: rgba(17, 17, 17, 0.88);
}

.about-block {
    margin-top: 22px;
}

.about-block h2 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    line-height: 1.15;
}

.about-block ul {
    margin: 0;
    padding-left: 22px;
}

.about-block li {
    margin: 0 0 10px;
}

.service-list li {
    margin-bottom: 8px;
}

.about-media {
    position: sticky;
    top: 110px;
}

.about-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
}

.services-hero {
    min-height: 48svh;
}

.services-section {
    padding: 56px 48px 30px;
    background: #fff;
}

.services-grid-3 {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card-feature {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    min-height: 220px;
    border-radius: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.service-card-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #1f2329;
    color: #fff;
    font-size: 1.2rem;
}

.service-card-feature h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    color: #111;
}

.service-card-feature p {
    margin: 0;
    color: rgba(17, 17, 17, 0.72);
    font-size: 0.88rem;
    line-height: 1.75;
}

.contact-section {
    padding: 72px 48px 88px;
    background: #fff;
    color: #111;
}

.contact-wrap {
    max-width: 1280px;
    margin: 0 auto;
}

.contact-head {
    margin-bottom: 28px;
}

.contact-head h2 {
    margin: 18px 0 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.1;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.05fr);
    gap: 28px;
    align-items: start;
}

.contact-info-card,
.contact-form-card,
.contact-map-card {
    min-height: 100%;
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-item i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1f2329;
    color: #fff;
    flex: 0 0 auto;
    font-size: 1rem;
}

.contact-item span {
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: rgba(17, 17, 17, 0.56);
    font-weight: 700;
}

.contact-item strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #111;
    font-weight: 700;
}

.contact-follow h3 {
    margin: 8px 0 14px;
    font-size: 0.92rem;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-follow-links {
    display: grid;
    gap: 10px;
}

.contact-follow-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111;
    font-size: 0.95rem;
}

.contact-follow-links i {
    width: 24px;
    text-align: center;
    font-size: 1rem;
}

.contact-form-card {
    display: grid;
    gap: 18px;
}

.contact-form-card label {
    display: grid;
    gap: 8px;
}

.contact-form-card span {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: rgba(17, 17, 17, 0.56);
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    padding: 12px 0 14px;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.34);
    background: transparent;
    color: #111;
    font: inherit;
    outline: none;
    resize: vertical;
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
    color: rgba(17, 17, 17, 0.36);
}

.contact-form-card button {
    justify-self: start;
    margin-top: 8px;
    padding: 16px 28px;
    border: 2px solid #111;
    background: #fff;
    color: #111;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-form-card button:hover {
    background: #111;
    color: #fff;
    transform: translateY(-1px);
}

.contact-map-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 28px;
}

.contact-map-header p {
    margin: 12px 0 0;
    color: rgba(17, 17, 17, 0.7);
    line-height: 1.7;
}

.contact-map-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.contact-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.references-section {
    padding: 56px 48px 88px;
    background: #f6f3ef;
}

.references-wrap {
    max-width: 1600px;
    margin: 0 auto;
}

.reference-group + .reference-group {
    margin-top: 44px;
}

.reference-group-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.12);
    flex-wrap: wrap;
}

.reference-group-head .section-kicker {
    font-size: 0.86rem;
    letter-spacing: 0.16em;
    color: rgba(17, 17, 17, 0.88);
}

.reference-group-head .section-kicker i {
    font-size: 0.95rem;
}

.reference-group-head p {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.55);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.reference-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 16px;
    min-height: 170px;
    border-radius: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.reference-card-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1f2329;
    color: #fff;
    font-size: 1.1rem;
}

.reference-card h3 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.45;
    color: #111;
}

.reference-card span {
    margin-top: auto;
    display: block;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(17, 17, 17, 0.66);
}

.site-footer {
    position: relative;
    margin-left: 0;
    padding: 72px 48px 26px;
    background:
        radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.06), transparent 24%),
        linear-gradient(180deg, #1c1c1c 0%, #111 100%);
    color: rgba(255, 255, 255, 0.88);
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 180px 180px;
    opacity: 0.08;
    pointer-events: none;
}

.footer-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 1.1fr) minmax(220px, 0.7fr) minmax(220px, 0.7fr);
    gap: 72px;
    align-items: start;
}

.footer-brand-block {
    max-width: 360px;
}

.footer-logo img {
    display: block;
    width: auto;
    height: 48px;
}

.footer-brand-block p {
    margin: 22px 0 0;
    font-size: 0.78rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.78);
}

.footer-column h3 {
    margin: 0 0 16px;
    font-size: 0.82rem;
    letter-spacing: 0.24em;
    font-weight: 700;
    color: #fff;
}

.footer-column h3:not(:first-child) {
    margin-top: 26px;
}

.footer-column span,
.footer-column a {
    display: block;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.78rem;
    line-height: 1.6;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 36px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
}

.section-kicker.dark {
    color: rgba(17, 17, 17, 0.7);
}

.projects-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.projects-head-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.projects-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: #fff;
    color: #111;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.projects-back-link i {
    font-size: 0.95rem;
}

.projects-back-link:hover {
    transform: translateY(-1px);
    border-color: rgba(17, 17, 17, 0.24);
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
}

.projects-head h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.1;
    max-width: 14ch;
    color: #111;
}

.projects-head p {
    margin: 0;
    max-width: 46ch;
    color: rgba(17, 17, 17, 0.65);
    line-height: 1.7;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.category-projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-detail-section {
    padding: 56px 48px 84px;
    background: #f7f5f1;
}

.project-detail-panel {
    max-width: 1280px;
    margin: 0 auto;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

.project-detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.project-detail-main {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f4f4f4;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.project-detail-main-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.project-detail-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.project-detail-thumbs-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-detail-thumbs {
    display: flex;
    gap: 12px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.project-detail-thumbs::-webkit-scrollbar {
    display: none;
}

.project-detail-thumb {
    display: block;
    flex: 0 0 calc((100% - 60px) / 6);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 0;
    padding: 0;
    text-decoration: none;
    background: #ddd;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    scroll-snap-align: start;
}

.project-detail-thumbs-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    background: #fff;
    color: #111;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-detail-thumbs-control:hover {
    transform: translateY(-1px);
}

.project-detail-thumbs-control.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.project-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.92) contrast(0.95);
}

.project-detail-thumb.is-active::after,
.project-detail-thumb:hover::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.85);
    pointer-events: none;
}

.project-detail-content {
    background: #fff;
    padding: 34px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.05);
}

.project-detail-content h2 {
    margin: 18px 0 12px;
    font-size: clamp(1.6rem, 2.6vw, 2.6rem);
    line-height: 1.1;
    color: #111;
}

.project-detail-lead {
    margin: 0 0 16px;
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(17, 17, 17, 0.8);
}

.project-detail-content p {
    margin: 0 0 16px;
    line-height: 1.8;
    color: rgba(17, 17, 17, 0.74);
}

.project-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 26px 0 22px;
}

.project-detail-meta-item {
    padding: 14px 16px;
    background: #f4f4f4;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.project-detail-meta-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.55);
}

.project-detail-meta strong {
    color: #111;
    font-size: 0.95rem;
}

.project-detail-subtitle {
    margin: 0 0 14px;
    font-size: 1.1rem;
    line-height: 1.3;
    color: #111;
}

.project-detail-list {
    margin: 0;
    padding-left: 18px;
    color: rgba(17, 17, 17, 0.76);
    line-height: 1.8;
}

.project-detail-list li + li {
    margin-top: 8px;
}

.project-detail-actions {
    margin-top: 26px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    text-decoration: none;
    color: #fff;
    background: #1f2329;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.detail-back-link.secondary {
    color: #111;
    background: #f2f2f2;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.project-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(10, 10, 10, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9999;
    overflow: hidden;
}

.project-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.project-lightbox-figure {
    width: min(1200px, 88vw);
    height: min(90vh, 820px);
    margin: 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    background: #111;
    overflow: hidden;
}

.project-lightbox-figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111;
}

.project-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.project-lightbox-prev {
    left: 20px;
}

.project-lightbox-next {
    right: 20px;
}

.project-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}

body.lightbox-open {
    overflow: hidden;
}

.project-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #ddd;
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease,
        box-shadow 0.35s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.42) 42%,
        rgba(0, 0, 0, 0.08) 100%
    );
    transition: background 0.35s ease;
    z-index: 1;
}

.project-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.95) contrast(0.95);
    transition: transform 0.45s ease, filter 0.35s ease;
}

.project-card-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 34px;
    gap: 12px;
    transform: translateY(8px);
    transition: transform 0.35s ease;
}

.project-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.28);
}

.project-card h3 {
    margin: 0;
    font-size: clamp(1.3rem, 1.8vw, 2rem);
    line-height: 1.05;
    max-width: 100%;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.project-card a {
    display: inline-flex;
    width: fit-content;
    opacity: 0;
    transform: translateY(10px);
    margin-top: 8px;
    padding: 10px 18px;
    color: #111;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 700;
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.project-card:hover::after {
    background: rgba(255, 255, 255, 0.72);
}

.project-card:hover img {
    transform: scale(1.04);
    filter: saturate(0.85) contrast(0.9);
}

.project-card:hover .project-card-content {
    transform: translateY(0);
}

.project-card:hover a {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover h3,
.project-card:hover .project-label {
    color: #000;
}

.project-card:hover .project-label {
    background: rgba(255, 255, 255, 0.78);
}

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

.projects-head.reveal,
.section-kicker.reveal {
    transition-delay: 0ms;
}

.side-rail {
    position: fixed;
    left: 0;
    top: 96px;
    bottom: 0;
    width: 80px;
    padding: 28px 0 28px;
    background: rgba(23, 27, 32, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    z-index: 3;
}

.rail-line {
    width: 44px;
    height: 2px;
    background: rgba(255, 255, 255, 0.18);
}

.rail-line-mid {
    margin-top: 8px;
    margin-bottom: 2px;
}

.lang-switch {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin: 8px 0 0;
}

.lang-switch a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.7;
    font-style: italic;
}

.lang-switch a.active {
    opacity: 1;
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 2px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--text);
    text-decoration: none;
    opacity: 0.95;
}

.social-links i {
    font-size: 1rem;
    line-height: 1;
}

.bottom-rail {
    display: none;
}

@media (max-width: 900px) {
    .site-shell {
        padding-top: 92px;
        padding-left: 0;
    }

    .topbar {
        height: 92px;
        min-height: 92px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        gap: 10px 14px;
        padding: 12px 14px 10px 10px;
        overflow: visible;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 92px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100dvh - 92px);
        min-height: calc(100dvh - 92px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 12px;
        margin-top: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: var(--panel);
        max-height: none;
        overflow-y: scroll;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        transform: translateZ(0);
        z-index: 4;
    }

    .topbar.is-menu-open .main-nav {
        display: block;
    }

    .topbar-actions {
        display: none;
    }

    .side-rail {
        display: none;
    }

    .main-nav a {
        width: 100%;
        min-height: 46px;
        display: flex;
        align-items: center;
        padding: 0 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 0.84rem;
        letter-spacing: 0.08em;
    }

    .main-nav a::after {
        display: none;
    }

    .mobile-nav-groups {
        display: block;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 10px 12px 0;
    }

    .mobile-nav-group {
        display: block;
        flex-direction: column;
        gap: 6px;
        width: 100%;
        margin-top: 12px;
    }

    .mobile-nav-title {
        font-size: 0.68rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.58);
    }

    .mobile-nav-icons {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: hidden;
    }

    .mobile-nav-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        min-width: 32px;
        height: 32px;
        aspect-ratio: 1 / 1;
        padding: 0;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
        text-decoration: none;
        font-size: 0.68rem;
    }

    .mobile-nav-icons i {
        font-size: 1rem;
    }

    .slide-content {
        width: calc(100% - 90px);
        top: 60%;
    }

    .slider-arrow {
        width: 42px;
        height: 42px;
    }

    .slider-arrow-prev {
        left: 18px;
    }

    .slider-arrow-next {
        right: 18px;
    }

    .hero-slider,
    .slider-track,
    .slide {
        min-height: 72vh;
    }

    .projects-screen {
        padding: 36px 24px 36px 24px;
    }

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

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

    .project-detail-grid {
        grid-template-columns: 1fr;
    }

    .project-detail-thumbs {
        gap: 10px;
    }

    .project-detail-thumb {
        flex-basis: calc((100% - 30px) / 4);
    }

    .project-detail-meta {
        grid-template-columns: 1fr;
    }

    .projects-panel {
        min-height: auto;
        padding: 18px 0;
    }

    .project-card {
        aspect-ratio: 4 / 3;
    }

    .page-hero {
        min-height: 44svh;
        padding: 44px 24px 28px;
    }

    .about-hero {
        min-height: 48svh;
    }

    .page-hero-content {
        padding-left: 0;
    }

    .contact-section {
        padding: 36px 18px 56px;
    }

    .contact-head h2 {
        font-size: 1.65rem;
    }

    .contact-map-frame,
    .contact-map-frame iframe {
        aspect-ratio: 4 / 3;
    }

    .about-section {
        padding: 40px 24px 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-media {
        position: static;
        top: auto;
        max-width: 560px;
        margin: 0 auto;
    }

    .site-footer {
        padding: 52px 22px 42px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .services-section {
        padding: 40px 24px 24px;
    }

    .services-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-section {
        padding: 44px 24px 64px;
    }

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

    .contact-map-frame,
    .contact-map-frame iframe {
        aspect-ratio: 4 / 3;
    }

    .references-section {
        padding: 40px 24px 68px;
    }

    .references-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .project-detail-section {
        padding: 40px 24px 68px;
    }
}

@media (max-width: 1140px) and (min-width: 901px) {
    .category-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 640px) {
    .site-shell {
        padding-left: 0;
        padding-top: 104px;
    }

    .topbar {
        min-height: 104px;
        height: 104px;
        padding: 12px 12px 10px 10px;
        overflow: visible;
    }

    .brand img {
        height: 38px;
        margin-left: 10px;
    }

    .main-nav {
        width: 100%;
        top: 104px;
        height: calc(100dvh - 104px);
        min-height: calc(100dvh - 104px);
        max-height: calc(100dvh - 104px);
    }

    .main-nav a {
        min-height: 48px;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .mobile-nav-group {
        width: 100%;
    }

    .mobile-nav-icons {
        width: 100%;
        justify-content: flex-start;
    }

    .slide-badge {
        padding: 8px 12px;
        gap: 8px;
    }

    .slide-content {
        left: 50%;
        width: min(90%, 640px);
    }

    .slide-content h1 {
        font-size: clamp(1.7rem, 7vw, 2.6rem);
    }

    .hero-slider,
    .slider-track,
    .slide {
        min-height: 64vh;
    }

    .slide {
        background-image: var(--hero-mobile-image, var(--hero-image));
    }

    .slider-dots {
        bottom: 66px;
    }

    .slider-arrow {
        top: auto;
        bottom: 62px;
        width: 38px;
        height: 38px;
    }

    .slider-arrow-prev {
        left: 18px;
    }

    .slider-arrow-next {
        right: 18px;
    }

    .scroll-cue {
        bottom: 16px;
    }

    .projects-screen {
        padding-left: 18px;
        padding-right: 18px;
    }

    .project-card {
        aspect-ratio: 4 / 3;
    }

    .page-hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }

    .topbar-actions a {
        width: 30px;
        height: 30px;
    }

    .site-footer {
        padding-left: 18px;
        padding-right: 18px;
        padding-bottom: 42px;
    }

    .footer-logo img {
        height: 42px;
    }

    .footer-brand-block p {
        font-size: 0.74rem;
    }

    .about-copy {
        font-size: 0.95rem;
    }

    .services-grid-3 {
        grid-template-columns: 1fr;
    }

    .references-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reference-card {
        min-height: 150px;
        padding: 16px;
    }

    .services-hero {
        min-height: 42svh;
    }

    .page-lead {
        font-size: 0.92rem;
    }

    .service-card-feature {
        min-height: 0;
        padding: 20px;
    }

    .references-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .project-detail-content {
        padding: 22px;
    }

    .project-detail-main {
        aspect-ratio: 4 / 3;
    }

    .project-detail-thumbs {
        gap: 10px;
    }

    .project-detail-thumb {
        flex-basis: calc((100% - 20px) / 3);
    }

    .project-detail-thumbs-control {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .project-detail-actions {
        flex-direction: column;
    }

    .detail-back-link {
        width: 100%;
    }

    .project-lightbox {
        padding: 18px;
    }

    .project-lightbox-figure {
        width: 96vw;
        height: 82vh;
    }

    .project-lightbox-nav {
        width: 42px;
        height: 42px;
    }

    .project-lightbox-prev {
        left: 12px;
    }

    .project-lightbox-next {
        right: 12px;
    }
}

@media (min-width: 1680px) {
    .references-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}
