:root {
    --bg: #0a0a0a;
    --ink: #f0f0ec;
    --ink-soft: rgba(240, 240, 236, 0.65);
    --ink-faint: rgba(240, 240, 236, 0.4);
    --line: rgba(240, 240, 236, 0.2);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body {
    height: 100%;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Tenor Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
  }

  /* STAGE — fills entire viewport with image */
  .stage {
    position: fixed;
    inset: 0;
    background: var(--bg);
    overflow: hidden;
  }
  /* Blurred mood-color background — same image, zoomed and blurred */
  .stage-bg {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    filter: blur(70px) brightness(0.45) saturate(1.4);
    transform: scale(1.15);
    transition: opacity 0.6s ease, background-image 0s;
    will-change: opacity;
  }
  /* Foreground image — fully visible, contained */
  .stage-img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 88vw;
    max-height: 84vh;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.04);
    transition: opacity 0.5s ease;
    user-select: none;
    -webkit-user-drag: none;
  }
  .stage.is-fading .stage-bg,
  .stage.is-fading .stage-img { opacity: 0; }

  /* TOPBAR */
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 44px;
    mix-blend-mode: difference;
    pointer-events: none;
  }
  .topbar > * { pointer-events: auto; }
  .logo {
    font-size: 13px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
  }
  .topnav { display: flex; gap: 40px; }
  .topnav a {
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
  }
  .topnav a:hover { opacity: 1; }

  /* ARROWS */
  .arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9;
    background: none;
    border: none;
    color: var(--ink);
    mix-blend-mode: difference;
    font-size: 32px;
    cursor: pointer;
    padding: 20px 24px;
    opacity: 0.4;
    transition: opacity 0.2s, transform 0.2s;
    font-family: inherit;
    line-height: 1;
  }
  .arrow:hover { opacity: 1; }
  .arrow-prev { left: 12px; }
  .arrow-prev:hover { transform: translateY(-50%) translateX(-3px); }
  .arrow-next { right: 12px; }
  .arrow-next:hover { transform: translateY(-50%) translateX(3px); }

  /* CAPTION */
  .caption {
    position: fixed;
    bottom: 36px;
    left: 44px;
    z-index: 10;
    mix-blend-mode: difference;
    color: var(--ink);
    max-width: 420px;
  }
  .caption-title {
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .caption-meta {
    font-size: 11px;
    color: var(--ink-soft);
    line-height: 1.8;
    letter-spacing: 0.04em;
  }
  .caption-meta span { display: block; }
  .caption-status {
    display: inline-block;
    margin-top: 14px;
    font-size: 9px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-faint);
    padding: 5px 11px;
    border: 1px solid var(--line);
  }
  .inquire {
    display: inline-block;
    margin-top: 16px;
    padding: 11px 26px;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--ink);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    mix-blend-mode: normal;
  }
  .inquire:hover {
    background: var(--ink);
    color: #000;
  }

  /* COUNTER */
  .counter {
    position: fixed;
    bottom: 44px;
    right: 44px;
    z-index: 10;
    mix-blend-mode: difference;
    color: var(--ink);
    font-size: 11px;
    letter-spacing: 0.32em;
    font-variant-numeric: tabular-nums;
  }

  @media (max-width: 700px) {
    /* Mobile: flow layout instead of fixed positioning.
       Stage becomes a vertical flex column: nav / image / caption.
       Each region gets its own space — overlap is impossible. */
    body { overflow: auto; }
    .stage {
      position: relative;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      padding: 130px 16px 40px;
    }
    .stage-bg { position: fixed; }
    .topbar { padding: 18px 16px; flex-direction: column; gap: 10px; }
    .topnav { gap: 24px; }
    .topnav a { font-size: 10px; }
    .arrow {
      position: fixed;
      top: auto;
      bottom: 50%;
      font-size: 24px;
      padding: 12px 6px;
      transform: none;
    }
    .arrow-prev:hover, .arrow-next:hover { transform: none; }
    .stage-img {
      position: relative;
      left: auto;
      top: auto;
      right: auto;
      bottom: auto;
      transform: none;
      margin: 0 auto;
      max-width: 100%;
      max-height: 60vh;
      width: auto;
      height: auto;
      flex: 0 0 auto;
    }
    .caption {
      position: relative;
      left: auto;
      right: auto;
      bottom: auto;
      margin-top: 20px;
      max-width: none;
      flex: 0 0 auto;
    }
    .counter { display: none; }
  }
