/* The opening title and the project images share a centered, level rhythm. */
.hero h1 {
  font-size: clamp(3rem, 15vw, 12.75rem);
  text-align: center;
}

.works {
  padding-top: 20px;
}

#project-track > .project-card:nth-child(n) {
  padding-top: 0;
}

#project-track > .project-card:nth-child(n) .project-img {
  height: 450px;
}

.archive-bar {
  justify-content: flex-end;
  text-align: right;
}

/* Preserve PUM's existing wine while extending both transitions threefold. */
.materials {
  background-image:
    linear-gradient(to bottom, var(--ink) 0, transparent 432px),
    linear-gradient(to top, var(--ink) 0, transparent 396px);
}

@media (max-width: 900px) {
  #project-track > .project-card:nth-child(n) .project-img {
    height: 380px;
  }
}

@media (max-width: 600px) {
  .works {
    padding-top: 18px;
  }

  #project-track > .project-card:nth-child(n) .project-img {
    height: 345px;
  }

  .materials {
    background-image:
      linear-gradient(to bottom, var(--ink) 0, transparent 288px),
      linear-gradient(to top, var(--ink) 0, transparent 252px);
  }
}

/* Clear paths from the opening title to the existing project and inquiry pages. */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--paper);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}

.hero-action > span {
  display: none;
}

.hero-action-primary {
  background: var(--paper);
  color: var(--ink);
}

.hero-action-secondary {
  background: transparent;
  border-color: rgba(245, 245, 245, .7);
  color: var(--paper);
}

.hero-action-primary:hover {
  background: var(--wine);
  border-color: var(--paper);
  color: var(--paper);
}

.hero-action-secondary:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.hero-action:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .hero-actions { gap: 10px; }
  .hero-action { min-width: 0; width: min(50%, 176px); padding: 12px 14px; font-size: 13px; }
}

/* Preview: actions follow the project rail; keep all project image dimensions. */
.works > .hero-actions { margin-top: 8px; }

@media (max-width: 600px) {
  .hero { padding-top: 10px; }
  .hero h1 { margin: 8px 0 12px; }
  .works { padding-top: 8px; }
}

/* Preview: a diagonal glint draws attention to both actions. */
.works > .hero-actions .hero-action {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 52px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .025em;
  border-radius: 0;
  border-width: 1px;
}
.works > .hero-actions .hero-action-secondary {
  background: var(--wine);
  border-color: rgba(245, 245, 245, .8);
}
.works > .hero-actions .hero-action::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -35% auto -35% -48%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(91, 24, 45, .08) 28%, rgba(255, 255, 255, .72) 50%, rgba(91, 24, 45, .08) 72%, transparent);
  transform: translateX(-100%) skewX(-24deg);
  pointer-events: none;
  animation: pum-action-glint 4.8s ease-in-out infinite;
}
.works > .hero-actions .hero-action-secondary::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08) 25%, rgba(255, 255, 255, .34) 50%, rgba(255, 255, 255, .08) 75%, transparent);
  animation-delay: .3s;
}
.works > .hero-actions .hero-action-secondary:hover { background: var(--paper); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .works > .hero-actions .hero-action::after { animation: none; }
}
@keyframes pum-action-glint {
  0%, 9% { transform: translateX(-100%) skewX(-24deg); }
  31%, 100% { transform: translateX(520%) skewX(-24deg); }
}

/* Follow HAN's continuously drifting WORK rail, including its portrait cards. */
#project-track {
  display: flex;
  width: auto;
  gap: 18px;
  margin-inline: -4vw;
  padding: 0 3vw 15px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: none;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}
#project-track::-webkit-scrollbar { display: none; }
#project-track > .project-card:nth-child(n) {
  flex: 0 0 20.5vw;
  width: auto;
  min-width: 0;
  padding: 0;
  scroll-snap-align: none;
}
#project-track > .project-card:nth-child(n) .project-img {
  height: auto;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 9px;
}
#project-track .project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transition: transform .7s;
}
#project-track .project-card:hover .project-img img { transform: scale(1.04); }
#project-track .project-img .project-open { display: none; }
#project-track .project-card:nth-child(even) { padding-top: 0; }
#project-track .project-card:nth-child(even) .project-img { height: auto; }
#project-track .project-info {
  display: block;
  min-height: 0;
  padding: 17px 0 0;
  border: 0;
}
#project-track .project-info h3 { display: none; }
#project-track .project-info span {
  color: var(--paper);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: none;
}

@media (max-width: 700px) {
  #project-track {
    gap: 14px;
    margin-inline: -6vw;
    padding: 0 20px 15px;
  }
  #project-track > .project-card:nth-child(n) { flex-basis: 72vw; }
  #project-track > .project-card:nth-child(n) .project-img {
    aspect-ratio: 125.5 / 168;
    border-radius: 4px;
  }
  #project-track .project-info { padding-top: 10px; }
  #project-track .project-info span { font-size: 11px; letter-spacing: .04em; }
}

/* The fixed contact tools stay available throughout the page scroll. */
.floating.is-obstructing {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
