
/* ============================================
   ASAS ENGINEERING & CONTRACTING
   PROJECTS — FRAMELESS EDITORIAL STUDIO
   ============================================ */

   .asproj {
    --asproj-ink: #0f1922;
    --asproj-gold: #bc8d50;
    --asproj-paper: #f4eee6;
    --asproj-muted: #677078;
    --asproj-line: #e5e0d7;
  
    background: #fff;
    color: var(--asproj-ink);
    font-family: "Space Grotesk", 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 h1,
  .asproj h2,
  .asproj h3,
  .asproj p {
    margin: 0;
  }
  
  .asproj button,
  .asproj-lightbox button {
    font: inherit;
    cursor: pointer;
  }
  
  .asproj a:focus-visible,
  .asproj button:focus-visible,
  .asproj-lightbox button:focus-visible {
    outline: 2px solid #bc8d50;
    outline-offset: 4px;
  }
  
  .asproj-container {
    width: min(100% - 96px, 1360px);
    margin-inline: auto;
  }
  
  /* ============================================
     HERO
     ============================================ */
  
  .asproj .asproj-hero--editorial {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 545px;
    padding: 110px 0 65px;
    background: var(--asproj-paper);
    overflow: hidden;
  }
  
  .asproj .asproj-hero-editorial-grid {
    display: grid;
    grid-template-columns:
      minmax(0, 1.12fr) minmax(0, .88fr);
    align-items: center;
    gap: clamp(26px, 3.2vw, 56px);
  }
  
  .asproj .asproj-hero-artwork {
    min-width: 0;
    width: 100%;
    overflow: hidden;
  }
  
  .asproj .asproj-hero-linework {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 720 / 445;
    object-fit: contain;
  }
  
  .asproj .asproj-hero-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 0;
  }
  
  .asproj .asproj-hero-accent {
    display: block;
    width: 56px;
    height: 2px;
    margin-bottom: 26px;
    background: var(--asproj-gold);
  }
  
  .asproj .asproj-hero-copy h1 {
    width: 100%;
    color: #1e2634;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(37px, 3.85vw, 59px);
    font-weight: 700;
    font-style: normal;
    line-height: 1.11;
    letter-spacing: -.045em;
  }
  
  .asproj .asproj-hero-description {
    max-width: 410px;
    margin: 23px 0 0;
    color: #626a72;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    text-align: center;
  }
  
  /* HERO ARROW — NO BACKGROUND */
  
  .asproj .asproj-scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 29px auto 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #987044;
    text-decoration: none;
    transition:
      color .25s ease,
      transform .25s ease;
  }
  
  .asproj .asproj-scroll-arrow:hover {
    background: transparent;
    color: #0f1922;
    transform: translateY(4px);
  }
  
  .asproj .asproj-scroll-arrow svg {
    width: 26px;
    height: 26px;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  /* ============================================
     PROJECTS SECTION
     ============================================ */
  
  .asproj-work {
    padding-top: clamp(48px, 5vw, 82px);
    background: #fff;
    scroll-margin-top: 100px;
  }
  
  .asproj-section-heading {
    margin-bottom: 23px;
  }
  
  .asproj-section-heading h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 600;
    letter-spacing: -.025em;
  }
  
  /* ============================================
     CATEGORY FILTERS
     ============================================ */
  
  .asproj-filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 32px;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--asproj-line);
  }
  
  .asproj-filter {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 12px 0 16px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--asproj-muted);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition:
      color .2s ease,
      border-color .2s ease;
  }
  
  .asproj-filter.active {
    color: var(--asproj-ink);
    border-bottom-color: var(--asproj-gold);
  }
  
  .asproj-filter:hover {
    color: var(--asproj-gold);
  }
  
  /* ============================================
     EDITORIAL MASONRY
     NO BOXES — NATURAL IMAGE SIZES
     ============================================ */
  
  .asproj .asproj-grid {
    position: relative;
    display: block;
    width: 100%;
    min-height: 1px;
    margin: 0;
  }
  
  .asproj .asproj-card {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
    grid-column: auto;
  }
  
  .asproj .asproj-card[hidden] {
    display: none !important;
  }
  
  .asproj .asproj-card-image {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    overflow: hidden;
    isolation: isolate;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  
  .asproj .asproj-cover-link {
    position: relative;
    inset: auto;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    overflow: hidden;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
  }
  
  .asproj .asproj-cover-link img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    transition: filter .35s ease;
  }
  
  .asproj .asproj-card-image:hover
  .asproj-cover-link img {
    filter: brightness(.94);
  }
  
  /* Image fallback */
  
  .asproj .asproj-image-fallback {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 20px;
    background: #f6f4f0;
    color: var(--asproj-muted);
    font-size: 12px;
    text-align: center;
  }
  
  /* ============================================
     PHOTO COUNT — NO BACKGROUND
     ============================================ */
  
  .asproj .asproj-photo-count {
    position: absolute;
    left: 8px;
    bottom: 10px;
    z-index: 3;
    padding: 3px 5px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .02em;
    text-shadow:
      0 1px 5px rgba(0, 0, 0, .85),
      0 2px 10px rgba(0, 0, 0, .6);
    pointer-events: none;
  }
  
  /* ============================================
     PLUS — ICON ONLY
     ============================================ */
  
  .asproj .asproj-gallery-button {
    position: absolute;
    right: 7px;
    bottom: 6px;
    z-index: 5;
  
    display: grid;
    place-items: center;
  
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  
    color: #fff;
    cursor: pointer;
  
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  
    filter: drop-shadow(
      0 2px 3px rgba(0, 0, 0, .85)
    );
  
    transition:
      transform .25s ease,
      opacity .25s ease;
  }
  
  .asproj .asproj-gallery-button:hover {
    background: transparent;
    color: #fff;
    transform: scale(1.14);
  }
  
  .asproj .asproj-gallery-button svg {
    width: 25px;
    height: 25px;
    pointer-events: none;
  }
  
  /* ============================================
     PROJECT NAME + CATEGORY
     ============================================ */
  
  .asproj .asproj-card-caption {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 16px 0 0;
    background: transparent;
  }
  
  .asproj .asproj-card-caption p {
    order: -1;
    margin: 0;
    color: #987346;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .17em;
  }
  
  .asproj .asproj-card-caption h3 {
    margin: 0;
    color: #0f1922;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(17px, 1.55vw, 23px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -.035em;
  }
  
  /* ============================================
     LOAD MORE
     ============================================ */
  
  .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: 20px;
    min-height: 48px;
    padding: 15px 24px;
    border: 1px solid #c5b69e;
    border-radius: 0;
    background: #fff;
    color: #0f1922;
    font-size: 12px;
    font-weight: 500;
    transition:
      background .25s ease,
      border-color .25s ease;
  }
  
  .asproj-load-more:hover {
    background: #f6f3ed;
    border-color: var(--asproj-gold);
  }
  
  /* ============================================
     GALLERY LIGHTBOX
     ============================================ */
  
  .asproj-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: "Space Grotesk", sans-serif;
    color: #0f1922;
  }
  
  .asproj-lightbox[hidden],
  .asproj-lightbox [hidden] {
    display: none !important;
  }
  
  .asproj-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 28, .92);
  }
  
  .asproj-lb-panel {
    position: relative;
    width: min(100%, 1100px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    padding: 22px;
    background: #f7f5f0;
    box-shadow: 0 24px 90px rgba(0, 0, 0, .27);
  }
  
  .asproj-lb-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
  }
  
  .asproj-lb-category {
    margin: 0 0 5px;
    color: #826238;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .asproj-lb-heading h2 {
    margin: 0;
    color: #0f1922;
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 500;
    font-style: normal;
    line-height: 1.3;
  }
  
  /* CLOSE ICON — NO CIRCLE */
  
  .asproj-lightbox .asproj-lb-close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  
    width: 44px;
    height: 44px;
    padding: 0;
  
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  
    color: #0f1922;
  }
  
  .asproj-lb-close span {
    font-size: 28px;
    line-height: 1;
  }
  
  /* MAIN GALLERY IMAGE */
  
  .asproj-lb-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: min(57dvh, 620px);
    min-height: 180px;
    overflow: hidden;
    background: #e9e4db;
  }
  
  .asproj-lb-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
  
  .asproj-lb-error {
    padding: 28px;
    font-size: 14px;
    text-align: center;
  }
  
  /* ============================================
     GALLERY ARROWS — ICONS ONLY
     ============================================ */
  
  .asproj-lightbox .asproj-lb-prev,
  .asproj-lightbox .asproj-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  
    display: grid;
    place-items: center;
  
    width: 46px;
    height: 54px;
    padding: 0;
  
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  
    color: #fff;
    cursor: pointer;
  
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  
    filter: drop-shadow(
      0 2px 3px rgba(0, 0, 0, .85)
    );
  
    transition: transform .2s ease;
  }
  
  .asproj-lightbox .asproj-lb-prev {
    left: 9px;
  }
  
  .asproj-lightbox .asproj-lb-next {
    right: 9px;
  }
  
  .asproj-lightbox .asproj-lb-prev:hover,
  .asproj-lightbox .asproj-lb-next:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-50%) scale(1.12);
  }
  
  .asproj-lightbox .asproj-lb-prev svg,
  .asproj-lightbox .asproj-lb-next svg {
    width: 32px;
    height: 32px;
    pointer-events: none;
  }
  
  /* ============================================
     GALLERY THUMBNAILS
     ============================================ */
  
  .asproj-lb-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
  }
  
  .asproj-lb-counter {
    margin: 0;
    flex-shrink: 0;
    color: var(--asproj-muted);
    font-size: 12px;
  }
  
  .asproj-lb-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .asproj-lb-thumbs button {
    width: 72px;
    height: 54px;
    padding: 0;
    border: 2px solid transparent;
    background: #ddd6c9;
    opacity: .6;
    overflow: hidden;
    transition:
      opacity .2s ease,
      border-color .2s ease;
  }
  
  .asproj-lb-thumbs button.active {
    border-color: var(--asproj-gold);
    opacity: 1;
  }
  
  .asproj-lb-thumbs button:hover {
    opacity: 1;
  }
  
  .asproj-lb-thumbs img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* ============================================
     TABLET
     ============================================ */
  
  @media (max-width: 1100px) {
    .asproj-container {
      width: min(100% - 64px, 1360px);
    }
  
    .asproj .asproj-hero-editorial-grid {
      grid-template-columns:
        minmax(0, 1.05fr) minmax(0, .95fr);
      gap: 25px;
    }
  
    .asproj .asproj-hero-copy h1 {
      font-size: clamp(34px, 4vw, 49px);
    }
  }
  
  /* ============================================
     MOBILE HERO
     ============================================ */
  
  @media (max-width: 760px) {
    .asproj .asproj-hero--editorial {
      min-height: auto;
      padding: 115px 0 56px;
    }
  
    .asproj .asproj-hero-editorial-grid {
      grid-template-columns: 1fr;
      gap: 25px;
    }
  
    .asproj .asproj-hero-artwork {
      width: 100%;
      margin: 0 auto;
    }
  
    .asproj .asproj-hero-linework {
      width: 100%;
      max-width: 100%;
    }
  
    .asproj .asproj-hero-copy {
      width: 100%;
      padding: 5px 0;
    }
  
    .asproj .asproj-hero-copy h1 {
      font-size: clamp(34px, 7vw, 49px);
    }
  
    .asproj .asproj-hero-accent {
      margin-bottom: 20px;
    }
  
    .asproj-work {
      padding-top: 40px;
      scroll-margin-top: 80px;
    }
  
    .asproj-lb-panel {
      padding: 14px;
    }
  
    .asproj-lb-main {
      height: 48dvh;
    }
  }
  
  /* ============================================
     PHONE — ALL CATEGORIES IN ONE ROW
     ============================================ */
  
  @media (max-width: 700px) {
    .asproj-container {
      width: calc(100% - 36px);
    }
  
    .asproj .asproj-filters {
      display: grid;
      grid-template-columns:
        repeat(4, minmax(0, 1fr));
      gap: 0;
      width: 100%;
      margin-bottom: 24px;
      flex-wrap: nowrap;
    }
  
    .asproj .asproj-filter {
      display: block;
      width: 100%;
      min-width: 0;
      max-width: 100%;
      min-height: 44px;
      padding: 10px 0 13px;
  
      font-size: clamp(8px, 2.3vw, 11px);
      font-weight: 500;
      line-height: 1.2;
      letter-spacing: -.04em;
  
      white-space: nowrap;
      text-align: center;
    }
  
    .asproj .asproj-card-caption {
      padding-top: 13px;
    }
  
    .asproj .asproj-card-caption h3 {
      font-size: 19px;
    }
  
    .asproj-lightbox {
      padding: 12px;
    }
  
    .asproj-lb-bottom {
      flex-wrap: wrap;
    }
  
    .asproj-lb-thumbs button {
      width: 58px;
      height: 46px;
    }
  }
  
  /* ============================================
     SMALL PHONES
     ============================================ */
  
  @media (max-width: 480px) {
    .asproj .asproj-hero--editorial {
      padding: 105px 0 46px;
    }
  
    .asproj .asproj-hero-editorial-grid {
      gap: 18px;
    }
  
    .asproj .asproj-hero-copy h1 {
      font-size: clamp(31px, 8vw, 39px);
      line-height: 1.14;
    }
  
    .asproj .asproj-scroll-arrow {
      width: 48px;
      height: 48px;
    }
  
    .asproj-lb-prev {
      left: 8px;
    }
  
    .asproj-lb-next {
      right: 8px;
    }
  
    .asproj .asproj-card-caption h3 {
      font-size: 18px;
    }
  }
  
  /* ============================================
     TOUCH SUPPORT
     ============================================ */
  
  @media (pointer: coarse) {
    .asproj-gallery-button,
    .asproj-lb-close {
      min-width: 44px;
      min-height: 44px;
    }
  }
  
  /* ============================================
     ACCESSIBILITY
     ============================================ */
  
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
  
    .asproj *,
    .asproj *::before,
    .asproj *::after,
    .asproj-lightbox *,
    .asproj-lightbox *::before,
    .asproj-lightbox *::after {
      animation: none !important;
      transition: none !important;
    }
  }
  