/* The brand photographs sit at the seam between the paper and the five inks. */
.brand-atlas {
  --atlas-ink: #4a3023;
  --card-paper: #fbfaf6;
  color: var(--atlas-ink);
  background: #f7f5ed;
  border-block: 1px solid #e0d9cb;
}
.brand-atlas .atlas-inner { padding-block: clamp(2.7rem, 4.4vw, 4.2rem) clamp(2.8rem, 4.8vw, 4.6rem); }
.brand-atlas .atlas-kicker { color: #725643; }
.brand-atlas .atlas-kicker span,.brand-atlas .atlas-kicker span::after { background: #bda68b; }
.brand-atlas .atlas-heading h2 { color: var(--atlas-ink); font-size: clamp(3.05rem, 5.4vw, 5.45rem); }
.brand-atlas .atlas-heading h2 em { color: #82543a; }
.brand-atlas .atlas-heading > p:last-child { color: #695a4d; }
.brand-atlas-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.65rem, 1.25vw, 1.15rem);
  margin: clamp(1.7rem, 2.8vw, 2.7rem) 0 0;
  padding: 0;
  list-style: none;
}
.brand-atlas-list > li { display: flex; min-width: 0; }
.pillar-link.brand-card {
  display: flex; flex-direction: column; align-items: stretch;
  padding: 0; min-width: 0; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(70,45,26,.1); border-radius: clamp(1.15rem, 1.75vw, 1.65rem);
  width: 100%; height: 100%; color: var(--atlas-ink); background: var(--pillar-color);
}
.brand-card-mast {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .38rem; min-height: clamp(4.6rem, 6.4vw, 6.05rem);
  padding: .95rem .5rem .8rem; background: var(--card-paper);
}
.brand-card-logo { display: block; width: min(70%,9rem); height: auto; }
.brand-card-mast h3 {
  margin: 0; color: var(--atlas-ink);
  font: 650 clamp(.72rem, .85vw, .86rem)/1.15 DM,Arial,sans-serif;
  letter-spacing: .11em; text-transform: uppercase;
}
.brand-card-window {
  position: relative; width: 100%; aspect-ratio: 1; overflow: hidden;
  background: linear-gradient(to bottom,var(--card-paper) 50%, var(--pillar-color) 50%);
}
.brand-card-photo {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask: var(--pillar-shape) center / 100% 100% no-repeat;
  mask: var(--pillar-shape) center / 100% 100% no-repeat;
}
.brand-card[data-brand="experience"] .brand-card-photo { object-position: 54% center; }
.brand-card[data-brand="learn"] .brand-card-photo { object-position: 53% 38%; }
.brand-card-copy {
  display: flex; flex-direction: column; align-items: stretch; flex: 1;
  gap: 1.2rem; padding: clamp(.9rem, 1.3vw, 1.35rem);
  text-align: left;
}
.brand-card-copy > p { color: var(--atlas-ink); font: 475 clamp(.83rem, 1vw, .97rem)/1.48 DM,Arial,sans-serif; margin: 0; text-wrap: pretty; }
.brand-card-action {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .45rem; min-height: 2.4rem; margin-top: auto; padding: .52rem .38rem;
  border: 1px solid currentColor; border-radius: 2rem; text-align: center;
  font: 600 clamp(.72rem, .88vw, .85rem)/1.2 DM,Arial,sans-serif;
}
.brand-card-action svg { width: .95rem; height: .95rem; }
.brand-atlas .brand-card:focus-visible { outline: 3px solid #563722; outline-offset: 3px; }
@media (hover:hover) {
  .brand-card:hover .brand-card-action { color: #fff8ed; background: #4e3628; border-color: #4e3628; }
}
@media (min-width: 49.01rem) and (max-width: 59rem) {
  .brand-atlas-list { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 1rem; }
  .brand-atlas-list > li { grid-column: span 2; }
  .brand-atlas-list > li:nth-child(4) { grid-column: 2 / span 2; }
}
@media (min-width: 36.01rem) and (max-width: 49rem) {
  .brand-atlas-list { grid-template-columns: repeat(6,minmax(0,1fr)); gap: .75rem; }
  .brand-atlas-list > li { grid-column: span 2; }
  .brand-atlas-list > li:nth-child(4) { grid-column: 2 / span 2; }
}
@media (max-width: 36rem) {
  .brand-atlas-list { grid-template-columns: minmax(0,1fr); gap: .85rem; max-width: 27rem; margin-inline:auto; }
  .pillar-link.brand-card {
    display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
    grid-template-areas: "mast copy" "photo copy";
    grid-template-rows: auto 1fr; gap: 0; align-content: start;
  }
  .brand-card-mast { grid-area: mast; min-height: 3.9rem; padding: .7rem .18rem .58rem; gap: .3rem; }
  .brand-card-logo { width: min(83%,7.85rem); }
  .brand-card-mast h3 {font-size:.69rem;}
  .brand-card-window { grid-area: photo; align-self:start; }
  .brand-card-copy { grid-area: copy; justify-content:center; align-items:start; gap:.85rem; padding:1.1rem .85rem; }
  .brand-card-action { margin:0; min-height:2.1rem; padding:.47rem .65rem; }
}
@media (max-width: 20rem) {
  .brand-card-copy { gap:.55rem; padding:.8rem .65rem; }
  .brand-card-action { font-size:.68rem; gap:.25rem; }
}
