/* Open project pages: no enclosing card, paper panel, or decorative shadow. */
.project-page {
  --case-ink: #76364d;
  --case-muted: #78666a;
  --case-paper: #f3ece2;
  --case-line: #76364d36;
  background: var(--case-paper);
  color: var(--case-ink);
  font-family: Arial, Helvetica, sans-serif;
  cursor: url('assets/retro/cursor-arrow.svg') 2 2, default;
}
.project-page a, .project-page button, .project-page summary {
  cursor: url('assets/retro/cursor-hand.svg') 12 2, pointer;
}
.project-page a:focus-visible, .project-page summary:focus-visible, .project-page video:focus-visible {
  outline: 2px dashed var(--case-ink);
  outline-offset: 6px;
}
.case-header {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.case-signature {
  font: 400 30px/1 Forta, Georgia, serif;
  text-decoration: none;
  white-space: nowrap;
}
.case-header nav { display: flex; gap: 28px; align-items: center; }
.case-header nav a, .case-footer a {
  font: 700 .875rem/1.4 'Courier New', Courier, monospace;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.case-header nav a:hover, .case-footer a:hover { text-decoration-color: #b77b42; }
.case-main { max-width: 1152px; margin: 30px auto 0; padding: 0 44px; }
.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(40px, 7vw, 100px);
}
.case-intro { max-width: 460px; }
.case-mark { width: 82px; height: 72px; margin: 0 0 24px -10px; }
.case-mark svg, .case-preview-art svg { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.case-main h1 {
  max-width: 11ch;
  margin: 0 0 22px;
  font: 700 clamp(2.75rem, 4.7vw, 4rem)/1.06 'Courier New', Courier, monospace;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.case-summary {
  max-width: 39ch;
  margin: 0;
  color: #604e53;
  font-size: 1.125rem;
  line-height: 1.7;
}
.case-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}
.case-skills li {
  padding: 6px 10px;
  border: 1px solid #76364d80;
  border-radius: 5px;
  background: var(--case-tag, #f5c9ae);
  font: 700 .875rem/1.25 'Courier New', Courier, monospace;
}
.case-film { margin: 0; justify-self: center; max-width: 100%; }
.case-film video {
  display: block;
  width: auto;
  height: min(660px, calc(100svh - 164px));
  max-width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.case-preview {
  justify-self: center;
  width: min(100%, 320px);
  text-align: center;
  padding: 44px 0;
}
.case-preview-art { width: 100%; height: 210px; }
.case-preview p { max-width: 29ch; margin: 22px auto 0; font-size: 1rem; line-height: 1.65; color: var(--case-muted); }
.case-progress {
  max-width: 720px;
  margin: 52px 0 0;
  color: var(--case-muted);
  font-size: .9375rem;
  line-height: 1.7;
}
.case-progress summary { width: fit-content; text-underline-offset: 4px; }
.case-progress summary:hover { color: var(--case-ink); }
.case-progress p { margin: 12px 0 0 17px; }
.case-footer {
  max-width: 1152px;
  margin: 32px auto 0;
  padding: 24px 44px 38px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
@media (max-width: 760px) {
  .case-header { padding: 24px; gap: 16px; }
  .case-header nav { gap: 18px; }
  .case-header nav a { font-size: .875rem; }
  .case-signature { font-size: 27px; }
  .case-main { margin-top: 24px; padding: 0 24px; }
  .case-hero { grid-template-columns: 1fr; gap: 34px; }
  .case-intro { max-width: 540px; }
  .case-mark { width: 64px; height: 56px; margin-bottom: 16px; }
  .case-main h1 { max-width: none; font-size: clamp(2.25rem, 8vw, 3.5rem); margin-bottom: 18px; }
  .case-summary { font-size: 1rem; line-height: 1.65; }
  .case-skills { margin-top: 20px; gap: 7px; }
  .case-film { justify-self: start; width: min(100%, 380px); }
  .case-film video { width: 100%; height: auto; }
  .case-preview { justify-self: start; width: min(100%, 280px); padding: 10px 0; text-align: left; }
  .case-preview p { margin-left: 0; }
  .case-progress { margin-top: 32px; }
  .case-footer { padding: 22px 24px 32px; margin-top: 24px; }
}
@media (max-width: 380px) {
  .case-header { align-items: flex-start; }
  .case-header nav { flex-direction: column; align-items: flex-end; gap: 10px; }
}
