/* ============================================================
   PORTFOLIO PAGES (Animation, Motion Graphics, CGI)
   These pages keep their own layouts (Tailwind classes). This file only
   brings them into the shared identity: the same fonts, colours, labels
   and page titles as Home, Shop and the Journal. Load it after base.css.
   ============================================================ */

body.legacy { background: var(--bg); color: var(--fg); font-family: var(--font); }
.legacy .font-sans { font-family: var(--font); }
/* the small code-style labels become the site's tracked labels */
.legacy .font-mono { font-family: var(--font); font-weight: 600; }

.legacy .bg-base { background-color: var(--bg); }
.legacy .bg-surface { background-color: #181818; }
.legacy .text-primary { color: var(--fg); }
.legacy .text-secondary { color: rgba(244, 239, 233, 0.74); }
.legacy .text-muted { color: var(--fg-dim); }
.legacy .text-accent { color: var(--red); }

/* page titles use the display face, like Shop and the Journal */
.legacy .page-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(64px, 9vw, 150px); line-height: 0.84;
  letter-spacing: 0.005em; text-transform: uppercase;
}

/* the old theme rounds every header/nav/footer; the shared ones stay square */
.legacy .nav, .legacy .nav__inner, .legacy .menu, .legacy .foot, .legacy .nav__toggle { border-radius: 0; }
.legacy .foot { margin-top: 0; }

/* Animation page player: way back to Home when the video was opened from a Home reel */
.player-back {
  position: absolute; top: 1.5rem; left: 1.5rem; z-index: 50;
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.78rem 1.25rem; border-radius: 999px; border: 0;
  background: var(--fg); color: #121212; cursor: pointer;
  font: 700 0.7rem/1 var(--font); letter-spacing: 0.2em; text-transform: uppercase;
  transition: background-color 0.3s, transform 0.4s var(--ease-in-out);
}
.player-back[hidden] { display: none; }
.player-back:hover { background: var(--red); color: var(--fg); }
.player-back:hover span { transform: translateX(-3px); }
.player-back span { display: inline-block; transition: transform 0.4s var(--ease-in-out); }
.player-back:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (max-width: 480px) { .player-back { left: 1rem; padding: 0.78rem 1rem; letter-spacing: 0.14em; } }

/* Animation page: one readable line on each card; the full story opens in the player */
.legacy .card-line {
  max-width: 62ch; font-family: var(--font); font-size: 14.5px; font-weight: 400; line-height: 1.5;
  color: rgba(244, 239, 233, 0.76);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.legacy .card-line--sm { font-size: 12.5px; -webkit-line-clamp: 3; }
.legacy .player-story { font-family: var(--font); font-size: 14.5px; line-height: 1.65; color: rgba(244, 239, 233, 0.8); }
.legacy .player-story p + p { margin-top: 0.85em; }
.legacy .player-story q { display: block; quotes: "\201C" "\201D"; font-style: italic; color: rgba(244, 239, 233, 0.92); padding-left: 14px; border-left: 1px solid var(--red); }
.legacy .player-story q::before { content: open-quote; }
.legacy .player-story q::after { content: close-quote; }
.legacy .player-story .story-aside { border-left: 0; padding-left: 0; font-size: 1.12em; quotes: none; }
.legacy .player-story .story-meta { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244, 239, 233, 0.5); }
/* a series: step through the parts in the same player */
.series-nav {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; align-items: center; gap: 4px; padding: 4px;
  border-radius: 99px; background: rgba(18, 18, 18, 0.72); border: 1px solid rgba(244, 239, 233, 0.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 600 11px/1 var(--font); letter-spacing: 0.16em; color: var(--fg);
}
.series-nav[hidden] { display: none; }
.series-nav button { width: 34px; height: 34px; border-radius: 50%; color: var(--fg); transition: background-color 0.3s, color 0.3s; }
.series-nav button:hover, .series-nav button:focus-visible { background: var(--red); }
.series-nav span { min-width: 46px; text-align: center; }

/* CGI page: work without a breakdown video yet, as a quiet credits list */
.legacy .cgi-more { margin-top: clamp(70px, 9vw, 130px); }
.legacy .cgi-more__title { font-family: var(--font); font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(244, 239, 233, 0.55); margin-bottom: 18px; }
.legacy .cgi-more__list { border-top: 1px solid rgba(244, 239, 233, 0.12); }
.legacy .cgi-more__list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 16px 2px; border-bottom: 1px solid rgba(244, 239, 233, 0.12);
  font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; color: var(--fg);
}
.legacy .cgi-more__year { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; color: rgba(244, 239, 233, 0.5); font-variant-numeric: tabular-nums; }

/* Clean Up & Roto Work: the page names itself quietly, the introduction does the talking */
.legacy .cleanup-title { margin-bottom: 18px; font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--red); }
