    @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Montserrat:wght@200;400&display=swap');

    :root {
      --bg: #0d0d0d;
      --surface: #161616;
      --accent: #c8a96e;
      --text: #e8e0d0;
      --muted: #5a5550;
      --slide-radius: 4px;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Montserrat', sans-serif;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 24px;
      overflow: hidden;
    }

    /* Subtle grain overlay */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
      pointer-events: none;
      z-index: 100;
      opacity: 0.4;
    }

    header {
      text-align: center;
      margin-bottom: 32px;
      animation: fadeDown 0.8s ease both;
    }

    header h1 {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 300;
      font-size: clamp(2rem, 5vw, 3.2rem);
      letter-spacing: 0.12em;
      color: var(--text);
    }

    header h1 em {
      color: var(--accent);
      font-style: italic;
    }

    header p {
      font-size: 0.65rem;
      letter-spacing: 0.3em;
      color: var(--muted);
      margin-top: 6px;
      text-transform: uppercase;
    }

    /* ── Upload zone ── */
    #upload-zone {
      border: 1px dashed var(--muted);
      border-radius: var(--slide-radius);
      padding: 48px 64px;
      text-align: center;
      transition: border-color 0.25s, background 0.25s;
      animation: fadeUp 0.9s 0.2s ease both;
      max-width: 480px;
      width: 100%;
    }
    #upload-zone svg { opacity: 0.4; margin-bottom: 16px; }
    #upload-zone p { font-size: 0.75rem; letter-spacing: 0.15em; color: var(--muted); text-transform: uppercase; }
    #upload-zone strong { color: var(--accent); font-weight: 400; }
    #file-input { display: none; }

    /* ── Slideshow ── */
    #show-wrap {
      display: none;
      flex-direction: column;
      align-items: center;
      width: 100%;
      max-width: 860px;
      animation: fadeUp 0.6s ease both;
    }

    #stage {
      position: relative;
      width: 100%;
      aspect-ratio: 16/10;
      background: var(--surface);
      border-radius: var(--slide-radius);
      overflow: hidden;
      box-shadow: 0 40px 120px rgba(0,0,0,0.7);
    }

    .slide {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.7s ease;
      pointer-events: none;
    }
    .slide.active {
      opacity: 1;
      pointer-events: auto;
    }
    .slide img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    /* caption bar */
    .slide-caption {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      padding: 10px 20px;
      background: linear-gradient(transparent, rgba(0,0,0,0.65));
      font-size: 0.65rem;
      letter-spacing: 0.2em;
      color: rgba(255,255,255,0.5);
      text-transform: uppercase;
      font-family: 'Montserrat', sans-serif;
    }

    /* nav arrows */
    .nav-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      color: var(--text);
      width: 44px; height: 44px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: background 0.2s, border-color 0.2s;
      z-index: 10;
    }
    .nav-btn:hover { background: rgba(200,169,110,0.18); border-color: var(--accent); }
    #prev { left: 14px; }
    #next { right: 14px; }

    /* counter */
    #counter {
      position: absolute;
      top: 14px; right: 18px;
      font-size: 0.6rem;
      letter-spacing: 0.2em;
      color: rgba(255,255,255,0.35);
      font-family: 'Montserrat', sans-serif;
      z-index: 10;
    }

    /* ── Controls bar ── */
    #controls {
      display: flex;
      align-items: center;
      gap: 20px;
      margin-top: 22px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .ctrl-btn {
      background: none;
      border: 1px solid var(--muted);
      color: var(--text);
      font-family: 'Montserrat', sans-serif;
      font-size: 0.62rem;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      padding: 9px 22px;
      border-radius: 2px;
      cursor: pointer;
      transition: border-color 0.2s, color 0.2s, background 0.2s;
    }
    .ctrl-btn:hover { border-color: var(--accent); color: var(--accent); }
    .ctrl-btn.active { background: var(--accent); border-color: var(--accent); color: #0d0d0d; }

    #speed-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 0.8rem;
      letter-spacing: 0.2em;
      color: rgba(255,255,255,.6);
      text-transform: uppercase;
    }
    #speed-wrap input[type=range] {
      -webkit-appearance: none;
      appearance: none;
      width: 90px; height: 2px;
      background: var(--muted);
      border-radius: 2px;
      cursor: pointer;
    }
    #speed-wrap input[type=range]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 12px; height: 12px;
      background: var(--accent);
      border-radius: 50%;
    }

    /* ── Thumbnails ── */
    #thumbs {
      display: flex;
      gap: 8px;
      margin-top: 18px;
      max-width: 860px;
      width: 100%;
      overflow-x: auto;
      padding-bottom: 10px;
    }
    #thumbs::-webkit-scrollbar { height: 16px; }
    #thumbs::-webkit-scrollbar-track { background: var(--surface); }
    #thumbs::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 2px; }

    .thumb {
      flex-shrink: 0;
      width: 72px; height: 46px;
      object-fit: cover;
      border-radius: 2px;
      opacity: 0.45;
      cursor: pointer;
      border: 1px solid transparent;
      transition: opacity 0.2s, border-color 0.2s;
    }
    .thumb.active { opacity: 1; border-color: var(--accent); }
    .thumb:hover { opacity: 0.85; }

    /* ── Progress bar ── */
    #progress-track {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 2px;
      background: rgba(255,255,255,0.08);
      z-index: 10;
    }
    #progress-fill {
      height: 100%;
      background: var(--accent);
      width: 0%;
      transition: width linear;
    }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(20px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeDown {
      from { opacity: 0; transform: translateY(-14px); }
      to   { opacity: 1; transform: translateY(0); }
    }
