/* About: honors. Owned by the About honors section agent (About page 100x work, 2026-09-24).

   Who honored him, at a glance: the summit, the Army, two of his hospitals and his university, each by
   its own official mark. Four mist tiles on a 7 and 5 grid, everything readable at rest. The marks sit
   in one ink; pointing at a tile (or, on a phone, scrolling it through the middle of the screen) lifts it
   onto white and develops its mark into the owner's own colours, rising and coming into focus on
   Apple's curve. Marks: chapman/tools/about-100x/honors/logos.py */

.about-honors { --ah-ease: cubic-bezier(0.28, 0.11, 0.32, 1); }

/* The heading, and beside it the way to the honors that did happen at the lectern */
.about-honors__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2.5rem;
}
.about-honors__aside {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--accent);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.45s var(--ah-ease), color 0.2s;
}
.about-honors__arrow {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s var(--ah-ease);
}
.about-honors__aside:hover,
.about-honors__aside:focus-visible { background-size: 100% 1px; color: var(--accent-deep); }
.about-honors__aside:hover .about-honors__arrow,
.about-honors__aside:focus-visible .about-honors__arrow { transform: translateX(4px); }

.about-honors__grid {
  margin-top: clamp(2.25rem, 4.5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.2vw, 1.25rem);
}
.about-honors-card--summit { grid-column: 1 / span 7; }
.about-honors-card--army { grid-column: 8 / span 5; }
.about-honors-card--pair { grid-column: 1 / span 7; }
.about-honors-card--chair { grid-column: 8 / span 5; }

/* The tile */
.about-honors-card,
.about-honors-pair__item {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.about-honors-card {
  position: relative;
  min-height: clamp(15rem, 19vw, 17rem);
  padding: clamp(1.5rem, 2.5vw, 2.4rem);
  background: var(--mist);
  border-radius: 18px;
  transition: transform 0.55s var(--ah-ease), box-shadow 0.55s var(--ah-ease), background-color 0.45s var(--ah-ease);
}
.about-honors-card--summit,
.about-honors-card--army { min-height: clamp(20rem, 29vw, 26rem); }

/* The head of each tile, like a plaque: whose mark on the left, when on the right */
.about-honors-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem 1.5rem;
}
.about-honors-card__when {
  margin: 0;
  flex: none;
  padding-top: 0.1rem;
  font-family: var(--label);
  font-weight: 600;
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.45s var(--ah-ease) 0.08s;
}

/* Two honors from two of his hospitals, a month apart, share one tile with a hairline between them */
.about-honors-card--pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
}
.about-honors-pair__item { position: relative; }
.about-honors-pair__item + .about-honors-pair__item { padding-left: clamp(1.5rem, 2.5vw, 2.4rem); }
.about-honors-pair__item:first-child { padding-right: clamp(1.5rem, 2.5vw, 2.4rem); }
.about-honors-pair__item + .about-honors-pair__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

/* The words: the honor, then who gave it and when */
.about-honors-card__text { margin-top: auto; }
.about-honors-card__t {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.75vw, 1.62rem);
  line-height: 1.14;
  letter-spacing: -0.008em;
  color: var(--ink);
  text-wrap: balance;
}
.about-honors-card--summit .about-honors-card__t {
  font-size: clamp(2.05rem, 3.5vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: -0.018em;
  max-width: 16ch;
}
.about-honors-card__d {
  margin: 0.55rem 0 0;
  max-width: 40ch;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
  transition: color 0.45s var(--ah-ease) 0.12s;
}
.about-honors-card--summit .about-honors-card__d { max-width: 52ch; }

/* The mark: one ink at rest (the file as a mask), the owner's colours when the tile is lit */
.about-honors-mark {
  position: relative;
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  height: var(--mh);
  width: calc(var(--mh) * var(--mr));
  max-width: 100%;
  transform-origin: 0 100%;
  transition: transform 0.6s var(--ah-ease);
}
.about-honors-mark__ink,
.about-honors-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.about-honors-mark__ink {
  background: var(--ink);
  -webkit-mask: var(--mm) left bottom / contain no-repeat;
          mask: var(--mm) left bottom / contain no-repeat;
  transition: opacity 0.35s var(--ah-ease) 0.05s;
}
.about-honors-mark img {
  object-fit: contain;
  object-position: left bottom;
  opacity: 0;
  transform: translateY(6px);
  filter: blur(5px);
  transition: opacity 0.5s var(--ah-ease), transform 0.6s var(--ah-ease), filter 0.5s var(--ah-ease);
}
.about-honors-mark--oset { --mh: clamp(4.8rem, 8vw, 7.6rem); --mr: 2.97; --mm: url('../../images/about/honors/oset-2021.webp'); }
.about-honors-mark--army { --mh: clamp(2.4rem, 3.4vw, 3.1rem); --mr: 4.257; --mm: url('../../images/about/honors/army.svg'); }
.about-honors-mark--hmc { --mh: clamp(2.8rem, 3.8vw, 3.4rem); --mr: 3.295; --mm: url('../../images/about/honors/harborview.webp'); }
.about-honors-mark--uwm { --mh: clamp(2.7rem, 3.6vw, 3.2rem); --mr: 3.715; --mm: url('../../images/about/honors/uw-medicine.svg'); }
.about-honors-mark--uw { --mh: clamp(4rem, 5.6vw, 5rem); --mr: 2.035; --mm: url('../../images/about/honors/uw.webp'); }

/* Lit: the tile rises onto white and the mark develops. The second hospital follows the first. */
.about-honors-card.is-on {
  background: var(--paper);
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(10, 13, 18, 0.10), 0 3px 10px rgba(10, 13, 18, 0.05), 0 0 0 1px var(--line);
}
.about-honors-card.is-on .about-honors-mark__ink { opacity: 0; }
.about-honors-card.is-on .about-honors-mark img { opacity: 1; transform: none; filter: none; }
.about-honors-card.is-on .about-honors-card__d { color: var(--ink-2); }
.about-honors-card.is-on .about-honors-mark { transform: scale(1.035); }
.about-honors-card.is-on .about-honors-card__when { color: var(--accent); }
.about-honors-pair__item + .about-honors-pair__item :is(.about-honors-mark__ink, .about-honors-mark img) { transition-delay: 0.1s; }

@media (hover: hover) and (pointer: fine) {
  .about-honors-card:hover {
    background: var(--paper);
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(10, 13, 18, 0.10), 0 3px 10px rgba(10, 13, 18, 0.05), 0 0 0 1px var(--line);
  }
  .about-honors-card:hover .about-honors-mark__ink { opacity: 0; }
  .about-honors-card:hover .about-honors-mark img { opacity: 1; transform: none; filter: none; }
  .about-honors-card:hover .about-honors-card__d { color: var(--ink-2); }
  .about-honors-card:hover .about-honors-mark { transform: scale(1.035); }
  .about-honors-card:hover .about-honors-card__when { color: var(--accent); }
}

/* The tiles arrive in turn with the site's own reveal */
.about-honors-card--army[data-reveal].revealed,
.about-honors-card--chair[data-reveal].revealed { animation-delay: 0.1s; }

/* Narrow: one column; the hospitals stack with the hairline turned flat */
@media (max-width: 860px) {
  .about-honors__grid { grid-template-columns: minmax(0, 1fr); }
  .about-honors-card--summit,
  .about-honors-card--army,
  .about-honors-card--pair,
  .about-honors-card--chair { grid-column: 1; min-height: 0; }
  .about-honors-card--army[data-reveal].revealed,
  .about-honors-card--chair[data-reveal].revealed { animation-delay: 0s; }
  .about-honors-card,
  .about-honors-pair__item { gap: 1.75rem; }
  .about-honors-card--pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .about-honors-pair__item:first-child { padding: 0 0 1.75rem; }
  .about-honors-pair__item + .about-honors-pair__item { padding: 1.75rem 0 0; }
  .about-honors-pair__item + .about-honors-pair__item::before { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  .about-honors-card,
  .about-honors-mark__ink,
  .about-honors-mark img,
  .about-honors-card__d,
  .about-honors-card__when,
  .about-honors-mark,
  .about-honors__aside,
  .about-honors__arrow { transition: none; }
  .about-honors-mark img { transform: none; filter: none; }
  .about-honors-card.is-on,
  .about-honors-card.is-on .about-honors-mark { transform: none; }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .about-honors-card:hover,
  .about-honors-card:hover .about-honors-mark { transform: none; }
}
