/*
SUBPAGES: ART + CODE

Same identity as the home page.
NO category-button/filter matrix.
The little KF/slash mark is a secondary signature, not a new theme.
*/

.subpage-intro {
  padding-top: clamp(54px, 6.3vw, 96px);
}

.subpage-title {
  grid-column: 1 / 7;
}

.subpage-title .display {
  font-size: clamp(92px, 9vw, 158px);
}

.subpage-deck {
  margin-top: 12px;
  width: 34em;
  max-width: 100%;
  font-family: var(--font-label);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.subpage-quote {
  grid-column: 9 / 13;
  align-self: center;
}

.subpage-feature {
  margin-top: clamp(34px, 4vw, 58px);
}

/* ART: full-bleed artwork beneath the intro */
.art-feature {
  grid-column: 1 / 13;
  min-height: clamp(340px, 42vw, 560px);
  overflow: hidden;
}

.art-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CODE: text + feature image, still one editorial object */
.code-feature {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: minmax(230px, .68fr) minmax(0, 1.55fr);
  min-height: 420px;
}

.code-feature-copy {
  padding: clamp(34px, 4vw, 56px);
}

.code-feature-copy h2 {
  margin: 0 0 24px;
  color: var(--green);
  font-family: var(--font-display);
  font-size: clamp(35px, 3vw, 50px);
  font-weight: 500;
  line-height: .98;
}

.code-feature-copy p {
  max-width: 28ch;
  margin: 0 0 20px;
}

.code-feature-media {
  min-height: 420px;
  overflow: hidden;
}

.code-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selected-section {
  margin-top: clamp(42px, 5vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.selected-section > .section-label {
  margin-bottom: 20px;
  color: var(--green);
}

.selected-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.work-thumb {
  min-width: 0;
}

.work-thumb a {
  text-decoration: none;
}

.work-thumb .thumb {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--paper-deep);
}

.work-thumb .thumb.landscape { aspect-ratio: 4 / 3; }

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-med) var(--ease-out), filter var(--t-med) var(--ease-out);
}

.work-thumb a:hover img {
  transform: scale(1.015);
  filter: saturate(1.04);
}

.work-thumb h3 {
  margin: 0;
  color: var(--green);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.15;
}

.work-thumb .meta { margin-top: 5px; }

.editorial-columns {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}

.editorial-columns article {
  min-width: 0;
  padding-right: 22px;
  border-right: 1px solid var(--rule);
}

.editorial-columns article:last-child {
  border-right: 0;
  padding-right: 0;
}

.editorial-columns h3 {
  margin: 0 0 9px;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
}

.editorial-columns p {
  margin: 0 0 14px;
  max-width: 29ch;
}

/* CODE selected projects: intentionally list-like, not a wall of cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 42px;
  row-gap: 34px;
}

.project-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: start;
}

.project-item img {
  width: 74px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 15px;
}

.project-item h3 {
  margin: 1px 0 4px;
  color: var(--green);
  font-size: 18px;
  font-weight: 500;
}

.project-item p {
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

.subpage-footer-link {
  margin: 52px 0 86px;
  display: flex;
  justify-content: center;
}

@media (max-width: 820px) {
  .subpage-title,
  .subpage-quote,
  .art-feature,
  .code-feature { grid-column: 1 / -1; }

  .subpage-quote { margin-top: 30px; }

  .code-feature { grid-template-columns: 1fr; }
  .selected-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: 1fr; }
  .editorial-columns { grid-template-columns: 1fr; }
  .editorial-columns article {
    border-right: 0;
    padding-right: 0;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--rule);
  }
}
