/* ── RESEARCH / ASSEMBLAGES PAGE ── */

#page-research {
  overflow-y: auto;
}

/* fix background so it doesn't extend the scroll area — same as design page */
#page-research .subpage-bg {
  position: fixed;
}

/* gradient: image is visible for the top 70%, fades cleanly to black by 100% */
#page-research .subpage-bg::after {
  background: linear-gradient(
    to bottom,
    transparent        0%,
    transparent        65%,
    rgba(var(--ink-rgb),0.15) 75%,
    rgba(var(--ink-rgb),0.55) 87%,
    rgba(var(--ink-rgb),1.0)  100%
  );
}

/* Posts and photo tiles snap in instantly so child flickers run against a fully-opaque
   parent. design.css defines .post { transition: opacity 0.5s } globally — that 500ms
   fade would bury the 140ms flicker sequence in near-zero parent opacity. */
#page-research .post {
  transition: none;
}

#page-research .subpage-bg-img {
  opacity: 0.38;
  transition: opacity 1.8s ease;
  filter: invert(1) hue-rotate(195deg) saturate(1.4) brightness(0.85);
}


/* ── HEADER TWO-COLUMN LAYOUT ── */

.asm-header-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

.asm-header-text {
  display: flex;
  flex-direction: column;
}


.asm-header-bio-area {
  display: flex;
  flex-direction: column;
  gap: 0.85em;
}

.asm-header-bio {
  font-family: var(--font-prose);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--cream);
  opacity: 0.6;
  margin: 0;
}

.asm-header-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding-top: 0.6em;
}

.asm-header-layout.asm-workspace--hidden {
  display: none;
}

/* ── PHOTO STRIP GRID ── */

.asm-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.asm-photo-tile {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb),0.2);
}

.asm-photo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.asm-photo-tile:hover img {
  transform: scale(1.05);
}


/* ── POST LIST ── */

.asm-post-list {
  flex: 1 0 auto;
}

.asm-workspace--hidden {
  opacity: 0;
  pointer-events: none;
}

/* widen text column — research descriptions run longer than artifact blurbs */
#page-research .post-teaser-text {
  width: clamp(260px, 42vw, 500px);
}

/* tighten title margin when subtitle follows immediately below */
#page-research .post-title {
  margin-bottom: 0.3rem;
}



/* no-image entries span full text width */
.asm-post-text--wide {
  width: 100%;
  max-width: 680px;
}


/* ── OPEN BUTTON ── */

.asm-preview-actions {
  padding: 0.4rem 0 0;
}

.asm-open-btn {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-rgb),0.3);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
  cursor: pointer;
}

.asm-open-btn:hover {
  color: var(--cream);
  border-color: rgba(var(--cream-rgb),0.5);
}

.asm-open-btn--disabled {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(var(--cream-rgb),0.25);
  cursor: default;
  border-bottom: 1px solid rgba(var(--cream-rgb),0.08);
  padding-bottom: 1px;
}


/* ── THREE-IMAGE TEASER STRIP ── */

.asm-img-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0.4rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--frame-shadow), var(--frame-edge);
}

.asm-strip-cell {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.asm-strip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.78) sepia(0.12);
}

.asm-strip-img--contain {
  object-fit: contain;
  background: rgba(0,0,0,0.25);
}

.asm-strip-attrib-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.asm-strip-attrib {
  font-family: 'DM Mono', monospace;
  font-size: 0.42rem;
  color: var(--accent);
  text-align: center;
  opacity: 0.4;
}
.asm-strip-attrib a {
  color: inherit;
  text-decoration: none;
}


/* ── RESPONSIVE ── */

@media (max-width: 860px) {
  .asm-header-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
  #page-research .post-teaser-text {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .asm-photo-grid { grid-template-columns: repeat(2, 1fr); }
}
