/* Requested media refinements for the portable RUMBO + RM site. */
html {
  scroll-behavior: smooth;
}

/* Keep the four introductory projects perfectly aligned. */
.home-projects__grid .project-card__copy {
  min-height: 92px;
}

.home-projects__grid .project-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 998 / 1402;
  height: auto;
  overflow: hidden;
  background: #fff;
}

.home-projects__grid .project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Project index: every cover uses the Observatorio proportion. */
.project-archive--grid .project-card__media,
.project-archive--list .project-card__media {
  aspect-ratio: 998 / 1402;
  height: auto;
  overflow: hidden;
  background: #fff;
}

.project-archive--grid .project-card__media img,
.project-archive--list .project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Portrait presentation of the supplied Pedregal Arrecife film. */
.video-story {
  height: min(94vh, 1200px);
  min-height: 720px;
  padding: 36px var(--pad);
  background: var(--paper);
}

.video-story video {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: transparent;
}

.video-story__veil,
.video-story__progress {
  display: none;
}

.video-story__controls {
  right: auto;
  bottom: 26px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  transform: translateX(-50%);
}

.video-story__controls > strong,
.video-story__action,
.video-story__time {
  display: none;
}

.video-story__controls button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: rgba(17, 17, 15, .26);
  backdrop-filter: blur(5px);
}

.video-story__volume {
  display: flex;
  align-items: center;
  gap: 9px;
}

.video-story__volume input {
  width: 82px;
  accent-color: #fff;
}

/* Keep the header mark in the same location, at a quieter scale. */
.site-header .brand-link {
  width: 132px;
}

/* AP & UD and Sika relationship on the home page. */
.studio-intro__brand-partner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 14px;
}

.studio-intro__brand-partner .studio-intro__drawing {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  mix-blend-mode: normal;
}

.studio-intro__brand-partner p {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font: 12px/1.65 "IBM Plex Mono", monospace;
  text-align: left;
}

.studio-intro__brand-partner .studio-intro__sika {
  grid-column: 2;
  grid-row: 2;
  width: 62px;
  height: auto;
  margin: 0;
  mix-blend-mode: normal;
}

/* Both team portraits now occupy identical frames. */
.team-grid img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Process media supports one or two supplied photographs per stage. */
.process-media {
  display: grid;
  gap: 16px;
}

.process-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  background: #fff;
  mix-blend-mode: normal;
}

/* Construction photograph: natural proportion, without the former white frame. */
.process-list article:nth-child(3) .process-media img:first-child {
  aspect-ratio: auto;
  background: transparent;
}

/* The Santa Teresa film replaces only the project-detail hero. */
.project-detail__hero--video {
  width: auto;
  max-width: min(100%, 720px);
  height: min(82vh, 1080px);
  aspect-ratio: 9 / 16;
  background: #000;
}

/* HashRouter-safe section controls. */
.project-toc button {
  width: fit-content;
  padding: 0 0 5px;
  color: inherit;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.project-gallery__item img {
  display: block;
  max-width: 100%;
}

/* Technical sheets remain frameless after their document crop. */
.project-gallery__item img[src^="./assets/sky-"],
.project-gallery__item img[src^="./assets/sika-plano-"] {
  border: 0;
  outline: 0;
  box-shadow: none;
  background: #fff;
}

/* Compact, understated project metadata. */
.project-facts dt {
  padding-bottom: 20px;
  font-size: 10.5px;
  letter-spacing: .02em;
}

.project-facts dd {
  font-size: 12.5px;
  line-height: 1.45;
}

@media (max-width: 1000px) {
  .video-story {
    min-height: 620px;
    padding: 26px var(--pad);
  }

  .studio-intro__brand-partner {
    display: grid;
  }
}

@media (max-width: 680px) {
  .home-projects__grid .project-card__copy {
    min-height: 82px;
  }

  .video-story {
    height: 82vh;
    min-height: 520px;
    padding: 18px var(--pad);
  }

  .video-story__controls {
    bottom: 20px;
  }

  .video-story__volume input {
    width: 68px;
  }

  .site-header .brand-link {
    width: 116px;
  }

  .studio-intro__brand-partner .studio-intro__sika {
    width: 54px;
  }

  .project-detail__hero--video {
    width: calc(100% - (2 * var(--pad)));
    height: auto;
  }
}
