/* elin-landing — kuststudion i Ystad (coastal studio) */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-regular.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-italic.woff2") format("woff2");
}

:root {
  --plaster: #f2ebdc;
  --plaster-deep: #e6dcc8;
  --frame: #fbf6ec;
  --sand: #d9c9aa;
  --ink: #26211a;
  --muted: #766b5b;
  --accent: #a94e2c;
  --sea: #45697a;
  --line: rgba(38, 33, 26, 0.16);
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --max: 1180px;
  --pad: clamp(20px, 5vw, 56px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Static plaster grain over the whole viewport — never animates */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  background: var(--ink);
  color: var(--plaster);
  padding: 8px 14px;
  text-decoration: none;
}

/* Masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  padding: 16px var(--pad);
  border-top: 4px solid var(--sea);
  background: rgba(242, 235, 220, 0.92);
  border-bottom: 1px solid var(--line);
}

.masthead-brand {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1;
}

.masthead-brand a {
  text-decoration: none;
}

.masthead-nav {
  display: flex;
  gap: 28px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.masthead-nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.masthead-nav a:hover,
.masthead-nav a:focus-visible,
.masthead-nav a.active {
  color: var(--accent);
}

/* Intro */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  column-gap: clamp(32px, 6vw, 80px);
  align-items: end;
  padding: clamp(56px, 10vw, 120px) 0 clamp(64px, 9vw, 110px);
  border-bottom: 1px solid var(--line);
}

.intro-kicker {
  grid-column: 1 / -1;
  margin: 0 0 clamp(28px, 5vw, 56px);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.intro-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
}

.intro-copy {
  margin: 0 0 10px;
  max-width: 34ch;
  font-size: 17px;
  color: var(--muted);
}

/* Works */

.works {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

section[id],
#top {
  scroll-margin-top: 76px;
}

.section-label {
  margin: 0 0 44px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sea);
}

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-item {
  display: grid;
  grid-template-columns: minmax(64px, 7vw) minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 72px);
  align-items: start;
  margin-bottom: clamp(88px, 14vw, 180px);
}

.work-item:last-child {
  margin-bottom: 0;
}

.work-index {
  position: sticky;
  top: 108px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.5vw, 4.5rem);
  line-height: 1;
  color: var(--muted);
  opacity: 0.85;
  transition: color 0.25s ease;
}

.work-item:hover .work-index {
  color: var(--accent);
}

.work-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.work-entry {
  width: fit-content;
  margin-inline: auto;
  min-width: 0;
}

.work-figure {
  margin: 0;
}

.work-frame {
  position: relative;
  overflow: hidden;
  width: fit-content;
  margin-inline: auto;
  padding: clamp(1.6rem, 4vw, 3rem);
  background: var(--frame);
  border: 1px solid rgba(38, 33, 26, 0.1);
  box-shadow: 0 1px 3px rgba(38, 33, 26, 0.08);
}

/* Passepartout: a hairline mat line inside the frame */
.work-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(38, 33, 26, 0.1);
  pointer-events: none;
}

.work-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 85vh;
  height: auto;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.work-open:hover .work-frame img,
.work-open:focus-visible .work-frame img {
  transform: scale(1.015);
}

.work-caption,
.work-buyline {
  opacity: 1;
  transform: none;
}

.work-caption {
  margin-top: 20px;
  font-family: var(--mono);
}

.work-caption-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.work-title {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  transition: color 0.2s ease;
}

.work-open:hover .work-title,
.work-open:focus-visible .work-title {
  color: var(--accent);
}

.work-meta {
  margin: 0 0 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.work-buyline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}

.work-price {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-contact {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.work-contact:hover,
.work-contact:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

/* Objects — the shelf grammar: physical pieces sit on a sun-bleached plank
   shelf with a soft ground shadow instead of hanging in a white frame */

.objects {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.object-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: clamp(300px, 54vh, 620px);
  padding: 0 1.5rem 10px;
}

.object-stage::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(38, 33, 26, 0.12) 0 2px,
      transparent 2px 130px
    ),
    linear-gradient(180deg, #e2d3b4, #cbb998);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 14px 26px -10px rgba(38, 33, 26, 0.32);
}

.object-stage::after {
  content: "";
  position: absolute;
  bottom: 16px;
  left: 50%;
  width: 60%;
  height: 26px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(26, 22, 18, 0.22),
    transparent 68%
  );
  pointer-events: none;
}

.object-stage img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 58vh;
  height: auto;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.work-open:hover .object-stage img,
.work-open:focus-visible .object-stage img {
  transform: scale(1.02);
}

.work-object .work-caption {
  margin-top: 26px;
}

/* About */

.about {
  padding-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.about p {
  max-width: 60ch;
  margin: 0 0 8px;
  font-size: 17px;
}

/* Footer */

.footer {
  max-width: var(--max);
  margin: clamp(72px, 10vw, 120px) auto 0;
  padding: 36px var(--pad) 72px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 40px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer a {
  color: var(--ink);
  text-underline-offset: 3px;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px) clamp(16px, 4vw, 48px);
  background: rgba(26, 22, 18, 0.95);
}

.lightbox[hidden] {
  display: none;
}

.lightbox.open {
  animation: lightbox-in 0.25s ease;
}

.lightbox.open .lightbox-img {
  animation: image-in 0.3s ease;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: min(1080px, 100%);
  width: 100%;
  margin: 0;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-caption {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(242, 235, 220, 0.85);
}

.lightbox-buyline {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lightbox-price {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242, 235, 220, 0.85);
}

.lightbox-contact {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid rgba(242, 235, 220, 0.45);
  color: var(--plaster);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.lightbox-contact[hidden] {
  display: none;
}

.lightbox-contact:hover,
.lightbox-contact:focus-visible {
  background: var(--plaster);
  color: var(--ink);
}

.lightbox-btn {
  position: absolute;
  z-index: 2;
  padding: 10px 14px;
  background: none;
  border: 1px solid rgba(242, 235, 220, 0.35);
  color: var(--plaster);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  background: var(--plaster);
  color: var(--ink);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

/* Custom cursor: plaster dot that becomes a small "View" circle over works */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--plaster);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  scale: 0.14;
  translate: calc(var(--cx, -100px) - 50%) calc(var(--cy, -100px) - 50%);
  transition: scale 0.25s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.18s ease,
    background-color 0.25s ease;
  will-change: translate, scale;
}

.cursor span {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cursor.is-visible {
  opacity: 1;
}

.cursor.is-view {
  scale: 1;
}

.cursor.is-view span {
  opacity: 1;
}

.cursor.is-lightbox {
  background: var(--plaster);
  color: var(--ink);
}

@media (pointer: fine) {
  @supports (translate: 0) and (scale: 1) {
    .js,
    .js * {
      cursor: none !important;
    }
  }
}

/* Responsive */

@media (max-width: 720px) {
  .intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .intro-copy {
    max-width: none;
    margin-top: 28px;
  }

  .work-item {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
  }

  .work-index {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .work-caption-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .work-meta {
    margin: 0;
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .work-frame {
    padding: 1.5rem;
  }

  .object-stage {
    min-height: 260px;
    padding: 0 0.75rem 8px;
  }

  .object-stage img {
    max-height: 48vh;
  }

  .lightbox-img {
    max-height: calc(100vh - 150px);
  }

  .lightbox-prev {
    top: auto;
    bottom: 18px;
    left: 16px;
    transform: none;
  }

  .lightbox-next {
    top: auto;
    bottom: 18px;
    right: 16px;
    transform: none;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
  }
}

/* Motion */

@keyframes lightbox-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes image-in {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------------------------------
   Arkiv — a canvas-storage rack. Works stand on a shelf face-east; on
   scroll the current one slides out of the rack and rotates toward the
   viewer. The base (no-JS / reduced-motion) layout is a plain catalogue.
   ------------------------------------------------------------------ */

.archive {
  position: relative;
}

.archive-intro {
  padding: clamp(56px, 10vw, 120px) 0 clamp(56px, 9vw, 110px);
  border-bottom: 1px solid var(--line);
}

.archive-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
}

.archive-copy {
  margin: clamp(24px, 4vw, 44px) 0 10px;
  max-width: 48ch;
  font-size: 17px;
  color: var(--muted);
}

/* The rack-only overlay elements are hidden in the base catalogue view */
.archive-shelf,
.archive-readout,
.archive-count,
.archive-progress {
  display: none;
}

/* Static catalogue — used without JS and under prefers-reduced-motion */
.archive-rack {
  list-style: none;
  margin: 0;
  padding: 0;
}

.archive-work {
  display: grid;
  grid-template-columns: minmax(56px, 6vw) minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 72px);
  align-items: start;
  margin-bottom: clamp(88px, 14vw, 180px);
}

.archive-work:last-child {
  margin-bottom: 0;
}

.aw-index {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  color: var(--muted);
  opacity: 0.85;
}

.aw-spine {
  display: none;
}

.aw-media {
  margin: 0;
}

.aw-media img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  height: auto;
}

.aw-caption {
  margin-top: 18px;
  font-family: var(--mono);
}

.aw-caption-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.aw-title {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.15;
}

.aw-meta {
  margin: 0 0 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.aw-buyline {
  grid-column: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}

.aw-year {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.aw-contact {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.aw-contact:hover,
.aw-contact:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

/* Rack — interactive, full-viewport, sticky shelf */
@media (prefers-reduced-motion: no-preference) {
  .js .archive-zone {
    height: calc(var(--count, 10) * 88vh + 100vh);
    min-height: 100vh;
  }

  .js .archive-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    perspective: 1600px;
  }

  /* Faint slatted rack backdrop behind the shelf */
  .js .archive-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
      90deg,
      rgba(38, 33, 26, 0.05) 0 1px,
      transparent 1px 84px
    );
    pointer-events: none;
  }

  .js .archive-rack {
    position: absolute;
    inset: 0;
  }

  .js .archive-work {
    position: absolute;
    bottom: var(--shelf-y, 25vh);
    left: calc(50% + var(--cx, 0px));
    width: var(--spine-w, 36px);
    height: var(--h, 340px);
    margin: 0;
    will-change: transform, z-index;
    transform: translateX(calc(var(--cx, 0px) * var(--center, var(--pull, 0)) * -1));
  }

  /* Spine — the edge of a canvas seen when the work faces east */
  .js .aw-spine {
    position: absolute;
    inset: 0;
    display: block;
    background: linear-gradient(90deg, var(--sand), #cdbb98 55%, var(--sand));
    border: 1px solid rgba(38, 33, 26, 0.2);
    box-shadow:
      inset 1px 0 0 rgba(255, 255, 255, 0.28),
      inset -1px 0 0 rgba(38, 33, 26, 0.14);
    opacity: calc(1 - var(--pull, 0));
    will-change: opacity;
  }

  /* The index sits on the spine like a stack label */
  .js .aw-index {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: rgba(38, 33, 26, 0.72);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    z-index: 2;
    opacity: calc(1 - min(var(--pull, 0) * 5, 1));
  }

  /* The artwork itself — slides forward and turns to face the viewer */
  .js .aw-media {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: var(--w, 340px);
    height: var(--h, 340px);
    margin-left: calc(var(--w, 340px) / -2);
    transform-origin: 50% 100%;
    transform-style: preserve-3d;
    transform: rotateY(calc(90deg - var(--pull, 0) * 90deg))
      translateZ(calc(var(--pull, 0) * var(--z-out, 170px)))
      scale(calc(0.96 + var(--pull, 0) * 0.04));
    opacity: clamp(0, calc((var(--pull, 0) - 0.2) / 0.5), 1);
    will-change: transform, opacity;
  }

  .js .aw-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    backface-visibility: hidden;
    background: var(--frame);
    border: 1px solid rgba(38, 33, 26, 0.16);
    box-shadow:
      0 0 0 clamp(6px, 1.4vw, 18px) var(--frame),
      0 0 0 calc(clamp(6px, 1.4vw, 18px) + 1px) rgba(38, 33, 26, 0.12),
      0 26px 44px -18px rgba(38, 33, 26, 0.4);
  }

  .js .aw-caption,
  .js .aw-buyline {
    display: none;
  }

  .js .archive-shelf {
    position: absolute;
    display: block;
    left: 0;
    right: 0;
    bottom: calc(var(--shelf-y, 25vh) - 16px);
    height: 16px;
    background:
      repeating-linear-gradient(
        90deg,
        rgba(38, 33, 26, 0.12) 0 2px,
        transparent 2px 130px
      ),
      linear-gradient(180deg, #e2d3b4, #cbb998);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 14px 26px -10px rgba(38, 33, 26, 0.32);
  }

  /* Readout: which work is currently out, with an archive label */
  .js .archive-readout {
    position: absolute;
    top: 88px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 44ch;
  }

  .js .archive-readout-title {
    margin: 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.05;
  }

  .js .archive-readout-meta {
    margin: 0;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .js .archive-readout-contact {
    align-self: flex-start;
    margin-top: 4px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(26, 26, 26, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
  }

  .js .archive-readout-contact:hover,
  .js .archive-readout-contact:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
  }

  .js .archive-count {
    position: absolute;
    display: block;
    top: 88px;
    right: 0;
    margin: 0;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .js .archive-progress {
    position: absolute;
    display: block;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(38, 33, 26, 0.1);
  }

  .js .archive-progress-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--sea);
  }
}

@media (prefers-reduced-motion: reduce) {
  .archive-stage {
    position: static;
    height: auto;
    overflow: visible;
  }

  .archive-stage::before,
  .archive-shelf,
  .archive-readout,
  .archive-count,
  .archive-progress {
    display: none;
  }
}

@media (max-width: 720px) {
  .archive-work {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 16px;
  }

  .aw-meta {
    margin: 0;
    white-space: normal;
  }
}
