/* ==========================================================================
   Projects page
   ========================================================================== */

.page-title {
  margin: 0 0 22px;
  font-size: clamp(58px, 11vw, 132px);
  font-weight: 800;
  font-stretch: 78%;
  line-height: .86;
  letter-spacing: -.04em;
}
.page-title--sm { font-size: clamp(46px, 8.5vw, 100px); }
.page-title sup {
  position: relative;
  top: .35em;
  display: inline-block;
  margin-left: .12em;
  padding: 6px 9px;
  vertical-align: top;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 10px;
  font: 700 clamp(12px, 1.6vw, 16px)/1 var(--mono);
  letter-spacing: 0;
  transform: rotate(8deg);
}
.page-lede { max-width: 34em; margin: 0; font-size: 19px; line-height: 1.55; }

.page-head + .group { margin-top: 56px; }
.group + .group { margin-top: 64px; }
.group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}
.group-title .mono { color: var(--muted); }

.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.row { border-bottom: 2px solid var(--ink); }
.row-head {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 16px;
  padding: 18px 8px;
  cursor: var(--cur-hand, pointer);
  text-decoration: none;
  position: relative;
  isolation: isolate;
}
.row-num { color: var(--muted); font: 600 12px/1 var(--mono); transition: color .3s; }
.row-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.row-title { font-size: 23px; font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
.row-title em { margin-left: 8px; padding: 3px 7px; background: var(--ink); color: var(--paper); border-radius: 6px; font: 700 10px/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; vertical-align: 4px; }
.row-sub { color: var(--muted); font: 600 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; transition: color .3s; }
.row-tag { color: var(--muted); font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; transition: color .3s; }
.row-head:hover { color: var(--on-c, var(--ink)); }
.row-head:hover .row-num, .row-head:hover .row-sub, .row-head:hover .row-tag { color: var(--on-c, var(--ink)); }

.row-icon {
  position: relative;
  justify-self: end;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-weight: 800;
  transition: transform .5s var(--spring), background-color .3s;
}
.row-icon--plus::before, .row-icon--plus::after { content: ""; position: absolute; width: 12px; height: 2px; background: var(--ink); }
.row-icon--plus::after { transform: rotate(90deg); }
.row.open .row-icon--plus { transform: rotate(135deg); background: var(--c); }
.row-head:hover .row-icon--arrow { transform: rotate(45deg); }

.row-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.row.open .row-panel { grid-template-rows: 1fr; }
.row-inner { min-height: 0; overflow: hidden; }
.row-body { display: grid; gap: 20px; padding: 8px 8px 30px 68px; }
.row-text p { max-width: 62ch; margin: 0 0 1em; }
.row-text p:last-child { margin-bottom: 0; }
.row-shots { gap: 10px; }
.row-shots .media > img { border-radius: 8px; }

