/* Selected layout 04. All rules are confined to the homepage. */
.header-with-clients {
  display: block;
  height: auto;
}
.header-primary {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.header-clients {
  display: flex;
  align-items: center;
  gap: 48px;
  min-height: 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.header-clients .client-label {
  flex-shrink: 0;
  font-size: 9px;
}
.header-clients .clients { flex: 1; }
.header-clients .clients button {
  min-height: 48px;
  font-size: clamp(15px, 1.35vw, 20px);
  letter-spacing: -.5px;
}
#work .section-rule { border-top: 0; }
.interlock-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 22px;
}
.interlock-hero {
  grid-area: 1 / 1 / 2 / 9;
  width: 100%;
  min-width: 0;
  height: auto;
  align-self: start;
  aspect-ratio: auto;
}
.interlock-hero::after { display: none; }
.interlock-hero .feature-image { display: block; height: auto; object-fit: contain; }
.interlock-hero:hover .feature-image { transform: none; }
.interlock-hero .watch-pill { left: auto; right: 22px; bottom: 22px; }
.interlock-caption {
  grid-area: 1 / 9 / 2 / 13;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 10px 18px 0;
  min-width: 0;
}
.latest-label { color: var(--muted); font-size: 8px; margin-bottom: 20px; }
.interlock-caption .project-client { font-size: 10px; margin-bottom: 8px; }
.interlock-caption .project-title {
  font-size: clamp(31px, 3.05vw, 48px);
  letter-spacing: -.045em;
}
.interlock-caption .project-credit {
  align-items: flex-start;
  text-align: left;
  padding-top: 14px;
  gap: 2px;
}
.interlock-caption .project-details { font-size: 11px; min-height: 34px; padding: 3px 0; }
.interlock-caption .browse-work {
  width: 100%;
  max-width: 290px;
  min-height: 54px;
  padding: 15px 18px;
  margin-top: 15px;
  font-size: 12px;
}
.interlock-secondary { min-width: 0; }
.project-art {
  width: 100%;
  min-width: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  background: #e5e7dd;
}
.project-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.project-art:hover img { transform: scale(1.025); }
.secondary-recess {
  grid-area: 2 / 9 / 3 / 13;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.secondary-recess .project-art { height: 100%; min-height: 160px; }
.secondary-caption { min-width: 0; }
.secondary-recess .secondary-caption { align-self: end; padding-bottom: 10px; }
.secondary-caption > .small { color: var(--muted); }
.secondary-caption h2 { margin: 9px 0 0; font-weight: 500; }
.secondary-caption h2 button {
  font-size: clamp(21px, 1.75vw, 27px);
  letter-spacing: -.04em;
  line-height: 1.1;
  text-align: left;
  padding: 0;
}
.secondary-caption h2 button:hover { color: var(--accent); }
.secondary-caption p { margin: 10px 0 0; font-size: 10px; color: var(--muted); }
.interlock-bio {
  grid-area: 2 / 1 / 3 / 5;
  border: 1px solid var(--line);
  padding: 24px;
}
.interlock-bio > .small { font-size: 9px; color: var(--muted); }
.interlock-bio h2 { font-size: 33px; line-height: 1.1; font-weight: 500; letter-spacing: -.045em; margin: 18px 0 0; }
.interlock-bio p { color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 340px; margin: 17px 0; }
.interlock-bio .text-link { font-size: 12px; display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid currentColor; }
.secondary-google { grid-area: 2 / 5 / 3 / 9; }
.secondary-google .project-art { height: 166px; }
.secondary-google .secondary-caption { display: grid; grid-template-columns: 1fr 2fr; gap: 15px; margin-top: 16px; align-items: start; }
.secondary-google h2 { margin: 0; }
.secondary-google .secondary-caption p { display: none; }
.interlock-tools { grid-area: 2 / 9 / 3 / 13; min-height: 0; border: 1px solid var(--line); padding: 25px; gap: 30px; }
.interlock-tools .tools-title { font-size: 29px; font-weight: 500; }
.interlock-tools .tools-link { margin-top: auto; padding-bottom: 10px; }
#work + .footer { margin-top: 40px; }
@media (min-width: 701px) and (max-width: 1279px) {
  .header-primary { gap: 20px; }
  .header-clients { gap: 25px; }
  .header-clients .clients { gap: 16px; flex-wrap: wrap; justify-content: flex-start; }
  .header-clients .clients button { font-size: 15px; }
  .interlock-grid { grid-template-rows: auto auto auto; }
  .interlock-caption { padding: 0 0 0 8px; }
  .interlock-caption .project-title { font-size: 32px; }
  .latest-label { margin-bottom: 12px; }
  .secondary-recess { gap: 13px; grid-template-columns: 1fr; padding-top: 13px; }
  .secondary-recess .project-art { min-height: 0; height: 120px; }
  .secondary-recess .secondary-caption { padding: 0; }
  .secondary-recess h2 button { font-size: 20px; }
  .secondary-recess .secondary-caption p { display: none; }

  .interlock-bio { padding: 18px; }
  .interlock-bio h2 { font-size: 27px; }
  .interlock-bio p { font-size: 13px; }
  .interlock-tools { padding: 20px; }
  .interlock-tools .tools-title { font-size: 26px; }
  .secondary-google .secondary-caption { grid-template-columns: 1fr; gap: 3px; margin-top: 10px; }
  .secondary-google h2 button { font-size: 21px; }
}
@media (max-width: 700px) {
  .header-primary { min-height: 76px; gap: 20px; }
  .header-clients { display: block; padding: 13px 0 12px; }
  .header-clients .client-label { display: block; font-size: 8px; margin-bottom: 6px; }
  .header-clients .clients { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0 24px; }
  .header-clients .clients button { min-height: 44px; font-size: 14px; letter-spacing: -.3px; }
  #work .section-rule { min-height: 48px; }
  .interlock-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto; gap: 18px 16px; }
  .interlock-hero { grid-area: 1 / 1 / 2 / 7; height: auto; min-height: 0; }
  .interlock-hero .watch-pill { right: 10px; bottom: 10px; left: auto; padding: 10px 13px; font-size: 10px; }
  .interlock-caption { grid-area: 2 / 1 / 3 / 7; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 14px; padding: 3px 0 12px; min-height: 0; }
  .latest-label { grid-column: 1 / 3; margin-bottom: 13px; }
  .interlock-caption .project-heading { grid-column: 1; }
  .interlock-caption .project-title { font-size: 33px; }
  .interlock-caption .project-credit { grid-column: 1; padding-top: 12px; }
  .interlock-caption .project-role { font-size: 9px; }
  .interlock-caption .project-details { font-size: 10px; min-height: 44px; }
  .interlock-caption .browse-work { grid-column: 2; grid-row: 2 / 4; margin: 0; align-self: end; padding: 14px 10px; font-size: 10px; min-height: 54px; }
  .secondary-recess { grid-area: 3 / 1 / 4 / 4; display: block; border: 0; padding: 0; }
  .secondary-google { grid-area: 3 / 4 / 4 / 7; }
  .secondary-recess .project-art, .secondary-google .project-art { height: 165px; min-height: 0; }
  .secondary-recess .secondary-caption, .secondary-google .secondary-caption { display: block; margin: 0; padding: 14px 0 0; }
  .secondary-caption .small { font-size: 9px; }
  .secondary-caption h2 { margin: 7px 0 0; }
  .secondary-caption h2 button { font-size: 19px; }
  .secondary-recess .secondary-caption p { display: none; }
  .interlock-bio { grid-area: 4 / 1 / 5 / 7; padding: 24px; margin-top: 6px; }
  .interlock-bio h2 { font-size: 31px; }
  .interlock-bio p { max-width: none; }
  .interlock-tools { grid-area: 5 / 1 / 6 / 7; padding: 24px; gap: 22px; min-height: 215px; }
  .interlock-tools .tools-title { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) { .project-art img { transition: none; } }
@media (min-width: 701px) and (max-width: 1279px) {
  .interlock-hero { grid-area: 1 / 1 / 2 / 9; height: auto; align-self: start; background: transparent; }
  .secondary-recess { grid-area: 2 / 1 / 3 / 7; grid-template-columns: 1.2fr 1fr; padding-top: 0; border-top: 0; }
  .secondary-recess .project-art { height: 100%; min-height: 200px; }
  .secondary-google { grid-area: 2 / 7 / 3 / 13; }
  .secondary-google .secondary-caption { grid-template-columns: 1fr 2fr; }
  .interlock-bio { grid-area: 3 / 1 / 4 / 7; padding: 24px; }
  .interlock-tools { grid-area: 3 / 7 / 4 / 13; padding: 25px; }
}

/* The image sizes the lead row. The sidebar shares that row without imposing
   equal-height tracks on the image or pushing the lower cards down. */
.interlock-sidebar { display: contents; }
.interlock-bio, .interlock-tools { min-height: 250px; }
@media (min-width: 1280px) {
  .interlock-sidebar {
    display: grid;
    grid-area: 1 / 9 / 2 / 13;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 22px;
    contain: size;
    min-width: 0;
    min-height: 0;
  }
  .interlock-sidebar > .interlock-caption,
  .interlock-sidebar > .secondary-recess { grid-area: auto; }
  .interlock-sidebar .secondary-recess { min-height: 0; }
  .interlock-sidebar .project-art { min-height: 0; }
}
.secondary-google .project-art { height: auto; aspect-ratio: 16 / 9; }
@media (max-width: 700px) {
  .secondary-recess .project-art { height: auto; aspect-ratio: 16 / 9; }
}

/* Phone layout: give the project title and primary action their own rows. */
@media (max-width: 700px) {
  .interlock-caption { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .interlock-caption .latest-label,
  .interlock-caption .project-heading,
  .interlock-caption .project-credit { grid-column: 1; }
  .interlock-caption .browse-work {
    grid-column: 1;
    grid-row: auto;
    max-width: none;
    margin-top: 14px;
    padding: 15px 18px;
    font-size: 12px;
  }
  .interlock-bio .text-link { border-bottom: 0; text-decoration: underline; }
}
