@font-face {
      font-family: "Trajan";
      src: url("../fonts/trajan.ttf") format("truetype");
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: "Special Elite";
      src: url("../fonts/SpecialElite-Regular.ttf") format("truetype");
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: "Cinzel";
      src: url("../fonts/Cinzel-Regular.ttf") format("truetype");
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    :root {
      --ink: #1a1a1a;
      --muted: #8d857a;
      --paper: #faf6ef;
      --line: #e7e2d7;
      --panel: #f1ece3;
      --accent: #c81f3d;
      --accent-bright: #f63856;
      --narrow: 960px;
      --wide: 1120px;
    }

    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: "Cinzel", "Times New Roman", serif;
      color: var(--ink);
      background: var(--paper);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    ::selection {
      background: #1a1a1a;
      color: #faf6ef;
    }

    :focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
    }

    /* ── Nav ── */
    .topbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 20;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 24px 40px;
      background: rgba(250, 246, 239, 0.9);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--line);
    }

    .brand {
      font-family: "Trajan", "Times New Roman", serif;
      font-size: 15px;
      font-weight: 400;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--ink);
      text-decoration: none;
    }

    .nav {
      display: flex;
      gap: 32px;
    }

    .nav a {
      font-size: 14px;
      color: #6e6660;
      text-decoration: none;
      letter-spacing: 1px;
      text-transform: uppercase;
      transition: color 200ms;
    }

    .nav a:hover,
    .nav a.active {
      color: var(--ink);
    }

    /* ── Project hero ── */
    .project-hero {
      max-width: var(--wide);
      margin: 0 auto;
      padding: 132px 40px 0;
    }

    .back-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--muted);
      text-decoration: none;
      transition: color 200ms;
    }

    .back-link:hover {
      color: var(--ink);
    }

    .eyebrow {
      margin-top: 40px;
      font-size: 12px;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--accent);
    }

    .project-title {
      font-family: "Trajan", "Times New Roman", serif;
      font-size: clamp(32px, 6vw, 60px);
      font-weight: 400;
      line-height: 1.08;
      margin-top: 16px;
    }

    .project-lede {
      font-size: clamp(16px, 2vw, 19px);
      color: var(--muted);
      max-width: 640px;
      margin-top: 20px;
    }

    .cover {
      margin-top: 48px;
      border: 1px solid var(--line);
      border-radius: 2px;
      overflow: hidden;
      background: #ece5da;
    }

    .cover img {
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 16 / 9;
      object-fit: cover;
    }

    /* ── Facts ── */
    .facts {
      display: grid;
      grid-template-columns: 180px 1fr;
      margin-top: 40px;
      border-top: 1px solid var(--line);
    }

    .facts dt,
    .facts dd {
      padding: 16px 0;
      border-bottom: 1px solid var(--line);
    }

    .facts dt {
      font-size: 12px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--muted);
      padding-right: 24px;
    }

    .facts dd {
      font-size: 15px;
      color: var(--ink);
    }

    .facts dd span {
      color: var(--muted);
    }

    .facts a {
      color: var(--accent);
      text-decoration: none;
      border-bottom: 1px solid var(--accent-bright);
      transition: color 200ms;
    }

    .facts a:hover {
      color: var(--accent-bright);
    }

    /* ── Sections ── */
    .content-section {
      max-width: var(--wide);
      margin: 0 auto;
      padding: 96px 40px 0;
    }

    #contact.content-section {
      padding-bottom: 48px;
    }

    .section-title {
      font-family: "Trajan", "Times New Roman", serif;
      font-size: clamp(24px, 3.4vw, 34px);
      font-weight: 400;
      margin-bottom: 24px;
    }

    .section-copy {
      max-width: 680px;
      font-size: 16px;
      line-height: 1.75;
      color: #4a443e;
    }

    .section-copy + .section-copy {
      margin-top: 18px;
    }

    .role-list {
      max-width: 680px;
      margin-top: 24px;
      list-style: none;
    }

    .role-list li {
      position: relative;
      padding-left: 26px;
      margin-bottom: 12px;
      font-size: 16px;
      line-height: 1.7;
      color: #4a443e;
    }

    .role-list li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 12px;
      width: 10px;
      height: 1px;
      background: var(--accent-bright);
    }

    /* ── Gallery ── */
    .gallery {
      display: flex;
      flex-direction: column;
      gap: 56px;
      margin-top: 8px;
    }

    .slide-frame {
      display: block;
      border: 1px solid var(--line);
      border-radius: 2px;
      overflow: hidden;
      background: #ece5da;
      transition: box-shadow 200ms, transform 200ms;
    }

    .slide-frame:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    }

    .slide-frame img {
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 16 / 9;
      object-fit: cover;
    }

    .slide-caption {
      display: flex;
      gap: 14px;
      margin-top: 14px;
      font-size: 14px;
      color: var(--muted);
    }

    .slide-num {
      font-family: "Trajan", "Times New Roman", serif;
      font-size: 13px;
      letter-spacing: 1px;
      color: var(--accent);
      flex: none;
    }

    .gallery-note {
      margin-top: 32px;
      font-size: 13px;
      color: #b3aca3;
    }

    /* ── Video ── */
    .video-frame {
      position: relative;
      margin-top: 8px;
      aspect-ratio: 16 / 9;
      border: 1px solid var(--line);
      border-radius: 2px;
      overflow: hidden;
      background: #ece5da;
    }

    .video-frame iframe,
    .video-poster img {
      display: block;
      width: 100%;
      height: 100%;
      border: 0;
    }

    .video-poster {
      position: relative;
      display: block;
      height: 100%;
      text-decoration: none;
    }

    .video-poster img {
      object-fit: cover;
    }

    .video-poster::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(24, 14, 6, 0.32);
      transition: background 200ms;
    }

    .video-poster:hover::after,
    .video-poster:focus-visible::after {
      background: rgba(24, 14, 6, 0.18);
    }

    .video-play {
      position: absolute;
      z-index: 1;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 78px;
      height: 78px;
      border-radius: 50%;
      background: rgba(250, 246, 239, 0.94);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 200ms;
    }

    .video-poster:hover .video-play,
    .video-poster:focus-visible .video-play {
      transform: translate(-50%, -50%) scale(1.06);
    }

    .video-play svg {
      width: 20px;
      height: 20px;
      margin-left: 4px;
      fill: var(--ink);
    }

    .video-label {
      position: absolute;
      z-index: 1;
      left: 24px;
      bottom: 20px;
      font-size: 12px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: #faf6ef;
    }

    .content-section.download-section {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 32px;
      padding-bottom: 64px;
    }

    @media (max-width: 720px) {
      .content-section.download-section {
        grid-template-columns: 1fr;
      }
    }

    .download-link {
      display: inline-block;
      padding: 14px 24px;
      border: 1px solid var(--accent);
      background: var(--accent);
      color: var(--paper);
      font-size: 14px;
      text-decoration: none;
      transition: background 200ms, border-color 200ms;
    }

    .download-link:hover,
    .download-link:focus-visible {
      background: var(--accent-bright);
      border-color: var(--accent-bright);
    }

    /* ── Project nav ── */
    .project-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      max-width: var(--wide);
      margin: 0 auto;
      padding: 0 40px 96px;
    }

    .project-nav a {
      font-family: "Trajan", "Times New Roman", serif;
      font-size: 15px;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--ink);
      text-decoration: none;
      border-bottom: 1px solid var(--line);
      padding-bottom: 4px;
      transition: border-color 200ms;
    }

    .project-nav a:hover {
      border-color: var(--ink);
    }

    .project-nav .muted {
      font-size: 13px;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: #c6bfb4;
    }

    /* ── Contact ── */
    .contact-card {
      padding: 36px 0 30px;
      border-top: 1px solid var(--line);
      text-align: center;
    }

    .contact-title {
      font-family: "Cinzel", "Times New Roman", serif;
      font-size: clamp(34px, 5vw, 48px);
      font-weight: 400;
      margin-bottom: 22px;
    }

    .contact-line {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 24px;
      flex-wrap: wrap;
      font-size: 14px;
      color: #6e6660;
    }

    .contact-line a {
      color: var(--ink);
      text-decoration: none;
      transition: color 200ms;
    }

    .contact-line a:hover {
      color: var(--muted);
    }

    /* ── Footer ── */
    .site-footer {
      max-width: var(--narrow);
      margin: 0 auto;
      padding: 24px 40px;
      display: flex;
      justify-content: space-between;
      font-size: 13px;
      color: #c6bfb4;
      border-top: 1px solid var(--line);
    }

    /* ── Responsive ── */
    @media (max-width: 720px) {
      .topbar {
        padding: 18px 20px;
      }

      .project-hero {
        padding: 108px 20px 0;
      }

      .eyebrow {
        margin-top: 28px;
      }

      .cover {
        margin-top: 32px;
      }

      .facts {
        grid-template-columns: 1fr;
      }

      .facts dt {
        padding-bottom: 0;
        border-bottom: 0;
      }

      .facts dd {
        padding-top: 6px;
      }

      .content-section {
        padding: 72px 20px 0;
      }

      .gallery {
        gap: 40px;
      }

      .slide-caption {
        flex-direction: column;
        gap: 4px;
      }

      .project-nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px 72px;
      }

      .contact-line {
        flex-direction: column;
        gap: 16px;
      }

      #contact.content-section {
        padding-bottom: 36px;
      }

      .contact-card {
        padding: 30px 0 26px;
      }

      .site-footer {
        flex-direction: column;
        gap: 8px;
        padding: 20px;
        text-align: center;
      }
    }

/* Preserve each PDF page's own proportions, including mixed-size decks. */
.cover img, .slide-frame img { aspect-ratio: auto; object-fit: contain; }
.cover a { display: block; }
.cover a:focus-visible { outline-offset: -4px; }
.text-link { color: var(--accent); text-underline-offset: 4px; }
.deck-source { max-width: 680px; margin-bottom: 24px; color: #4a443e; font-size: 16px; line-height: 1.75; }
.content-section.download-section.single-download { grid-template-columns: 1fr; }
.level-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 32px; list-style: none; }
.level-list li { padding-top: 20px; border-top: 1px solid var(--line); }
.level-number { display: block; margin-bottom: 12px; color: var(--accent); font-size: 12px; letter-spacing: 2px; }
.level-list h3 { font-family: "Trajan", "Times New Roman", serif; font-size: 20px; font-weight: 400; margin-bottom: 12px; }
.level-list p { font-size: 15px; line-height: 1.75; color: #4a443e; }
@media (max-width: 720px) { .level-list { grid-template-columns: 1fr; gap: 24px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* Widescreen project presentation. */
@media (min-width: 1024px) {
  :root { --wide: 1680px; }

  .project-title { font-size: clamp(60px, 4vw, 72px); }
  .project-lede { max-width: 840px; font-size: 22px; }
  .back-link { font-size: 15px; }
  .eyebrow, .facts dt { font-size: 13px; }
  .facts { grid-template-columns: 200px 1fr; }
  .facts dd { font-size: 17px; }

  .section-title { font-size: 40px; }
  .section-copy, .role-list, .deck-source { max-width: 1200px; }
  .section-copy, .role-list li, .deck-source { font-size: 18px; }
  .role-list li::before { top: 14px; }
  .slide-caption { font-size: 16px; }
  .slide-num, .gallery-note { font-size: 15px; }

  .level-list h3 { font-size: 22px; }
  .level-list p { font-size: 17px; }
  .level-number, .video-label { font-size: 14px; }
  .video-play { width: 88px; height: 88px; }
  .download-link { font-size: 16px; }
  .project-nav a { font-size: 17px; }
}
