/* =====================================================================
   lverbeeck.com - archive.css
   Page-specific styles for the Archive (archive.html): a bare editorial
   list of retired projects with a cursor-following preview that scrolls
   through the full-page capture on dwell. Loaded AFTER base.css.
   All motion is progressive: touch / no-hover devices get the list only.
   ===================================================================== */

/* ==================================================== Archive hero
   Same offset-headline pattern as the Work listing: a small "(ARCHIVE)"
   caps label inline at the start of the giant serif headline, with a
   right-aligned caps subline underneath as counterpoint. */
.arc-hero {
  padding-top: calc(var(--header-h) + clamp(48px, 11vw, 150px));
  padding-bottom: clamp(48px, 8vw, 110px);
}
.arc-hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.55rem, 8.6vw, 8.1rem);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.arc-hero__label {
  display: inline-block;
  vertical-align: middle;
  margin-right: clamp(18px, 3vw, 46px);
  transform: translateY(-.15em);
}
.arc-hero__sub {
  display: block;
  margin-left: auto;
  margin-top: clamp(48px, 8vw, 110px);
  max-width: 34ch;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(.875rem, 1vw, 1rem);
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* ==================================================== The list
   One hairline-ruled row per retired project: serif name left, caps
   category tag (+ optional soft-caps credit) right. Rows are NOT links -
   these sites are retired - so the cursor stays default; hovering a row
   simply triggers the floating preview. */
.arc-list-section { padding-bottom: clamp(90px, 13vw, 170px); }
.arc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: clamp(16px, 3vw, 44px);
  padding-block: clamp(18px, 2.4vw, 30px);
  border-top: 1px solid var(--rule);
  cursor: default;
}
.arc-list > .arc-row:last-child { border-bottom: 1px solid var(--rule); }
.arc-row__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.5vw + 1.15rem, 2.125rem);   /* ~34px */
  line-height: 1.1;
  letter-spacing: -.015em;
  transition: opacity .3s var(--ease);
}
.arc-row__meta {
  justify-self: end;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: .4em 1.1em;
  text-align: right;
}
.arc-row__credit { color: var(--ink-soft); }

/* Hover-capable devices only: fade the name back a touch so the eye knows
   the row is "live" without turning it into a link affordance. */
@media (hover: hover) {
  .arc-row:hover .arc-row__name { opacity: .5; }
}

@media (max-width: 600px) {
  .arc-row {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  .arc-row__meta {
    justify-self: start;
    justify-content: flex-start;
    text-align: left;
  }
}

/* ==================================================== Floating preview
   Fixed frame that fades in on row hover and eases after the cursor. On
   dwell (~700ms) the inner <img> slowly scrolls down through the full-page
   capture. JS owns the position (transform) and the scroll; CSS owns the
   fade + scale reveal. pointer-events:none so it never blocks the list. */
.arc-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 380px;
  height: 480px;
  border: 1px solid var(--rule);
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-alt);
  opacity: 0;
  scale: .96;
  pointer-events: none;
  will-change: transform, opacity;
  transition: opacity .4s var(--ease), scale .4s var(--ease);
}
.arc-preview.is-visible {
  opacity: 1;
  scale: 1;
}
.arc-preview img {
  display: block;
  width: 100%;
  height: auto;
  will-change: transform;
}

/* Touch / no-hover devices: the preview is inert and hidden outright; the
   companion JS also refuses to load any image on these devices. */
@media (hover: none) {
  .arc-preview { display: none; }
}
