/* The Ark displays one favorite at a time in a cinematic reel. */
.ark-index { margin: clamp(64px, 9vw, 115px) auto 0; max-width: 1120px; text-align: center; }
.ark-index-heading { display: flex; justify-content: center; align-items: center; gap: clamp(18px, 3vw, 36px); }
.ark-index-heading::before, .ark-index-heading::after { content: ""; width: clamp(34px, 10vw, 125px); height: 1px; background: linear-gradient(90deg, transparent, #d25a5e); }
.ark-index-heading::after { transform: scaleX(-1); }
.ark-index-heading h2 { color: #fff9f5; font: 400 clamp(3rem, 6vw, 5.5rem)/1 Georgia, serif; margin: 0; white-space: nowrap; }
.ark-introduction { color: #ead6d1; margin: 15px auto clamp(28px, 4vw, 42px); font-family: Georgia, serif; font-style: italic; line-height: 1.6; letter-spacing: .06em; }
.ark-reel { width: 100%; }
.ark-feature-art { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 2 / 1; border: 1px solid #a9474e88; border-radius: 12px; background: #120a0d; overflow: hidden; }
/* Contain preserves the official artwork without cropping or recoloring it. */
.ark-feature-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ark-feature-art img[hidden] { display: none; }
.ark-feature-art p { margin: 24px; color: #e8ccc7; font: .85rem/1.5 ui-monospace, monospace; }
.ark-feature-art, .ark-feature-info { opacity: 1; transition: opacity 250ms ease; }
.ark-reel.is-changing .ark-feature-art, .ark-reel.is-changing .ark-feature-info { opacity: 0; }
.ark-feature-info { display: flex; flex-direction: column; align-items: center; padding: 22px 20px 0; }
.ark-feature-info h3 { order: 0; color: #fff9f5; font: italic 400 clamp(2rem, 4vw, 3.6rem)/1.1 Georgia, serif; margin: 0 0 10px; }
.ark-feature-info #ark-feature-category { order: 1; color: #e8b8ae; font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; margin: 0 0 10px; }
.ark-feature-info #ark-feature-credit { order: 2; color: #e8b8ae; font-size: .75rem; margin: 0 0 8px; }
.ark-feature-info a { order: 3; display: inline-block; color: #f5d3cb; padding: 7px 2px; font-size: .8rem; text-underline-offset: 4px; }
.ark-feature-info a[hidden] { display: none; }
/* Keep the original text labels accessible while showing compact icons. */
.ark-reel-controls { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 3vw, 24px); margin: 18px auto 0; }
.ark-reel-controls button { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; padding: 0; color: #ffe9e4; background: transparent; border: 1px solid #b2575b; border-radius: 50%; cursor: pointer; font: 1.3rem/1 system-ui, sans-serif; }
.ark-reel-controls button[hidden] { display: none; }
.ark-reel-controls button:hover { background: #6f182633; }
.ark-reel-controls .ark-play-toggle { margin: 0; border-color: #ed6463; font-size: 0; }
.ark-play-toggle::before { content: "Ⅱ"; font: 1.1rem/1 system-ui, sans-serif; }
.ark-play-toggle[aria-pressed="true"]::before { content: "▶"; font-size: .9rem; }
.ark-reel-controls button:focus-visible, .ark-feature-info a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.ark-reel-progress { width: min(100%, 260px); margin: 17px auto 0; }
.ark-reel-track { height: 1px; background: #76363b; }
.ark-reel-track span { display: block; height: 100%; background: #ff7b75; }
.ark-motion-status { margin: 8px 0 0; color: #e8ccc7; font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { .ark-feature-art, .ark-feature-info { transition: none; } }
@media (max-width: 600px) {
  /* The phone view stacks the collection like an editorial feature. */
  .ark-index { margin-top: 72px; text-align: left; }
  .ark-index-heading { justify-content: flex-start; }
  .ark-index-heading::before, .ark-index-heading::after { display: none; }
  .ark-index-heading h2 { font-size: clamp(3rem, 12vw, 4rem); }
  .ark-introduction {
    margin: 16px 0 28px;
    max-width: 34ch;
    font-family: inherit;
    font-style: normal;
    letter-spacing: 0;
  }
  /* Official images remain entirely visible; the frame does not crop them. */
  .ark-feature-art { aspect-ratio: 1 / 1; border-radius: 12px; }
  .ark-feature-info { align-items: flex-start; padding: 22px 0 0; text-align: left; }
  .ark-feature-info #ark-feature-category { order: 0; margin-bottom: 12px; }
  .ark-feature-info h3 { order: 1; font-style: normal; margin-bottom: 12px; }
  .ark-feature-info #ark-feature-credit { order: 2; }
  .ark-feature-info a { order: 3; min-height: 44px; display: inline-flex; align-items: center; }
  .ark-reel-controls { gap: 12px; margin-top: 12px; }
  .ark-reel-progress { width: 100%; margin-top: 22px; }
}

/* A compact phone view keeps the featured work and its timeline together.
   Heights remain content-driven so long titles and larger text can wrap. */
@media (max-width: 600px) {
  .ark-index-heading h2 { font-size: 2.25rem; }
  .ark-introduction { margin: 6px 0 12px; max-width: none; font-size: .82rem; line-height: 1.35; }
  .ark-feature-art { aspect-ratio: 16 / 9; max-height: 200px; }
  .ark-feature-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 8px;
    padding-top: 8px;
  }
  .ark-feature-info #ark-feature-category { grid-column: 1; grid-row: 1; margin: 0 0 3px; }
  .ark-feature-info h3 { grid-column: 1; grid-row: 2; margin: 0; font-size: 1.55rem; overflow-wrap: anywhere; }
  .ark-feature-info #ark-feature-credit { grid-column: 1; grid-row: 3; margin: 3px 0 0; overflow-wrap: anywhere; }
  .ark-feature-info a { grid-column: 2; grid-row: 1 / 4; min-height: 44px; max-width: 10ch; font-size: .75rem; }
  .ark-reel-controls { gap: 10px; margin-top: 5px; }
  .ark-reel-controls button { flex-basis: 44px; width: 44px; height: 44px; }
  .ark-reel-progress { margin-top: 8px; }
  .ark-motion-status { margin-top: 4px; }
}
