/* ASAS ENGINEERING — Projects page */

.asproj {
    --asproj-ink: #0f1922;
    --asproj-gold: #a47c48;
    --asproj-line: #e5e0d7;
    --asproj-paper: #f6f3ed;
    --asproj-muted: #677078;
    background: #fff;
    color: var(--asproj-ink);
    font-family: 'Space Grotesk', Arial, Helvetica, sans-serif;
    padding-bottom: 90px;
}

.asproj *, .asproj *::before, .asproj *::after,
.asproj-lightbox *, .asproj-lightbox *::before, .asproj-lightbox *::after { box-sizing: border-box; }
.asproj [hidden], .asproj-lightbox[hidden], .asproj-lightbox [hidden] { display: none !important; }
.asproj button, .asproj-lightbox button { font: inherit; cursor: pointer; }
.asproj button:focus-visible, .asproj a:focus-visible,
.asproj-lightbox button:focus-visible { outline: 3px solid #a47c48; outline-offset: 4px; }
.asproj h1, .asproj h2, .asproj h3, .asproj p { margin: 0; }
.asproj h1, .asproj h2, .asproj h3 { font-family: 'Space Grotesk', Arial, Helvetica, sans-serif; font-style: normal; color: var(--asproj-ink); }
.asproj-container { width: min(100% - 96px, 1360px); margin-inline: auto; }

/* Hero: clear typography, full image, quiet drafting details. */
.asproj-hero {
    position: relative;
    overflow: hidden;
    background: var(--asproj-paper);
    padding: 155px 0 70px;
    isolation: isolate;
}
.asproj-hero-layout { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 64px; position: relative; z-index: 1; }
.asproj-hero-grid-lines {
    position: absolute;
    inset: 0 0 0 48%;
    z-index: -1;
    opacity: .3;
    background-image: linear-gradient(#b5a78e22 1px, transparent 1px), linear-gradient(90deg, #b5a78e22 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%);
    mask-image: linear-gradient(90deg, transparent, #000 35%);
}
.asproj-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--asproj-gold); margin-bottom: 20px !important; }
.asproj-eyebrow::before { content: ''; width: 30px; height: 1px; background: currentColor; }
.asproj-title { font-size: clamp(40px, 4.9vw, 72px); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; margin-bottom: 22px !important; font-style: normal !important; }
.asproj-hero-description { max-width: 400px; font-size: 15px; line-height: 1.85; color: var(--asproj-muted); }
.asproj-explore { display: inline-flex; align-items: center; gap: 20px; margin-top: 30px; padding: 8px 0; text-decoration: none; font-size: 13px; font-weight: 500; color: var(--asproj-ink); }
.asproj-explore span { color: var(--asproj-gold); font-size: 20px; transition: transform .25s ease; }
.asproj-explore:hover span { transform: translateY(4px); }
.asproj-hero-art { position: relative; min-width: 0; padding: 25px 20px 30px; }
.asproj-hero-image { display: block; width: 100%; height: clamp(220px, 24vw, 340px); object-fit: contain; }
.asproj-corner { position: absolute; width: 35px; height: 35px; color: var(--asproj-gold); opacity: .6; }
.asproj-corner-tl { top: 3px; left: 0; border-top: 1px solid; border-left: 1px solid; }
.asproj-corner-br { right: 0; bottom: 12px; border-bottom: 1px solid; border-right: 1px solid; }
.asproj-dimension { position: absolute; left: 13%; right: 13%; bottom: 0; height: 8px; border-top: 1px solid #a47c484d; }
.asproj-dimension::before, .asproj-dimension::after { content: ''; position: absolute; top: -5px; width: 1px; height: 9px; background: #a47c4873; }
.asproj-dimension::before { left: 0; } .asproj-dimension::after { right: 0; }

/* Portfolio filters and consistent landscape covers. */
.asproj-work { padding-top: 62px; scroll-margin-top: 100px; }
.asproj-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.asproj-section-heading h2 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.025em; }
.asproj-total { font-size: 12px; color: var(--asproj-muted); white-space: nowrap; }
.asproj-filters { display: flex; flex-wrap: wrap; gap: 2px 32px; border-bottom: 1px solid var(--asproj-line); margin-bottom: 34px; }
.asproj-filter { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 12px 0 16px; background: transparent; color: var(--asproj-muted); font-size: 12px !important; font-weight: 500 !important; min-height: 44px; transition: color .2s, border-color .2s; }
.asproj-filter:hover { color: var(--asproj-gold); }
.asproj-filter.active { color: var(--asproj-ink); border-bottom-color: var(--asproj-gold); }
.asproj-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 25px; }
.asproj-card { min-width: 0; }
.asproj-card-image { position: relative; width: 100%; aspect-ratio: 8 / 5; overflow: hidden; background: #e9e5de; }
.asproj-cover-link { display: block; position: absolute; inset: 0; z-index: 1; }
.asproj-cover-link img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.asproj-card-image:hover .asproj-cover-link img { transform: scale(1.035); }
.asproj-card-image::after { content: ''; position: absolute; z-index: 2; pointer-events: none; top: 11px; left: 11px; width: 18px; height: 18px; border-top: 1px solid #ffffffb3; border-left: 1px solid #ffffffb3; }
.asproj-image-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; color: #68716f; font-size: 12px; }
.asproj-photo-count { position: absolute; z-index: 3; left: 12px; bottom: 12px; background: #0f1922d6; color: #fff; font-size: 10px; letter-spacing: .4px; padding: 6px 8px; pointer-events: none; }
.asproj-gallery-button { position: absolute; z-index: 4; right: 11px; bottom: 11px; width: 38px; height: 38px; display: flex; justify-content: center; align-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--asproj-ink); transition: color .2s, background .2s; }
.asproj-gallery-button span { font-family: Arial, sans-serif; font-size: 26px; font-weight: 400; line-height: 1; }
.asproj-gallery-button:hover { background: var(--asproj-ink); color: #fff; }
.asproj-card-caption { position: relative; padding-top: 15px; }
.asproj-card-caption::before { content: ''; position: absolute; left: 0; top: 0; height: 1px; width: 0; background: var(--asproj-gold); transition: width .65s ease; }
.asproj-card.asproj-in-view .asproj-card-caption::before { width: 32px; }
.asproj-card h3 { font-size: clamp(14px, 1.15vw, 17px); font-weight: 500; line-height: 1.4; margin-bottom: 5px; }
.asproj-card-caption p { font-size: 11px; line-height: 1.5; color: var(--asproj-muted); }
.asproj-load-area { display: flex; flex-direction: column; align-items: center; gap: 17px; margin-top: 48px; }
.asproj-progress { color: var(--asproj-muted); font-size: 12px; }
.asproj-load-more { display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 15px 24px; min-height: 48px; background: #fff; color: var(--asproj-ink); border: 1px solid #c5b69e; border-radius: 0; font-size: 12px !important; font-weight: 500 !important; transition: background .2s, border-color .2s; }
.asproj-load-more span { font-size: 18px; }
.asproj-load-more:hover { background: var(--asproj-paper); border-color: var(--asproj-gold); }

/* The gallery opens on this page; a single photo hides the navigation. */
.asproj-lightbox { position: fixed; inset: 0; z-index: 99999; display: flex; justify-content: center; align-items: center; padding: 24px; color: #0f1922; font-family: 'Space Grotesk', Arial, Helvetica, sans-serif; }
.asproj-lb-backdrop { position: absolute; inset: 0; background: #08121ce8; }
.asproj-lb-panel { position: relative; width: min(100%, 1100px); max-height: calc(100dvh - 48px); overflow-y: auto; background: #f7f5f0; padding: 22px; box-shadow: 0 24px 90px #0004; }
.asproj-lb-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.asproj-lb-category { margin: 0 0 5px; font-size: 11px; color: #826238; text-transform: uppercase; letter-spacing: 1px; }
.asproj-lb-heading h2 { font-family: 'Space Grotesk', Arial, Helvetica, sans-serif; font-size: clamp(18px, 2vw, 25px); line-height: 1.3; font-weight: 500; font-style: normal; color: #0f1922; margin: 0; }
.asproj-lb-close { flex: 0 0 auto; display: flex; justify-content: center; align-items: center; width: 42px; height: 42px; border: 1px solid #ddd5c9; border-radius: 50%; background: #fff; color: #0f1922; }
.asproj-lb-close span { font-family: Arial, sans-serif; font-size: 28px; font-weight: 400; line-height: 1; }
.asproj-lb-main { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: min(57dvh, 620px); min-height: 180px; background: #e9e4db; }
.asproj-lb-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.asproj-lb-error { padding: 28px 65px; text-align: center; font-size: 14px; line-height: 1.6; color: #5e666d; }
.asproj-lb-prev, .asproj-lb-next { position: absolute; top: 50%; transform: translateY(-50%); display: flex; justify-content: center; align-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #ffffffed; color: #0f1922; transition: background .2s; }
.asproj-lb-prev { left: 14px; } .asproj-lb-next { right: 14px; }
.asproj-lb-prev span, .asproj-lb-next span { font-family: Arial, sans-serif; font-size: 32px; line-height: 1; padding-bottom: 3px; }
.asproj-lb-prev:hover, .asproj-lb-next:hover, .asproj-lb-close:hover { background: #e7dfd1; }
.asproj-lb-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 18px; }
.asproj-lb-counter { margin: 0; flex-shrink: 0; font-size: 12px; letter-spacing: 1px; color: #6e7478; }
.asproj-lb-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.asproj-lb-thumbs button { width: 72px; height: 54px; border: 2px solid transparent; padding: 0; overflow: hidden; background: #ddd6c9; opacity: .6; transition: opacity .2s, border-color .2s; }
.asproj-lb-thumbs button.active { opacity: 1; border-color: #a47c48; }
.asproj-lb-thumbs button:hover { opacity: 1; }
.asproj-lb-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1100px) {
    .asproj-container { width: min(100% - 64px, 1360px); }
    .asproj-hero-layout { gap: 30px; }
    .asproj-hero { padding-top: 140px; padding-bottom: 60px; }
    .asproj-grid { gap: 30px 20px; }
    .asproj-filters { column-gap: 25px; }
}
@media (max-width: 900px) {
    .asproj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .asproj-card h3 { font-size: 17px; }
    .asproj-hero-layout { grid-template-columns: 1fr 1fr; gap: 22px; }
    .asproj-hero-image { height: 230px; }
    .asproj-title { font-size: 44px; }
    .asproj-hero-description { font-size: 14px; }
}
@media (max-width: 640px) {
    .asproj { padding-bottom: 60px; }
    .asproj-container { width: calc(100% - 40px); }
    .asproj-hero { padding: 112px 0 35px; }
    .asproj-hero-layout { grid-template-columns: 1fr; gap: 30px; }
    .asproj-hero-grid-lines { inset: 40% 0 0; }
    .asproj-title { font-size: clamp(38px, 10vw, 48px); }
    .asproj-eyebrow { font-size: 11px; margin-bottom: 15px !important; }
    .asproj-hero-description { max-width: 360px; }
    .asproj-explore { margin-top: 20px; }
    .asproj-hero-art { padding: 18px 16px 25px; }
    .asproj-hero-image { height: 230px; }
    .asproj-work { padding-top: 40px; scroll-margin-top: 80px; }
    .asproj-section-heading { margin-bottom: 15px; }
    .asproj-filters { column-gap: 20px; margin-bottom: 25px; }
    .asproj-filter { padding-bottom: 12px; }
    .asproj-grid { gap: 28px 16px; }
    .asproj-card h3 { font-size: 14px; }
    .asproj-photo-count { font-size: 10px; left: 8px; bottom: 9px; padding: 5px 6px; }
    .asproj-gallery-button { width: 34px; height: 34px; right: 8px; bottom: 8px; }
    .asproj-load-area { margin-top: 34px; }
    .asproj-lightbox { padding: 12px; }
    .asproj-lb-panel { padding: 14px; max-height: calc(100dvh - 24px); }
    .asproj-lb-main { height: 48dvh; }
    .asproj-lb-heading { margin-bottom: 14px; }
    .asproj-lb-prev { left: 8px; } .asproj-lb-next { right: 8px; }
    .asproj-lb-bottom { gap: 12px; align-items: flex-start; }
    .asproj-lb-thumbs button { width: 58px; height: 46px; }
}
@media (max-width: 480px) {
    .asproj-grid { grid-template-columns: 1fr; gap: 30px; }
    .asproj-card h3 { font-size: 17px; }
    .asproj-gallery-button { width: 40px; height: 40px; right: 12px; bottom: 12px; }
    .asproj-photo-count { left: 12px; bottom: 13px; padding: 6px 8px; }
    .asproj-lb-bottom { flex-wrap: wrap; }
}
@media (pointer: coarse) {
    .asproj-gallery-button, .asproj-lb-close { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .asproj *, .asproj *::before, .asproj *::after,
    .asproj-lightbox *, .asproj-lightbox *::before, .asproj-lightbox *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
