/* ============================================================
   HOME — the About / portfolio page, in the same editorial
   language as the writing section (builds on writing.css).
   Every photo slot is a fixed-shape frame that crops to fit, so
   any photo — landscape or portrait — can drop in.
   ============================================================ */

/* Frames that crop their photo to fill */
.home-band .fig-frame,
.home-portrait,
.project-media .fig-frame,
.album-tile .fig-frame,
.exp-photo {
  overflow: hidden;
  background: var(--fn-tint);
}
.home-band img,
.home-portrait img,
.project-media img,
.album-tile img,
.exp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-media .fig-frame img,
.album-tile .fig-frame img {
  transition: transform .8s cubic-bezier(.2, .6, .2, 1), opacity .3s ease;
}
.project-media .fig-frame:hover img,
.album-tile .fig-frame:hover img { transform: scale(1.03); opacity: 1; }

/* ---------- hero ---------- */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 72px;
}
.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 64px;
  align-items: end;
}
.home-name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(64px, 12vw, 150px);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 8px 0 32px;
}
.home-lede {
  font-family: var(--f-serif);
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 34rem;
  margin: 0 0 32px;
}
.home-portrait {
  margin: 0;
  aspect-ratio: 4 / 5;
}
@media (max-width: 820px) {
  .home-hero { padding: 48px 0 48px; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .home-portrait { max-width: 340px; }
}

/* ---------- wide photograph band ---------- */
.home-band { margin: 0; }
.home-band .fig-frame { aspect-ratio: 21 / 9; max-height: 78vh; width: 100%; }
.home-band figcaption {
  margin-top: 12px;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink-soft);
}
.home-band .credit {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
@media (max-width: 640px) { .home-band .fig-frame { aspect-ratio: 4 / 3; } }

/* ---------- sections ---------- */
.home-section { padding: 104px 0; }
.home-section + .home-section { border-top: 1px solid var(--fn-rule); }
@media (max-width: 640px) { .home-section { padding: 64px 0; } }

/* label column + content column */
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr);
  gap: 24px 56px;
}
.home-split-label {
  align-self: start;
  position: sticky;
  top: 100px;
  padding-top: 14px;
  border-top: 3px solid var(--ink);
}
.home-split--tight { margin-top: 80px; }
@media (max-width: 820px) {
  .home-split { grid-template-columns: 1fr; }
  .home-split-label { position: static; }
}

.home-prose { max-width: var(--measure); }
.home-prose p {
  font-family: var(--f-serif);
  font-size: 21px;
  line-height: 1.66;
  color: var(--fn-text);
  margin: 0 0 1.1em;
}
.home-prose .home-quote { margin-top: 56px; }
.home-prose .home-quote p { margin: 0; }
.home-prose .home-quote .pullquote-cite { margin-top: 14px; font-family: var(--f-mono); font-size: 12px; line-height: 1.4; color: var(--ink-soft); }
@media (max-width: 640px) { .home-prose p { font-size: 19px; } }

/* section header for full-width sections */
.home-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  align-items: end;
  gap: 0 48px;
  padding-bottom: 24px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--ink);
}
.home-head .eyebrow { grid-column: 1 / -1; }
.home-head-title { font-size: clamp(42px, 6.4vw, 80px); line-height: 0.9; }
.home-head-title:last-child { grid-column: 1 / -1; }
.home-head-note {
  font-family: var(--f-serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 760px) {
  .home-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 44px; }
}

/* ---------- portfolio ---------- */
.project {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.project + .project {
  margin-top: 88px;
  padding-top: 88px;
  border-top: 1px solid var(--fn-rule);
}
.project:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.project:nth-of-type(even) .project-media { order: 2; }

.project-media {
  aspect-ratio: 3 / 2;
  display: grid;
  gap: 6px;
}
.project-media--n2 { grid-template-columns: 2fr 1fr; }
.project-media--n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.project-media--n3 .fig-frame:first-child { grid-row: 1 / -1; }
.project-media .fig-frame { min-height: 0; height: 100%; }

.project-text .kicker { margin-bottom: 16px; }
.project-num { color: var(--ink); }
.project-num::after { content: '/'; color: var(--fn-rule); margin-left: 10px; }
.project-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.project-desc {
  font-family: var(--f-serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 860px) {
  .project,
  .project:nth-of-type(even) { grid-template-columns: 1fr; gap: 28px; }
  .project:nth-of-type(even) .project-media { order: 0; }
  .project + .project { margin-top: 56px; padding-top: 56px; }
}

/* ---------- field album ---------- */
.album {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(60px, 7.4vw, 100px);
  grid-auto-flow: dense;
  gap: 20px 14px;
}
.album-tile {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  grid-column: span 4;
  grid-row: span 5;
}
.album-tile .fig-frame { flex: 1; min-height: 0; }
/* repeating 7-tile rhythm: one large, two stacked, three tall, one panorama */
.album-tile:nth-child(7n + 1) { grid-column: span 7; grid-row: span 6; }
.album-tile:nth-child(7n + 2),
.album-tile:nth-child(7n + 3) { grid-column: span 5; grid-row: span 3; }
.album-tile:nth-child(7n + 7) { grid-column: 1 / -1; grid-row: span 5; }
.album-tile figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.album-tile figcaption .kicker { display: inline; flex-shrink: 0; font-size: 10.5px; }
@media (max-width: 700px) {
  .album { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 18px 10px; }
  .album-tile,
  .album-tile:nth-child(n) { grid-column: span 1; grid-row: auto; }
  .album-tile .fig-frame { flex: none; aspect-ratio: 4 / 5; }
  .album-tile:nth-child(7n + 1),
  .album-tile:nth-child(7n + 6),
  .album-tile:nth-child(7n + 7) { grid-column: 1 / -1; }
  .album-tile:nth-child(7n + 1) .fig-frame,
  .album-tile:nth-child(7n + 6) .fig-frame,
  .album-tile:nth-child(7n + 7) .fig-frame { aspect-ratio: 3 / 2; }
  .album-tile figcaption { white-space: normal; flex-wrap: wrap; gap: 2px 8px; font-size: 13px; }
}

/* ---------- experience & education ---------- */
.exp-list { list-style: none; margin: 0; padding: 0; }
.exp {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--fn-rule-soft);
}
.exp:first-child { padding-top: 14px; }
.exp:last-child { border-bottom: 0; }
.exp--plain { grid-template-columns: 1fr; }
.exp-photo { margin: 0; aspect-ratio: 4 / 3; }
.exp-body .meta { margin-bottom: 8px; }
.exp-role {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.exp-org { margin: 0; font-size: 16px; color: var(--ink-soft); }
.exp-co { color: var(--fn-kicker); font-weight: 600; }
@media (max-width: 560px) {
  .exp { grid-template-columns: 104px minmax(0, 1fr); gap: 18px; align-items: start; }
  .exp--plain { grid-template-columns: 1fr; }
}

/* ---------- recent writing ---------- */
.home-recent-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--ink);
}
.home-recent .fn-label { padding: 0; margin: 0; border: 0; font-size: clamp(32px, 4vw, 48px); }
.home-recent .read-link { margin-top: 0; }
