/* Chapter pacing: a compact trace, working exhibits, then a complete image gallery. */
#experience {
  padding-top: clamp(72px, 7.4vw, 108px);
  padding-bottom: clamp(80px, 8.5vw, 124px);
}

#experience .section-grid {
  margin-top: clamp(30px, 3.8vw, 52px);
  column-gap: clamp(28px, 4.8vw, 72px);
}

#experience .timeline {
  gap: 16px;
}

#experience .timeline-card {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  padding: clamp(22px, 2.4vw, 34px);
  border-color: rgba(var(--rgb-warm-ink), 0.22);
  background: rgba(var(--rgb-warm-ink), 0.025);
}

.motion-enabled #experience .timeline-card {
  opacity: 0.84;
}

.motion-enabled #experience .timeline-card.is-active,
.motion-enabled #experience .timeline-card:focus-visible,
.motion-enabled #experience .timeline-card:focus-within {
  opacity: 1;
}

.motion-enabled #experience .timeline::before,
.motion-enabled #experience .timeline::after {
  left: 30px;
}

#experience .timeline-index {
  padding-top: 1px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

#experience .timeline-card h3 {
  margin: 8px 0 9px;
  font-size: clamp(22px, 2.05vw, 28px);
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}

#experience .timeline-card .organization {
  color: rgba(var(--rgb-warm-ink), 0.88);
  font-size: 14px;
  line-height: 1.65;
}

#experience .timeline-card .card-period,
#experience .timeline-card .card-location {
  color: rgba(var(--rgb-warm-ink), 0.68);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

#experience .timeline-card ul {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-left: 1.05em;
}

#experience .timeline-card li {
  margin: 0;
  color: rgba(var(--rgb-warm-ink), 0.83);
  font-size: 14px;
  line-height: 1.82;
  text-wrap: pretty;
}

/* Keep the existing typefaces; give the chapter headings intentional phrases. */
#about-title {
  line-height: 1.16;
  text-wrap: balance;
}

#project .project-showcase__intro {
  align-items: end;
  padding-bottom: clamp(30px, 4vw, 52px);
}

#project .project-showcase__intro > #project-title {
  max-width: 100%;
  font-size: clamp(42px, 5.7vw, 76px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

#project-title .chapter-title__phrase {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

:root[data-locale="en"] #project .project-showcase__intro > #project-title {
  font-size: clamp(34px, 4.3vw, 60px);
  line-height: 1.12;
}

#project .project-showcase__intro > .lead {
  max-width: 46ch;
  color: var(--text-on-paper-muted);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.85;
  text-wrap: pretty;
}

/* The final chapter is an image sequence, with each source shown in full. */
.memory-section[data-memory-variant="human-signals"] {
  padding-top: clamp(80px, 9vw, 132px);
  padding-bottom: clamp(84px, 9vw, 136px);
}

.memory-section[data-memory-variant="human-signals"] .memory-heading {
  align-items: center;
  margin-top: clamp(30px, 4.6vw, 62px);
  padding-bottom: clamp(32px, 4vw, 54px);
}

.memory-section[data-memory-variant="human-signals"] .memory-heading h2 {
  max-width: 11.2em;
  font-size: clamp(36px, 4.9vw, 66px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.memory-section[data-memory-variant="human-signals"] .memory-decrypted__word {
  max-width: 100%;
  white-space: nowrap;
}

:root[data-locale="en"] .memory-section[data-memory-variant="human-signals"] .memory-heading h2 {
  max-width: 18ch;
  font-size: clamp(34px, 4.3vw, 60px);
  line-height: 1.16;
}

.memory-section[data-memory-variant="human-signals"] .memory-heading::after {
  align-self: center;
  max-width: 38ch;
  color: rgba(var(--rgb-warm-ink), 0.74);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.85;
}

.memory-section[data-memory-variant="human-signals"] .memory-wall {
  align-items: start;
  gap: clamp(22px, 2.5vw, 36px);
  margin-top: clamp(36px, 4.2vw, 58px);
}

.memory-section[data-memory-variant="human-signals"] .memory-object[data-activity="music"],
.memory-section[data-memory-variant="human-signals"] .memory-object[data-activity="volleyball"] {
  grid-template-rows: auto auto;
}

.memory-section[data-memory-variant="human-signals"] .memory-object[data-activity="music"] .memory-object__visual {
  aspect-ratio: 3 / 2;
}

.memory-section[data-memory-variant="human-signals"] .memory-object[data-activity="volleyball"] .memory-object__visual {
  aspect-ratio: 4 / 5;
}

.memory-section[data-memory-variant="human-signals"] .memory-object[data-activity="leadership"] {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  grid-template-rows: auto;
}

.memory-section[data-memory-variant="human-signals"] .memory-object[data-activity="leadership"] .memory-object__visual {
  aspect-ratio: 2 / 1;
}

.memory-section[data-memory-variant="human-signals"] .memory-object__visual::before {
  inset: 0;
  background-size: 100% 100%, contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.96) contrast(1.03) brightness(1.08);
}

.memory-section[data-memory-variant="human-signals"] .memory-object[data-activity] .memory-object__visual::before {
  background-position: center;
}

.memory-section[data-memory-variant="human-signals"] .memory-object__body {
  justify-content: flex-start;
  padding: clamp(24px, 2.8vw, 38px);
}

.memory-section[data-memory-variant="human-signals"] .memory-object[data-activity="music"] .memory-object__body::before {
  display: none;
}

.memory-section[data-memory-variant="human-signals"] .memory-object h3 {
  max-width: 21ch;
  margin: 13px 0 16px;
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.3;
  text-wrap: balance;
}

.memory-section[data-memory-variant="human-signals"] .memory-object p {
  color: rgba(var(--rgb-warm-ink), 0.79);
  font-size: 14px;
  line-height: 1.9;
}

@media (hover: hover) and (pointer: fine) {
  .memory-section[data-memory-variant="human-signals"] .memory-object:hover .memory-object__visual::before {
    filter: saturate(1) contrast(1.03) brightness(1.12);
    transform: none;
  }
}

@media (max-width: 1080px) {
  .memory-section[data-memory-variant="human-signals"] .memory-object[data-activity="leadership"] {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  }
}

@media (max-width: 1023px) {
  .motion-enabled #experience .timeline-card {
    opacity: 1;
  }

  #experience .section-grid {
    row-gap: 26px;
  }
}

@media (max-width: 760px) {
  .memory-section[data-memory-variant="human-signals"] .memory-heading h2 {
    max-width: 100%;
    font-size: clamp(30px, 8.6vw, 42px);
    line-height: 1.3;
  }

  :root[data-locale="en"] .memory-section[data-memory-variant="human-signals"] .memory-heading h2 {
    max-width: 100%;
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.2;
  }

  .memory-section[data-memory-variant="human-signals"] .memory-heading::after {
    max-width: 44ch;
    margin-top: 24px;
    font-size: 15px;
  }

  .memory-section[data-memory-variant="human-signals"] .memory-object[data-activity="leadership"] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .memory-section[data-memory-variant="human-signals"] .memory-object__body {
    padding: 24px 22px 28px;
  }

  .memory-section[data-memory-variant="human-signals"] .memory-object h3 {
    font-size: clamp(26px, 7.2vw, 34px);
  }

  .memory-section[data-memory-variant="human-signals"] .memory-object__visual::after {
    right: 16px;
    bottom: 14px;
    left: 16px;
    font-size: 9px;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 640px) {
  #experience,
  .memory-section[data-memory-variant="human-signals"] {
    padding-top: 64px;
    padding-bottom: 76px;
  }

  #experience .timeline-card {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    padding: 21px 18px;
  }

  .motion-enabled #experience .timeline::before,
  .motion-enabled #experience .timeline::after {
    left: 22px;
  }

  #experience .timeline-card h3 {
    font-size: 21px;
    line-height: 1.4;
  }

  #experience .timeline-card ul {
    margin-top: 17px;
    gap: 9px;
  }

  #experience .timeline-card li {
    font-size: 13px;
    line-height: 1.85;
  }

  #project .project-showcase__intro > #project-title {
    font-size: clamp(31px, 8.7vw, 44px);
  }

  :root[data-locale="en"] #project .project-showcase__intro > #project-title {
    font-size: clamp(28px, 7.4vw, 38px);
  }

  #project .project-showcase__intro > .lead {
    font-size: 15.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-enabled #experience .timeline-card {
    opacity: 1;
  }

  .memory-section[data-memory-variant="human-signals"] .memory-object__visual::before,
  .memory-section[data-memory-variant="human-signals"] .memory-object:hover .memory-object__visual::before {
    animation: none !important;
    clip-path: none;
    transform: none;
    transition: none;
  }
}
