/* ==========================================================================
   1. STRATEGIC SEO VERTICAL BLOCK LAYOUT
   ========================================================================== */

.site-seo-masthead {
  margin-top: 60px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.masthead-meta-strip {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  flex-wrap: nowrap;
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #111;
  border-bottom: 1px solid #eee;
  padding-bottom: 3rem;
  margin-bottom: 2.5rem;
}

.masthead-content-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.masthead-seo-title {
  font-size: clamp(2rem, 5.5vw, 6.5rem);
  font-weight: 300;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -2px;
  margin: 0;
  color: #111;
}



/* ==========================================================================
   3. ASYMMETRICAL PORTFOLIO CATEGORY DISPLAY
   ========================================================================== */

.portfolio-stream {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6vw 4vw;
  padding: 0 0 6vw 0;
  border-bottom: 1px solid #eeeeee;
}

.work-module {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.work-module.size-large  { grid-column: span 7; }
.work-module.size-medium { grid-column: span 5; }
.work-module.size-small  { grid-column: span 4; }
.work-module.offset-down { margin-top: 8vw; }

.image-container {
  position: relative;
  width: 100%;
  background-color: #f7f7f7;
  overflow: hidden;
}

.ratio-portrait { aspect-ratio: 3 / 4; }
.ratio-landscape { aspect-ratio: 16 / 10; }

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.module-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 0.5rem;
}

.module-meta-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.project-subtext {
  font-size: 0.85rem;
  color: #555555;
  text-align: right;
  line-height: 1.3;
}

/* ==========================================================================
   4. MASTER MATRIX CHRONO STREAM
   ========================================================================== */

.archive-utilities {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4vw 0 2vw 0;
  color: #777;
}

.archive-stream {
  display: flex;
  flex-direction: column;
  margin-bottom: 4vw;
}

.archive-row {
  display: grid;
  grid-template-columns: 0.6fr 2.5fr 2fr 1.5fr 1fr;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #111;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.archive-row:hover {
  background-color: #fcfcfc;
  padding-left: 0.5rem;
}

.archive-row span {
  font-size: clamp(0.72rem, 1.1vw, 0.9rem);
  font-weight: 400;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.archive-row .meta-mono {
  font-family: monospace;
  font-size: clamp(0.6rem, 0.9vw, 0.75rem);
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.archive-row .subject-title {
  font-family: Jost, sans-serif;
  font-size: clamp(0.65rem, 1.1vw, 1.0rem);
  text-transform: none;
  font-weight: 400;
  padding-right: 10px;
}


/* ==========================================================================
   5. HOMEPAGE ARCHIVE CARDS
   ========================================================================== */

.home-three-column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4vw 2vw;
  width: 100%;
}

.home-archive-card {
  border-bottom: 1px solid #eee;
  padding-bottom: 3vw;
  text-decoration: none;
}

.home-archive-card a {
  text-decoration: none !important;
  color: inherit;
  display: block;
}

.card-image {
  width: 100%;
  aspect-ratio: 10/13;
  overflow: hidden;
  background: #f9f9f9;
}

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

.card-meta-line {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #666;
}

.view-arrow {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-flex {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

/* ==========================================================================
   6. HOMEPAGE CATEGORY HEADERS
   ========================================================================== */

.category-row-header {
  padding-top: 0vw;
  margin-top: 0vw;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.category-row-header h2 {
  font-family: Jost, sans-serif;
  font-size: 2.7rem;
  font-weight: 600;
  text-transform: none;
  color: #000;
  margin: 0;
}

.category-meta-count {
  font-family: monospace;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #777;
}

.category-view-all {
  display: flex;
  justify-content: flex-end;
  margin-top: 3vw;
  margin-bottom: 6vw;
}

.category-view-all a {
  font-family: monospace;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: #111;
  border-bottom: 1px solid #111;
  padding-bottom: 4px;
  transition: opacity 0.2s ease;
}

.category-view-all a:hover {
  opacity: 0.6;
}

/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .work-module.size-large,
  .work-module.size-medium,
  .work-module.size-small {
    grid-column: span 6 !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 768px) {

  .masthead-meta-strip {
    margin-bottom: 1.3rem;
  }

  .portfolio-stream {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 4vw;
    border-bottom: none;
  }

  .work-module.size-large,
  .work-module.size-medium,
  .work-module.size-small {
    grid-column: span 1 !important;
  }

  .archive-row {
    grid-template-columns: 0.5fr 3fr 2.2fr 1.8fr 1.2fr;
    padding: 0.8rem 0;
    gap: 4px;
  }

  .archive-row .hide-mobile {
    display: block !important;
  }

  .archive-row .meta-mono {
    text-align: left;
  }

  .archive-row .text-right-mobile {
    text-align: right;
  }

  .category-row-header {
    margin-bottom: 1rem;
  }

  .category-view-all {
    margin-top: 4vw;
    margin-bottom: 8vw;
  }

  .category-row-header h2 {
    font-size: 1.5rem !important;
    letter-spacing: -0.3px;
  }

  .category-view-all a {
    font-size: 0.7rem !important;
    letter-spacing: 0.8px;
  }
}


.archive-utilities h2 {
  font-family: Jost, sans-serif;
  font-size: 2.7rem;
  font-weight: 600;
  text-transform: none;
  color: #000;
  margin: 0;
}
@media (max-width: 768px) {
  .archive-utilities h2 {
    font-size: 1.5rem !important;
  }
  .masthead-meta-strip {
    padding-bottom: 1rem !important;
  }
}
