/* A technical drawing's hierarchy: a strong title, fixed rails, and a work index.
   Typography and palette stay consistent with the user's stated preferences. */
:root {
  --container: 1240px;
}

main > #home.hero {
  padding-top: calc(var(--nav) + 40px);
}

#home.hero > .wrap > .hero-text {
  display: block;
  height: auto;
}

#home .hero__head {
  display: block;
  text-align: left;
  margin-bottom: 42px;
}

#home .hero__kicker {
  margin: 0 0 24px;
  font: 400 13px/1.5 var(--font-text);
  letter-spacing: 0;
  color: var(--muted);
}

#home .hero__kicker::before {
  display: none;
}

#home .hero__head h1 {
  margin: 0;
  max-width: none;
  font: 500 clamp(72px, 7.2vw, 104px)/.98 var(--font-text);
  letter-spacing: -.065em;
}

#home .hero__body {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 72px;
  align-items: start;
}

#home .hero__intro {
  padding-top: 4px;
}

#home .hero__lead {
  max-width: 35ch;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #414141;
}

#home .btn-row {
  margin-top: 28px;
  justify-content: flex-start;
}

#home .btn--primary {
  min-height: 46px;
  padding-inline: 20px;
}

#home .hero__stage {
  position: relative;
  display: block;
  height: 330px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  overflow: visible;
}

#home .hero__stage > picture {
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#home .hero__stage img {
  object-position: 50% 100%;
}

/* Registration corners connect the photograph to the index's measured edges. */
#home .hero__stage::before,
#home .hero__stage::after {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  z-index: 2;
  pointer-events: none;
}

#home .hero__stage::before {
  top: -7px;
  left: -7px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

#home .hero__stage::after {
  bottom: -7px;
  right: -7px;
  border-bottom: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}

main > #selected-work {
  padding: 72px 0 64px;
}

#selected-work .section-head {
  margin-bottom: 28px;
}

#selected-work .section-head h2 {
  font-size: 26px;
  font-weight: 500;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-row {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 32px;
  padding: 30px 0;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  min-height: 152px;
}

.project-row:last-child {
  border-bottom: 0;
}

.project-row__index {
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  padding-top: 3px;
  padding-left: 1px;
  border-right: 1px solid var(--line);
  color: var(--muted);
}

.project-row__copy {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  column-gap: 64px;
  row-gap: 10px;
  align-items: start;
}

.project-meta {
  grid-column: 1;
  margin: 0;
}

.project-row h3 {
  grid-column: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  font: 500 30px/1.16 var(--font-text);
  letter-spacing: -.035em;
}

.project-row h3 span {
  flex: none;
  font-size: 21px;
}

.project-row__copy > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 48ch;
  padding-top: 2px;
  margin: 0;
  color: #454545;
}

.project-row::before {
  inset: 0 -16px;
  background: #171717;
  clip-path: none;
  opacity: 0;
  transition: none;
}

.project-row:focus-visible::before {
  opacity: 1;
}

.project-row:focus-visible h3,
.project-row:focus-visible h3 span {
  color: #fff;
}

.project-row:focus-visible .project-row__copy > p:last-child {
  color: #dedede;
}

.project-row:focus-visible .project-meta,
.project-row:focus-visible .project-row__index {
  color: #aaa;
}

@media (hover: hover) {
  .project-row:hover::before { opacity: 1; }
  .project-row:hover h3,
  .project-row:hover h3 span { color: #fff; }
  .project-row:hover .project-row__copy > p:last-child { color: #dedede; }
  .project-row:hover .project-meta,
  .project-row:hover .project-row__index { color: #aaa; }
}

@media (max-width: 1023px) {
  #home .hero__head h1 { font-size: clamp(62px, 8.8vw, 88px); }
  #home .hero__body { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; }
  #home .hero__stage { height: 300px; }
  #home .hero__lead { font-size: 17px; }
  .project-row { grid-template-columns: 40px minmax(0, 1fr); gap: 24px; }
  .project-row__copy { column-gap: 32px; }
  .project-row h3 { font-size: 27px; }
}

@media (max-width: 767px) {
  #home .hero__head { margin-bottom: 28px; }
  #home .hero__head h1 { font-size: clamp(50px, 8.7vw, 68px); }
  #home .hero__body { grid-template-columns: 1fr; gap: 32px; }
  #home .hero__lead { max-width: 48ch; }
  #home .hero__stage { height: 290px; }
  #home .hero__stage img { object-position: 53% 65%; }
  .project-row__copy { display: block; }
  .project-row h3 { margin: 9px 0 14px; }
  .project-row__copy > p:last-child { max-width: 58ch; padding: 0; }
}

@media (max-width: 639px) {
  main > #home.hero { padding-top: calc(var(--nav) + 30px); }
  #home .hero__kicker { margin-bottom: 18px; }
  #home .hero__head h1 { font-size: clamp(37px, 10.5vw, 54px); line-height: 1.04; letter-spacing: -.055em; }
  #home .hero__lead { font-size: 16px; line-height: 1.65; }
  #home .btn-row { margin-top: 22px; }
  #home .hero__stage { height: 260px; }
  main > #selected-work { padding: 44px 0 48px; }
  #selected-work .section-head { margin-bottom: 22px; }
  #selected-work .section-head h2 { font-size: 25px; }
  .project-row { grid-template-columns: 28px minmax(0, 1fr); gap: 18px; min-height: 0; padding: 26px 0; }
  .project-row h3 { font-size: 24px; line-height: 1.2; gap: 14px; }
  .project-row h3 span { font-size: 18px; }
  .project-row::before { inset: 0 -8px; }
}
