/* ============================================================
   SECTIONS — Portfolio · Blog · Research (shared scaffolding)
   ============================================================ */

.section {
  padding: clamp(5rem, 12vh, 9rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 4rem;
}

/* section header: small mono label + big serif title */
.section-head {
  margin-bottom: 1rem;
}
.section-label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.section-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-2);
  letter-spacing: -0.02em;
  margin-top: 0.6rem;
  color: var(--text);
}

/* ---- placeholder sections (Portfolio / Blog) ---- */
.section--ph {
  min-height: 78vh;
  display: flex;
  align-items: center;
}
.ph-note {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 1.6rem;
}

/* ---- Research ---- */
.res-group {
  margin-top: 2.4rem;
}
.section-head + .res-group {
  margin-top: 2rem;
}
.res-sub {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-2);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.6rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.res-list {
  list-style: none;
}

/* staggered reveal: title + rows cascade in as each group enters */
.res-sub,
.res-item {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.res-group.in .res-sub,
.res-group.in .res-item {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .res-sub,
  .res-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.res-item {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1rem;
  padding: 0.4rem 0;
  align-items: baseline;
}
.res-index {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--accent);
}
.res-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
}
.res-text b {
  font-weight: 600;
}
.res-text i {
  font-style: italic;
  color: var(--muted);
}
.res-link {
  color: var(--contrast);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.res-link:hover {
  border-bottom-color: var(--contrast);
}

@media (max-width: 600px) {
  .res-item {
    grid-template-columns: 2rem 1fr;
    gap: 0.6rem;
  }
}
