/*
 * Package D: About. Prefix ab- / --ab-.
 *
 * One screen, not a scroll essay. The page is a column of type with three
 * small pairs beside it; the sneakers support the text and never take it over.
 * Everything is sized so the whole page fits in roughly one and a half
 * viewports on a laptop.
 */

.ab {
  --ab-gap: clamp(2.25rem, 5vh, 4rem);
  color: var(--text-1);
}
.ab-wrap {
  max-width: 54rem;
  margin: 0 auto;
  padding: clamp(1rem, 4vh, 3rem) var(--gutter) clamp(3rem, 8vh, 6rem);
  display: grid;
  gap: var(--ab-gap);
}

/* ------------------------------------------------------------------ hero */
.ab-hero {
  display: grid;
  gap: clamp(1.25rem, 3vh, 2rem);
}
.ab-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  /* Prominent but not a poster: this is a sentence, and it has to sit on the
     same page as three paragraphs without flattening them. */
  font-size: clamp(2rem, 1.1rem + 3.2vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.ab-hero__line {
  display: block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: ab-line-in 760ms var(--ease-out) forwards;
  animation-delay: calc(90ms + var(--ab-i) * 110ms);
}
@keyframes ab-line-in {
  to {
    opacity: 1;
    transform: none;
  }
}
.ab-hero__body {
  display: grid;
  gap: 1.1em;
  max-width: 44ch;
}
.ab-body {
  margin: 0;
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.62;
  color: var(--text-2);
}
/* The first paragraph carries the name, so it is set a shade brighter. */
.ab-body:first-child {
  color: var(--text-1);
}

/* ------------------------------------------------------------------ strip
   Three pairs, small, in a row. They are evidence that the collection exists;
   they are not the subject of the page. */
.ab-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: end;
}
.ab-piece {
  margin: 0;
  display: grid;
  gap: 0.9rem;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 620ms var(--ease-light),
    transform 720ms var(--ease-out);
}
.ab-piece.is-in {
  opacity: 1;
  transform: none;
}
.ab-piece__frame {
  position: relative;
  padding-bottom: 10px;
}
.ab-piece__pool {
  /* the same overhead pool as the showroom, scaled down */
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: 0;
  height: 150%;
  background: radial-gradient(52% 44% at 50% 72%, rgb(255 243 228 / 0.12) 0%, rgb(255 243 228 / 0.04) 52%, transparent 78%);
  pointer-events: none;
}
.ab-piece__shoe {
  position: relative;
  z-index: 1;
}
.ab-piece__ledge {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 2px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.14), var(--acrylic-fill));
  box-shadow: inset 0 0 0 1px var(--acrylic-edge);
}
.ab-piece__led {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -1px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--led-core);
  box-shadow: 0 0 6px 1px var(--led-glow), 0 0 16px 2px rgb(255 100 20 / 0.24);
}
.ab-piece__cap {
  font-family: var(--font-display);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------------ author + contact */
.ab-author,
.ab-contact,
.ab-close {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 560ms var(--ease-light),
    transform 640ms var(--ease-out);
}
.ab-author.is-in,
.ab-contact.is-in,
.ab-close.is-in {
  opacity: 1;
  transform: none;
}
.ab-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: var(--fs-2xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--text-3);
}
.ab-author {
  display: grid;
  gap: 0.25rem;
  padding-top: var(--ab-gap);
  border-top: 1px solid var(--hairline);
}
.ab-author__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
  letter-spacing: -0.01em;
}
.ab-author__role {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.ab-contact {
  padding-top: var(--ab-gap);
  border-top: 1px solid var(--hairline);
}
.ab-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 4vw, 2.5rem);
}
.ab-link {
  /* Understated text links: no button, no box, no icon set. */
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  min-height: 44px;
  align-content: center;
  font-size: var(--fs-base);
  color: var(--text-1);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 2px;
  transition:
    color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard);
}
.ab-link:hover,
.ab-link:focus-visible {
  color: #fff;
  border-color: rgb(255 170 100 / 0.7);
}
.ab-link__arrow {
  font-size: 0.85em;
  color: var(--text-3);
}

/* ------------------------------------------------------------------ close */
.ab-close {
  padding-top: var(--ab-gap);
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: 1rem;
}
.ab-close__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.4rem);
  letter-spacing: -0.01em;
}
.ab-close__links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2rem);
}
.ab-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-1);
  text-decoration: none;
  border-bottom: 1px solid rgb(255 170 100 / 0.5);
  transition: border-color var(--dur-fast) var(--ease-standard);
}
.ab-cta:hover {
  border-color: var(--led-core);
}
.ab-cta--quiet {
  color: var(--text-3);
  border-bottom-color: var(--hairline);
}
.ab-cta--quiet:hover {
  color: var(--text-1);
}

@media (max-width: 559.98px) {
  .ab-strip {
    /* Two across on a phone; the third wraps under and stays readable. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-hero__line {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .ab-piece,
  .ab-author,
  .ab-contact,
  .ab-close {
    opacity: 1;
    transform: none;
  }
}
