.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.btn {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    min-height:      44px;
    padding:         0.75rem 1.5rem;
    border-radius:   var(--radius-sm);
    background:      var(--primary);
    color:           #fff;
    font-family:     'Barlow', system-ui, sans-serif;
    font-weight:     600;
    font-size:       0.88rem;
    letter-spacing:  0.05em;
    text-transform:  uppercase;
    transition:      background 0.15s ease;
    margin-right: 2rem;
}

.btn:hover { background: var(--primary-hover); }

.btn-secondary {
    background: var(--surface-2);
    color:      var(--text);
    border:     1px solid var(--border-strong);
    opacity: 90%;
}

.btn-secondary:hover { background: var(--primary-hover); }


.hero {
    position:   relative;
    overflow:   hidden;
    min-height: clamp(22rem, 55vw, 38rem);
    display: flex;
    align-items: center;
}

.hero-slider { position: absolute; inset: 0; }

.hero-slide {
    position:   absolute;
    inset:      0;
    width:      100%;
    height:     100%;
    object-fit: cover;
    opacity:    0;
    transition: opacity 1s ease;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
    position:   absolute;
    inset:      0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.72));
    z-index:    1;
    height: 100%;
}

.hero-content {
    position:    relative;
    z-index:     2;
    height: 100%;
    display:     flex;
    align-items: center;
    width: 90%;
}

.hero-text { max-width: 560px; }

.eyebrow {
    display:        block;
    color:          var(--primary);
    font-size:      0.78rem;
    font-weight:    600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom:  0.5rem;
}

.hero-text h2 {
    font-family:    'Barlow Condensed', system-ui, sans-serif;
    font-size:      clamp(2.2rem, 7vw, 4.8rem);
    font-weight:    700;
    letter-spacing: 0.01em;
    line-height:    1;
    text-transform: uppercase;
    margin:         0.75rem 0 1rem;
}

.hero-text p { color: #ccc7be; font-size: 1.05rem; margin-bottom: 2rem; }




.ext-brands {
    padding: 5rem 0 3rem;
    width: min(90%, var(--container));
    margin-inline: auto;
}

.section-title { margin-bottom: 1.75rem; text-align: center; }

.section-title h2 {
    font-family:    'Barlow Condensed', system-ui, sans-serif;
    font-size:      clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight:    700;
    letter-spacing: 0.01em;
    line-height:    1.1;
    text-transform: uppercase;
}

.section-title p { color: var(--muted); margin-top: 0.4rem; }

.ext-brands-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ext-brand-card {
    display: flex;
    align-items: center;
    justify-content: center;

    width: clamp(9rem, 40vw, 220px);
    min-height: 140px;

    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition: border-color 0.15s ease;
}

.ext-brand-card:hover { border-color: var(--primary); }

.ext-brand-card img {
    max-width:  9rem;
    max-height: 15rem;
    object-fit: contain;
}


.vmweb-section {
    padding: 5.3rem 0;
    width: 90%;
    min-height: 100vh;
}
.vmweb-wrapper {
    height: calc(100vh - 5.8rem);
    overflow: hidden;

    border-radius: var(--radius);
    border: 0.1rem solid var(--border-strong);
    background: var(--surface);
}

.vmweb-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

#vmweb {
    scroll-margin-top: 5.3rem;
}




.articles { padding: 1.5rem 0 5rem; width: 90%; }

.featured-article {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   0;
    border:                1px solid var(--border-strong);
    border-radius:         var(--radius);
    overflow:              hidden;
    margin-bottom:         2rem;
}

.article-image {
    background:  var(--surface-2);
    overflow:    hidden;
    min-height:  380px;
    border-right: 1px solid var(--border);
}

.article-image img {
    width:      100%;
    height:     100%;
    object-fit: cover;
}

.article-body {
    display:        flex;
    flex-direction: column;
    justify-content: center;
    gap:            1.25rem;
    padding:        2.5rem;
    background:     var(--surface);
}

.article-meta { display: flex; gap: 0.5rem; align-items: center; }

.article-tag {
    font-size:      0.7rem;
    font-weight:    600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color:          var(--primary);
    padding:        0.2rem 0.55rem;
    border:         1px solid var(--primary);
    border-radius:  var(--radius-sm);
}

.article-body h2 {
    font-family:    'Barlow Condensed', system-ui, sans-serif;
    font-size:      clamp(1.6rem, 4vw, 2.8rem);
    font-weight:    500;
    letter-spacing: 0.01em;
    line-height:    1.1;
    text-transform: uppercase;
}

.article-body h2 strong {
    font-weight: 700;
    color:       var(--primary);
}

.article-body p {
    color:     var(--muted);
    font-size: 0.97rem;
}

.article-table {
    width: auto;
    align-self: center;
}
.article-table th,
.article-table td {
    padding: 0rem 0.8rem;
}


.gallery-title {
    font-family:    'Barlow Condensed', system-ui, sans-serif;
    font-size:      1.6rem;
    font-weight:    700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding-bottom: 1rem;
    margin-bottom:  1.25rem;
    border-bottom:  1px solid var(--border-strong);
}

.photo-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap:                   0.6rem;
}

.photo-item {
    display:       block;
    aspect-ratio:  4 / 3;
    overflow:      hidden;
    border-radius: var(--radius-sm);
    border:        1px solid var(--border);
    cursor:        zoom-in;
    transition:    border-color 0.15s ease;
}

.photo-item:hover { border-color: var(--primary); }

.photo-item img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img { transform: scale(1.04); }



.lightbox {
    position:        fixed;
    inset:           0;
    z-index:         9000;
    background:      rgba(0, 0, 0, 0.92);
    display:         flex;
    align-items:     center;
    justify-content: center;
    opacity:         0;
    visibility:      hidden;
    transition:      opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.open {
    opacity:    1;
    visibility: visible;
}

.lightbox-img {
    max-width:     90vw;
    max-height:    88vh;
    object-fit:    contain;
    border-radius: var(--radius-sm);
    border:        1px solid var(--border-strong);
    user-select:   none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position:   absolute;
    background: transparent;
    border:     none;
    color:      var(--muted);
    font-size:  2rem;
    cursor:     pointer;
    line-height: 1;
    padding:    0.5rem;
    transition: color 0.12s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--text); }

.lightbox-close { top: 1.25rem; right: 1.5rem; font-size: 1.4rem; }
.lightbox-prev  { left: 1.5rem; font-size: 3rem; }
.lightbox-next  { right: 1.5rem; font-size: 3rem; }



@media (max-width: 900px) {
    .hero         { height: clamp(20rem, 60vw, 32rem); }
    .hero-content { justify-content: center; }
    .hero-text    { text-align: center; }
    .hero-text h2 { font-size: clamp(2rem, 6vw, 2.8rem); }

    .featured-article { grid-template-columns: 1fr; }

    .article-image {
        min-height:   240px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .article-body { padding: 1.75rem; }
    .articles     { padding: 3rem 0 4rem; }
    .vmweb-wrapper { height: clamp(400px, 80vh, calc(100vh - 5.8rem)); }
}

@media (max-width: 600px) {
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .btn { margin-right: 0.5rem; }
    .article-body { padding: 1.25rem; }
}
